Build skill

From yigitkonur/skills-by-yigitkonur · View interactive version

Build skill is an AI agent skill from the GitHub repository yigitkonur/skills-by-yigitkonur. 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.

How to use this skill

Skill file

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):

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 the research plugin 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:

Do NOT use this skill for:

Core Non-Negotiable Rules

  1. Specification compliance first: Frontmatter strictly adheres to agentskills.io/specification (name, description, license, compatibility, metadata, allowed-tools). No arbitrary top-level fields.
  2. Context grounding before drafting: Run /research:ask or /research:deep for all non-trivial domains. Refuse to run without verified research and refuse to hallucinate APIs or edge cases.
  3. Progressive disclosure architecture: Keep SKILL.md under 500 lines (<5,000 tokens). Offload bulky documentation to references/ (1-level deep) and deterministic operations to scripts/.
  4. Deterministic scripting: Write bundled scripts in portable JavaScript (.mjs ES Modules) or Python (.py). Avoid fragile shell scripts (.sh).
  5. Reproduce, test, and verify: Always test scripts and verify execution infrastructure before declaring done.
  6. 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:

(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.

  1. Registry Discovery: Run node scripts/skill-dl.mjs search across 3–10 orthogonal keywords to find top candidate skills with consensus scoring.
  2. Subagent Consortium: Deploy up to 3–5 parallel sub-agents to summarize each candidate skill across distinct lenses:
  1. 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.

  1. 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.
  2. 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.
  3. Iterative Revisitation: Revisit candidate skills repeatedly as needed to refine edge cases, while preserving strict progressive disclosure boundaries:
  1. 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.

  1. Mental Model & Research Alignment: Ingest the chat context and run /research:ask on the fly to ground any ambiguous domain tools or commands used during the session.
  2. 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:

  1. Transfer Planning: Plan which confessed steps transfer into:
  1. 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.

  1. Exhaustive Extraction via the research plugin: Query official docs, source code, migration guides, and GitHub issue trackers.
  2. Deep Reference Blocks: Build detailed, reusable reference files under references/ containing hundreds of verified references organized into atomic blocks.
  3. 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

  1. Verify Prerequisites: Confirm the research plugin (or an equivalent web research tool) is available and node scripts/skill-dl.mjs --where succeeds.
  2. Select Mode: Choose Discovery, Creation, Conversation-driven, or Documentation mode.
  3. Execute Research: Collect evidence via /research:deep (or /research:ask) and skill-dl.mjs search. Build the comparison table.
  4. Draft SKILL.md:
  1. Develop & Test Scripts:
  1. Spec & Quality Validation:

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

Patterns & Architecture

Research & Sourcing

Quality, Checklists & Iteration

Final Shipping Verification Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.