agentsclimarketplace

Skill writer

Skill aayushostwal/nexus/skills/skill-writer

Use for creating, refactoring, or debugging skills and improving SKILL.md trigger quality. Trigger on "write/create/update/improve skill", trigger-miss complaints, pasted-skill feedback, or repeated workflows that should be skillized. Output production-ready skill structure and routing logic. When in doubt, use this skill.From its SKILL.md

Install
npx -y skills add aayushostwal/nexus --skill skill-writer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

8.3 KB, as published. Nobody here has run it

Nexus Skill Writer

Produce a complete, production-ready skill every session — not a draft, not a skeleton.


Required Directory Layout

skill-name/
├── SKILL.md                        ← entry point, <500 lines
├── checklists/
│   └── execution-checklist.md
├── anti-patterns/
│   └── common-mistakes.md
└── validation/
    └── output-validation.md

Every SKILL.md must have YAML frontmatter:

---
name: nexus-{skill-name}          # kebab-case, unique, descriptive
description: >                    # THE TRIGGER MECHANISM — be explicit and dense
  Use this skill when ... [detailed trigger conditions].
  Trigger phrases include: "...", "...", "...".
  Also trigger when ... [edge cases].
  When in doubt, use this skill.
---

The description is the single most important field. Claude selects skills based only on name + description. A vague description means the skill never triggers. Under-triggering is the #1 skill failure mode.


Phase 0 — Skill Classification

Before writing anything, classify the request:

New skill or extension?

  1. Scan available_skills in the system prompt.
  2. If an existing skill covers 60%+ of the use case, offer to extend instead.
  3. Present options as a table:
OptionBest whenRisk
Extend existingSame domain, similar triggersMay bloat the existing skill
Create newDistinct triggers, different output contractMaintenance overhead
Merge two skillsOverlapping triggers, narrow scopesWider scope per skill

Never decide for the user — present options and wait for direction.

Category:

CategoryDescription
engineeringCode generation, architecture, implementation
debuggingFailure investigation, root cause, regression
devopsCI/CD, infra, deployments
code-reviewPR review, diff analysis, quality checks
testingTest writing, coverage, test strategy
reliabilitySLOs, on-call, incident management
observabilityLogs, metrics, traces, dashboards
refactoringCode transformation, technical debt
performanceProfiling, optimization, benchmarking

Primary or sub-skill? Primary = own directory + full SKILL.md. Sub-skill = .md inside an existing skill directory (only for very narrow, truly subordinate scope).


Phase 1 — Requirements Gathering (MANDATORY)

Ask conversationally — max 2 questions per turn. Extract answers from context first; only ask what you cannot infer. Do not proceed to Phase 2 without answers to Q1, Q2, Q3.

#QuestionWhy
1What should this skill enable Claude to do?Defines scope
2What phrases/contexts should trigger it?Shapes description
3What is the expected output format?Shapes Output Contract
4Are there constraints? (tools, env, audience)Shapes Compatibility
5Example input + ideal output?Becomes a production example
6What does failure look like? What must never happen?Shapes Failure Modes
7What context must be gathered before acting?Shapes Context Acquisition
8What are the hallucination risks or dangerous assumptions?Shapes Failure Modes

Never assume answers to Q6, Q7, or Q8.


Phase 2 — SKILL.md Writing

Use this exact section order. Adapt depth to domain; do not drop sections.

Required sections (in order):

  1. YAML frontmatter — name + description (5+ trigger phrases, ends with "When in doubt, use this skill.")
  2. One-liner — what this skill does and why it exists.
  3. Metadata table — Category, Required Tools, Required Context, Expected Inputs, Expected Outputs.
  4. Skill Philosophy — Problem, Why it matters, 2-3 Engineering principles.
  5. Context Acquisition — Named signals with collection methods + explicit "stop and ask" rule for insufficient context.
  6. Execution Workflow — Numbered steps, each with: What (specific verb), How (tool/command), Output, Failure signal.
  7. Engineering Heuristics — IF/THEN/BECAUSE rules with thresholds. No descriptions — only decision rules.
  8. Failure Modes — Table: Failure Mode | Trigger Condition | Mitigation (3+ rows).
  9. Validation — Checkbox list of pass/fail criteria including a Confidence rating.
  10. Output Contract — Table of every output field: name, required/optional, description. Fields: findings, evidence, confidence, risks, recommendations, next_actions.
  11. Anti-Patterns — "Never X → Instead Y" rules (3+ rules).
  12. Examples — At least 1 production-scale input → output reference.

Phase 3 — Supporting Directory Creation

Create or update all supporting files for every skill. These are not optional.

checklists/execution-checklist.md

  • Pre-flight: what to verify before starting
  • Execution: ordered step-by-step checklist
  • Output review: what to check before delivering
  • Post-delivery: follow-up actions for the user

anti-patterns/common-mistakes.md

10 things NOT to do, each with: name, what it looks like, why it fails, what to do instead.

validation/output-validation.md

  • Trigger test: does the skill activate on the right inputs?
  • Completeness test: did it gather enough context?
  • Output test: does output match the Output Contract?
  • Engineering intelligence test: does output encode real expertise?
  • Confidence test: is the confidence rating justified by evidence?

Phase 4 — Quality Validation (Run Before Delivering)

#CheckPass Condition
1Description trigger density5+ distinct, concrete trigger phrases
2Step actionabilityEvery step has a specific verb — read, search, compare, extract, run, list, flag
3Output contract definedOutput Contract table exists with all required fields
4Anti-patterns present3+ "Never do X → do Y instead" rules
5Production example present1+ real production-scale example (not toy)
6Engineering heuristics are decision rulesEach heuristic is IF/THEN/BECAUSE
7Failure modes documented3+ failure modes with mitigations
8Validation criteria definedConcrete pass/fail criteria for testing the skill

State which items passed and which require user input to complete.


Output Format

Deliver finished skill as ready-to-write files. For each file specify:

  1. Absolute path where it should be written
  2. Full content

After delivery, state:

  • Which of the 8 quality checks passed
  • Which (if any) require additional user input
  • The trigger phrases that will activate this skill

Anti-Patterns (for this skill)

  • Never skip Phase 0 — building the wrong skill type wastes everyone's time.
  • Never skip Phase 1 — skills built on assumed requirements miss their triggers.
  • Never write a vague step — "handle appropriately" is not a step. Specify the exact action.
  • Never write a single-sentence description — it will not trigger reliably.
  • Never omit the Output Contract — a skill without one produces inconsistent output every run.
  • Never use toy examples — examples must be production-scale.
  • Never write heuristics as descriptions — "consider complexity" is not a heuristic; "if cyclomatic complexity > 15, flag for mandatory refactor" is.

Core Principles

  • Engineering system, not prompt wrapper: A skill encodes real expertise. "Tell Claude to do X nicely" is a prompt, not a skill.
  • Atomic, not monolithic: One skill, one job. Two distinct workflows = two skills.
  • Context before action: A skill that acts without sufficient context will hallucinate.
  • Output contract is law: Every skill run must produce the same structure.
  • Triggering over completeness: A skill that triggers reliably at 80% beats a perfect skill that never triggers.
  • Failure modes are first-class: Document what goes wrong. Happy-path-only skills fail silently in production.

Keep looking

Skills are one crate of 626,474. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.