Zum Inhalt springen
Skillpedia
Prompts & LLMs311k · #99

writing-skills

Was er macht

Er erklärt, wie du einen Skill für einen KI-Agenten erstellst oder bearbeitest und bestätigst, dass er funktioniert, bevor du dich darauf verlässt. Er ist für Menschen gedacht, die Agenten-Skills bauen oder verbessern.

Wann du ihn nutzt

  • ✓Wenn du einen neuen Skill von Grund auf für deinen Agenten erstellen willst.
  • ✓Wenn du einen bestehenden Skill bearbeiten und bestätigen musst, dass er noch funktioniert.
  • ✓Wenn du prüfen willst, dass ein Skill funktioniert, bevor du ihn einsetzt.

Link zum Skill

https://github.com/obra/superpowers/blob/main/skills/writing-skills/SKILL.md

Kopiere 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

Nutze diesen Skill, um mir zu helfen: https://github.com/obra/superpowers/blob/main/skills/writing-skills/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich möchte einen neuen Skill für meinen KI-Assistenten schreiben und prüfen, ob er wirklich funktioniert.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Er behandelt jeden Skill wie einen Test. Der Agent sieht zuerst, wie die Aufgabe ohne den Skill fehlschlägt, dann schreibt er den Skill und bestätigt, dass der Agent ihm folgt.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Writing Skills

Overview

Writing skills IS Test-Driven Development applied to process documentation.

Personal skills live in your runtime's skills directory (~/.claude/skills/ on Claude Code) — see codex-tools.md or gemini-tools.md for the path on those runtimes. Codex, Copilot CLI, and Gemini CLI all also recognize ~/.agents/skills/ as a cross-runtime alias.

You write test cases (pressure scenarios with subagents), watch them fail (baseline behavior), write the skill (documentation), watch tests pass (agents comply), and refactor (close loopholes).

Core principle: If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.

REQUIRED BACKGROUND: You MUST understand superpowers:test-driven-development before using this skill. That skill defines the fundamental RED-GREEN-REFACTOR cycle. This skill adapts TDD to documentation.

Official guidance: For Anthropic's official skill authoring best practices, see references/anthropic-best-practices.md. This document provides additional patterns and guidelines that complement the TDD-focused approach in this skill.

What is a Skill?

A skill is a reference guide for proven techniques, patterns, or tools. Skills help future agents find and apply effective approaches.

Skills are: Reusable techniques, patterns, tools, reference guides

Skills are NOT: Narratives about how you solved a problem once

TDD Mapping for Skills

TDD Concept Skill Creation
Test case Pressure scenario with subagent
Production code Skill document (SKILL.md)
Test fails (RED) Agent violates rule without skill (baseline)
Test passes (GREEN) Agent complies with skill present
Refactor Close loopholes while maintaining compliance
Write test first Run baseline scenario BEFORE writing skill
Watch it fail Document exact rationalizations agent uses
Minimal code Write skill addressing those specific violations
Watch it pass Verify agent now complies
Refactor cycle Find new rationalizations → plug → re-verify

The entire skill creation process follows RED-GREEN-REFACTOR.

When to Create a Skill

Create when:

  • Technique wasn't intuitively obvious to you
  • You'd reference this again across projects
  • Pattern applies broadly (not project-specific)
  • Others would benefit

Don't create for:

  • One-off solutions
  • Standard practices well-documented elsewhere
  • Project-specific conventions (put in your instructions file)
  • Mechanical constraints (if it's enforceable with regex/validation, automate it—save documentation for judgment calls)

Skill Types

Technique

Concrete method with steps to follow (condition-based-waiting, root-cause-tracing)

Pattern

Way of thinking about problems (flatten-with-flags, test-invariants)

Reference

API docs, syntax guides, tool documentation (office docs)

Directory Structure

skills/
  skill-name/
    SKILL.md              # Main reference (required)
    supporting-file.*     # Only if needed

Flat namespace - all skills in one searchable namespace

Separate files for:

  1. Heavy reference (100+ lines) - API docs, comprehensive syntax
  2. Reusable tools - Scripts, utilities, templates

Keep inline:

  • Principles and concepts
  • Code patterns (< 50 lines)
  • Everything else

Writing SKILL.md

A skill's description says only when to use it: triggering conditions and symptoms, starting with "Use when...". It never summarizes the skill's workflow, because an agent that reads a workflow summary follows it instead of reading the skill.

When you write or change a skill's frontmatter, name or description, or need to cut its size, read references/discovery.md: the SKILL.md template, description and keyword guidance, naming, token budgets, and cross-referencing other skills.

Flowcharts

When you add or change a flowchart in a skill, read references/flowcharts.md first: when a flowchart earns its place, the graphviz conventions, and how to render one.

Code Examples

One excellent example beats many mediocre ones

Choose most relevant language:

  • Testing techniques → TypeScript/JavaScript
  • System debugging → Shell/Python
  • Data processing → Python
Häufige Fragen

Muss ich programmieren können, um diesen Skill zu nutzen?

Nicht unbedingt. Skills sind einfache Textanweisungen, deshalb ist der Skill für Menschen geschrieben, die klare Schritte formulieren können.

Erklärt dieser Skill, wie man einen Skill testet?

Ja. Er fordert dich auf, den Agenten mit und ohne Skill laufen zu lassen und die Ergebnisse zu vergleichen, bevor du fertig bist.

Wo sollte ein persönlicher Skill gespeichert werden?

Der Skill sagt, persönliche Skills gehören in den Skills-Ordner der Laufzeitumgebung, etwa in den Skills-Ordner deiner Claude-Code-Einstellungen.

Details

Originalbeschreibung des Autors

Use when creating new skills, editing existing skills, or verifying skills work before deployment

repo: obra/superpowers

Beliebtheit

GitHub-Sterne
311k
Platz im Ranking
#99
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills