본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM311k · #99

writing-skills

하는 일

AI 에이전트 스킬을 만들거나 편집하고, 의존하기 전에 제대로 작동하는지 확인하는 방법을 설명합니다. 에이전트 스킬을 만들거나 개선하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트를 위해 처음부터 새 스킬을 만들고 싶을 때.
  • ✓기존 스킬을 편집하고 여전히 작동하는지 확인해야 할 때.
  • ✓배포하기 전에 스킬이 실제로 작동하는지 점검하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/obra/superpowers/blob/main/skills/writing-skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“AI 어시스턴트를 위한 새 스킬을 쓰고 싶은데, 그것이 실제로 작동하는지 확인하고 싶습니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 각 스킬을 하나의 테스트처럼 다룹니다. 에이전트는 먼저 스킬 없이 작업이 실패하는 것을 보고, 그다음 스킬을 쓰고, 에이전트가 그 스킬을 따르는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

이 스킬을 쓰려면 프로그래밍을 알아야 하나요?

꼭 그렇지는 않습니다. 스킬은 평이한 텍스트 지시이므로, 명확한 단계를 쓸 수 있는 사람을 위해 작성되었습니다.

스킬을 테스트하는 방법도 설명하나요?

예. 끝내기 전에 스킬이 있을 때와 없을 때 에이전트를 실행하고 결과를 비교하라고 요구합니다.

개인 스킬은 어디에 저장하나요?

개인 스킬은 Claude Code 설정 아래의 스킬 폴더처럼 런타임의 스킬 폴더에 두라고 설명합니다.

상세 정보

작성자의 원본 설명

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

repo: obra/superpowers

인기도

GitHub 스타
311k
순위
#99
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