ワンクリックで
ワンクリックで
Execute an approved Plan to implement the feature.
Search, contribute to, or update the project's knowledge base.
Create a new Plan from an approved Specification.
| name | spek-new |
| description | Create a new Specification for a feature. |
This skill drives a multi-step interactive workflow that produces a complete specification file at the spec_path returned by the CLI. The workflow is owned by the {{command}} CLI, not by you — the CLI is the state machine and you are the executor.
On each turn, the CLI returns JSON containing an instruction field. That instruction describes exactly one step (e.g. overview, requirements, acceptance criteria, …). You must:
instruction carefully.goto command named at the bottom of the instruction to advance the state machine.instruction from the new JSON response and repeat.This is a loop. Do not stop after the first step. Keep looping — step → goto → next instruction → step — until a returned instruction tells you the workflow is finished. Only then should you report completion to the user.
The CLI owns the spec file. Never read or write it with the Write, Edit, or Read tools — those bypass Spektacular and the configured spec directory. All spec file access goes through {{command}} spec file:
{{command}} spec file read <name>.md — read a spec file from the spec store.{{command}} spec file write <name>.md --from <source-path> — write a spec file into the spec store from a source file on disk. Stage the body under .spektacular/tmp/ first, then rm the scratch file after a successful write.{{command}} spec file list — list spec files in the spec store.Path arguments are spec file names; spec file resolves them against the configured spec directory itself.
Spec name: $ARGUMENTS
If no spec name was provided, ask the user for one before proceeding.
Start the spec workflow by running:
{{command}} spec new --data '{"name": "<spec_name>"}'
External systems may also supply an identifier with:
{{command}} spec new --data '{"name": "<spec_name>", "id": "<external_id>"}'
The CLI may normalize and prefix the requested name. Always use the returned spec_name and spec_path as the source of truth for follow-up workflows.
This creates the spec file and state file automatically and returns the first instruction. From that point on, follow the loop above: do what the instruction says, then call {{command}} spec goto --data '{"step":"<next_step>"}' to get the next one. Do not invent step names — every instruction tells you the exact goto command to run next.