본문으로 건너뛰기
cccskills
무료GitHub에 공개

agentskill-expertise

Agent Skill design knowledge base — mechanisms, philosophy, patterns, pitfalls. Use when: designing new skills, reviewing skill quality, or deciding whether something should be a skill.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(3)

  • SKILL.md16.1 KB
  • references/design-patterns.md3.1 KB
  • references/skill-template.md3.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

AgentSkill Expertise - Agent Skill Knowledge System

Overview

The complete knowledge system for Agent Skills. Not a how-to guide (that's what official docs are for) — this focuses on three things: why Skills are designed the way they are, what good design looks like, and where the common pitfalls are.

Any work involving Skills — creating, adjusting, reviewing, splitting, merging — should use this as the decision framework.


Core Understanding: What a Skill Actually Is

Three Levels of Understanding

LevelUnderstandingWhat You Can DoCommon Issue
Surface"Skills are a way to make AI remember instructions"Write syntactically correct SkillsTreats Skills as fancy System Prompts
Mechanical"Skills implement Progressive Disclosure"Understands trigger mechanism and load flowTechnically correct but poorly designed
Essential"Skills externalize knowledge into a format that AI can actively discover and load on demand"Design Skills that actually work—

Key Insights

  • Not a rule set: A single value covers a wide range of rules. Give principles, not rules.
  • Not a prompt wrapper: Skills have a metadata pre-loading mechanism — they're in context before conversation starts. Fundamentally different from prompts.
  • Not a tool feature: It's a standardized format for knowledge management. Write once, works across platforms, and the accumulated knowledge only grows in value.
  • Official positioning: "Domain Expertise" — not instructions, not workflows, but knowledge.

Underlying Mechanisms

Progressive Disclosure

Level 1: metadata (name + description, ~100 tokens)
         → Present from session start, always in context
         → The only thing AI uses to decide whether to load a Skill

Level 2: SKILL.md full content (<5k tokens)
         → Loaded only when AI judges it relevant

Level 3+: references/, scripts/, assets/
         → Loaded only when more detail is needed

State Difference at Conversation Start

Traditional ApproachSkill Architecture
When conversation startsAI starts with an empty slateAI has already loaded all Skill metadata
What the user needs to doCopy-paste every time / write "remember to read X" / stuff everything into CLAUDE.mdNothing
PrincipleNot mentioned = not knownBefore the conversation starts, AI is already prepared

This is the fundamental difference — not what happens during the conversation, but that the state is already different before it begins.

The Description Mechanism

  • AI uses semantic matching to decide whether to load, not keyword comparison
  • Description is the only content read at Level 1
  • The system enforces a 15,000 character budget for the <available_skills> block (shared across all Skills)

Known bias: AI will err on the side of not triggering rather than over-triggering. A conservative description = a Skill that effectively doesn't exist.

Anthropic skill-creator: "Currently Claude has a tendency to 'undertrigger' skills — to not use them when they'd be useful. To combat this, please make the skill descriptions a little bit 'pushy'."

Writing principles:

  • ❌ Feature-oriented: "This is a writing skill" → Too vague, AI will skip it
  • ✅ Situation-oriented: "Trigger when conclusion-first, scannable, professional-tone technical writing is needed" → Clear trigger condition
  • ✅ Explicitly enumerate trigger scenarios: "even if they don't explicitly ask for X" → Reduces missed triggers
  • ✅ Include update triggers: "AI should proactively update when: X happens → update Y" → AI knows when to iterate

Less Is More

"Find the smallest set of high-signal tokens that maximize likelihood of desired outcome." — Anthropic official

"The biggest performance gains didn't come from adding complex RAG pipelines. The gains came from removing things." — Manus team (100+ tools causes Context Confusion — AI hallucinates parameters or calls the wrong tool)

"Keep the prompt lean. Remove things that aren't pulling their weight." — Anthropic skill-creator

Conclusion: The design principle for Skills is lean, chunked, and loaded on demand. Every instruction should pull its weight — if it can't justify its existence, remove it.


Design Principles

Principle 1: Give Principles, Not Rules

ApproachExampleResult
Rule"Don't use words like 'explosive' or 'shocking'"AI finds another way to write it; the anxiety-inducing tone remains
Principle"I don't want the writing to feel anxious"AI understands the why, automatically avoids all anxiety-inducing patterns
Deeper"Be straightforward and factual" (underlying value)One value covers a wide range of rules

Anthropic skill-creator: "Try hard to explain the why behind everything you're asking the model to do. Today's LLMs are smart. They have good theory of mind and when given a good harness can go beyond rote instructions and really make things happen... If you find yourself writing ALWAYS or NEVER in all caps, that's a yellow flag — reframe and explain the reasoning."

Instant diagnostic: Writing ALWAYS / NEVER in all caps? Stop. Step back and ask "what outcome do I want? Why?" Write the why instead of the imperative.

Diagnostic test: If your SKILL.md has 50+ specific rules, they can probably be distilled into a few principles.

Principle 2: Passive Loading > Active Guidance

Writing a long list of "remember to read X" and "remember to read Y" in CLAUDE.md means if you forget to write it, it won't be read — and CLAUDE.md keeps growing. Better approach: turn it into a Skill, let metadata pre-load naturally — AI automatically judges when it's needed and loads on demand.

Application: Any "remember to read X" need should be considered for conversion into Skill references.

Principle 3: Design Method > Copying Templates

  • Other people's Skills solve other people's problems — copying them wholesale may not fit you
  • Correct approach: start from your own collaboration pain points, use the five-stage design process

Principle 4: Split First, Merge Later

  • When uncertain about granularity, create a separate Skill for each scenario first
  • As you work, if you discover overlapping core principles → merge into one Skill with situation-based branching
  • Don't try to figure out the "optimal granularity" upfront

Principle 5: Protocol and Persona Separation

When building an AI assistant, "how to behave" and "who it is" should be two independent Skills:

CLAUDE.md (lean, only the entry point)
└── "Before responding, invoke /agent-protocols"

.claude/skills/
├── agent-protocols/  ← how to behave (protocols)
│   ├── SKILL.md (description: "Required reading at session start...")
│   └── references/ (startup.md, memory.md, safety.md)
└── persona/          ← who it is (persona) ← can be copied wholesale to other projects
    ├── SKILL.md
    └── references/ (soul.md, identity.md)

Benefits: lean CLAUDE.md, portable persona, protocols and persona can be flexibly combined.


Design Process: Five Stages

StageCore QuestionRight ApproachCommon Mistake
1. EmpathizeWhen does AI lose its way?Start from "collaboration pain points"Start from "what I want"
2. DefineWhat problem does this Skill solve?Clear, measurable design goalVague wish
3. IdeateHow to write metadata and principles?Generate 3+ options, then pick the bestAccept the first idea
4. PrototypeDoes the MV Skill work?Minimum viable version, test first then iteratePerfectionism
5. TestFound? Understood? Solved?Validate all three design assumptionsOnly ask "are there bugs?"

MV Skill Standard

A v1.0 only needs:

  1. A clear description
  2. Coverage of the core scenario (80% of cases)
  3. One concrete example
  4. Something you can actually test

The Three Test Questions

  1. Can AI find this Skill? (is the description clear enough?)
  2. Can AI understand this Skill? (are the instructions clear enough?)
  3. Does this Skill solve the problem? (does the design assumption hold?)

All three "yes" → success. Any "no" → iterate.

Comparative Testing Method

The Three Test Questions tell you what to ask. Comparative testing tells you how to test.

Method: Run the same task twice — with Skill vs without Skill, then compare.

DimensionWhat to Observe
Behavioral differenceHow different is AI's behavior with vs without the Skill? Larger difference = higher Skill impact
Quality differenceIs the output with the Skill actually better? Or just different?
Trigger reliabilityRun 2-3 times — does the Skill get loaded every time?

When to use:

  • When you finish the first version of a new Skill — confirm it actually has an effect
  • After editing the description — confirm trigger rate hasn't degraded
  • When a connection in the system is unreliable — pinpoint which Skill broke

Iterative Debugging: Read the Process, Not Just the Output

The Three Test Questions and comparative testing both focus on outputs. But Skill problems often hide in AI's working process.

Anthropic skill-creator: "Make sure to read the transcripts, not just the final outputs — if it looks like the skill is making the model waste a bunch of time doing things that are unproductive, you can try getting rid of the parts of the skill that are making it do that."

How to look: Observe AI's thinking process or working steps —

  • AI doing things the Skill requires but that aren't actually useful? → Remove that instruction
  • AI repeatedly hesitating on a decision? → The principle isn't written clearly enough
  • AI taking a roundabout path to reach the result? → The workflow can be simplified

Core judgment: Correct output but bloated process = Skill has room to slim down.


Application Judgment: What Should Become a Skill

Decision Criteria

"Is this knowledge, method, or workflow something I want AI to always remember?" If yes, it should be externalized as a Skill.

Good Candidates for Skills

TypeExamples
Process planningSOPs, customer service flows, review workflows
Learning methodsYour personal learning approach, thinking frameworks
Values and principlesResponse style, decision frameworks, personal principles
Knowledge systemsBook knowledge → callable consultant, project technical decisions
Multi-Skill collaborationConversation close → auto-trigger memory update
Project knowledgeTechnical decisions, architecture choices, design standards

Poor Candidates for Skills

TypeReasonBetter Approach
One-time instructionsNo reuse valueSay it directly in conversation
Rapidly changing informationMaintenance cost too highKeep in conversation context or documents
Very long content (>10k tokens)Loading consumes too much contextSplit into multiple Skills or put in references

Skill Evolution Patterns

Every Skill typically goes through a similar evolution:

v1: Rule/case-driven
    └── A list of rules, AI executes mechanically
         │
    Problem discovered: fails on new situations, or results feel "off"
         │
v2: Principle/worldview-driven
    └── Give core principles, AI judges for itself
         │
    Validated: AI can handle unforeseen situations
         │
v3+: Continuous iteration
    └── Fine-tune principles based on real usage, add edge cases

Empirical examples:

Skillv1 (rule-driven)Problemv2 (principle-driven)
Digital secretaryIf A, do X; if B, do YUnwritten cases don't get handledCore principles of a good secretary (proactive anticipation, let owner focus)
Writing styleDon't use certain words, format headings this wayAI gets boxed in, output has no soulWorldview-driven (I hate anxiety-inducing tone, be straightforward)
AI assistant architectureEverything stuffed into CLAUDE.md, 500+ linesKeeps growing, forgotten entries don't get readProtocol vs persona separation, two independent Skills

Common Misconceptions

MisconceptionWrong UnderstandingCorrect Understanding
Skill = advanced promptJust wrap a prompt in Skill formatSkills have metadata pre-loading; fundamentally different
More rules = betterSKILL.md with 50+ rules is thoroughPrinciples replace rules; lean is more effective
Description doesn't matterIt's just descriptive textIt's the only thing AI uses to decide whether to load
More Skills = more powerfulInstalling 100 Skills makes you strongTool overload causes AI hallucinations
Copying templates is fineFind someone else's and copy itTheir pain points aren't your pain points
CLAUDE.md must be exhaustiveWrite all guidance in CLAUDE.mdPassive loading > active guidance
Skills are staticWrite it once and doneGood Skills continuously evolve with use

Skill Review Checklist

Use this checklist when designing new Skills or adjusting existing ones:

Frontmatter (Required)

  • SKILL.md opens with YAML frontmatter (surrounded by ---)
  • Contains name field (the Skill's identifier)
  • Contains description field (Progressive Disclosure Level 1)

Description Quality

  • Describes "usage scenarios" not "feature categories"
  • After reading the description, AI can judge "when to load this"
  • Concise but sufficiently informative (doesn't waste the 15,000 character budget)
  • Includes proactive update triggers (when to iterate this Skill)

Content Design

  • Primarily principles/values, not rule enumeration
  • Has concrete examples (at least one)
  • Long content is in references/, not stuffed into SKILL.md
  • SKILL.md < 5k tokens

Architectural Soundness

  • Appropriate granularity (one Skill solves one class of problems)
  • No significant overlap with other Skills
  • If multi-Skill collaboration, rules include clear cross-Skill linkage guidance

Maintainability

  • Has a clear "when to update" statement
  • Structure allows appending without requiring a rewrite
  • References are independent documents that can be updated separately

When to Update This Skill

AI proactive update rule: When the following situations occur, AI should proactively propose updates.

SituationUpdate What
Discovered new patterns or pitfalls while designing a Skillreferences/design-patterns.md
Discovered a new common misconception"Common Misconceptions" section
New findings on technical mechanisms (official updates, new research)"Underlying Mechanisms" section
Review checklist needs new items"Skill Review Checklist" section
New empirical examples for evolution patterns"Skill Evolution Patterns" section

Update Principles

  1. Evidence-driven: Only document insights validated through practice
  2. Preserve evolution context: When updating, note "when and what prompted this discovery"
  3. Lean is paramount: This Skill itself must follow "less is more"

Reference Resources

FileContentsWhen to Read
references/design-patterns.mdDesign patterns (P1-P6) and anti-patterns (A1-A6) quick referenceWhen designing new Skills or during review
references/skill-template.mdCreation template based on this Skill's principlesWhen building a new Skill from scratch

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Claude Code 專案配置審計。觸發:review/優化 CLAUDE.md、skills、settings、定期清洗累積內容、新專案上線前檢查。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cablate/ai-toolkit162026년 4월 6일 업데이트

Agent 配置設計指南 — 基於 Claude Code 6 個 built-in agent 的逆向分析。Use when: 設計新 agent、優化現有 agent prompt、決定工具/模型配置、撰寫 dispatch prompt。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cablate/ai-toolkit162026년 4월 6일 업데이트

AI Agent 成本工程 — 基於 Claude Code 的成本追蹤、prompt cache 最佳化、token 預算控制逆向分析。Use when: 優化 token 消耗、設計成本控制機制、分析 cache 效率、選擇模型配置。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cablate/ai-toolkit162026년 4월 6일 업데이트

Harness Engineering 設計模式 — 基於 Claude Code 原始碼逆向分析的 12 條可遷移原則。Use when: 設計 agent 系統架構、實作 tool orchestration、設計 context 管理策略、建構 agent loop。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cablate/ai-toolkit162026년 4월 6일 업데이트

System Prompt 工程 — 基於 Claude Code 914 行系統提示詞的逆向分析。Use when: 撰寫 system prompt、設計 prompt 動態組裝、最佳化 prompt cache 效率、撰寫安全指令。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cablate/ai-toolkit162026년 4월 6일 업데이트

AI Agent 安全設計模式 — 基於 Claude Code 七層縱深防禦架構的逆向分析。Use when: 設計工具安全機制、實作命令過濾、建構權限模型、設計 sandbox。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

cablate/ai-toolkit162026년 4월 6일 업데이트

cablate의 스킬 모두 보기

이 스킬의 문제 신고