/nexus:skill-writerfrom nexus
Creates, refactors, and debugs SKILL.md files with production-ready structure and routing logic. Activates on skill-related requests, trigger-miss complaints, or repeated workflows that should be skillized.
Ships in nexus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Produce a complete, production-ready skill every session — not a draft, not a skeleton.
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: skill-name # must exactly match the containing directory
description: > # THE TRIGGER MECHANISM — be explicit and dense
Use this skill when ... [detailed trigger conditions].
Trigger phrases include: "...", "...", "...".
Also trigger when ... [edge cases].
---
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.
Before writing anything, classify the request:
New skill or extension?
available_skills in the system prompt.| Option | Best when | Risk |
|---|---|---|
| Extend existing | Same domain, similar triggers | May bloat the existing skill |
| Create new | Distinct triggers, different output contract | Maintenance overhead |
| Merge two skills | Overlapping triggers, narrow scopes | Wider scope per skill |
Never decide for the user — present options and wait for direction.
Category:
| Category | Description |
|---|---|
| engineering | Code generation, architecture, implementation |
| debugging | Failure investigation, root cause, regression |
| devops | CI/CD, infra, deployments |
| code-review | PR review, diff analysis, quality checks |
| testing | Test writing, coverage, test strategy |
| reliability | SLOs, on-call, incident management |
| observability | Logs, metrics, traces, dashboards |
| refactoring | Code transformation, technical debt |
| performance | Profiling, 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).
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.
| # | Question | Why |
|---|---|---|
| 1 | What should this skill enable Claude to do? | Defines scope |
| 2 | What phrases/contexts should trigger it? | Shapes description |
| 3 | What is the expected output format? | Shapes Output Contract |
| 4 | Are there constraints? (tools, env, audience) | Shapes Compatibility |
| 5 | Example input + ideal output? | Becomes a production example |
| 6 | What does failure look like? What must never happen? | Shapes Failure Modes |
| 7 | What context must be gathered before acting? | Shapes Context Acquisition |
| 8 | What are the hallucination risks or dangerous assumptions? | Shapes Failure Modes |
Never assume answers to Q6, Q7, or Q8.
Use this exact section order. Adapt depth to domain; do not drop sections.
Required sections (in order):
name + description (specific task triggers and exclusions)Create or update all supporting files for every skill. These are not optional.
10 things NOT to do, each with: name, what it looks like, why it fails, what to do instead.
| # | Check | Pass Condition |
|---|---|---|
| 1 | Description trigger density | 5+ distinct, concrete trigger phrases |
| 2 | Step actionability | Every step has a specific verb — read, search, compare, extract, run, list, flag |
| 3 | Output contract defined | Output Contract table exists with all required fields |
| 4 | Anti-patterns present | 3+ "Never do X → do Y instead" rules |
| 5 | Production example present | 1+ real production-scale example (not toy) |
| 6 | Engineering heuristics are decision rules | Each heuristic is IF/THEN/BECAUSE |
| 7 | Failure modes documented | 3+ failure modes with mitigations |
| 8 | Validation criteria defined | Concrete pass/fail criteria for testing the skill |
State which items passed and which require user input to complete.
Deliver finished skill as ready-to-write files. For each file specify:
After delivery, state:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aayushostwal/nexus --plugin nexus11 skills in this plugin
/debuggingUse when something is failing, regressing, or behaving unexpectedly and the goal is root-cause analysis, narrowest fix, and verification. Covers CI/CD, tests, runtime, deployment, and tooling failures. Output should be RCA + fix + prevention, not design options.
/observabilityUse for correlated API failures, cascading errors, and distributed-system incident tracing. Trigger on multi-service error spikes, dependency-chain analysis, circuit-breaker events, or requests to identify origin service and blast radius from logs/metrics across components.
/performanceUse for memory, CPU, latency, and query-performance investigations, plus dependency-upgrade blast-radius analysis. Trigger on leak/OOM/profiling/regression reports or "what breaks if I upgrade X." Route to memory-leak or dependency-blast-radius workflow based on intent.
/prdUse to write, rewrite, or iterate on a PRD, design doc, technical proposal, or architecture write-up that other people will read and decide on. Trigger on "write a PRD", "create a design doc", "prepare a plan/proposal for X", "write this up for the team/my manager", "make the doc simpler", "add a diagram/LLD", "update the design doc", "send this proposal to <person>", or when a Slack/Jira ask must become a reviewable proposal. Also trigger when the user says a doc is hard to read, too long, too many tables, or gives them no confidence in the implementation. Produces a short, plain-language doc built around one live worked example, with diagrams, verified claims, and a summarized Decisions log. When in doubt, use this skill.
/reliabilityUse for production incidents, outages, and service degradations, plus release-readiness gate checks. Trigger on 500 spikes, SLA breaches, latency/error surges, on-call alerts, rollback decisions, and RCA/post-mortem requests. Prioritize stabilization, timeline reconstruction, and evidence-led actions.
/shortsUse to convert any input into a ready-to-record YouTube Shorts script. Trigger on requests for 30-second scripts, hooks, reels/short-form video copy, or pasted topics/articles/bullets/URLs needing concise high-retention narration with CTA.
Other plugins' skills for the same job