Asem75 commited on
Commit
f676ad4
·
verified ·
1 Parent(s): facff12

Prepare book book_20260922_163508_a82865

Browse files
books/book_20260922_163508_a82865/manifest.json CHANGED
@@ -1,11 +1,58 @@
1
  {
 
2
  "book_id": "book_20260922_163508_a82865",
3
- "book_name": "كتاب بدون عنوان",
4
  "created_at": "2026-09-22T16:35:08.901520+00:00",
5
- "source_files": [
6
- ""
 
 
 
 
 
 
 
7
  ],
8
- "total_files": 1,
9
- "total_chars": 62756,
10
- "original_path": "books/book_20260922_163508_a82865/original.txt"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  }
 
1
  {
2
+ "schema_version": "aiocr_book_manifest_v2",
3
  "book_id": "book_20260922_163508_a82865",
4
+ "title": "كتاب بدون عنوان",
5
  "created_at": "2026-09-22T16:35:08.901520+00:00",
6
+ "text_repo_key": "aiocr_assistant",
7
+ "source_manifest": [
8
+ {
9
+ "source_index": 1,
10
+ "source_name": "The-Complete-Guide-to-Building-Skill-for-Claude.txt",
11
+ "source_type": "device_txt",
12
+ "char_start": 0,
13
+ "char_end": 62756
14
+ }
15
  ],
16
+ "raw_original_path": "books/book_20260922_163508_a82865/original.txt",
17
+ "raw_manifest_path": "books/book_20260922_163508_a82865/manifest.json",
18
+ "source_map_mode": "initial_offsets",
19
+ "original_chars": 62756,
20
+ "prepared_chars": 62756,
21
+ "analysis": {
22
+ "chars": 62756,
23
+ "chars_no_spaces": 29866,
24
+ "words": 5346,
25
+ "paragraphs": 232,
26
+ "sentences": 215,
27
+ "diacritics": 0
28
+ },
29
+ "punctuation_applied": false,
30
+ "diacritization_applied": false,
31
+ "characters": [],
32
+ "dialogue_config": {
33
+ "enabled": false,
34
+ "mode": "single_narrator"
35
+ },
36
+ "default_voice_settings": {
37
+ "speaker_id": "",
38
+ "character_id": "",
39
+ "voice_id": "",
40
+ "voice_profile": "",
41
+ "language": "",
42
+ "style": "",
43
+ "speed": 1.0,
44
+ "pitch": 0.0,
45
+ "volume": 1.0
46
+ },
47
+ "emotion_config": {
48
+ "enabled": false,
49
+ "default_emotion": "neutral",
50
+ "delivery": ""
51
+ },
52
+ "correction_config": {
53
+ "enabled": true,
54
+ "preserve_revisions": true
55
+ },
56
+ "status": "PREPARED",
57
+ "manifest_updated_at": "2026-09-22T16:35:10.134855+00:00"
58
  }
