Specs
A spec turns an idea into three Markdown documents that agents follow: requirements, a design and a task list. You approve each document before the next one is written, then let agents implement the tasks one by one or in parallel waves.
When to use a spec#
Use a spec when a change is too big for a single chat message: a new feature, a bug whose cause you have not found yet, or work you want reviewed before any code is written. A spec keeps the plan in your repository, next to the code, so you and your team can read it, edit it and commit it.
For a small change, plain Agent chat is faster.
Where specs live#
Each spec is a folder in your repository:
.izcode/specs/<name>/
requirements.md (or bugfix.md for a bug fix)
design.md
tasks.md
.config.json kind, approvals, links to tasks and workflowsThe Markdown files are the source of truth. Edit them in the editor, let an agent edit them, or both. IZ Code also reads, runs and edits specs in .kiro/specs/<name>/, so a repository that already uses that layout works as it is. IZ Code keeps its own data for those specs under .izcode/specs/, not in .kiro/.
Kinds of spec#
Open Specs in the Activity Bar and choose New Spec. The dialog asks for the Kind of spec:
| Kind | Documents, in order | Use it when |
|---|---|---|
| Feature, Requirements-First | requirements.md → design.md → tasks.md | The behaviour is known and the architecture is open. |
| Feature, Design-First | design.md → requirements.md → tasks.md | You have technical constraints, an existing design or strict non-functional needs. Pick High level or Low level as the design depth. |
| Bug fix | bugfix.md → design.md → tasks.md | You want the agent to analyze the bug, find the root cause and fix it without regressions. |
| Quick Spec | All three at once | A few questions, then all three documents with no approval gates. Review them whenever you like. |
The dialog also lets you choose the Agent that writes the documents and later implements the tasks, turn on Correctness properties, turn on Create a workflow (runs the phases as a workflow with approval gates), and put the spec in a Group.
You can also start a spec from the chat: /spec <idea>, /spec-quick, /spec-bugfix. Without text after the command, the New Spec dialog opens. To point an agent at an existing spec, type @spec:<name> in the chat box.
Create and approve a spec#
flowchart TD
idea([Your idea]) --> R[requirements.md]
R -- Approve --> D[design.md]
D -- Approve --> T[tasks.md]
T -- Approve --> run[["Start task / Run all tasks"]]
run --> code([Code changes to review])
R -. Request changes .-> R
D -. Request changes .-> D
T -. Request changes .-> TDesign-First swaps the first two documents. A bug fix starts with bugfix.md instead of requirements.md. Quick Spec writes all three at once, without the approval steps.
- Describe the change In New Spec, give it a Title and fill in What should it do? For a bug fix, fill in What is wrong?, Steps to reproduce, What should happen instead and What must not change. Choose Create and start.
- Review the first document The agent writes the first document and stops. The Spec view shows the phases (Requirements, Design, Task list) with a state for each: Empty, Draft, Approved or Edited.
- Approve or request changes Choose Approve to move on, or Request changes… and write what should change. The agent revises the document with your note. Decisions waiting for you also appear as a card in the corner of the window.
- Continue through the phases After each approval the agent writes the next document. If you edit a document after approving it, its state becomes Edited and you approve it again.
- Run the tasks When the task list is approved, choose Start task on one task, or Run all tasks. Use Run all tasks, including optional to include optional tasks.
What goes in each document#
requirements.md#
Each requirement has a user story and numbered acceptance criteria written in EARS style:
### Requirement 1: Export orders
**User Story:** As a store owner, I want to export orders as CSV, so that I can open them in a spreadsheet.
#### Acceptance Criteria
1. WHEN the user clicks Export THE SYSTEM SHALL download a CSV file of the visible orders.
2. IF there are no orders THEN THE SYSTEM SHALL show an empty-state message.Criteria are numbered 1.1, 1.2 and so on. Criteria that do not follow the EARS form are flagged Not in EARS form. Each requirement shows which tasks cover it, and warns when No task covers this requirement.
A bug fix uses bugfix.md instead, with three sections: Current behavior (defect), Expected behavior and Unchanged behavior (regression prevention).
design.md#
The design is free-form ## sections. With Correctness properties on, it also has a ## Correctness Properties section: each property is a rule that must hold for any input, and names the requirements it validates.
## Correctness Properties
### Property 1: Every order appears once
*For any* list of orders, the exported CSV contains each order exactly once.
**Validates: Requirements 1.1**Choose Run property tests to have the agent check the properties with property-based tests. Each property shows whether it passes or fails.
tasks.md#
Tasks are a Markdown checklist. The checkbox shows the state:
| Mark | Meaning |
|---|---|
[ ] | Not started |
[~] | Queued in a run |
[-] | In progress |
[x] | Done |
[ ]* | Optional task. Run all tasks skips it. |
Lines under a task link it to requirements and set its order:
- [ ] 1. Add the CSV writer
- _Requirements: 1.1_
- [ ] 2. Add the Export button
- _Requirements: 1.1, 1.2_
- _Depends: 1_
- [ ]* 3. Add a benchmark for large exports_Depends:_ lists tasks that must finish first. Run all tasks groups tasks into waves from these dependencies and runs the tasks of one wave in parallel. If no task in the file has _Depends:_, tasks run one after another.
Running tasks#
Each task runs in its own agent session. The checkbox follows the run: [~], then [-], then [x]. If an agent cannot finish a task, the task is marked failed, never done. A failed task stops the later waves and asks you to Retry, Skip or Stop. Stopping a run puts the running tasks back to [ ].
Agents still ask for permission before they edit files or run commands, depending on the chat mode. See Permissions and tools.
With Run tasks in their own worktree on, Run all tasks works in a separate Git worktree on the branch izcode/flow/spec-<name>, so parallel agents never touch your working files. Merge the branch when you are happy with it.
Spec actions#
Right-click a spec in the Specs view, or use the More spec actions menu in the Spec view:
| Action | What it does |
|---|---|
| Analyze Requirements | The agent asks you questions about gaps and ambiguities in the requirements. Answer, pick an option, or dismiss a question as intended. |
| Sync Files | Brings the task list in line with the code as it is now. |
| Review | Opens the comments panel. Select text, choose Comment, then send the comments to the agent so it revises the document. |
| Harden spec (security) | Adds security acceptance criteria to requirements.md, matched against a fixed list of common weakness types. It only adds lines and never changes existing requirements. |
| Run property tests | Checks the correctness properties in the design. |
| Create workflow | Builds a workflow that runs each phase with an approval gate and then implements the tasks. See Workflows. |
| Share… | Opens the spec in a browser for others to read, comment on or edit live. Each link has its own rights per section (Read, Comment, Edit) and can require Sign-in with an IZ Code account. |
| Copy @spec mention, Duplicate as…, Rename, Delete | Delete moves the spec to .izcode/specs/.trash/, where you can restore it. |
Spec groups#
Use New Group in the Specs view header to organize specs into a tree. Use / to nest groups, for example Payments/Refunds. Right-click a spec for Move to Group… or Remove from Group, or drag it onto a group. Groups are stored as metadata in .izcode/specs/, so the spec folders do not move and your team gets the same tree through Git. Whether a group is open or collapsed is your own setting.
Settings#
Open Settings → Specs.
| Setting | Values | Default |
|---|---|---|
izcode.specs.enabled | true, false. Shows the Specs view, Spec view and CodeLens. | true |
izcode.specs.enableChatTools (Let agents use Specs) | true, false. Off: agents do not get the spec tools. | true |
izcode.specs.defaultWorkflow (Default workflow for a new spec) | ask, requirements-first, design-first, quick | ask |
izcode.specs.maxParallelTasks (Tasks run in parallel) | 1–8 | 3 |
izcode.specs.maxRefineRounds (Refine rounds per phase) | 1–20 | 5 |
izcode.specs.isolateRuns (Run tasks in their own worktree) | true, false | false |
Tips and limits#
Working on specs with a team (shared editing, reviews and approval quorum) is covered in Team specs.