build-skill
Skill13 starsChanged 13 days agoMITView on GitHub
Use if creating, redesigning, or merging agent skills adhering to agentskills.io specifications, integrating web research for quality context, MJS/Python scripts, and multi-mode workflows.
We split this skill into the rules it gives an agent
19 rules. 0 are common, 11 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Use this skill when you are:
- Distinctive: line 34
Do NOT use this skill for:
- Very specific: line 42
Context grounding before drafting: Run /research:ask or /research:deep for all non-trivial domains.
- Very specific: line 43
Progressive disclosure architecture: Keep SKILL.md under 500 lines (<5,000 tokens).
- Very specific: line 44
Deterministic scripting: Write bundled scripts in portable JavaScript (.mjs ES Modules) or Python (.py).
- Distinctive: line 45
Reproduce, test, and verify: Always test scripts and verify execution infrastructure before declaring done.
- Distinctive: line 46
Comparison before combination: When researching remote skills, build a structured comparison table with explicit inherit/avoid decisions.
- Very specific: line 64
Use when researching existing patterns on skills.sh, GitHub, and external repositories before writing code.
- Very specific: line 65
Registry Discovery: Run node scripts/skill-dl.mjs search across 3–10 orthogonal keywords to find top candidate skills with consensus …
- Distinctive: line 70
Individual Skill Visits & Plan Presentation: After forming the consortium, visit each candidate skill individually.
- Distinctive: line 73
Use after discovery to draft a new skill or perform a major refactor from discovered knowledge.
- Distinctive: line 80
Specification Audit: Verify frontmatter contains only allowed fields and line count stays under 500 lines.
- Distinctive: line 83
Use when converting an extensive in-flight conversation (e.g.
- Distinctive: line 99
Use when authoring a skill for a specific repository, library, or framework from scratch.
- Very specific: line 110
Write valid YAML frontmatter conforming to agentskills.io.
- Distinctive: line 115
Run and test scripts with real data.
- Very specific: line 117
Run node scripts/skill-dl.mjs inspect .
- Very specific: line 118
Run repository skill validator: python3 scripts/validate-skills.py.
- Distinctive: line 133
Read the smallest relevant reference set for your current task:
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build Agent Skills
Synthesize robust, spec-compliant agent skills adhering to the open Agent Skills Specification. Built on empirical research, progressive disclosure, deterministic scripting, and verified domain context.
Mandatory Research Prerequisite: the research plugin
High-quality skills cannot be built in a vacuum or from stale model memory. Skill authoring requires verified ground truth, gathered with the research plugin (Research Powerpack):
- Plugin:
yigitkonur/plugin-research-powerpack - Install command:
claude plugin marketplace add yigitkonur/plugin-research-powerpack, thenclaude plugin install research@plugin-research-powerpack - Skills it provides:
/research:askfor one question,/research:deepfor a multi-source run that ends in files,/research:verifyto fact-check a document
Standing Invariant: Never draft a skill based on assumptions, unverified library contracts, or generic training weights. When non-trivial APIs, frameworks, or domain workflows are involved, run
/research:ask(one question) or/research:deep(five or more sources or entities) first to gather authoritative documentation, verifiable quotes, and real code patterns. If theresearchplugin is not installed, prompt the user to install it before proceeding. Outside Claude Code (for example in Codex, where Claude Code plugins do not load), use whatever web-search and page-reading tools you have and hold the same standard: cited, verbatim evidence for every non-trivial claim. If you have neither, refuse to run. Quality skills cannot exist without quality context.
When to Use
Use this skill when you are:
- creating a new agent skill from scratch ("make me a skill for X", "scaffold a skill", "I need a skill that does Y")
- substantially redesigning or refactoring an existing skill ("rewrite this skill", "clean up this bloated skill")
- merging multiple skills or disparate source corpora into one ("combine these skills into one coherent skill")
- extracting an in-flight conversation into a skill ("convert what we just did into a skill", session reaching 200k–400k tokens)
- authoring a framework- or repo-specific skill with extensive reference blocks grounded in live documentation
- auditing a skill for agentskills.io specification compliance (frontmatter fields, script conventions, progressive disclosure)
Do NOT use this skill for:
- testing live derailment resistance — use
audit-skill-by-derailment - one-off quick script fixes where outside skill patterns or documentation aren't relevant
- blind cloning of a remote skill without synthesis, adaptation, or repo-fit
Core Non-Negotiable Rules
- Specification compliance first: Frontmatter strictly adheres to
agentskills.io/specification(name,description,license,compatibility,metadata,allowed-tools). No arbitrary top-level fields. - Context grounding before drafting: Run
/research:askor/research:deepfor all non-trivial domains. Refuse to run without verified research and refuse to hallucinate APIs or edge cases. - Progressive disclosure architecture: Keep
SKILL.mdunder 500 lines (<5,000 tokens). Offload bulky documentation toreferences/(1-level deep) and deterministic operations toscripts/. - Deterministic scripting: Write bundled scripts in portable JavaScript (
.mjsES Modules) or Python (.py). Avoid fragile shell scripts (.sh). - Reproduce, test, and verify: Always test scripts and verify execution infrastructure before declaring done.
- Comparison before combination: When researching remote skills, build a structured comparison table with explicit inherit/avoid decisions.
Available Scripts
Scripts live in scripts/ and run directly via Node.js or Python without external global installations:
scripts/skill-dl.mjs— Discovery, download, and specification auditor.- Search registry:
node scripts/skill-dl.mjs search "typescript" "mcp" --top 10 - Download candidate:
node scripts/skill-dl.mjs download anthropics/skills/mcp-builder -o ./research-corpus - Audit spec compliance:
node scripts/skill-dl.mjs inspect ./skills/build-skill
- Search registry:
scripts/skill-research.mjs— End-to-end multi-query discovery → download → corpus inspection pipeline:node scripts/skill-research.mjs "typescript,mcp,server" ./research-corpus 3
(Backward-compatible bash shims scripts/skill-dl and scripts/skill-research.sh forward directly to these .mjs scripts).
Four Operational Modes
Mode 1: Discovery Mode (Registry & Consortium Sweep)
Use when researching existing patterns on skills.sh, GitHub, and external repositories before writing code.
- Registry Discovery: Run
node scripts/skill-dl.mjs searchacross 3–10 orthogonal keywords to find top candidate skills with consensus scoring. - Subagent Consortium: Deploy up to 3–5 parallel sub-agents to summarize each candidate skill across distinct lenses:
- Architecture & Progressive Disclosure: How
references/and line counts are structured. - Script & Tool Automation: What logic is scripted in
scripts/vs left in prose. - Triggers & Description Calibrations: Negative triggers, precision, over-triggering guards.
- Architecture & Progressive Disclosure: How
- Individual Skill Visits & Plan Presentation: After forming the consortium, visit each candidate skill individually. Analyze how its references and scripts affect its execution. Plan the approach, synthesize the comparison table, and present it to the user before code authoring.
Mode 2: Creation & Distillation Mode (Synthesis & Repo-Fit)
Use after discovery to draft a new skill or perform a major refactor from discovered knowledge.
- Distillation via Sub-Agents: Hand refined discovery data to sub-agents to produce distilled outputs, combining everything into the repository's native conventions and vocabulary.
- Draft Plan First: Draft a structural plan (
SKILL.md,references/,scripts/) before writing code so the skill reflects original design rather than being passively biased by external templates. - Iterative Revisitation: Revisit candidate skills repeatedly as needed to refine edge cases, while preserving strict progressive disclosure boundaries:
SKILL.md: High-level workflow, decision trees, prerequisites, script summaries, reference routing.references/: Deep technical documentation, API tables, and domain-specific checklists (kept 1-level deep).scripts/: Deterministic verification, parsing, and scaffolding tools.
- Specification Audit: Verify frontmatter contains only allowed fields and line count stays under 500 lines.
Mode 3: Conversation-Driven Mode (High-Token Session Distillation)
Use when converting an extensive in-flight conversation (e.g. 200k–400k tokens) into a reusable skill.
- Mental Model & Research Alignment: Ingest the chat context and run
/research:askon the fly to ground any ambiguous domain tools or commands used during the session. - Step-by-Step Confession (Up to 5-Level Nested List):
Reconstruct the exact progression of actions, corrections, and discoveries to link back to agent memory:
- Level 1: Primary Milestone (e.g. Setting up authentication)
- Level 2: Sub-workflow Phase (e.g. OAuth token exchange debugging)
- Level 3: Concrete Step Executed (e.g. Inspecting headers and callback payload)
- Level 4: Error Encountered & Correction (e.g. Fixed state mismatch via Redis PKCE store)
- Level 5: Deterministic Insight or Invariant (e.g. Token TTL must be ≥300s to avoid refresh race)
- Level 4: Error Encountered & Correction (e.g. Fixed state mismatch via Redis PKCE store)
- Level 3: Concrete Step Executed (e.g. Inspecting headers and callback payload)
- Level 2: Sub-workflow Phase (e.g. OAuth token exchange debugging)
- Level 1: Primary Milestone (e.g. Setting up authentication)
- Transfer Planning: Plan which confessed steps transfer into:
SKILL.mdbody (core decision trees and non-negotiable gates).references/(deep configuration guides and edge case catalogs).- Script-ification (convert any repetitive terminal commands into deterministic
.mjsor.pyscripts).
- Script Scaffolding & Verification: Implement and test scripts in
scripts/.
Mode 4: Pure Research / Documentation-Driven Mode
Use when authoring a skill for a specific repository, library, or framework from scratch.
- Exhaustive Extraction via the
researchplugin: Query official docs, source code, migration guides, and GitHub issue trackers. - Deep Reference Blocks: Build detailed, reusable reference files under
references/containing hundreds of verified references organized into atomic blocks. - Actionable "Do This, Not That" Guidance: Break instructions down into explicit, imperative steps ("Run...", "Configure...", "Verify...") with clear failure modes and counters.
Step-by-Step Authoring Workflow
- Verify Prerequisites: Confirm the
researchplugin (or an equivalent web research tool) is available andnode scripts/skill-dl.mjs --wheresucceeds. - Select Mode: Choose Discovery, Creation, Conversation-driven, or Documentation mode.
- Execute Research: Collect evidence via
/research:deep(or/research:ask) andskill-dl.mjs search. Build the comparison table. - Draft
SKILL.md:- Write valid YAML frontmatter conforming to
agentskills.io. - Formulate clear imperative workflow sections with validation gates.
- Route reference files cleanly.
- Write valid YAML frontmatter conforming to
- Develop & Test Scripts:
- Author automation scripts in
scripts/using Node.js (.mjs) or Python (.py). - Run and test scripts with real data; confirm zero-crash execution.
- Author automation scripts in
- Spec & Quality Validation:
- Run
node scripts/skill-dl.mjs inspect .to verify frontmatter and line counts. - Run repository skill validator:
python3 scripts/validate-skills.py.
- Run
Do This, Not That
| Do This | Not That |
Ground every skill in verified facts using the research plugin | Hallucinate APIs or procedures from model memory |
Write portable, robust scripts in Node.js (.mjs) or Python (.py) | Author fragile shell scripts (.sh) with platform-dependent grep/sed |
Adhere strictly to the 6 canonical agentskills.io frontmatter fields | Invent arbitrary frontmatter fields like user-invocable or hooks |
Keep SKILL.md under 500 lines and route details to references/ | Stuff monolithic 1,500-line guides into a single SKILL.md |
| Test and execute bundled scripts before declaring done | Ship untested scripts that fail on live environments |
| Use 5-level nested lists to capture deep conversational context | Summarize complex troubleshooting sessions into vague bullet points |
Reference Routing
Read the smallest relevant reference set for your current task:
Authoring & Formatting
references/authoring/skillmd-format.md: Officialagentskills.iofrontmatter specification, validation rules, and structural guidelines.references/authoring/description-engineering.md: Writing high-precision description triggers and negative triggers.references/authoring/decision-tree-patterns.md: Branching logic, routing hierarchies, and decision matrices.references/authoring/reference-file-structure.md: Sizing, naming, and nesting discipline forreferences/.references/authoring/testing-methodology.md: Trigger evaluation, functional passes, and multi-tier testing.references/authoring/tdd-for-skills.md: RED-GREEN-REFACTOR pressure testing for discipline skills.references/authoring/persuasion-principles.md: Calibrating authority, commitment, and instruction strictness.references/authoring/degrees-of-freedom.md: Balancing prescriptiveness vs model autonomy per step.
Patterns & Architecture
references/patterns/skill-organization.md: Splitting, merging, and scoping skill boundaries.references/patterns/naming-conventions.md: Kebab-case naming, directory alignment, and verb-noun conventions.references/patterns/workflow-patterns.md: Sequential, iterative, multi-MCP, and context-aware patterns.references/patterns/mcp-enhancement.md: Building skills that wrap and coordinate MCP server tools.
Research & Sourcing
references/research-workflow.md: Grounding with theresearchplugin, multi-angle discovery, and comparison tables.references/remote-sources.md: Registry workflows withskills.shandscripts/skill-dl.mjs.references/comparison-workflow.md: Structuring evidence, comparison tables, and inherit/avoid decisions.references/source-patterns.md: Identifying high-signal design patterns from external skills.references/research/source-verification.md: Filtering low-signal packages and assessing ecosystem authority.references/research/fact-checking.md: Verifying claims, commands, and schemas against ground truth.references/research/search-strategies.md: Orthogonal search queries and consensus discovery.references/research/corpus-inspection.md: Auditing downloaded skill corpora for quality and anti-patterns.
Quality, Checklists & Iteration
references/checklists/master-checklist.md: Comprehensive quality checklist before shipping.references/examples/annotated-examples.md: Structural patterns from production-grade skills.references/examples/anti-patterns.md: Catalog of 24 content anti-patterns to avoid.references/examples/anti-patterns-authoring.md: Process and authoring pitfalls (AP-25 through AP-34).references/iteration/feedback-signals.md: Interpreting trigger signals and user feedback.references/iteration/troubleshooting.md: Diagnosing registration, syntax, and execution issues.references/distribution/publishing.md: Packaging and publishing skills to registries and repositories.
Final Shipping Verification Checklist
- Frontmatter strictly contains valid
agentskills.iofields (name,description,license,compatibility,metadata,allowed-tools) namematches directory name exactly (build-skill)- Description states WHAT the skill does and WHEN to use it (<1024 characters, no
<or>) SKILL.mdline count is under 500 lines- Research prerequisite (the
researchplugin) is documented with its install command - All bundled scripts in
scripts/are written in Node.js (.mjs) or Python (.py) - Bundled scripts execute cleanly (
node scripts/skill-dl.mjs --where) - Every file in
references/is explicitly routed in the reference routing section - Full repository validation passes:
python3 scripts/validate-skills.py
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- agent0ai/agent-zero★ 19ksame name
- LukeRenton/explore-claude-code★ 329same name
- roerohan/skills★ 29same name
- shawn-dumas/claude-code-skills★ 1same name
- AgentJDrew/agent-team-factory★ 0same name
- kjanat/skills★ 0same name
- lowkey-divine/sovereign-skills★ 0same name
- Revxrsal/aranjiyyah★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-agentic-cliSkill
- audit-agentic-mcpSkill
- audit-completionSkill
- audit-skill-by-derailmentSkill
- audit-ui-uxSkill
- build-chrome-extensionSkill
- build-cloudflare-access-ssoSkill
- build-cloudflare-email-sendingSkill
- build-kernel-ts-sdkSkill
- build-licenseseat-swiftSkill
- build-mcp-use-serverSkill
- build-raycast-script-commandSkill
- ci-cd-optimizeSkill
- convert-to-natural-writingSkill
- convert-url-to-nextjsSkill
- init-agent-configSkill
- init-makefilesSkill
- mobilerun-controlSkill
- optimize-nextjs-fluiditySkill
- publish-npm-packageSkill
- run-astro-auditSkill
- run-railwaySkill
- run-repo-cleanupSkill
- run-ts-cleanupSkill
- test-by-maestroSkill
- test-by-mcpc-cliSkill
- update-agent-configSkill
- use-chatgpt-by-applescriptSkill
- use-cloudflare-tunnelSkill
- use-linear-cliSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

