Files
dotfiles/modules/agents/claude-code/skills/to-spec/SKILL.md
alexion e684ac481e refactor: mirror module namespaces to their directories (task 0031)
Adopt the convention that a Module's option path mirrors its directory
under modules/, with an index file naming the directory's own segment.

- Group agent Modules under modules.agents.*: claude-code (whole
  directory), pi (flattened to a file), skills (renamed from
  agent-skills), and gitea-axi under an agents/tools/ subgroup. The
  agents/ and tools/ folders are pure namespace prefixes with no
  aggregator enable.
- Nest hypridle and hyprlock under modules.desktop.hyprland.*, with
  hyprland.nix as the index, and update the desktop aggregator.
- Remove the obsolete example Module.
- Record the convention in CONTEXT.md and ADR 0004, and update the
  neogaia host, the two live CLAUDE.md gotchas, and the skills Module's
  intentional Enable-convention exception comment.
2026-07-23 19:21:12 -04:00

1.6 KiB

name, description, disable-model-invocation
name description disable-model-invocation
to-spec Turn the current conversation into a spec and write it to .claude/spec/ — no interview, just synthesis of what you've already discussed. true

This skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user — just synthesize what you already know.

If the conversation doesn't actually contain a feature or problem to synthesize a spec from, say so and ask what it's for instead of fabricating one.

Process

  1. Explore the repo until you can name the existing modules, flows, and seams the feature will touch, if you haven't already. Use the project's domain glossary vocabulary throughout the spec, and respect any ADRs in the area you're touching.

  2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.

Check with the user that these seams match their expectations.

  1. Derive a short kebab-case feature-slug from the feature's name (e.g. checkout-flow). Tell the user the path you're about to write to (.claude/spec/<feature-slug>.md). If a file already exists there, summarize what would change and confirm with the user before overwriting it — never overwrite silently.

  2. Write the spec using the format in SPEC-FORMAT.md to .claude/spec/<feature-slug>.md, creating the .claude/spec/ directory if it doesn't exist yet.