tool-design
Was er macht
Dieser Skill erklärt, wie du die Werkzeuge entwirfst, die ein KI-Agent aufruft, einschließlich Beschreibungen, Schemata, Antwortformaten, Benennung und Fehlermeldungen. Er ist für Entwickler gedacht, die Werkzeuge oder MCP-Server bauen, die Agenten nutzen.
Wann du ihn nutzt
- ✓Wenn du eine neue Werkzeugbeschreibung oder einen neuen MCP-Server für einen KI-Agenten schreibst.
- ✓Wenn ein Agent immer wieder das falsche Werkzeug wählt oder fehlerhafte Aufrufe macht.
- ✓Wenn deine Werkzeugliste gewachsen ist und sich überschneidende Werkzeuge den Agenten verwirren.
Link zum Skill
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/tool-design/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Mein KI-Agent wählt aus meiner Liste von siebzehn Werkzeugen immer wieder das falsche. Hilf mir, die Werkzeugbeschreibungen neu zu schreiben und die Überschneidungen zusammenzulegen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill behandelt jedes Werkzeug als Vertrag. Beschreibung und Fehlermeldungen müssen so klar sein, dass der Agent richtig wählt und sich selbst helfen kann.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Tool Design for Agents
Design every tool as a contract between a deterministic system and a non-deterministic agent. Unlike human-facing APIs, agent-facing tools must make the contract unambiguous through the description alone: agents infer intent from descriptions and generate calls that must match expected formats. Every ambiguity becomes a potential failure mode that no amount of prompt engineering can fix.
The unit of work for this skill is a single tool or a tool catalog. Project-shape, pipeline architecture, task-model-fit, and cost-at-the-project-level decisions belong to project-development. Deciding whether to introduce sub-agents belongs to multi-agent-patterns. This skill owns the interface layer that connects deterministic code to the agent.
When to Activate
Activate this skill when the unit of work is a tool:
- Writing a new tool description, schema, or response format.
- Debugging cases where the agent picked the wrong tool or generated malformed calls.
- Consolidating an overlapping tool catalog (the classic "we have 17 tools, the agent picks wrong half the time" case).
- Designing actionable error messages so the agent can self-correct.
- Naming tools and parameters consistently across a catalog (MCP namespacing, verb-noun naming).
- Evaluating a third-party tool against the consolidation principle before adding it.
Do not activate this skill for adjacent work owned by other skills:
- Deciding whether the project should use LLMs at all, or what the pipeline stages should be:
project-development. - Deciding whether to split work across sub-agents or run a single agent with more tools:
multi-agent-patterns. - Reducing the token weight of tool outputs at the trajectory level (observation masking, format-option choice at scale):
context-optimization.
Core Concepts
Design tools around the consolidation principle: if a human engineer cannot definitively say which tool should be used in a given situation, an agent cannot be expected to do better. Reduce the tool set until each tool has one unambiguous purpose, because agents select tools by comparing descriptions and any overlap introduces selection errors.
Treat every tool description as prompt engineering that shapes agent behavior. The description is not documentation for humans -- it is injected into the agent's context and directly steers reasoning. Write descriptions that answer what the tool does, when to use it, and what it returns, because these three questions are exactly what agents evaluate during tool selection.
Detailed Topics
The Tool-Agent Interface
Tools as Contracts Design each tool as a self-contained contract. When humans call APIs, they read docs, understand conventions, and make appropriate requests. Agents must infer the entire contract from a single description block. Make the contract unambiguous by including format examples, expected patterns, and explicit constraints. Omit nothing that a caller needs to know, because agents cannot ask clarifying questions before making a call.
Tool Description as Prompt Write tool descriptions knowing they load directly into agent context and collectively steer behavior. A vague description like "Search the database" with cryptic parameter names forces the agent to guess -- and guessing produces incorrect calls. Instead, include usage context, parameter format examples, and sensible defaults. Every word in the description either helps or hurts tool selection accuracy.
Namespacing and Organization
Namespace tools under common prefixes as the collection grows, because agents benefit from hierarchical grouping. When an agent needs database operations, it routes to the db_* namespace; when it needs web interactions, it routes to web_*. Without namespacing, agents must evaluate every tool in a flat list, which degrades selection accuracy as the count grows.
The Consolidation Principle
Single Comprehensive Tools
Build single comprehensive tools instead of multiple narrow tools that overlap. Rather than implementing list_users, list_events, and create_event separately, implement schedule_event that finds availability and schedules in one call. The comprehensive tool handles the full workflow internally, removing the agent's burden of chaining calls in the correct order.
Why Consolidation Works Apply consolidation because agents have limited context and attention. Each tool in the collection competes for attention during tool se
Häufige Fragen
Warum sind Werkzeugbeschreibungen so wichtig?
Agenten wählen Werkzeuge anhand ihrer Beschreibungen. Unklare Formulierungen führen zu falschen Entscheidungen oder fehlerhaften Aufrufen.
Was soll eine Fehlermeldung leisten?
Sie soll dem Agenten klar sagen, was schiefging und was er als Nächstes versuchen kann, damit er sich selbst korrigieren kann.
Wann sollte ich ein Werkzeug entfernen?
Der Skill rät, überlappende Werkzeuge zusammenzulegen, wenn der Katalog dazu führt, dass der Agent oft das falsche wählt.
Details
Originalbeschreibung des Autors
This skill should be used for the tool-interface layer of an agent system specifically: writing tool descriptions agents can route on, designing tool schemas and response formats, naming conventions, actionable error recovery messages, MCP server design, tool-set consolidation, and deciding when to add or remove an individual tool. Use this when the unit of work is a single tool or a set of tools. Route project-shape, pipeline architecture, and task-model-fit decisions to project-development; route deciding whether to introduce sub-agents to multi-agent-patterns.
Beliebtheit
- GitHub-Sterne
- 18k
- Platz im Ranking
- #10652
- Lizenz
- MIT
- Aktualisiert
- 11.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
context-engineering-collection
18kHilft deinem Agenten, zu verwalten, was in das Kontextfenster eines KI-Modells kommt, von Gedächtnis und Werkzeugen bis zu Multi-Agenten-Setups und Evaluation.
advanced-evaluation
18kBringt deinem Agenten bei, KI-Antworten mithilfe einer anderen KI zu beurteilen, mit Bewertung, direktem Vergleich und Prüfungen auf Verzerrungen.
bdi-mental-states
18kBringt deinem Agenten bei, Überzeugungen, Ziele und Pläne nach dem BDI-Ansatz zu modellieren, damit seine Entscheidungen nachvollziehbar und erklärbar sind.
context-compression
18kHilft deinem Agenten, lange KI-Sitzungen in Zusammenfassungen zu kürzen, die Entscheidungen, Dateien, Risiken und nächste Schritte erhalten.
Ähnliche Skills
mcporter
394kHilft deinem Agenten, MCP-Server und ihre Werkzeuge über HTTP oder stdio aufzulisten, aufzurufen und zu prüfen und ihre Anmeldeeinstellungen zu verwalten.
fastmcp
260kHilft dir, einen Python-MCP-Server zu bauen, zu testen und bereitzustellen, der KI-Assistenten Zugriff auf deine API, Datenbank oder Dateien gibt.
mcp-oauth-remote-gateway
260kFührt dich durch die OAuth-Anmeldung für einen entfernten MCP-Server, wenn Hermes auf einem Server läuft und die normale Browseranmeldung ihn nicht erreicht.