/neural:spec [task description] [--no-html]from Neural Claude Code
Plans non-trivial changes before implementation with repository research, locked interfaces, security invariants, dependency-aware subtasks, and executable acceptance criteria. Writes plan.md and stops without coding.
Ships in Neural Claude Code. 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.
None: SKILL.md is the whole skill.
Turn intent and repository evidence into an approvable implementation contract. Never write implementation code.
This skill is the Claude Code port of the Neural Codex spec gate. Same contract, slash invocation.
Skip ceremony for an obvious change under roughly 25 lines with no new interface, ambiguity, or risk.
Otherwise:
plans/**/unknowns-map.md and read it first.Treat resolved discovery decisions as inputs. Preserve unresolved blockers instead of guessing around them.
If the user cannot yet say what "good" looks like, route to /discover instead of guessing a plan.
Declare every introduced or changed interface before implementation:
name(parameters) -> result [new|adapt|reuse] -> path
Interfaces include functions, types, commands, files, routes, events, schemas, and durable artifact shapes. A new interface that duplicates an existing one is a planning defect.
For every relevant security or trust boundary, add an @invariant with its CWE and concrete mitigation. Cover path handling, secret exposure, command execution, authorization, destructive side effects, and validation integrity when applicable.
Keep every invariant testable at its boundary. Do not treat a general security promise as a replacement for a concrete mitigation and verification command.
Give every subtask a stable ID and a [tier:] model-routing tag:
cheap: mechanical edits, boilerplate, and narrow testsmid: normal implementation requiring local judgmenthard: architecture, security, ambiguity, or tricky debuggingbatch: long-running multi-step or operational workAdd [needs: S1, S2] only for real dependencies. No dependency tag means the work may execute independently. Validate that every referenced ID exists and that the graph is acyclic.
A subtask that produces or consumes a signature should name it inline: [produces: listAccounts] / [consumes: AccountRow]. [needs:] gives order. [produces:]/[consumes:] give the contract a context-free executor needs.
Every subtask must include:
when: the triggering state or behaviorrequires: preconditions and boundariesensures: observable postconditionsverify: a safe command, test path, or deterministic assertionmust_include or must_not_include when text contracts matterState what each verification oracle proves and what it does not prove. A green unit test cannot substitute for behavioral or independent review when those gates are required.
These are acceptance failures, never write them:
must_include, or test pathTBD / TODO signatures, or a verify: that names no real command or fileResolve incompatible requirements, unreachable states, naming collisions, and approval ambiguity. Validate the dependency graph. Record deliberate tradeoffs and residual questions rather than hiding them in implementation notes.
plan.md and stopNormalize the task slug to lowercase letters, digits, and hyphens. Resolve the repository root and its plans/ directory before creating anything. Resolve the candidate artifact path and require os.path.commonpath([candidate, plans_root]) == plans_root. Reject ../../outside/plan.md, plans/../outside/plan.md, and /tmp/external-plan.md.
Write plans/<YYYY-MM-DD-task-slug>/plan.md with this frontmatter:
---
project: <repo>
created: YYYY-MM-DD
status: draft
modified: []
commits: []
agents: []
related:
back: []
forward: []
---
Put a consumed unknowns-map.md path in related.back.
Include these sections:
plan.md is the source of truth. Do not generate HTML; accept --no-html as a compatibility no-op. /html remains available on demand for a PlanViewer. Present the plan and STOP for approval. A later explicit /craft invocation that clearly refers to this reviewed draft counts as approval. Otherwise require an explicit approval before changing its status.
/spec implement the approved unknowns map for account export/spec plan the hook migration --no-html/spec turn this issue into a dependency-aware build contractThe draft plan has locked signatures, CWE invariants, executable acceptance, a valid dependency graph, explicit non-goals, and has been presented without implementation edits.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/craftBuild a non-trivial change from an approved plan.md. Use after /spec to capture a baseline, execute dependency-aware subtasks, record evidence and deviations, run independent /vet and /exercise gates, measure the delta, and stop for human ship approval without committing or publishing automatically. Don't use for trivial changes (<25 LOC); edit directly./discoverSurface hidden requirements and architectural unknowns before planning non-trivial work. Use when a request is ambiguous, spans unfamiliar code, has meaningful tradeoffs, or needs a grounded blindspot pass before /spec. Produces an unknowns-map.md artifact and stops without implementing. Don't use when you already know exactly what you want (go straight to /spec) or for trivial changes./exerciseVerify a completed change through real user behavior after automated tests. Use as /craft's independent behavioral gate for web, desktop, CLI, installer, documentation, or static-site workflows. Drives concrete scenarios, captures evidence for every assertion, and returns PASS or FAIL. Don't use for static code review (that is /vet)./git-saveStage and commit code changes with Conventional Commits format. Use when: code changes are complete and ready to commit, after review approval, user says 'save', 'commit', 'ship it'. Don't use when: tests are failing or work is still in progress./htmlRender a Claude Code plan (PlanViewer), a task result, or a recap of a branch/commit/PR diff (ResultViewer) as a single-file, self-contained HTML artifact with anti-fatigue UX. Use when the user asks for an HTML artifact, a plan/result/recap view, or to "show this as HTML". Not for plain markdown/text or one-liners./initScan project and generate a customized CLAUDE.md. Detects stack, test commands, and conventions. Use when onboarding to a new project or user says 'init', 'setup claude', 'generate CLAUDE.md'.npx claudepluginhub brolag/neural-claude-code --plugin neuralOther plugins' skills for the same job