books/book_20260922_163508_a82865/prepared/full.txt ADDED
@@ -0,0 +1,1124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Complete Guide
2
+ to Building Skills
3
+ for Claude
4
+ Contents
5
+ Introduction 3
6
+
7
+ Fundamentals 4
8
+
9
+ Planning and design 7
10
+
11
+ Testing and iteration 14
12
+
13
+ Distribution and sharing 18
14
+
15
+ Patterns and troubleshooting 21
16
+
17
+ Resources and references 28
18
+
19
+
20
+
21
+
22
+ 2
23
+ Introduction
24
+ A skill is a set of instructions - packaged as a simple folder - that teaches Claude Two Paths Through This Guide
25
+ how to handle specific tasks or workflows. Skills are one of the most powerful Building standalone skills? Focus on Fundamentals, Planning and Design, and
26
+ ways to customize Claude for your specific needs. Instead of re-explaining your category 1-2. Enhancing an MCP integration? The "Skills + MCP" section and
27
+ preferences, processes, and domain expertise in every conversation, skills let you category 3 are for you. Both paths share the same technical requirements, but
28
+ teach Claude once and benefit every time. you choose what's relevant to your use case.
29
+
30
+ Skills are powerful when you have repeatable workflows: generating frontend What you'll get out of this guide: By the end, you'll be able to build a functional
31
+ designs from specs, conducting research with consistent methodology, creating skill in a single sitting. Expect about 15-30 minutes to build and test your first
32
+ documents that follow your team's style guide, or orchestrating multi-step working skill using the skill-creator.
33
+ processes. They work well with Claude's built-in capabilities like code execution
34
+ and document creation. For those building MCP integrations, skills add another Let's get started.
35
+
36
+ powerful layer helping turn raw tool access into reliable, optimized workflows.
37
+
38
+ This guide covers everything you need to know to build effective skills - from
39
+ planning and structure to testing and distribution. Whether you're building a
40
+ skill for yourself, your team, or for the community, you'll find practical patterns
41
+ and real-world examples throughout.
42
+
43
+ What you'll learn:
44
+
45
+ • Technical requirements and best practices for skill structure
46
+
47
+ • Patterns for standalone skills and MCP-enhanced workflows
48
+
49
+ • Patterns we've seen work well across different use cases
50
+
51
+ • How to test, iterate, and distribute your skills
52
+
53
+ Who this is for:
54
+
55
+ • Developers who want Claude to follow specific workflows consistently
56
+
57
+ • Power users who want Claude to follow specific workflows
58
+
59
+ • Teams looking to standardize how Claude works across their organization
60
+ Chapter 1
61
+
62
+
63
+
64
+
65
+ Fundamentals 4
66
+ Chapter 1
67
+
68
+
69
+
70
+ Fundamentals
71
+ What is a skill? Composability
72
+
73
+ A skill is a folder containing: Claude can load multiple skills simultaneously. Your skill should work well
74
+ alongside others, not assume it's the only capability available.
75
+ • SKILL.md (required): Instructions in Markdown with YAML frontmatter
76
+
77
+ • scripts/ (optional): Executable code (Python, Bash, etc.) Portability
78
+ • references/ (optional): Documentation loaded as needed
79
+ Skills work identically across Claude.ai, Claude Code, and API. Create a skill once
80
+ • assets/ (optional): Templates, fonts, icons used in output and it works across all surfaces without modification, provided the environment
81
+ supports any dependencies the skill requires.
82
+
83
+ Core design principles
84
+ For MCP Builders: Skills + Connectors
85
+ Progressive Disclosure
86
+ 💡 Building standalone skills without MCP? Skip to Planning and Design - you can
87
+ Skills use a three-level system: always return here later.
88
+ • First level (YAML frontmatter): Always loaded in Claude's system prompt.
89
+ If you already have a working MCP server, you've done the hard part. Skills are
90
+ Provides just enough information for Claude to know when each skill should
91
+ the knowledge layer on top - capturing the workflows and best practices you
92
+ be used without loading all of it into context.
93
+ already know, so Claude can apply them consistently.
94
+ • Second level (SKILL.md body): Loaded when Claude thinks the skill is
95
+ relevant to the current task. Contains the full instructions and guidance.
96
+ The kitchen analogy
97
+ • Third level (Linked files): Additional files bundled within the skill directory
98
+ that Claude can choose to navigate and discover only as needed. MCP provides the professional kitchen: access to tools, ingredients, and
99
+ equipment.
100
+ This progressive disclosure minimizes token usage while maintaining
101
+ specialized expertise. Skills provide the recipes: step-by-step instructions on how to create something
102
+ valuable.
103
+
104
+
105
+
106
+
107
+ 5
108
+ Together, they enable users to accomplish complex tasks without needing to
109
+ figure out every step themselves.
110
+
111
+ How they work together:
112
+
113
+
114
+ MCP (Connectivity) Skills (Knowledge)
115
+
116
+
117
+ Connects Claude to your service Teaches Claude how to use your service
118
+ (Notion, Asana, Linear, etc.) effectively
119
+
120
+
121
+ Provides real-time data access and tool Captures workflows and best practices
122
+ invocation
123
+
124
+
125
+ What Claude can do How Claude should do it
126
+
127
+
128
+
129
+
130
+ Why this matters for your MCP users
131
+
132
+ Without skills:
133
+ • Users connect your MCP but don't know what to do next
134
+
135
+ • Support tickets asking "how do I do X with your integration"
136
+
137
+ • Each conversation starts from scratch
138
+
139
+ • Inconsistent results because users prompt differently each time
140
+
141
+ • Users blame your connector when the real issue is workflow guidance
142
+
143
+
144
+ With skills:
145
+ • Pre-built workflows activate automatically when needed
146
+
147
+ • Consistent, reliable tool usage
148
+
149
+ • Best practices embedded in every interaction
150
+
151
+ • Lower learning curve for your integration
152
+
153
+
154
+
155
+
156
+ 6
157
+ Chapter 2
158
+
159
+
160
+
161
+
162
+ Planning and design 7
163
+ Chapter 2
164
+
165
+
166
+
167
+ Planning and design
168
+ Start with use cases Common skill use case categories
169
+ Before writing any code, identify 2-3 concrete use cases your skill should enable. At Anthropic, we’ve observed three common use cases:
170
+
171
+
172
+ Good use case definition: Category 1: Document & Asset Creation
173
+
174
+ Used for: Creating consistent, high-quality output including documents,
175
+ Use Case: Project Sprint Planning presentations, apps, designs, code, etc.
176
+ Trigger: User says "help me plan this sprint" or "create
177
+ sprint tasks" Real example: frontend-design skill (also see skills for docx, pptx, xlsx, and
178
+ Steps: ppt)
179
+ 1. Fetch current project status from Linear (via MCP)
180
+ 2. Analyze team velocity and capacity "Create distinctive, production-grade frontend interfaces with high design
181
+ 3. Suggest task prioritization quality. Use when building web components, pages, artifacts, posters, or
182
+ 4. Create tasks in Linear with proper labels and estimates applications."
183
+ Result: Fully planned sprint with tasks created
184
+ Key techniques:
185
+
186
+ • Embedded style guides and brand standards
187
+ Ask yourself: • Template structures for consistent output
188
+ • What does a user want to accomplish?
189
+ • Quality checklists before finalizing
190
+ • What multi-step workflows does this require?
191
+ • No external tools required - uses Claude's built-in capabilities
192
+ • Which tools are needed (built-in or MCP?)
193
+
194
+ • What domain knowledge or best practices should be embedded?
195
+
196
+
197
+
198
+
199
+ 8
200
+ Category 2: Workflow Automation Define success criteria
201
+ Used for: Multi-step processes that benefit from consistent methodology,
202
+ How will you know your skill is working?
203
+ including coordination across multiple MCP servers.
204
+ These are aspirational targets - rough benchmarks rather than precise
205
+ Real example: skill-creator skill
206
+ thresholds. Aim for rigor but accept that there will be an element of vibes-based
207
+
208
+ "Interactive guide for creating new skills. Walks the user through use case assessment. We are actively developing more robust measurement guidance and
209
+
210
+ definition, frontmatter generation, instruction writing, and validation." tooling.
211
+
212
+
213
+ Key techniques:
214
+ Quantitative metrics:
215
+ • Skill triggers on 90% of relevant queries
216
+ • Step-by-step workflow with validation gates
217
+ – How to measure: Run 10-20 test queries that should trigger your skill. Track
218
+ • Templates for common structures how many times it loads automatically vs. requires explicit invocation.
219
+ • Built-in review and improvement suggestions • Completes workflow in X tool calls
220
+ • Iterative refinement loops – How to measure: Compare the same task with and without the skill enabled.
221
+ Count tool calls and total tokens consumed.
222
+ Category 3: MCP Enhancement • 0 failed API calls per workflow
223
+ – How to measure: Monitor MCP server logs during test runs. Track retry rates
224
+ Used for: Workflow guidance to enhance the tool access an MCP server provides.
225
+ and error codes.
226
+ Real example: sentry-code-review skill (from Sentry)
227
+ Qualitative metrics:
228
+ "Automatically analyzes and fixes detected bugs in GitHub Pull Requests using
229
+ • Users don't need to prompt Claude about next steps
230
+ Sentry's error monitoring data via their MCP server."
231
+ – How to assess: During testing, note how often you need to redirect or clarify.
232
+ Ask beta users for feedback.
233
+ Key techniques:
234
+
235
+ • Coordinates multiple MCP calls in sequence
236
+ • Workflows complete without user correction
237
+ • Embeds domain expertise – How to assess: Run the same request 3-5 times. Compare outputs for
238
+
239
+ • Provides context users would otherwise need to specify structural consistency and quality.
240
+
241
+ • Error handling for common MCP issues • Consistent results across sessions
242
+ – How to assess: Can a new user accomplish the task on first try with minimal
243
+ guidance?
244
+
245
+
246
+
247
+
248
+ 9
249
+ Technical requirements YAML frontmatter: The most important part
250
+
251
+ The YAML frontmatter is how Claude decides whether to load your skill. Get this
252
+ File structure
253
+ right.
254
+
255
+ your-skill-name/ Minimal required format
256
+ ├── SKILL.md # Required - main skill file
257
+ ├── scripts/ # Optional - executable code
258
+ ---
259
+ │ ├── process_data.py # Example
260
+ name: your-skill-name
261
+ │ └── validate.sh # Example
262
+ description: What it does. Use when user asks to [specific
263
+ ├── references/ # Optional - documentation
264
+ phrases].
265
+ │ ├── api-guide.md # Example
266
+ ---
267
+ │ └── examples/ # Example
268
+ └── assets/ # Optional - templates, etc.
269
+ └── report-template.md # Example
270
+ That's all you need to start.
271
+
272
+
273
+ Critical rules Field requirements
274
+
275
+ name (required):
276
+ SKILL.md naming:
277
+ • kebab-case only
278
+ • Must be exactly SKILL.md (case-sensitive)
279
+ • No spaces or capitals
280
+ • No variations accepted (SKILL.MD, skill.md, etc.)
281
+ • Should match folder name
282
+
283
+ Skill folder naming:
284
+ description (required):
285
+ • Use kebab-case: notion-project-setup ✅ • MUST include BOTH:
286
+ • No spaces: Notion Project Setup ❌ – What the skill does
287
+
288
+ • No underscores: notion_project_setup ❌ – When to use it (trigger conditions)
289
+
290
+ • No capitals: NotionProjectSetup ❌ • Under 1024 characters
291
+
292
+ • No XML tags (< or >)
293
+ No README.md: • Include specific tasks users might say
294
+ • Don't include README.md inside your skill folder • Mention file types if relevant
295
+ • All documentation goes in SKILL.md or references/
296
+
297
+ • Note: when distributing via GitHub, you'll still want a repo-level README for
298
+ human users — see Distribution and Sharing.
299
+
300
+ 10
301
+ license (optional): Writing effective skills
302
+ • Use if making skill open source
303
+ The description field
304
+ • Common: MIT, Apache-2.0
305
+ According to Anthropic's engineering blog: "This metadata...provides just
306
+ compatibility (optional)
307
+ enough information for Claude to know when each skill should be used without
308
+ • 1-500 characters loading all of it into context." This is the first level of progressive disclosure.
309
+ • Indicates environment requirements: e.g. intended product, required system
310
+ packages, network access needs, etc. Structure:
311
+
312
+ metadata (optional):
313
+ [What it does] + [When to use it] + [Key capabilities]
314
+ • Any custom key-value pairs
315
+
316
+ • Suggested: author, version, mcp-server
317
+
318
+ • Example:
319
+ Examples of good descriptions:
320
+ ```yaml
321
+ metadata:
322
+ author: ProjectHub
323
+ # Good - specific and actionable
324
+ version: 1.0.0 mcp-server: projecthub description: Analyzes Figma design files and generates
325
+ ``` developer handoff documentation. Use when user uploads .fig
326
+ files, asks for "design specs", "component documentation", or
327
+ Security restrictions "design-to-code handoff".
328
+
329
+
330
+ Forbidden in frontmatter: # Good - includes trigger phrases
331
+ description: Manages Linear project workflows including sprint
332
+ • XML angle brackets (< >)
333
+ planning, task creation, and status tracking. Use when user
334
+ • Skills with "claude" or "anthropic" in name (reserved) mentions "sprint", "Linear tasks", "project planning", or asks
335
+ to "create tickets".
336
+ Why: Frontmatter appears in Claude's system prompt. Malicious content could
337
+ inject instructions. # Good - clear value proposition
338
+ description: End-to-end customer onboarding workflow for
339
+ PayFlow. Handles account creation, payment setup, and
340
+ subscription management. Use when user says "onboard new
341
+ customer", "set up subscription", or "create PayFlow account".
342
+
343
+
344
+
345
+
346
+ 11
347
+ Examples of bad descriptions:
348
+ Example:
349
+ ```bash
350
+ # Too vague
351
+ python scripts/fetch_data.py --project-id PROJECT_ID
352
+ description: Helps with projects.
353
+ Expected output: [describe what success looks like]
354
+
355
+ # Missing triggers
356
+ description: Creates sophisticated multi-page documentation
357
+ systems. (Add more steps as needed)
358
+
359
+
360
+ # Too technical, no user triggers
361
+ Examples
362
+ description: Implements the Project entity model with
363
+ hierarchical relationships.
364
+ Example 1: [common scenario]
365
+
366
+ User says: "Set up a new marketing campaign"
367
+
368
+ Writing the main instructions Actions:
369
+
370
+ After the frontmatter, write the actual instructions in Markdown. 1. Fetch existing campaigns via MCP
371
+
372
+ 2. Create new campaign with provided parameters
373
+ Recommended structure:
374
+ Result: Campaign created with confirmation link
375
+ Adapt this template for your skill. Replace bracketed sections with your specific
376
+ content. (Add more examples as needed)
377
+
378
+
379
+ ---
380
+ Troubleshooting
381
+ name: your-skill
382
+ description: [...]
383
+ ---
384
+ Error: [Common error message]
385
+
386
+ Cause: [Why it happens]
387
+ # Your Skill Name
388
+
389
+ Solution: [How to fix]
390
+ ## Instructions
391
+ (Add more error cases as needed)
392
+ ### Step 1: [First Major Step]
393
+ Clear explanation of what happens.
394
+
395
+
396
+
397
+
398
+ 12
399
+ Best Practices for Instructions Reference bundled resources clearly
400
+
401
+
402
+ Be Specific and Actionable
403
+ Before writing queries, consult `references/api-patterns.md`
404
+ for:
405
+ ✅ Good: - Rate limiting guidance
406
+ - Pagination patterns
407
+ Run `python scripts/validate.py --input {filename}` to check - Error codes and handling
408
+ data format.
409
+ If validation fails, common issues include:
410
+ - Missing required fields (add them to the CSV) Use progressive disclosure
411
+ - Invalid date formats (use YYYY-MM-DD)
412
+ Keep SKILL.md focused on core instructions. Move detailed documentation to
413
+
414
+ ❌ Bad: `references/` and link to it. (See Core Design Principles for how the three-
415
+ level system works.)
416
+
417
+
418
+ Validate the data before proceeding.
419
+
420
+
421
+
422
+ Include error handling
423
+
424
+
425
+
426
+ ## Common Issues
427
+
428
+
429
+ ### MCP Connection Failed
430
+ If you see "Connection refused":
431
+ 1. Verify MCP server is running: Check Settings > Extensions
432
+ 2. Confirm API key is valid
433
+ 3. Try reconnecting: Settings > Extensions > [Your Service] >
434
+ Reconnect
435
+
436
+
437
+
438
+
439
+ 13
440
+ Chapter 3
441
+
442
+
443
+
444
+
445
+ Testing and iteration 14
446
+ Chapter 3
447
+
448
+
449
+
450
+ Testing and iteration
451
+ Skills can be tested at varying levels of rigor depending on your needs: Recommended Testing Approach
452
+ • Manual testing in Claude.ai - Run queries directly and observe behavior. Fast
453
+ Based on early experience, effective skills testing typically covers three areas:
454
+ iteration, no setup required.
455
+
456
+ • Scripted testing in Claude Code - Automate test cases for repeatable 1. Triggering tests
457
+ validation across changes.
458
+ Goal: Ensure your skill loads at the right times.
459
+ • Programmatic testing via skills API - Build evaluation suites that run
460
+ systematically against defined test sets. Test cases:
461
+
462
+ Choose the approach that matches your quality requirements and the visibility • ✅ Triggers on obvious tasks
463
+ of your skill. A skill used internally by a small team has different testing needs • ✅ Triggers on paraphrased requests
464
+
465
+ • ❌ Doesn't trigger on unrelated topics
466
+ than one deployed to thousands of enterprise users.
467
+
468
+
469
+ Example test suite:
470
+ Pro Tip: Iterate on a single task before expanding
471
+
472
+ Should trigger:
473
+ We’ve found that the most effective skill creators iterate on a single challenging - "Help me set up a new ProjectHub workspace"
474
+ task until Claude succeeds, then extract the winning approach into a skill. This - "I need to create a project in ProjectHub"
475
+ leverages Claude’s in-context learning and provides faster signal than broad - "Initialize a ProjectHub project for Q4 planning"
476
+
477
+ testing. Once you have a working foundation, expand to multiple test cases for
478
+ Should NOT trigger:
479
+ coverage.
480
+ - "What's the weather in San Francisco?"
481
+ - "Help me write Python code"
482
+ - "Create a spreadsheet" (unless ProjectHub skill handles
483
+ sheets)
484
+
485
+
486
+
487
+
488
+ 15
489
+ 2. Functional tests
490
+ With skill:
491
+ Goal: Verify the skill produces correct outputs. - Automatic workflow execution
492
+ - 2 clarifying questions only
493
+ Test cases: - 0 failed API calls
494
+
495
+ • Valid outputs generated - 6,000 tokens consumed
496
+
497
+ • API calls succeed
498
+
499
+ • Error handling works
500
+
501
+ • Edge cases covered Using the skill-creator skill
502
+
503
+ Example: The skill-creator skill - available in Claude.ai via plugin directory or
504
+ download for Claude Code - can help you build and iterate on skills. If you
505
+ have an MCP server and know your top 2–3 workflows, you can build and test a
506
+ Test: Create project with 5 tasks functional skill in a single sitting - often in 15–30 minutes.
507
+ Given: Project name "Q4 Planning", 5 task descriptions
508
+ When: Skill executes workflow Creating skills:
509
+ Then:
510
+ • Generate skills from natural language descriptions
511
+ - Project created in ProjectHub
512
+ - 5 tasks created with correct properties • Produce properly formatted SKILL.md with frontmatter
513
+ - All tasks linked to project
514
+ • Suggest trigger phrases and structure
515
+ - No API errors
516
+
517
+ Reviewing skills:
518
+
519
+ • Flag common issues (vague descriptions, missing triggers, structural
520
+ 3. Performance comparison problems)
521
+
522
+ • Identify potential over/under-triggering risks
523
+ Goal: Prove the skill improves results vs. baseline.
524
+ • Suggest test cases based on the skill's stated purpose
525
+ Use the metrics from Define Success Criteria. Here's what a comparison might
526
+ look like. Iterative improvement:
527
+
528
+ • After using your skill and encountering edge cases or failures, bring those
529
+ Baseline comparison:
530
+ examples back to skill-creator
531
+
532
+ • Example: "Use the issues & solution identified in this chat to improve how the
533
+ Without skill:
534
+ - User provides instructions each time
535
+ skill handles [specific edge case]"
536
+ - 15 back-and-forth messages
537
+ - 3 failed API calls requiring retry
538
+ - 12,000 tokens consumed
539
+
540
+ 16
541
+ To use: Execution issues:
542
+
543
+ • Inconsistent results
544
+ "Use the skill-creator skill to help me build a skill for
545
+ • API call failures
546
+ [your use case]"
547
+ • User corrections needed
548
+
549
+
550
+ Note: skill-creator helps you design and refine skills but does not execute
551
+ Solution: Improve instructions, add error handling
552
+ automated test suites or produce quantitative evaluation results.
553
+
554
+
555
+ Iteration based on feedback
556
+ Skills are living documents. Plan to iterate based on:
557
+
558
+
559
+ Undertriggering signals:
560
+
561
+ • Skill doesn't load when it should
562
+
563
+ • Users manually enabling it
564
+
565
+ • Support questions about when to use it
566
+
567
+
568
+
569
+ Solution: Add more detail and nuance to the description - this may include
570
+ keywords particularly for technical terms
571
+
572
+
573
+
574
+ Overtriggering signals:
575
+
576
+ • Skill loads for irrelevant queries
577
+
578
+ • Users disabling it
579
+
580
+ • Confusion about purpose
581
+
582
+
583
+
584
+ Solution: Add negative triggers, be more specific
585
+
586
+
587
+
588
+
589
+ 17
590
+ Chapter 4
591
+
592
+
593
+
594
+
595
+ Distribution and
596
+ sharing 18
597
+ Chapter 4
598
+
599
+
600
+
601
+ Distribution and sharing
602
+ Skills make your MCP integration more complete. As users compare connectors, Using skills via API
603
+ those with skills offer a faster path to value, giving you an edge over MCP-only
604
+ alternatives. For programmatic use cases - such as building applications, agents, or automated
605
+ workflows that leverage skills - the API provides direct control over skill
606
+ management and execution.
607
+ Current distribution model (January 2026)
608
+ Key capabilities:
609
+ How individual users get skills:
610
+ • `/v1/skills` endpoint for listing and managing skills
611
+ 1. Download the skill folder
612
+ • Add skills to Messages API requests via the `container.skills` parameter
613
+ 2. Zip the folder (if needed)
614
+ • Version control and management through the Claude Console
615
+ 3. Upload to Claude.ai via Settings > Capabilities > Skills
616
+ • Works with the Claude Agent SDK for building custom agents
617
+ 4. Or place in Claude Code skills directory
618
+
619
+ When to use skills via the API vs. Claude.ai:
620
+ Organization-level skills:
621
+ • Admins can deploy skills workspace-wide (shipped December 18, 2025) Use Case Best Surface
622
+ • Automatic updates
623
+ End users interacting with skills directly Claude.ai / Claude Code
624
+ • Centralized management
625
+ Manual testing and iteration during development Claude.ai / Claude Code
626
+
627
+ An open standard
628
+ Individual, ad-hoc workflows Claude.ai / Claude Code
629
+ We've published Agent Skills as an open standard. Like MCP, we believe skills
630
+ should be portable across tools and platforms - the same skill should work Applications using skills programmatically API
631
+ whether you're using Claude or other AI platforms. That said, some skills are
632
+ designed to take full advantage of a specific platform's capabilities; authors can Production deployments at scale API
633
+
634
+ note this in the skill's compatibility field. We've been collaborating with
635
+ members of the ecosystem on the standard, and we're excited by early adoption. Automated pipelines and agent systems API
636
+
637
+
638
+
639
+
640
+ 19
641
+ Note: Skills in the API require the Code Execution Tool beta, which provides the
642
+ secure environment skills need to run. - Select the skill folder (zipped)
643
+
644
+
645
+ For implementation details, see: 3. Enable the skill:
646
+ - Toggle on the [Your Service] skill
647
+ • Skills API Quickstart - Ensure your MCP server is connected
648
+ • Create Custom skills
649
+ 4. Test:
650
+ • Skills in the Agent SDK - Ask Claude: "Set up a new project in [Your Service]"
651
+
652
+
653
+
654
+ Recommended approach today Positioning your skill
655
+ Start by hosting your skill on GitHub with a public repo, clear README (for How you describe your skill determines whether users understand its value and
656
+ human visitors — this is separate from your skill folder, which should not contain actually try it. When writing about your skill—in your README, documentation,
657
+ a README.md), and example usage with screenshots. Then add a section or marketing - keep these principles in mind.
658
+ to your MCP documentation that links to the skill, explains why using both
659
+ together is valuable, and provides a quick-start guide. Focus on outcomes, not features:
660
+
661
+ 1. Host on GitHub ✅ Good:
662
+ – Public repo for open-source skills
663
+ – Clear README with installation instructions "The ProjectHub skill enables teams to set up complete project
664
+ – Example usage and screenshots workspaces in seconds — including pages, databases, and
665
+ templates — instead of spending 30 minutes on manual setup."
666
+ 2. Document in Your MCP Repo
667
+ – Link to skills from MCP documentation
668
+ – Explain the value of using both together
669
+ – Provide quick-start guide
670
+ ❌ Bad:
671
+ 3. Create an Installation Guide "The ProjectHub skill is a folder containing YAML frontmatter
672
+ and Markdown instructions that calls our MCP server tools."
673
+
674
+ ## Installing the [Your Service] skill
675
+
676
+ 1. Download the skill: Highlight the MCP + skills story:
677
+ - Clone repo: `git clone https://github.com/yourcompany/
678
+ skills`
679
+ - Or download ZIP from Releases "Our MCP server gives Claude access to your Linear projects.
680
+ Our skills teach Claude your team's sprint planning workflow.
681
+ 2. Install in Claude: Together, they enable AI-powered project management."
682
+ - Open Claude.ai > Settings > skills
683
+ - Click "Upload skill"
684
+ 20
685
+ Chapter 5
686
+
687
+
688
+
689
+
690
+ Patterns and
691
+ troubleshooting 21
692
+ Chapter 5
693
+
694
+
695
+
696
+ Patterns and troubleshooting
697
+ These patterns emerged from skills created by early adopters and internal teams. Pattern 1: Sequential workflow orchestration
698
+ They represent common approaches we've seen work well, not prescriptive
699
+ templates. Use when: Your users need multi-step processes in a specific order.
700
+
701
+ Example structure:
702
+ Choosing your approach: Problem-first vs. tool-first
703
+
704
+ Think of it like Home Depot. You might walk in with a problem - "I need to fix a ## Workflow: Onboard New Customer
705
+ kitchen cabinet" - and an employee points you to the right tools. Or you might
706
+ pick out a new drill and ask how to use it for your specific job. ### Step 1: Create Account
707
+ Call MCP tool: `create_customer`
708
+ Skills work the same way: Parameters: name, email, company
709
+
710
+ • Problem-first: "I need to set up a project workspace" → Your skill orchestrates
711
+ ### Step 2: Setup Payment
712
+ the right MCP calls in the right sequence. Users describe outcomes; the skill
713
+ Call MCP tool: `setup_payment_method`
714
+ handles the tools.
715
+ Wait for: payment method verification
716
+ • Tool-first: "I have Notion MCP connected" → Your skill teaches Claude the
717
+ optimal workflows and best practices. Users have access; the skill provides ### Step 3: Create Subscription
718
+ expertise. Call MCP tool: `create_subscription`
719
+ Parameters: plan_id, customer_id (from Step 1)
720
+ Most skills lean one direction. Knowing which framing fits your use case helps
721
+ you choose the right pattern below. ### Step 4: Send Welcome Email
722
+ Call MCP tool: `send_email`
723
+ Template: welcome_email_template
724
+
725
+
726
+
727
+
728
+ Key techniques:
729
+
730
+ • Explicit step ordering
731
+
732
+ • Dependencies between steps
733
+
734
+ • Validation at each stage
735
+
736
+ • Rollback instructions for failures
737
+ 22
738
+ Pattern 2: Multi-MCP coordination Pattern 3: Iterative refinement
739
+ Use when: Workflows span multiple services. Use when: Output quality improves with iteration.
740
+
741
+ Example: Design-to-development handoff Example: Report generation
742
+
743
+
744
+ ### Phase 1: Design Export (Figma MCP) ## Iterative Report Creation
745
+ 1. Export design assets from Figma
746
+ 2. Generate design specifications ### Initial Draft
747
+ 3. Create asset manifest 1. Fetch data via MCP
748
+ 2. Generate first draft report
749
+ ### Phase 2: Asset Storage (Drive MCP) 3. Save to temporary file
750
+ 1. Create project folder in Drive
751
+ 2. Upload all assets ### Quality Check
752
+ 3. Generate shareable links 1. Run validation script: `scripts/check_report.py`
753
+ 2. Identify issues:
754
+ ### Phase 3: Task Creation (Linear MCP) - Missing sections
755
+ 1. Create development tasks - Inconsistent formatting
756
+ 2. Attach asset links to tasks - Data validation errors
757
+ 3. Assign to engineering team
758
+ ### Refinement Loop
759
+ ### Phase 4: Notification (Slack MCP) 1. Address each identified issue
760
+ 1. Post handoff summary to #engineering 2. Regenerate affected sections
761
+ 2. Include asset links and task references 3. Re-validate
762
+ 4. Repeat until quality threshold met
763
+
764
+
765
+ Key techniques: ### Finalization
766
+ 1. Apply final formatting
767
+ • Clear phase separation
768
+ 2. Generate summary
769
+ • Data passing between MCPs 3. Save final version
770
+
771
+ • Validation before moving to next phase
772
+
773
+ • Centralized error handling Key techniques:
774
+
775
+ • Explicit quality criteria
776
+
777
+ • Iterative improvement
778
+
779
+ • Validation scripts
780
+
781
+ • Know when to stop iterating
782
+
783
+ 23
784
+ Pattern 4: Context-aware tool selection Pattern 5: Domain-specific intelligence
785
+ Use when: Same outcome, different tools depending on context. Use when: Your skill adds specialized knowledge beyond tool access.
786
+
787
+ Example: File storage Example: Financial compliance
788
+
789
+
790
+ ## Smart File Storage ## Payment Processing with Compliance
791
+
792
+
793
+ ### Decision Tree ### Before Processing (Compliance Check)
794
+ 1. Check file type and size 1. Fetch transaction details via MCP
795
+ 2. Determine best storage location: 2. Apply compliance rules:
796
+ - Large files (>10MB): Use cloud storage MCP - Check sanctions lists
797
+ - Collaborative docs: Use Notion/Docs MCP - Verify jurisdiction allowances
798
+ - Code files: Use GitHub MCP - Assess risk level
799
+ - Temporary files: Use local storage 3. Document compliance decision
800
+
801
+
802
+ ### Execute Storage ### Processing
803
+ Based on decision: IF compliance passed:
804
+ - Call appropriate MCP tool - Call payment processing MCP tool
805
+ - Apply service-specific metadata - Apply appropriate fraud checks
806
+ - Generate access link - Process transaction
807
+ ELSE:
808
+ ### Provide Context to User - Flag for review
809
+ Explain why that storage was chosen - Create compliance case
810
+
811
+
812
+ ### Audit Trail
813
+ Key techniques: - Log all compliance checks
814
+ - Record processing decisions
815
+ • Clear decision criteria
816
+ - Generate audit report
817
+ • Fallback options
818
+
819
+ • Transparency about choices
820
+ Key techniques:
821
+
822
+ • Domain expertise embedded in logic
823
+
824
+ • Compliance before action
825
+
826
+ • Comprehensive documentation
827
+
828
+ • Clear governance
829
+
830
+
831
+ 24
832
+ Troubleshooting
833
+ # Wrong
834
+ name: My Cool Skill
835
+ Skill won't upload
836
+
837
+ Error: "Could not find SKILL.md in uploaded folder" # Correct
838
+ name: my-cool-skill
839
+ Cause: File not named exactly SKILL.md
840
+
841
+ Solution:
842
+ Skill doesn't trigger
843
+ • Rename to SKILL.md (case-sensitive)
844
+
845
+ • Verify with: ls -la should show SKILL.md Symptom: Skill never loads automatically
846
+
847
+ Error: "Invalid frontmatter" Fix:
848
+
849
+ Cause: YAML formatting issue Revise your description field. See The Description Field for good/bad examples.
850
+
851
+ Common mistakes: Quick checklist:
852
+
853
+ • Is it too generic? ("Helps with projects" won't work)
854
+ # Wrong - missing delimiters • Does it include trigger phrases users would actually say?
855
+ name: my-skill
856
+ description: Does things
857
+ • Does it mention relevant file types if applicable?
858
+
859
+ Debugging approach:
860
+ # Wrong - unclosed quotes
861
+ name: my-skill
862
+ Ask Claude: "When would you use the [skill name] skill?" Claude will quote the
863
+ description: "Does things
864
+ description back. Adjust based on what's missing.
865
+
866
+ # Correct
867
+ ---
868
+ Skill triggers too often
869
+ name: my-skill
870
+ Symptom: Skill loads for unrelated queries
871
+ description: Does things
872
+ --- Solutions:
873
+
874
+ 1. Add negative triggers
875
+ Error: "Invalid skill name"
876
+ description: Advanced data analysis for CSV files. Use for
877
+ Cause: Name has spaces or capitals statistical modeling, regression, clustering. Do NOT use for
878
+ simple data exploration (use data-viz skill instead).
879
+
880
+
881
+
882
+ 25
883
+ 2. Be more specific Instructions not followed
884
+
885
+ Symptom: Skill loads but Claude doesn't follow instructions
886
+ # Too broad
887
+ description: Processes documents
888
+ Common causes:
889
+
890
+ # More specific 1. Instructions too verbose
891
+ description: Processes PDF legal documents for contract review – Keep instructions concise
892
+ – Use bullet points and numbered lists
893
+ – Move detailed reference to separate files
894
+ 3. Clarify scope
895
+ 2. Instructions buried
896
+ – Put critical instructions at the top
897
+ description: PayFlow payment processing for e-commerce. Use – Use ## Important or ## Critical headers
898
+ specifically for online payment workflows, not for general
899
+ – Repeat key points if needed
900
+ financial queries.
901
+ 3. Ambiguous language
902
+
903
+
904
+ # Bad
905
+ MCP connection issues Make sure to validate things properly
906
+
907
+ Symptom: Skill loads but MCP calls fail
908
+ # Good
909
+ CRITICAL: Before calling create_project, verify:
910
+ Checklist:
911
+ - Project name is non-empty
912
+ 1. Verify MCP server is connected - At least one team member assigned
913
+ – Claude.ai: Settings > Extensions > [Your Service] - Start date is not in the past
914
+ – Should show "Connected" status
915
+
916
+ 2. Check authentication Advanced technique: For critical validations, consider bundling a script
917
+ – API keys valid and not expired that performs the checks programmatically rather than relying on language
918
+ – Proper permissions/scopes granted instructions. Code is deterministic; language interpretation isn't. See the Office
919
+ – OAuth tokens refreshed skills for examples of this pattern.
920
+
921
+ 3. Test MCP independently 4. Model "laziness" Add explicit encouragement:
922
+ – Ask Claude to call MCP directly (without skill)
923
+ – "Use [Service] MCP to fetch my projects" ## Performance Notes
924
+ – If this fails, issue is MCP not skill - Take your time to do this thoroughly
925
+ - Quality is more important than speed
926
+ 4. Verify tool names
927
+ - Do not skip validation steps
928
+ – Skill references correct MCP tool names
929
+ – Check MCP server documentation
930
+ Note: Adding this to user prompts is more effective than in SKILL.md
931
+ – Tool names are case-sensitive
932
+ 26
933
+ Large context issues
934
+
935
+ Symptom: Skill seems slow or responses degraded
936
+
937
+ Causes:
938
+
939
+ • Skill content too large
940
+
941
+ • Too many skills enabled simultaneously
942
+
943
+ • All content loaded instead of progressive disclosure
944
+
945
+ Solutions:
946
+
947
+ 1. Optimize SKILL.md size
948
+ – Move detailed docs to references/
949
+ – Link to references instead of inline
950
+ – Keep SKILL.md under 5,000 words
951
+
952
+ 2. Reduce enabled skills
953
+ – Evaluate if you have more than 20 - 50 skills enabled simultaneously
954
+ – Recommend selective enablement
955
+ – Consider skill "packs" for related capabilities
956
+
957
+
958
+
959
+
960
+ 27
961
+ Chapter 6
962
+
963
+
964
+
965
+
966
+ Resources and
967
+ references 28
968
+ Chapter 6
969
+
970
+
971
+
972
+ Resources and references
973
+ If you're building your first skill, start with the Best Practices Guide, then Tools and Utilities
974
+ reference the API docs as needed.
975
+ skill-creator skill:
976
+ Official Documentation • Built into Claude.ai and available for Claude Code
977
+
978
+ • Can generate skills from descriptions
979
+ Anthropic Resources:
980
+ • Reviews and provides recommendations
981
+ • Best Practices Guide
982
+ • Use: "Help me build a skill using skill-creator"
983
+ • Skills Documentation
984
+
985
+ • API Reference Validation:
986
+ • MCP Documentation • skill-creator can assess your skills
987
+
988
+ • Ask: "Review this skill and suggest improvements"
989
+ Blog Posts:
990
+ • Introducing Agent Skills
991
+ Getting Support
992
+ • Engineering Blog: Equipping Agents for the Real World
993
+
994
+ • Skills Explained For Technical Questions:
995
+
996
+ • How to Create Skills for Claude • General questions: Community forums at the Claude Developers Discord
997
+
998
+ • Building Skills for Claude Code
999
+ For Bug Reports:
1000
+ • Improving Frontend Design through Skills
1001
+ • GitHub Issues: anthropics/skills/issues
1002
+
1003
+ • Include: Skill name, error message, steps to reproduce
1004
+ Example skills
1005
+
1006
+ Public skills repository:
1007
+ • GitHub: anthropics/skills
1008
+
1009
+ • Contains Anthropic-created skills you can customize
1010
+
1011
+ 29
1012
+ Before upload
1013
+ Reference A: Quick Tested triggering on obvious tasks
1014
+
1015
+
1016
+ checklist Tested triggering on paraphrased requests
1017
+
1018
+ Verified doesn't trigger on unrelated topics
1019
+ Use this checklist to validate your skill before and after upload. If you want
1020
+ Functional tests pass
1021
+ a faster start, use the skill-creator skill to generate your first draft, then run
1022
+ through this list to make sure you haven't missed anything. Tool integration works (if applicable)
1023
+
1024
+ Compressed as .zip file
1025
+
1026
+ Before you start
1027
+ After upload
1028
+ Identified 2-3 concrete use cases
1029
+
1030
+ Tools identified (built-in or MCP) Test in real conversations
1031
+
1032
+ Reviewed this guide and example skills Monitor for under/over-triggering
1033
+
1034
+ Planned folder structure Collect user feedback
1035
+
1036
+ Iterate on description and instructions
1037
+
1038
+ During development Update version in metadata
1039
+
1040
+ Folder named in kebab-case
1041
+
1042
+ SKILL.md file exists (exact spelling)
1043
+
1044
+ YAML frontmatter has --- delimiters
1045
+
1046
+ name field: kebab-case, no spaces, no capitals
1047
+
1048
+ description includes WHAT and WHEN
1049
+
1050
+ No XML tags (< >) anywhere
1051
+
1052
+ Instructions are clear and actionable
1053
+
1054
+ Error handling included
1055
+
1056
+ Examples provided
1057
+
1058
+ References clearly linked
1059
+
1060
+
1061
+
1062
+
1063
+ 30
1064
+ Security notes
1065
+ Reference B: YAML
1066
+ frontmatter Allowed:
1067
+ • Any standard YAML types (strings, numbers, booleans, lists, objects)
1068
+
1069
+ • Custom metadata fields
1070
+ Required fields
1071
+ • Long descriptions (up to 1024 characters)
1072
+
1073
+ ---
1074
+ Forbidden:
1075
+ name: skill-name-in-kebab-case
1076
+ description: What it does and when to use it. Include specific • XML angle brackets (< >) - security restriction
1077
+ trigger phrases.
1078
+ • Code execution in YAML (uses safe YAML parsing)
1079
+ ---
1080
+ • Skills named with "claude" or "anthropic" prefix (reserved)
1081
+
1082
+
1083
+
1084
+
1085
+ All optional fields
1086
+
1087
+ name: skill-name
1088
+ description: [required description]
1089
+ license: MIT # Optional: License for open-source
1090
+ allowed-tools: "Bash(python:*) Bash(npm:*) WebFetch" # Optional:
1091
+ Restrict tool access
1092
+ metadata: # Optional: Custom fields
1093
+ author: Company Name
1094
+ version: 1.0.0
1095
+ mcp-server: server-name
1096
+ category: productivity
1097
+ tags: [project-management, automation]
1098
+ documentation: https://example.com/docs
1099
+ support: support@example.com
1100
+
1101
+
1102
+
1103
+
1104
+ 31
1105
+ Reference C: Complete skill
1106
+ examples
1107
+ For full, production-ready skills demonstrating the patterns in this guide:
1108
+
1109
+ • Document Skills - PDF, DOCX, PPTX, XLSX creation
1110
+
1111
+ • Example Skills - Various workflow patterns
1112
+
1113
+ • Partner Skills Directory - View skills from various partners such as Asana,
1114
+ Atlassian, Canva, Figma, Sentry, Zapier, and more
1115
+
1116
+ These repositories stay up-to-date and include additional examples beyond
1117
+ what's covered here. Clone them, modify them for your use case, and use them as
1118
+ templates.
1119
+
1120
+
1121
+
1122
+
1123
+ 32
1124
+ claude.ai
books/book_20260922_163508_a82865/source/original.txt ADDED
@@ -0,0 +1,1124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Complete Guide
2
+ to Building Skills
3
+ for Claude
4
+ Contents
5
+ Introduction 3
6
+
7
+ Fundamentals 4
8
+
9
+ Planning and design 7
10
+
11
+ Testing and iteration 14
12
+
13
+ Distribution and sharing 18
14
+
15
+ Patterns and troubleshooting 21
16
+
17
+ Resources and references 28
18
+
19
+
20
+
21
+
22
+ 2
23
+ Introduction
24
+ A skill is a set of instructions - packaged as a simple folder - that teaches Claude Two Paths Through This Guide
25
+ how to handle specific tasks or workflows. Skills are one of the most powerful Building standalone skills? Focus on Fundamentals, Planning and Design, and
26
+ ways to customize Claude for your specific needs. Instead of re-explaining your category 1-2. Enhancing an MCP integration? The "Skills + MCP" section and
27
+ preferences, processes, and domain expertise in every conversation, skills let you category 3 are for you. Both paths share the same technical requirements, but
28
+ teach Claude once and benefit every time. you choose what's relevant to your use case.
29
+
30
+ Skills are powerful when you have repeatable workflows: generating frontend What you'll get out of this guide: By the end, you'll be able to build a functional
31
+ designs from specs, conducting research with consistent methodology, creating skill in a single sitting. Expect about 15-30 minutes to build and test your first
32
+ documents that follow your team's style guide, or orchestrating multi-step working skill using the skill-creator.
33
+ processes. They work well with Claude's built-in capabilities like code execution
34
+ and document creation. For those building MCP integrations, skills add another Let's get started.
35
+
36
+ powerful layer helping turn raw tool access into reliable, optimized workflows.
37
+
38
+ This guide covers everything you need to know to build effective skills - from
39
+ planning and structure to testing and distribution. Whether you're building a
40
+ skill for yourself, your team, or for the community, you'll find practical patterns
41
+ and real-world examples throughout.
42
+
43
+ What you'll learn:
44
+
45
+ • Technical requirements and best practices for skill structure
46
+
47
+ • Patterns for standalone skills and MCP-enhanced workflows
48
+
49
+ • Patterns we've seen work well across different use cases
50
+
51
+ • How to test, iterate, and distribute your skills
52
+
53
+ Who this is for:
54
+
55
+ • Developers who want Claude to follow specific workflows consistently
56
+
57
+ • Power users who want Claude to follow specific workflows
58
+
59
+ • Teams looking to standardize how Claude works across their organization
60
+ Chapter 1
61
+
62
+
63
+
64
+
65
+ Fundamentals 4
66
+ Chapter 1
67
+
68
+
69
+
70
+ Fundamentals
71
+ What is a skill? Composability
72
+
73
+ A skill is a folder containing: Claude can load multiple skills simultaneously. Your skill should work well
74
+ alongside others, not assume it's the only capability available.
75
+ • SKILL.md (required): Instructions in Markdown with YAML frontmatter
76
+
77
+ • scripts/ (optional): Executable code (Python, Bash, etc.) Portability
78
+ • references/ (optional): Documentation loaded as needed
79
+ Skills work identically across Claude.ai, Claude Code, and API. Create a skill once
80
+ • assets/ (optional): Templates, fonts, icons used in output and it works across all surfaces without modification, provided the environment
81
+ supports any dependencies the skill requires.
82
+
83
+ Core design principles
84
+ For MCP Builders: Skills + Connectors
85
+ Progressive Disclosure
86
+ 💡 Building standalone skills without MCP? Skip to Planning and Design - you can
87
+ Skills use a three-level system: always return here later.
88
+ • First level (YAML frontmatter): Always loaded in Claude's system prompt.
89
+ If you already have a working MCP server, you've done the hard part. Skills are
90
+ Provides just enough information for Claude to know when each skill should
91
+ the knowledge layer on top - capturing the workflows and best practices you
92
+ be used without loading all of it into context.
93
+ already know, so Claude can apply them consistently.
94
+ • Second level (SKILL.md body): Loaded when Claude thinks the skill is
95
+ relevant to the current task. Contains the full instructions and guidance.
96
+ The kitchen analogy
97
+ • Third level (Linked files): Additional files bundled within the skill directory
98
+ that Claude can choose to navigate and discover only as needed. MCP provides the professional kitchen: access to tools, ingredients, and
99
+ equipment.
100
+ This progressive disclosure minimizes token usage while maintaining
101
+ specialized expertise. Skills provide the recipes: step-by-step instructions on how to create something
102
+ valuable.
103
+
104
+
105
+
106
+
107
+ 5
108
+ Together, they enable users to accomplish complex tasks without needing to
109
+ figure out every step themselves.
110
+
111
+ How they work together:
112
+
113
+
114
+ MCP (Connectivity) Skills (Knowledge)
115
+
116
+
117
+ Connects Claude to your service Teaches Claude how to use your service
118
+ (Notion, Asana, Linear, etc.) effectively
119
+
120
+
121
+ Provides real-time data access and tool Captures workflows and best practices
122
+ invocation
123
+
124
+
125
+ What Claude can do How Claude should do it
126
+
127
+
128
+
129
+
130
+ Why this matters for your MCP users
131
+
132
+ Without skills:
133
+ • Users connect your MCP but don't know what to do next
134
+
135
+ • Support tickets asking "how do I do X with your integration"
136
+
137
+ • Each conversation starts from scratch
138
+
139
+ • Inconsistent results because users prompt differently each time
140
+
141
+ • Users blame your connector when the real issue is workflow guidance
142
+
143
+
144
+ With skills:
145
+ • Pre-built workflows activate automatically when needed
146
+
147
+ • Consistent, reliable tool usage
148
+
149
+ • Best practices embedded in every interaction
150
+
151
+ • Lower learning curve for your integration
152
+
153
+
154
+
155
+
156
+ 6
157
+ Chapter 2
158
+
159
+
160
+
161
+
162
+ Planning and design 7
163
+ Chapter 2
164
+
165
+
166
+
167
+ Planning and design
168
+ Start with use cases Common skill use case categories
169
+ Before writing any code, identify 2-3 concrete use cases your skill should enable. At Anthropic, we’ve observed three common use cases:
170
+
171
+
172
+ Good use case definition: Category 1: Document & Asset Creation
173
+
174
+ Used for: Creating consistent, high-quality output including documents,
175
+ Use Case: Project Sprint Planning presentations, apps, designs, code, etc.
176
+ Trigger: User says "help me plan this sprint" or "create
177
+ sprint tasks" Real example: frontend-design skill (also see skills for docx, pptx, xlsx, and
178
+ Steps: ppt)
179
+ 1. Fetch current project status from Linear (via MCP)
180
+ 2. Analyze team velocity and capacity "Create distinctive, production-grade frontend interfaces with high design
181
+ 3. Suggest task prioritization quality. Use when building web components, pages, artifacts, posters, or
182
+ 4. Create tasks in Linear with proper labels and estimates applications."
183
+ Result: Fully planned sprint with tasks created
184
+ Key techniques:
185
+
186
+ • Embedded style guides and brand standards
187
+ Ask yourself: • Template structures for consistent output
188
+ • What does a user want to accomplish?
189
+ • Quality checklists before finalizing
190
+ • What multi-step workflows does this require?
191
+ • No external tools required - uses Claude's built-in capabilities
192
+ • Which tools are needed (built-in or MCP?)
193
+
194
+ • What domain knowledge or best practices should be embedded?
195
+
196
+
197
+
198
+
199
+ 8
200
+ Category 2: Workflow Automation Define success criteria
201
+ Used for: Multi-step processes that benefit from consistent methodology,
202
+ How will you know your skill is working?
203
+ including coordination across multiple MCP servers.
204
+ These are aspirational targets - rough benchmarks rather than precise
205
+ Real example: skill-creator skill
206
+ thresholds. Aim for rigor but accept that there will be an element of vibes-based
207
+
208
+ "Interactive guide for creating new skills. Walks the user through use case assessment. We are actively developing more robust measurement guidance and
209
+
210
+ definition, frontmatter generation, instruction writing, and validation." tooling.
211
+
212
+
213
+ Key techniques:
214
+ Quantitative metrics:
215
+ • Skill triggers on 90% of relevant queries
216
+ • Step-by-step workflow with validation gates
217
+ – How to measure: Run 10-20 test queries that should trigger your skill. Track
218
+ • Templates for common structures how many times it loads automatically vs. requires explicit invocation.
219
+ • Built-in review and improvement suggestions • Completes workflow in X tool calls
220
+ • Iterative refinement loops – How to measure: Compare the same task with and without the skill enabled.
221
+ Count tool calls and total tokens consumed.
222
+ Category 3: MCP Enhancement • 0 failed API calls per workflow
223
+ – How to measure: Monitor MCP server logs during test runs. Track retry rates
224
+ Used for: Workflow guidance to enhance the tool access an MCP server provides.
225
+ and error codes.
226
+ Real example: sentry-code-review skill (from Sentry)
227
+ Qualitative metrics:
228
+ "Automatically analyzes and fixes detected bugs in GitHub Pull Requests using
229
+ • Users don't need to prompt Claude about next steps
230
+ Sentry's error monitoring data via their MCP server."
231
+ – How to assess: During testing, note how often you need to redirect or clarify.
232
+ Ask beta users for feedback.
233
+ Key techniques:
234
+
235
+ • Coordinates multiple MCP calls in sequence
236
+ • Workflows complete without user correction
237
+ • Embeds domain expertise – How to assess: Run the same request 3-5 times. Compare outputs for
238
+
239
+ • Provides context users would otherwise need to specify structural consistency and quality.
240
+
241
+ • Error handling for common MCP issues • Consistent results across sessions
242
+ – How to assess: Can a new user accomplish the task on first try with minimal
243
+ guidance?
244
+
245
+
246
+
247
+
248
+ 9
249
+ Technical requirements YAML frontmatter: The most important part
250
+
251
+ The YAML frontmatter is how Claude decides whether to load your skill. Get this
252
+ File structure
253
+ right.
254
+
255
+ your-skill-name/ Minimal required format
256
+ ├── SKILL.md # Required - main skill file
257
+ ├── scripts/ # Optional - executable code
258
+ ---
259
+ │ ├── process_data.py # Example
260
+ name: your-skill-name
261
+ │ └── validate.sh # Example
262
+ description: What it does. Use when user asks to [specific
263
+ ├── references/ # Optional - documentation
264
+ phrases].
265
+ │ ├── api-guide.md # Example
266
+ ---
267
+ │ └── examples/ # Example
268
+ └── assets/ # Optional - templates, etc.
269
+ └── report-template.md # Example
270
+ That's all you need to start.
271
+
272
+
273
+ Critical rules Field requirements
274
+
275
+ name (required):
276
+ SKILL.md naming:
277
+ • kebab-case only
278
+ • Must be exactly SKILL.md (case-sensitive)
279
+ • No spaces or capitals
280
+ • No variations accepted (SKILL.MD, skill.md, etc.)
281
+ • Should match folder name
282
+
283
+ Skill folder naming:
284
+ description (required):
285
+ • Use kebab-case: notion-project-setup ✅ • MUST include BOTH:
286
+ • No spaces: Notion Project Setup ❌ – What the skill does
287
+
288
+ • No underscores: notion_project_setup ❌ – When to use it (trigger conditions)
289
+
290
+ • No capitals: NotionProjectSetup ❌ • Under 1024 characters
291
+
292
+ • No XML tags (< or >)
293
+ No README.md: • Include specific tasks users might say
294
+ • Don't include README.md inside your skill folder • Mention file types if relevant
295
+ • All documentation goes in SKILL.md or references/
296
+
297
+ • Note: when distributing via GitHub, you'll still want a repo-level README for
298
+ human users — see Distribution and Sharing.
299
+
300
+ 10
301
+ license (optional): Writing effective skills
302
+ • Use if making skill open source
303
+ The description field
304
+ • Common: MIT, Apache-2.0
305
+ According to Anthropic's engineering blog: "This metadata...provides just
306
+ compatibility (optional)
307
+ enough information for Claude to know when each skill should be used without
308
+ • 1-500 characters loading all of it into context." This is the first level of progressive disclosure.
309
+ • Indicates environment requirements: e.g. intended product, required system
310
+ packages, network access needs, etc. Structure:
311
+
312
+ metadata (optional):
313
+ [What it does] + [When to use it] + [Key capabilities]
314
+ • Any custom key-value pairs
315
+
316
+ • Suggested: author, version, mcp-server
317
+
318
+ • Example:
319
+ Examples of good descriptions:
320
+ ```yaml
321
+ metadata:
322
+ author: ProjectHub
323
+ # Good - specific and actionable
324
+ version: 1.0.0 mcp-server: projecthub description: Analyzes Figma design files and generates
325
+ ``` developer handoff documentation. Use when user uploads .fig
326
+ files, asks for "design specs", "component documentation", or
327
+ Security restrictions "design-to-code handoff".
328
+
329
+
330
+ Forbidden in frontmatter: # Good - includes trigger phrases
331
+ description: Manages Linear project workflows including sprint
332
+ • XML angle brackets (< >)
333
+ planning, task creation, and status tracking. Use when user
334
+ • Skills with "claude" or "anthropic" in name (reserved) mentions "sprint", "Linear tasks", "project planning", or asks
335
+ to "create tickets".
336
+ Why: Frontmatter appears in Claude's system prompt. Malicious content could
337
+ inject instructions. # Good - clear value proposition
338
+ description: End-to-end customer onboarding workflow for
339
+ PayFlow. Handles account creation, payment setup, and
340
+ subscription management. Use when user says "onboard new
341
+ customer", "set up subscription", or "create PayFlow account".
342
+
343
+
344
+
345
+
346
+ 11
347
+ Examples of bad descriptions:
348
+ Example:
349
+ ```bash
350
+ # Too vague
351
+ python scripts/fetch_data.py --project-id PROJECT_ID
352
+ description: Helps with projects.
353
+ Expected output: [describe what success looks like]
354
+
355
+ # Missing triggers
356
+ description: Creates sophisticated multi-page documentation
357
+ systems. (Add more steps as needed)
358
+
359
+
360
+ # Too technical, no user triggers
361
+ Examples
362
+ description: Implements the Project entity model with
363
+ hierarchical relationships.
364
+ Example 1: [common scenario]
365
+
366
+ User says: "Set up a new marketing campaign"
367
+
368
+ Writing the main instructions Actions:
369
+
370
+ After the frontmatter, write the actual instructions in Markdown. 1. Fetch existing campaigns via MCP
371
+
372
+ 2. Create new campaign with provided parameters
373
+ Recommended structure:
374
+ Result: Campaign created with confirmation link
375
+ Adapt this template for your skill. Replace bracketed sections with your specific
376
+ content. (Add more examples as needed)
377
+
378
+
379
+ ---
380
+ Troubleshooting
381
+ name: your-skill
382
+ description: [...]
383
+ ---
384
+ Error: [Common error message]
385
+
386
+ Cause: [Why it happens]
387
+ # Your Skill Name
388
+
389
+ Solution: [How to fix]
390
+ ## Instructions
391
+ (Add more error cases as needed)
392
+ ### Step 1: [First Major Step]
393
+ Clear explanation of what happens.
394
+
395
+
396
+
397
+
398
+ 12
399
+ Best Practices for Instructions Reference bundled resources clearly
400
+
401
+
402
+ Be Specific and Actionable
403
+ Before writing queries, consult `references/api-patterns.md`
404
+ for:
405
+ ✅ Good: - Rate limiting guidance
406
+ - Pagination patterns
407
+ Run `python scripts/validate.py --input {filename}` to check - Error codes and handling
408
+ data format.
409
+ If validation fails, common issues include:
410
+ - Missing required fields (add them to the CSV) Use progressive disclosure
411
+ - Invalid date formats (use YYYY-MM-DD)
412
+ Keep SKILL.md focused on core instructions. Move detailed documentation to
413
+
414
+ ❌ Bad: `references/` and link to it. (See Core Design Principles for how the three-
415
+ level system works.)
416
+
417
+
418
+ Validate the data before proceeding.
419
+
420
+
421
+
422
+ Include error handling
423
+
424
+
425
+
426
+ ## Common Issues
427
+
428
+
429
+ ### MCP Connection Failed
430
+ If you see "Connection refused":
431
+ 1. Verify MCP server is running: Check Settings > Extensions
432
+ 2. Confirm API key is valid
433
+ 3. Try reconnecting: Settings > Extensions > [Your Service] >
434
+ Reconnect
435
+
436
+
437
+
438
+
439
+ 13
440
+ Chapter 3
441
+
442
+
443
+
444
+
445
+ Testing and iteration 14
446
+ Chapter 3
447
+
448
+
449
+
450
+ Testing and iteration
451
+ Skills can be tested at varying levels of rigor depending on your needs: Recommended Testing Approach
452
+ • Manual testing in Claude.ai - Run queries directly and observe behavior. Fast
453
+ Based on early experience, effective skills testing typically covers three areas:
454
+ iteration, no setup required.
455
+
456
+ • Scripted testing in Claude Code - Automate test cases for repeatable 1. Triggering tests
457
+ validation across changes.
458
+ Goal: Ensure your skill loads at the right times.
459
+ • Programmatic testing via skills API - Build evaluation suites that run
460
+ systematically against defined test sets. Test cases:
461
+
462
+ Choose the approach that matches your quality requirements and the visibility • ✅ Triggers on obvious tasks
463
+ of your skill. A skill used internally by a small team has different testing needs • ✅ Triggers on paraphrased requests
464
+
465
+ • ❌ Doesn't trigger on unrelated topics
466
+ than one deployed to thousands of enterprise users.
467
+
468
+
469
+ Example test suite:
470
+ Pro Tip: Iterate on a single task before expanding
471
+
472
+ Should trigger:
473
+ We’ve found that the most effective skill creators iterate on a single challenging - "Help me set up a new ProjectHub workspace"
474
+ task until Claude succeeds, then extract the winning approach into a skill. This - "I need to create a project in ProjectHub"
475
+ leverages Claude’s in-context learning and provides faster signal than broad - "Initialize a ProjectHub project for Q4 planning"
476
+
477
+ testing. Once you have a working foundation, expand to multiple test cases for
478
+ Should NOT trigger:
479
+ coverage.
480
+ - "What's the weather in San Francisco?"
481
+ - "Help me write Python code"
482
+ - "Create a spreadsheet" (unless ProjectHub skill handles
483
+ sheets)
484
+
485
+
486
+
487
+
488
+ 15
489
+ 2. Functional tests
490
+ With skill:
491
+ Goal: Verify the skill produces correct outputs. - Automatic workflow execution
492
+ - 2 clarifying questions only
493
+ Test cases: - 0 failed API calls
494
+
495
+ • Valid outputs generated - 6,000 tokens consumed
496
+
497
+ • API calls succeed
498
+
499
+ • Error handling works
500
+
501
+ • Edge cases covered Using the skill-creator skill
502
+
503
+ Example: The skill-creator skill - available in Claude.ai via plugin directory or
504
+ download for Claude Code - can help you build and iterate on skills. If you
505
+ have an MCP server and know your top 2–3 workflows, you can build and test a
506
+ Test: Create project with 5 tasks functional skill in a single sitting - often in 15–30 minutes.
507
+ Given: Project name "Q4 Planning", 5 task descriptions
508
+ When: Skill executes workflow Creating skills:
509
+ Then:
510
+ • Generate skills from natural language descriptions
511
+ - Project created in ProjectHub
512
+ - 5 tasks created with correct properties • Produce properly formatted SKILL.md with frontmatter
513
+ - All tasks linked to project
514
+ • Suggest trigger phrases and structure
515
+ - No API errors
516
+
517
+ Reviewing skills:
518
+
519
+ • Flag common issues (vague descriptions, missing triggers, structural
520
+ 3. Performance comparison problems)
521
+
522
+ • Identify potential over/under-triggering risks
523
+ Goal: Prove the skill improves results vs. baseline.
524
+ • Suggest test cases based on the skill's stated purpose
525
+ Use the metrics from Define Success Criteria. Here's what a comparison might
526
+ look like. Iterative improvement:
527
+
528
+ • After using your skill and encountering edge cases or failures, bring those
529
+ Baseline comparison:
530
+ examples back to skill-creator
531
+
532
+ • Example: "Use the issues & solution identified in this chat to improve how the
533
+ Without skill:
534
+ - User provides instructions each time
535
+ skill handles [specific edge case]"
536
+ - 15 back-and-forth messages
537
+ - 3 failed API calls requiring retry
538
+ - 12,000 tokens consumed
539
+
540
+ 16
541
+ To use: Execution issues:
542
+
543
+ • Inconsistent results
544
+ "Use the skill-creator skill to help me build a skill for
545
+ • API call failures
546
+ [your use case]"
547
+ • User corrections needed
548
+
549
+
550
+ Note: skill-creator helps you design and refine skills but does not execute
551
+ Solution: Improve instructions, add error handling
552
+ automated test suites or produce quantitative evaluation results.
553
+
554
+
555
+ Iteration based on feedback
556
+ Skills are living documents. Plan to iterate based on:
557
+
558
+
559
+ Undertriggering signals:
560
+
561
+ • Skill doesn't load when it should
562
+
563
+ • Users manually enabling it
564
+
565
+ • Support questions about when to use it
566
+
567
+
568
+
569
+ Solution: Add more detail and nuance to the description - this may include
570
+ keywords particularly for technical terms
571
+
572
+
573
+
574
+ Overtriggering signals:
575
+
576
+ • Skill loads for irrelevant queries
577
+
578
+ • Users disabling it
579
+
580
+ • Confusion about purpose
581
+
582
+
583
+
584
+ Solution: Add negative triggers, be more specific
585
+
586
+
587
+
588
+
589
+ 17
590
+ Chapter 4
591
+
592
+
593
+
594
+
595
+ Distribution and
596
+ sharing 18
597
+ Chapter 4
598
+
599
+
600
+
601
+ Distribution and sharing
602
+ Skills make your MCP integration more complete. As users compare connectors, Using skills via API
603
+ those with skills offer a faster path to value, giving you an edge over MCP-only
604
+ alternatives. For programmatic use cases - such as building applications, agents, or automated
605
+ workflows that leverage skills - the API provides direct control over skill
606
+ management and execution.
607
+ Current distribution model (January 2026)
608
+ Key capabilities:
609
+ How individual users get skills:
610
+ • `/v1/skills` endpoint for listing and managing skills
611
+ 1. Download the skill folder
612
+ • Add skills to Messages API requests via the `container.skills` parameter
613
+ 2. Zip the folder (if needed)
614
+ • Version control and management through the Claude Console
615
+ 3. Upload to Claude.ai via Settings > Capabilities > Skills
616
+ • Works with the Claude Agent SDK for building custom agents
617
+ 4. Or place in Claude Code skills directory
618
+
619
+ When to use skills via the API vs. Claude.ai:
620
+ Organization-level skills:
621
+ • Admins can deploy skills workspace-wide (shipped December 18, 2025) Use Case Best Surface
622
+ • Automatic updates
623
+ End users interacting with skills directly Claude.ai / Claude Code
624
+ • Centralized management
625
+ Manual testing and iteration during development Claude.ai / Claude Code
626
+
627
+ An open standard
628
+ Individual, ad-hoc workflows Claude.ai / Claude Code
629
+ We've published Agent Skills as an open standard. Like MCP, we believe skills
630
+ should be portable across tools and platforms - the same skill should work Applications using skills programmatically API
631
+ whether you're using Claude or other AI platforms. That said, some skills are
632
+ designed to take full advantage of a specific platform's capabilities; authors can Production deployments at scale API
633
+
634
+ note this in the skill's compatibility field. We've been collaborating with
635
+ members of the ecosystem on the standard, and we're excited by early adoption. Automated pipelines and agent systems API
636
+
637
+
638
+
639
+
640
+ 19
641
+ Note: Skills in the API require the Code Execution Tool beta, which provides the
642
+ secure environment skills need to run. - Select the skill folder (zipped)
643
+
644
+
645
+ For implementation details, see: 3. Enable the skill:
646
+ - Toggle on the [Your Service] skill
647
+ • Skills API Quickstart - Ensure your MCP server is connected
648
+ • Create Custom skills
649
+ 4. Test:
650
+ • Skills in the Agent SDK - Ask Claude: "Set up a new project in [Your Service]"
651
+
652
+
653
+
654
+ Recommended approach today Positioning your skill
655
+ Start by hosting your skill on GitHub with a public repo, clear README (for How you describe your skill determines whether users understand its value and
656
+ human visitors — this is separate from your skill folder, which should not contain actually try it. When writing about your skill—in your README, documentation,
657
+ a README.md), and example usage with screenshots. Then add a section or marketing - keep these principles in mind.
658
+ to your MCP documentation that links to the skill, explains why using both
659
+ together is valuable, and provides a quick-start guide. Focus on outcomes, not features:
660
+
661
+ 1. Host on GitHub ✅ Good:
662
+ – Public repo for open-source skills
663
+ – Clear README with installation instructions "The ProjectHub skill enables teams to set up complete project
664
+ – Example usage and screenshots workspaces in seconds — including pages, databases, and
665
+ templates — instead of spending 30 minutes on manual setup."
666
+ 2. Document in Your MCP Repo
667
+ – Link to skills from MCP documentation
668
+ – Explain the value of using both together
669
+ – Provide quick-start guide
670
+ ❌ Bad:
671
+ 3. Create an Installation Guide "The ProjectHub skill is a folder containing YAML frontmatter
672
+ and Markdown instructions that calls our MCP server tools."
673
+
674
+ ## Installing the [Your Service] skill
675
+
676
+ 1. Download the skill: Highlight the MCP + skills story:
677
+ - Clone repo: `git clone https://github.com/yourcompany/
678
+ skills`
679
+ - Or download ZIP from Releases "Our MCP server gives Claude access to your Linear projects.
680
+ Our skills teach Claude your team's sprint planning workflow.
681
+ 2. Install in Claude: Together, they enable AI-powered project management."
682
+ - Open Claude.ai > Settings > skills
683
+ - Click "Upload skill"
684
+ 20
685
+ Chapter 5
686
+
687
+
688
+
689
+
690
+ Patterns and
691
+ troubleshooting 21
692
+ Chapter 5
693
+
694
+
695
+
696
+ Patterns and troubleshooting
697
+ These patterns emerged from skills created by early adopters and internal teams. Pattern 1: Sequential workflow orchestration
698
+ They represent common approaches we've seen work well, not prescriptive
699
+ templates. Use when: Your users need multi-step processes in a specific order.
700
+
701
+ Example structure:
702
+ Choosing your approach: Problem-first vs. tool-first
703
+
704
+ Think of it like Home Depot. You might walk in with a problem - "I need to fix a ## Workflow: Onboard New Customer
705
+ kitchen cabinet" - and an employee points you to the right tools. Or you might
706
+ pick out a new drill and ask how to use it for your specific job. ### Step 1: Create Account
707
+ Call MCP tool: `create_customer`
708
+ Skills work the same way: Parameters: name, email, company
709
+
710
+ • Problem-first: "I need to set up a project workspace" → Your skill orchestrates
711
+ ### Step 2: Setup Payment
712
+ the right MCP calls in the right sequence. Users describe outcomes; the skill
713
+ Call MCP tool: `setup_payment_method`
714
+ handles the tools.
715
+ Wait for: payment method verification
716
+ • Tool-first: "I have Notion MCP connected" → Your skill teaches Claude the
717
+ optimal workflows and best practices. Users have access; the skill provides ### Step 3: Create Subscription
718
+ expertise. Call MCP tool: `create_subscription`
719
+ Parameters: plan_id, customer_id (from Step 1)
720
+ Most skills lean one direction. Knowing which framing fits your use case helps
721
+ you choose the right pattern below. ### Step 4: Send Welcome Email
722
+ Call MCP tool: `send_email`
723
+ Template: welcome_email_template
724
+
725
+
726
+
727
+
728
+ Key techniques:
729
+
730
+ • Explicit step ordering
731
+
732
+ • Dependencies between steps
733
+
734
+ • Validation at each stage
735
+
736
+ • Rollback instructions for failures
737
+ 22
738
+ Pattern 2: Multi-MCP coordination Pattern 3: Iterative refinement
739
+ Use when: Workflows span multiple services. Use when: Output quality improves with iteration.
740
+
741
+ Example: Design-to-development handoff Example: Report generation
742
+
743
+
744
+ ### Phase 1: Design Export (Figma MCP) ## Iterative Report Creation
745
+ 1. Export design assets from Figma
746
+ 2. Generate design specifications ### Initial Draft
747
+ 3. Create asset manifest 1. Fetch data via MCP
748
+ 2. Generate first draft report
749
+ ### Phase 2: Asset Storage (Drive MCP) 3. Save to temporary file
750
+ 1. Create project folder in Drive
751
+ 2. Upload all assets ### Quality Check
752
+ 3. Generate shareable links 1. Run validation script: `scripts/check_report.py`
753
+ 2. Identify issues:
754
+ ### Phase 3: Task Creation (Linear MCP) - Missing sections
755
+ 1. Create development tasks - Inconsistent formatting
756
+ 2. Attach asset links to tasks - Data validation errors
757
+ 3. Assign to engineering team
758
+ ### Refinement Loop
759
+ ### Phase 4: Notification (Slack MCP) 1. Address each identified issue
760
+ 1. Post handoff summary to #engineering 2. Regenerate affected sections
761
+ 2. Include asset links and task references 3. Re-validate
762
+ 4. Repeat until quality threshold met
763
+
764
+
765
+ Key techniques: ### Finalization
766
+ 1. Apply final formatting
767
+ • Clear phase separation
768
+ 2. Generate summary
769
+ • Data passing between MCPs 3. Save final version
770
+
771
+ • Validation before moving to next phase
772
+
773
+ • Centralized error handling Key techniques:
774
+
775
+ • Explicit quality criteria
776
+
777
+ • Iterative improvement
778
+
779
+ • Validation scripts
780
+
781
+ • Know when to stop iterating
782
+
783
+ 23
784
+ Pattern 4: Context-aware tool selection Pattern 5: Domain-specific intelligence
785
+ Use when: Same outcome, different tools depending on context. Use when: Your skill adds specialized knowledge beyond tool access.
786
+
787
+ Example: File storage Example: Financial compliance
788
+
789
+
790
+ ## Smart File Storage ## Payment Processing with Compliance
791
+
792
+
793
+ ### Decision Tree ### Before Processing (Compliance Check)
794
+ 1. Check file type and size 1. Fetch transaction details via MCP
795
+ 2. Determine best storage location: 2. Apply compliance rules:
796
+ - Large files (>10MB): Use cloud storage MCP - Check sanctions lists
797
+ - Collaborative docs: Use Notion/Docs MCP - Verify jurisdiction allowances
798
+ - Code files: Use GitHub MCP - Assess risk level
799
+ - Temporary files: Use local storage 3. Document compliance decision
800
+
801
+
802
+ ### Execute Storage ### Processing
803
+ Based on decision: IF compliance passed:
804
+ - Call appropriate MCP tool - Call payment processing MCP tool
805
+ - Apply service-specific metadata - Apply appropriate fraud checks
806
+ - Generate access link - Process transaction
807
+ ELSE:
808
+ ### Provide Context to User - Flag for review
809
+ Explain why that storage was chosen - Create compliance case
810
+
811
+
812
+ ### Audit Trail
813
+ Key techniques: - Log all compliance checks
814
+ - Record processing decisions
815
+ • Clear decision criteria
816
+ - Generate audit report
817
+ • Fallback options
818
+
819
+ • Transparency about choices
820
+ Key techniques:
821
+
822
+ • Domain expertise embedded in logic
823
+
824
+ • Compliance before action
825
+
826
+ • Comprehensive documentation
827
+
828
+ • Clear governance
829
+
830
+
831
+ 24
832
+ Troubleshooting
833
+ # Wrong
834
+ name: My Cool Skill
835
+ Skill won't upload
836
+
837
+ Error: "Could not find SKILL.md in uploaded folder" # Correct
838
+ name: my-cool-skill
839
+ Cause: File not named exactly SKILL.md
840
+
841
+ Solution:
842
+ Skill doesn't trigger
843
+ • Rename to SKILL.md (case-sensitive)
844
+
845
+ • Verify with: ls -la should show SKILL.md Symptom: Skill never loads automatically
846
+
847
+ Error: "Invalid frontmatter" Fix:
848
+
849
+ Cause: YAML formatting issue Revise your description field. See The Description Field for good/bad examples.
850
+
851
+ Common mistakes: Quick checklist:
852
+
853
+ • Is it too generic? ("Helps with projects" won't work)
854
+ # Wrong - missing delimiters • Does it include trigger phrases users would actually say?
855
+ name: my-skill
856
+ description: Does things
857
+ • Does it mention relevant file types if applicable?
858
+
859
+ Debugging approach:
860
+ # Wrong - unclosed quotes
861
+ name: my-skill
862
+ Ask Claude: "When would you use the [skill name] skill?" Claude will quote the
863
+ description: "Does things
864
+ description back. Adjust based on what's missing.
865
+
866
+ # Correct
867
+ ---
868
+ Skill triggers too often
869
+ name: my-skill
870
+ Symptom: Skill loads for unrelated queries
871
+ description: Does things
872
+ --- Solutions:
873
+
874
+ 1. Add negative triggers
875
+ Error: "Invalid skill name"
876
+ description: Advanced data analysis for CSV files. Use for
877
+ Cause: Name has spaces or capitals statistical modeling, regression, clustering. Do NOT use for
878
+ simple data exploration (use data-viz skill instead).
879
+
880
+
881
+
882
+ 25
883
+ 2. Be more specific Instructions not followed
884
+
885
+ Symptom: Skill loads but Claude doesn't follow instructions
886
+ # Too broad
887
+ description: Processes documents
888
+ Common causes:
889
+
890
+ # More specific 1. Instructions too verbose
891
+ description: Processes PDF legal documents for contract review – Keep instructions concise
892
+ – Use bullet points and numbered lists
893
+ – Move detailed reference to separate files
894
+ 3. Clarify scope
895
+ 2. Instructions buried
896
+ – Put critical instructions at the top
897
+ description: PayFlow payment processing for e-commerce. Use – Use ## Important or ## Critical headers
898
+ specifically for online payment workflows, not for general
899
+ – Repeat key points if needed
900
+ financial queries.
901
+ 3. Ambiguous language
902
+
903
+
904
+ # Bad
905
+ MCP connection issues Make sure to validate things properly
906
+
907
+ Symptom: Skill loads but MCP calls fail
908
+ # Good
909
+ CRITICAL: Before calling create_project, verify:
910
+ Checklist:
911
+ - Project name is non-empty
912
+ 1. Verify MCP server is connected - At least one team member assigned
913
+ – Claude.ai: Settings > Extensions > [Your Service] - Start date is not in the past
914
+ – Should show "Connected" status
915
+
916
+ 2. Check authentication Advanced technique: For critical validations, consider bundling a script
917
+ – API keys valid and not expired that performs the checks programmatically rather than relying on language
918
+ – Proper permissions/scopes granted instructions. Code is deterministic; language interpretation isn't. See the Office
919
+ – OAuth tokens refreshed skills for examples of this pattern.
920
+
921
+ 3. Test MCP independently 4. Model "laziness" Add explicit encouragement:
922
+ – Ask Claude to call MCP directly (without skill)
923
+ – "Use [Service] MCP to fetch my projects" ## Performance Notes
924
+ – If this fails, issue is MCP not skill - Take your time to do this thoroughly
925
+ - Quality is more important than speed
926
+ 4. Verify tool names
927
+ - Do not skip validation steps
928
+ – Skill references correct MCP tool names
929
+ – Check MCP server documentation
930
+ Note: Adding this to user prompts is more effective than in SKILL.md
931
+ – Tool names are case-sensitive
932
+ 26
933
+ Large context issues
934
+
935
+ Symptom: Skill seems slow or responses degraded
936
+
937
+ Causes:
938
+
939
+ • Skill content too large
940
+
941
+ • Too many skills enabled simultaneously
942
+
943
+ • All content loaded instead of progressive disclosure
944
+
945
+ Solutions:
946
+
947
+ 1. Optimize SKILL.md size
948
+ – Move detailed docs to references/
949
+ – Link to references instead of inline
950
+ – Keep SKILL.md under 5,000 words
951
+
952
+ 2. Reduce enabled skills
953
+ – Evaluate if you have more than 20 - 50 skills enabled simultaneously
954
+ – Recommend selective enablement
955
+ – Consider skill "packs" for related capabilities
956
+
957
+
958
+
959
+
960
+ 27
961
+ Chapter 6
962
+
963
+
964
+
965
+
966
+ Resources and
967
+ references 28
968
+ Chapter 6
969
+
970
+
971
+
972
+ Resources and references
973
+ If you're building your first skill, start with the Best Practices Guide, then Tools and Utilities
974
+ reference the API docs as needed.
975
+ skill-creator skill:
976
+ Official Documentation • Built into Claude.ai and available for Claude Code
977
+
978
+ • Can generate skills from descriptions
979
+ Anthropic Resources:
980
+ • Reviews and provides recommendations
981
+ • Best Practices Guide
982
+ • Use: "Help me build a skill using skill-creator"
983
+ • Skills Documentation
984
+
985
+ • API Reference Validation:
986
+ • MCP Documentation • skill-creator can assess your skills
987
+
988
+ • Ask: "Review this skill and suggest improvements"
989
+ Blog Posts:
990
+ • Introducing Agent Skills
991
+ Getting Support
992
+ • Engineering Blog: Equipping Agents for the Real World
993
+
994
+ • Skills Explained For Technical Questions:
995
+
996
+ • How to Create Skills for Claude • General questions: Community forums at the Claude Developers Discord
997
+
998
+ • Building Skills for Claude Code
999
+ For Bug Reports:
1000
+ • Improving Frontend Design through Skills
1001
+ • GitHub Issues: anthropics/skills/issues
1002
+
1003
+ • Include: Skill name, error message, steps to reproduce
1004
+ Example skills
1005
+
1006
+ Public skills repository:
1007
+ • GitHub: anthropics/skills
1008
+
1009
+ • Contains Anthropic-created skills you can customize
1010
+
1011
+ 29
1012
+ Before upload
1013
+ Reference A: Quick Tested triggering on obvious tasks
1014
+
1015
+
1016
+ checklist Tested triggering on paraphrased requests
1017
+
1018
+ Verified doesn't trigger on unrelated topics
1019
+ Use this checklist to validate your skill before and after upload. If you want
1020
+ Functional tests pass
1021
+ a faster start, use the skill-creator skill to generate your first draft, then run
1022
+ through this list to make sure you haven't missed anything. Tool integration works (if applicable)
1023
+
1024
+ Compressed as .zip file
1025
+
1026
+ Before you start
1027
+ After upload
1028
+ Identified 2-3 concrete use cases
1029
+
1030
+ Tools identified (built-in or MCP) Test in real conversations
1031
+
1032
+ Reviewed this guide and example skills Monitor for under/over-triggering
1033
+
1034
+ Planned folder structure Collect user feedback
1035
+
1036
+ Iterate on description and instructions
1037
+
1038
+ During development Update version in metadata
1039
+
1040
+ Folder named in kebab-case
1041
+
1042
+ SKILL.md file exists (exact spelling)
1043
+
1044
+ YAML frontmatter has --- delimiters
1045
+
1046
+ name field: kebab-case, no spaces, no capitals
1047
+
1048
+ description includes WHAT and WHEN
1049
+
1050
+ No XML tags (< >) anywhere
1051
+
1052
+ Instructions are clear and actionable
1053
+
1054
+ Error handling included
1055
+
1056
+ Examples provided
1057
+
1058
+ References clearly linked
1059
+
1060
+
1061
+
1062
+
1063
+ 30
1064
+ Security notes
1065
+ Reference B: YAML
1066
+ frontmatter Allowed:
1067
+ • Any standard YAML types (strings, numbers, booleans, lists, objects)
1068
+
1069
+ • Custom metadata fields
1070
+ Required fields
1071
+ • Long descriptions (up to 1024 characters)
1072
+
1073
+ ---
1074
+ Forbidden:
1075
+ name: skill-name-in-kebab-case
1076
+ description: What it does and when to use it. Include specific • XML angle brackets (< >) - security restriction
1077
+ trigger phrases.
1078
+ • Code execution in YAML (uses safe YAML parsing)
1079
+ ---
1080
+ • Skills named with "claude" or "anthropic" prefix (reserved)
1081
+
1082
+
1083
+
1084
+
1085
+ All optional fields
1086
+
1087
+ name: skill-name
1088
+ description: [required description]
1089
+ license: MIT # Optional: License for open-source
1090
+ allowed-tools: "Bash(python:*) Bash(npm:*) WebFetch" # Optional:
1091
+ Restrict tool access
1092
+ metadata: # Optional: Custom fields
1093
+ author: Company Name
1094
+ version: 1.0.0
1095
+ mcp-server: server-name
1096
+ category: productivity
1097
+ tags: [project-management, automation]
1098
+ documentation: https://example.com/docs
1099
+ support: support@example.com
1100
+
1101
+
1102
+
1103
+
1104
+ 31
1105
+ Reference C: Complete skill
1106
+ examples
1107
+ For full, production-ready skills demonstrating the patterns in this guide:
1108
+
1109
+ • Document Skills - PDF, DOCX, PPTX, XLSX creation
1110
+
1111
+ • Example Skills - Various workflow patterns
1112
+
1113
+ • Partner Skills Directory - View skills from various partners such as Asana,
1114
+ Atlassian, Canva, Figma, Sentry, Zapier, and more
1115
+
1116
+ These repositories stay up-to-date and include additional examples beyond
1117
+ what's covered here. Clone them, modify them for your use case, and use them as
1118
+ templates.
1119
+
1120
+
1121
+
1122
+
1123
+ 32
1124
+ claude.ai