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 Companion Prerequisite: run-research
High-quality skills cannot be built in a vacuum or from stale model memory. Skill authoring requires verified ground truth:
- Prerequisite skill:
skills/run-research - Install command:
npx -y skills add yigitkonur/skills-by-yigitkonur/skills/run-research -y
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, invoke
run-researchfirst to gather authoritative documentation, verifiable quotes, and real code patterns. Ifrun-researchis not available, install it before proceeding.
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). - Context grounding before drafting: Invoke
run-researchfor all non-trivial domains. Refuse to hallucinate APIs or edge cases. - Progressive disclosure architecture: Keep
SKILL.mdunder 500 lines (<5,000 tokens). Offload bulky documentation toreferences/and deterministic operations toscripts/. - Deterministic scripting: Write bundled scripts in portable JavaScript (
.mjsES Modules) or Python (.py). Avoid fragile shell scripts (.sh). - Reproduce and test: 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.
- 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 analyze candidates across distinct lenses:
- Lens A: Architecture & Progressive Disclosure (how
references/and line counts are structured). - Lens B: Script & Tool Automation (what logic is scripted in
scripts/vs left in prose). - Lens C: Triggers & Description Calibrations (negative triggers, precision, over-triggering guards).
- Lens A: Architecture & Progressive Disclosure (how
- Corpus Inspection: Download shortlisted skills to
./research-corpusand runnode scripts/skill-dl.mjs inspect <dir>to verify spec compliance. - Comparison Table: Draft a markdown comparison table summarizing Focus, Strengths, Gaps, and Inherit/Avoid decisions before writing code.
Mode 2: Creation & Distillation Mode (Synthesis & Repo-Fit)
Use when drafting a new skill or major refactor from discovered knowledge.
- Synthesize into Target Idioms: Translate raw external patterns into your repository's native conventions and vocabulary.
- Draft the Plan: Establish the directory layout (
SKILL.md,references/,scripts/,assets/) and decision gates before authoring. - Progressive Disclosure Boundary:
SKILL.md: High-level workflow, decision trees, prerequisites, script summaries, reference routing.references/: Deep technical documentation, API tables, and domain-specific checklists.scripts/: Executable 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 turning an extensive in-flight conversation (e.g. 200k–400k tokens) into a reusable skill.
- Mental Model & Research Alignment: Ingest the chat context and invoke
run-researchto ground any ambiguous domain tools or commands used during the session. - Step-by-Step Confession (Up to 5-Level Nested List):
Extract and reconstruct the exact progression of actions, corrections, and discoveries:
- 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: Classify each confessed step:
- Transfer to
SKILL.mdbody (core decision tree and workflow gates). - Transfer to
references/(deep configuration examples and error catalogs). - Script-ify (turn repetitive terminal commands into clean
.mjsor.pyscripts).
- Transfer to
- Script Scaffolding: Implement deterministic steps as executable scripts in
scripts/.
Mode 4: Pure Research / Documentation-Driven Mode
Use when the user wants a skill for a specific repo, library, or framework.
- Exhaustive Extraction via
run-research: Query official docs, source code, migration guides, and GitHub issue trackers. - Structured Reference Modularization: Decompose the domain into structured, atomic reference files under
references/:- Quick-reference decision trees
- Configuration recipes and gotchas
- Concrete "do this, not that" comparative guides
- Actionable Block Formatting: Write instructions in direct, imperative language ("Run...", "Configure...", "Verify...").
Step-by-Step Authoring Workflow
- Verify Prerequisites: Confirm
run-researchis accessible andnode scripts/skill-dl.mjs --wheresucceeds. - Select Mode: Choose Discovery, Creation, Conversation-driven, or Documentation mode.
- Execute Research: Collect evidence via
run-researchandskill-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 run-research |
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 withrun-research, 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 - Companion prerequisite
run-researchis documented and linked - 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