Skip to content
Back to skills

Quickstart

ASecurity

**Tool vs. Skill — der Unterschied in einem Satz:** > Ein **Tool** ist ein einzelner Call ("zähle Wörter"). Ein **Skill** ist eine kuratierte Kombination aus System-Prompt, Trigger-Keywords und einer passenden Tool-Liste — ein wiederverwendbares "Rezept". **Voraussetzungen** - Abgeschlossen: [02 · Eigenes Tool](02-first-tool.md) **Zeitbedarf:** 5 Minuten **Endzustand:** Ein `@agent`-dekorierter Skill ist registriert, hat eine definierte Persona, eigene Tools und reagiert auf Keywords. ---

  • 153 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aipythonrailsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add Alex8791-cyber/cognithor --skill quickstart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quickstart?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Quickstart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alex8791-cyber-quickstart/badge)](https://www.skillsdirectory.com/skills/alex8791-cyber-quickstart)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 03 · Erster Skill

**Tool vs. Skill — der Unterschied in einem Satz:**

> Ein **Tool** ist ein einzelner Call ("zähle Wörter"). Ein **Skill** ist eine kuratierte Kombination aus System-Prompt, Trigger-Keywords und einer passenden Tool-Liste — ein wiederverwendbares "Rezept".

**Voraussetzungen**
- Abgeschlossen: [02 · Eigenes Tool](02-first-tool.md)

**Zeitbedarf:** 5 Minuten
**Endzustand:** Ein `@agent`-dekorierter Skill ist registriert, hat eine definierte Persona, eigene Tools und reagiert auf Keywords.

---

## 1. Der `@agent`-Decorator als Skill-Primitive

`cognithor.sdk` bietet `@agent` als Ein-Decorator-Skill-Definition:

```python
from cognithor.sdk import agent, tool


@tool(name="calculate_gcd", description="Berechne größten gemeinsamen Teiler")
async def calculate_gcd(a: int, b: int) -> int:
    while b:
        a, b = b, a % b
    return a


@agent(
    name="math_helper",
    description="Mathe-Skill — berechnet ggT und andere Zahlentheorie-Aufgaben",
    tools=["calculate_gcd"],
    system_prompt="Du bist ein präziser Mathematik-Assistent. Antworte knapp.",
    trigger_keywords=["ggT", "größter gemeinsamer Teiler", "GCD"],
    version="0.1.0",
)
class MathHelperAgent:
    async def on_message(self, message: str) -> str:
        return f"Math-Helper bearbeitet: {message}"
```

**Kernzutaten eines Skills:**

| Feld                | Zweck                                                          |
|---------------------|----------------------------------------------------------------|
| `name`              | Eindeutige ID, per `SDKRegistry` auffindbar                    |
| `tools`             | Welche Tools der Skill aufrufen darf                           |
| `system_prompt`     | Persona — wie der Skill denkt und formuliert                   |
| `trigger_keywords`  | Wann der Skill-Router diesen Skill aktiviert                   |
| `max_iterations`    | Sicherheits-Limit für die Tool-Use-Schleife (default: 5)       |

## 2. Skill entdecken

```python
from cognithor.sdk.decorators import get_registry

registry = get_registry()
defn = registry.get_agent("math_helper")
print(defn.name, defn.tools, defn.trigger_keywords)
# → math_helper ['calculate_gcd'] ['ggT', 'größter gemeinsamer Teiler', 'GCD']
```

## 3. Vollständiges Beispiel

Leg `main.py` an — siehe [`examples/quickstart/03_first_skill/main.py`](../../examples/quickstart/03_first_skill/main.py).

## 4. Skill-Scaffolder

Für schnellere Gerüste:

```python
from cognithor.sdk import scaffold_agent

src = scaffold_agent(
    name="my_skill",
    description="Mein Skill",
    keywords=["hallo", "welt"],
)
print(src)  # → vollständige Python-Datei mit @tool + @agent + @hook
```

Das Ergebnis ist eine direkt lauffähige Python-Datei, fertig zum Anpassen.

## 5. Was ist der Unterschied zur Community Skill Marketplace?

Die **Community Skill Marketplace** (`cognithor.skills.community.*`) ist die **hostete Distribution**: veröffentlichte, SHA-256-verifizierte Skills mit Publisher-Vertrauenslevels, Ratings und REST-API. Alles was du mit `@agent` baust, kannst du dort später publishen.

Die SDK-Ebene (`@agent`-Decorator) ist der **Entwickler-Einstieg**: lokal registrieren, lokal testen, dann optional publishen.

---

**Next:** [04 · Guardrails](04-guardrails.md)

Files in this skill

  • 00-installation.en.md2.3 KB
  • 00-installation.md2.3 KB
  • 01-first-crew.en.md3.2 KB
  • 01-first-crew.md3.3 KB
  • 02-first-tool.en.md3.1 KB
  • 02-first-tool.md3.2 KB
  • 03-first-skill.en.md3.1 KB
  • 03-first-skill.md3.2 KB
  • 04-guardrails.en.md3.3 KB
  • 04-guardrails.md3.4 KB
  • 05-deployment.en.md3 KB
  • 05-deployment.md3.1 KB
  • 06-next-steps.en.md2.8 KB
  • 06-next-steps.md2.8 KB
  • 07-troubleshooting.en.md3.8 KB
  • 07-troubleshooting.md4 KB
  • EXTERNAL_REVIEW_CHECKLIST.md2.2 KB
  • EXTERNAL_REVIEW_RESULTS.md1 KB
  • README.en.md1.3 KB
  • README.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.