skills/mine.write-skill/SKILL.md
Use when the user says: "create a skill", "write a skill", "new skill", or wants to author a new SKILL.md. Guided skill creation following Claudefiles conventions.
npx skillsauth add NodeJSmith/Claudefiles mine.write-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guided creation of a new skill for this repo. Gathers requirements, drafts the skill, validates against a quality checklist, and writes it to the correct location.
$ARGUMENTS — optional skill name or description. If provided, use as starting context.
Ask these one at a time. Skip any already answered by $ARGUMENTS.
AskUserQuestion:
question: "What task should this skill handle? Describe the problem it solves."
header: "Purpose"
AskUserQuestion:
question: "What trigger phrases should invoke it? (e.g., when the user says 'audit the codebase')"
header: "Triggers"
AskUserQuestion:
question: "What does the output look like? (e.g., a file, a report, a question, an action)"
header: "Output"
AskUserQuestion:
question: "Should this be user-invocable (slash command) or a reference skill (loaded by other skills only)?"
header: "Invocability"
multiSelect: false
options:
- label: "User-invocable"
description: "Can be called directly via /mine.<name>"
- label: "Reference only"
description: "Loaded by other skills, not directly callable"
Then explore the codebase for related skills, patterns, or existing work that should inform the new skill's design.
Derive from the purpose: mine.<kebab-case-name>. Max 30 chars total. Check that skills/mine.<name>/ doesn't already exist.
Write to skills/mine.<name>/SKILL.md using the template in REFERENCE.md. See REFERENCE.md for conventions, AskUserQuestion constraints (header ≤12 chars, max 4 options), and size guidance.
Validate the drafted skill against both checklists in REFERENCE.md. Quick list:
Structural checks — see REFERENCE.md ("Quality Checklist — Structural Criteria") for what each one means:
Instruction quality checks (see references/common/instruction-quality.md for full criteria):
9. Diagnostic questions over bare thresholds where applicable
10. Named failure modes — each behavioral rule names the trap it guards against
11. AI-specific bias acknowledgment where the skill addresses a known agent tendency
12. A generative value — one sentence that produces correct behavior even if the rest were deleted
13. "Why" before "what" on major rules
Apply 9-13 proportionally: simple factual rules need only the rule itself; behavioral and principle-level guidance should hit most of these.
Report results. Fix any failures before presenting to the user.
After the user approves the skill:
rules/common/capabilities-*.md file using the trigger phrases from Phase 1 (capabilities-core.md for mine., capabilities-impeccable.md for i-, capabilities-memory.md for cm-*)README.md (alphabetical order) and update the skill count in the section headeruv run install.py to create the symlinkdevelopment
Use when the user says: "document how X works", "write up how this works", "durable explanation", "explain this for the docs", "document this subsystem". Writes a durable, architectural-altitude explanation that survives code churn.
development
Use when picking up a fresh session after /clear, a stop, or an unanswered AskUserQuestion. Reconstructs the prior session's intent from its transcript tail and surfaces any unresolved decision; user-invoked only — for a hand-written end-of-day handoff use /mine-good-morning instead.
development
Use when the user says: "what did we discuss", "continue where we left off", "remember when", "as I mentioned", "you suggested", "we decided", "search my conversations", "find the conversation where", "what did we work on", or uses implicit signals like past-tense references, possessives without context, or assumptive questions. Direct search over past Claude Code sessions via cass.
tools
Use when the user says: "what context do I have", "relevant history for this task", "what have we done related to this". Also usable proactively when starting work that likely has prior history. Assembles a structured context brief from past session history via cass, scoped to the current task and workspace.