Use when a change needs planning, proposing or designing — creates the change with every required artifact; seed it from a concluded discussion with --from-discussion.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Speclink Propose?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/momochenisme-speclink-propose)
---
name: speclink-propose
description: "Use when a change needs planning, proposing or designing — creates the change with every required artifact; seed it from a concluded discussion with --from-discussion."
license: MIT
compatibility: Requires speclink CLI.
metadata:
author: speclink
version: "v1.59.0"
generatedBy: "Speclink"
---
**Conversation language**: write to the user in the language they use with you — progress updates, questions, and summaries. This skill is written in English, and its example messages show structure, not language: translate their prose, and keep commands, file paths, code, and fixed tokens (severity labels, status words) as they are. When a step sets the language of its own output — a document, a report, or the way it presents results and asks about them (for example through `locale`) — that step decides for that output. When you edit a document that already exists and no step sets its language, keep the language it is written in. When you run in a forked context that cannot see the conversation, use the language of the request you were given.
Create a complete Speclink change proposal — from requirement to validated artifacts — in a single workflow.
**Input**: The argument after `$speclink-propose` is the requirement description. Examples:
- `$speclink-propose add dark mode`
- `$speclink-propose fix the login page crash`
- `$speclink-propose improve search performance`
If no argument is provided, the workflow extracts requirements from conversation context or asks.
**Prerequisites**: This skill requires the `speclink` CLI. If any `speclink` command fails with "command not found" or similar, report the error and STOP.
**Asking the user**: ask with the **AskUserQuestion tool**; when that tool is not available, ask the same question with the same options as plain text and wait for the user's response.
**This workflow writes artifacts, not code.** Never write application code or implement features during this workflow, never skip the artifact workflow to write code directly, and never reinterpret requirements by ignoring the proposal file. The workflow ends after step 12 and its landscape check — it NEVER invokes `$speclink-apply`; the user decides when implementation starts.
**Write-back: changing an artifact that already exists.** Every fix and update this skill makes to an artifact that already exists is a write-back. Read the artifact's full text with `speclink artifact cat <artifact-id> --change "<name>"` — a delta spec is `specs/<capability>`, which the `deltaSpecs` field of `speclink show <name> --json` lists as `<capability>/spec.md` — make the change on that full text, and write the whole result back with `--stdin --force`:
```bash
speclink new artifact <artifact-id> --change "<name>" --stdin --force <<'ARTIFACT_EOF'
<full updated content>
ARTIFACT_EOF
```
A delta spec is written back with `speclink new artifact spec <capability> --change "<name>" --stdin --force`. The same verbs work when the documents live in a remote store. When `new artifact` refuses a write-back with an error (for example, a task list whose tasks are all checked), stop and tell the user the message — do not edit the file instead.
**Steps**
1. **Determine the requirement source**
Priority order: explicit requirement argument → `--from-doc` document → discussion document → plan file → conversation context.
a. **Argument provided** (e.g., "add dark mode") → use it as the requirement description, skip to deriving the change name below. A `--from-doc <path>` argument explicitly selects the document in (b); a `--from-discussion <slug>` argument explicitly selects the discussion document in (c).
b. **Document supplied directly** (`--from-doc <path>`, speclink enhancement):
- This is a skill-text convention modelled on `--from-discussion`, not an engine flag — it changes no CLI syntax and requires nothing new from the engine.
- When the user passes it, read that document and use it as the requirement source: its title or opening statement gives the requirement description, its content feeds Why, What Changes, Capabilities, and Impact. **No existing discussion is needed** — this is the path for building a proposal straight from a plan the user brought, without going through `$speclink-discuss` first.
- The document is consumed, not grilled: itemized challenge of its claims belongs to `discuss`. Never edit the user's original document.
- **Leave a provenance line.** A proposal built from `--from-doc` carries one line `Source doc: <path>` in its Why or Impact section, naming the document it came from — a `--from-discussion` proposal gets its origin recorded by the link, and this line is the `--from-doc` counterpart. Skill-text convention only; the engine records nothing for you.
- `--from-doc` outranks (c) and (d): when it is present, do not go hunting for a discussion record or a plan file.
- When the user did not pass `--from-doc`, this entry does not apply at all — requirement-source determination runs through (a), (c), (d) and (e) with no extra file reading.
c. **Discussion document available** (speclink enhancement):
- List recorded discussions:
```bash
speclink discuss list --json
```
- If the user passed `--from-discussion <slug>`, or a discussion with `status: concluded` exists that matches the topic, read its full record:
```bash
speclink discuss show <slug> --json
```
- If a candidate discussion exists, use the **AskUserQuestion tool** to confirm using it (Option 1: this discussion, Option 2: another source). When confirmed, extract from the record — the `content` field of the `speclink discuss show <slug> --json` output:
- `## Conclusion` → **Decision** becomes the requirement description; **Rationale** becomes the proposal Why; **Capture to** routing guides which artifacts to emphasize.
- The `## Context` section and the accumulated `### Round N` entries → context for What Changes, Capabilities, and Impact (the rounds' **Ruled out** lines name the alternatives already eliminated — don't re-propose them).
- **Follow the `Source doc:` line.** If the discussion's `## Context` carries a line `Source doc: <path>`, read that original document as well — the record stores only the decision diff, so the underlying plan lives in that file. Synthesize the two with **overlay semantics**: the document is the base layer, the discussion is the winning layer.
- **Decided in the discussion** → the discussion wins. It is newer and it was stress-tested against the codebase.
- **Untouched by the discussion** → the document's content carries over into the proposal as-is.
- **Ruled out in the discussion** → it never reappears in the proposal in any form, even where the document still advocates it.
Worked example: the document proposes SSE plus three-times retry; the discussion ruled out SSE in favour of WebSocket and never touched retry → the proposal is WebSocket plus three-times retry, and SSE appears nowhere in it.
Do not re-grill the document here — itemized challenge of a document's claims is `discuss`'s job; propose only consumes it, synthesizing or adopting verbatim. Never edit the user's original document.
If the Context has no `Source doc:` line, this step is skipped entirely: the from-discussion flow reads only the record, with no extra file reading.
- If no discussion exists or the user declines → fall through to (d).
d. **Plan file available**:
- Check if the conversation context mentions a plan file path (plan mode system messages include the path like `<name>.md`)
- If found, check if the file exists at ``
- If a plan file is found, use the **AskUserQuestion tool** to ask:
- Option 1: Use the plan file
- Option 2: Use conversation context
- If conversation context has no relevant discussion, mention this when presenting the choice
- If the user picks the plan file → read it and extract:
- `plan_title` (H1 heading) → use as requirement description
- `plan_context` (Context section) → use as proposal Why/Motivation content
- `plan_stages` (numbered implementation stages) → use for artifact creation
- `plan_files` (all file paths mentioned) → use for Impact section
- If the user picks conversation context → fall through to (e)
e. **Conversation context** → attempt to extract requirements from conversation history
- If context is insufficient, use the **AskUserQuestion tool** to ask what they want to build
From the resolved description, derive a kebab-case change name (e.g., "add dark mode" → `add-dark-mode`).
Do not keep archive-style date prefixes in active change names. If the source name starts with `YYYY-MM-DD-`, strip that date prefix before running `speclink new change`; archived change names and directories are historical references, not active names to reuse.
Do not continue past this step until you know what the user wants to build. This is the one point where a missing requirement stops the workflow; from step 2 on, prefer reasonable decisions over questions (step 8c).
2. **Classify the change type**
Based on the requirement, classify the change into one of three types:
| Type | When to use |
| -------- | ------------------------------------------------------------------- |
| Feature | New functionality, new capabilities |
| Bug Fix | Fixing existing behavior, resolving errors |
| Refactor | Architecture improvements, performance optimization, UI adjustments |
This determines the proposal template format in step 6.
3. **Scan existing specs for relevance**
Before creating the change, check if any existing specs overlap:
1. Run `speclink list --specs --json` to get the spec identifier list
2. Compare against the user's description to identify related specs (max 5 candidates)
3. For each candidate (max 3), run `speclink show <spec-id> --item-type spec` and read the Purpose section at the top of the output (naming the type keeps a same-named active change from answering instead)
4. Related specs found → display them as an informational summary, then continue to the next step — do not stop or ask for confirmation
5. No related specs found → proceed without pausing
6. Either way, leave a trace of the scan result in the proposal: name the related specs you found (or state that none matched) — the "why no existing spec covers this" sentence required for each New Capability in step 6 builds on this trace
4. **Choose the schema**
Every change is created with a schema. `spec-driven` carries delta specs; `no-spec-change` has no specs artifact and is for changes that alter no behavior the canonical specs promise. Take the first rule that holds:
1. **The user named a schema** in the request or the arguments → use that schema.
2. **The project default is a custom schema** — `speclink workflow-config show --json` returns a `schema` other than `null`, `spec-driven` and `no-spec-change` → use the project default and skip the judgement below.
3. **The requirement comes from a discussion** (`--from-discussion`) → judge by its conclusion. It says the change alters no behavior the canonical specs promise, or it names `no-spec-change` → `no-spec-change`. It adds, modifies or removes behavior → `spec-driven`.
4. **Otherwise** → judge from the requirement and the step 3 scan: will this change alter behavior the canonical specs promise? No → `no-spec-change`; yes → `spec-driven`. A bug fix defaults to `spec-driven`, because a delta usually pins the corrected behavior. Choose `no-spec-change` for a bug fix only when you can say that no canonical spec promise changes.
When rule 3 or 4 cannot decide, do not guess: use the **AskUserQuestion tool** with two options, `spec-driven` and `no-spec-change`, the recommended one first with its reason. Create the change only after the user answers.
5. **Create the change directory**
```bash
speclink new change "<name>" --schema <chosen> --agent codex
```
`<chosen>` is the schema step 4 chose. If a change with that name already exists, suggest continuing the existing change instead of creating a new one.
When the proposal is sourced from a discussion document (path (c) in step 1), pass the link so the change records its origin and the discussion is marked `promoted` (it will be archived together with the change later):
```bash
speclink new change "<name>" --schema <chosen> --agent codex --from-discussion <slug>
```
**Is this the last cut the conclusion planned? Then add `--last`.** A discussion whose conclusion stages several cuts (cut A now, cut B once A lands, …) was concluded with `--hold`, and the engine has no way to tell the final cut from a middle one — you do. Before running the command, read the record's `## Conclusion` **Decision** for the list of planned cuts (刀一/刀二/…, cut A/cut B, or any similar enumeration) and the frontmatter's `promoted_to` for the cuts already spun out — both are in the `content` field of `speclink discuss show <slug> --json` — then decide:
- The change you are creating is the **final cut the conclusion planned** → pass `--last`:
```bash
speclink new change "<name>" --schema <chosen> --agent codex --from-discussion <slug> --last
```
- You are **splitting one planned cut into several changes** at propose time → only the last piece of the split gets `--last`; every earlier piece is spun out without it.
- The conclusion planned **no staged cuts** (a single change) → do not pass it. (The record carries no hold, so the flag would be a harmless no-op — but "not passed" is the rule.)
What `--last` does: the engine drops the record's `hold: true` line in the same write that accumulates `promoted_to`, so when the last spun-out change is archived, the discussion is co-archived automatically — nobody has to remember to close the series. Passing it on a cut that was **not** the last is the one mistake to avoid: the record would be co-archived when the last in-flight change is archived, and spinning out the next cut then needs the record moved back out of the archive.
Run `speclink discuss restore <slug>` to move it back: the record is live again with its content unchanged (the engine's error message names the same verb).
Forgetting it is cheap: the record stays live, the board shows it as "promoted · on hold", and one `speclink discuss archive <slug>` closes the series by hand.
6. **Write the proposal**
**File path rules for the `## Impact` section:**
- All file paths are written relative to the project root (e.g., `src/lib/foo.ts`, `src-tauri/crates/core/src/bar.rs`, `docs/specs/specs/auth/spec.md`).
- Do not use relative fragments (e.g., `parser/mod.rs`, `core/mod.rs`) — preflight rejects them as non-anchored paths.
- Do not wrap shell commands in backticks inside artifact text (e.g., `` `git mv a.rs b.rs` ``) — preflight's backtick extractor will otherwise mis-parse the command as a file reference.
- When referring to a file without naming its concrete path, use descriptive prose (e.g., "Parser 入口檔") rather than a backticked path fragment.
Get instructions:
```bash
speclink instructions proposal --change "<name>" --json
```
Generate the proposal content based on change type (see formats below), then write it via CLI:
```bash
speclink new artifact proposal --change "<name>" --stdin <<'ARTIFACT_EOF'
<proposal content>
ARTIFACT_EOF
```
If the command fails with a validation error, fix the content and retry.
**Schema `no-spec-change`** → skip the change-type formats below. Write the proposal from the `template` and `instruction` that `speclink instructions proposal` returns: Why, What Changes, Non-Goals (optional) and Impact, with no Capabilities section. In Why, say why the change alters no behavior the canonical specs promise, and list the canonical specs you checked in step 3.
Use the following format based on change type:
### Feature
```markdown
## Why
<!-- Why this functionality is needed -->
## What Changes
<!-- What will be different -->
## Non-Goals (optional)
<!-- Scope exclusions and rejected approaches. Required when design.md is skipped. -->
## Capabilities
### New Capabilities
- `<capability-name>`: <brief description>. <one sentence on why no existing spec covers this — name the nearest specs the step-3 scan surfaced and where they fall short>
### Modified Capabilities
(none)
## Impact
- Affected specs: <new or modified capabilities>
- Affected code:
- New: <paths to be created, relative to project root>
- Modified: <paths that already exist>
- Removed: <paths to be deleted>
```
### Bug Fix
```markdown
## Problem
<!-- Current broken behavior -->
## Root Cause
<!-- Why it happens -->
## Proposed Solution
<!-- How to fix -->
## Non-Goals (optional)
<!-- Scope exclusions and rejected approaches. Required when design.md is skipped. -->
## Success Criteria
<!-- Expected behavior after fix, verifiable conditions -->
## Impact
- Affected code:
- Modified: <paths that already exist>
- New: <paths to be created, relative to project root>
- Removed: <paths to be deleted>
```
### Refactor / Enhancement
```markdown
## Summary
<!-- One sentence description -->
## Motivation
<!-- Why this is needed -->
## Proposed Solution
<!-- How to do it -->
## Non-Goals (optional)
<!-- Scope exclusions and rejected approaches. Required when design.md is skipped. -->
## Alternatives Considered (optional)
<!-- Other approaches considered and why not -->
## Impact
- Affected specs: <affected capabilities>
- Affected code:
- Modified: <paths that already exist>
- New: <paths to be created, relative to project root>
- Removed: <paths to be deleted>
```
7. **Get the artifact build order**
```bash
speclink status --change "<name>" --json
```
Parse the JSON to get:
- `applyRequires`: array of artifact IDs needed before implementation
- `artifacts`: list of all artifacts with their status and dependencies
8. **Create remaining artifacts in sequence**
Loop through artifacts in dependency order (skip proposal since it's already done):
a. **For each artifact that is `ready` (dependencies satisfied)**:
- **Check if the artifact is optional**: If the artifact is not in the dependency chain of any `applyRequires` artifact (i.e., removing it would not block reaching apply), it is optional. Get its instructions and read the `instruction` field. If the instruction contains conditional criteria (e.g., "create only if any apply"), evaluate whether any criteria apply to this change based on the proposal content. If none apply, skip the artifact and show: "⊘ Skipped <artifact-id> (not needed for this change)". Then continue to the next artifact.
- Get instructions:
```bash
speclink instructions <artifact-id> --change "<name>" --json
```
- The instructions JSON includes:
- `context`: Project background (constraints for you - do not include in output)
- `rules`: Artifact-specific rules (constraints for you - do not include in output)
- `template`: The structure to use for your output file
- `instruction`: Schema-specific guidance
- `outputPath`: where the engine stores the artifact — for display only; every write goes through `speclink new artifact`
- `dependencies`: Completed artifacts to read for context
- `locale`: The language to write the artifact in (e.g., "Japanese (日本語)"). If present, write the artifact content in this language. Spec files (specs/\*_/_.md) default to English instead — unless `speclink workflow-config show --json` returns a `specLocale` other than `null` (a locale code, or `auto` to follow `locale`), in which case write spec prose in that language. Structural markers (`### Requirement:`, `#### Scenario:`, `- **WHEN**`/`- **THEN**`) and normative keywords (SHALL/MUST) always stay in English.
- Read each completed dependency for context via `speclink artifact cat <artifact-id> --change "<name>"` before you write the new artifact (never open artifact files by path — the documents may live in a remote store)
- Follow the `instruction` field and use `template` as the structure for your output file — fill in its sections
- `context` and `rules` are constraints for you, not content for the file: apply them, but never copy `<context>`, `<rules>`, or `<project_context>` blocks into the artifact
- **Mark manual tasks with `[M]`** (tasks artifact only): a task the agent cannot do itself — the user has to do it by hand, whether that is operating the product and accepting the result, creating an account on an external service, or placing a key — carries an `[M]` marker. Anything the agent can do itself, including code and automated tests, never carries it. The marker is what lets the quality stations judge "the code is finished" separately from "a human did their part": they run once every non-`[M]` task is checked, while archive still waits for all of them.
**The marker goes right after the checkbox, separated by exactly one space; the task number comes after the marker, NEVER before it.** Putting the number first reads naturally and is the easy mistake — the engine does not accept the marker there.
```
Write: - [ ] [M] 3.2 Open the imported document and confirm the list stays one list
Not: - [ ] 3.2 [M] Open the imported document and confirm the list stays one list
Not: - [ ] [M] 3.2 Open the imported document … (two spaces after the checkbox)
```
A misplaced marker is read as ordinary description text: the task silently counts as code work, "code tasks all complete" never becomes true, and apply stalls on a task no agent may check off. `speclink validate` reports it as an error.
- Write the artifact via CLI (the CLI handles directory creation and format validation):
For **design** or **tasks**:
```bash
speclink new artifact <artifact-id> --change "<name>" --stdin <<'ARTIFACT_EOF'
<content>
ARTIFACT_EOF
```
For **specs** (one command per capability):
```bash
speclink new artifact spec <capability-name> --change "<name>" --stdin <<'ARTIFACT_EOF'
<delta spec content>
ARTIFACT_EOF
```
If the command fails with a validation error, fix the content and retry.
Every later fix in this workflow — the self-review (step 9), the analyze loop (step 10), a failed validation (step 11) — changes an artifact through a write-back (see **Write-back** above the steps).
**The `--new` flag declares a new capability.** A capability the canonical specs do not carry yet is refused by default, and the error lists up to three similar existing names with their Purpose lines. Always run the command without `--new` first; only when it refuses AND you have confirmed the suggestion list holds no synonym of your capability, re-run the same command with `--new` appended to declare it as genuinely new. If a suggested name IS the same capability, reuse that exact name instead of declaring a new one.
- Show brief progress: "✓ Created <artifact-id>"
b. **Continue until all `applyRequires` artifacts are complete**
- After creating each artifact, re-run `speclink status --change "<name>" --json`
- Check if every artifact ID in `applyRequires` has `status: "done"`
- Stop when all `applyRequires` artifacts are done
c. **An artifact needs input you do not have** → prefer a reasonable decision that keeps the momentum; only when the context is critically unclear, use the **AskUserQuestion tool** to clarify, then continue with creation.
9. **Inline Self-Review** (before CLI analysis)
After creating all artifacts, read them back with `speclink artifact cat` and scan them. Fix each issue with a write-back (see **Write-back**), then proceed to the CLI analyzer.
**Check 1: No Placeholders**
These patterns are artifact failures — fix each one before proceeding:
- "TBD", "TODO", "FIXME", "implement later", "details to follow"
- Vague instructions: "Add appropriate error handling", "Handle edge cases", "Write tests for the above"
- Delegation by reference: "Similar to Task N" without repeating specifics
- Steps describing WHAT without HOW: "Implement the authentication flow" (what flow? what steps?)
- Empty template sections left unfilled
- Weasel quantities: "some", "various", "several" when a specific number or list is needed
**Check 2: Internal Consistency**
- Does every capability in the proposal have a corresponding spec?
- Does the design reference only capabilities from the proposal?
- Do tasks cover all design decisions, and nothing outside proposal scope?
- Are file paths consistent across proposal Impact, design, and tasks?
**Check 3: Scope Check**
- More than 15 pending tasks → consider decomposing into multiple changes
- Any single task would take more than 1 hour → split it
- Touches more than 3 unrelated subsystems → consider splitting
**Check 4: Ambiguity Check**
- Are success/failure conditions testable and specific?
- Are boundary conditions defined (empty input, max limits, error cases)?
- Could "the system" refer to multiple components? Be explicit.
**Check 5: Durable Handoff Review** (run before the CLI analyzer)
This change has to survive being handed to another agent. Reject and fix any of the following:
- **File-path-only tasks**: a task whose entire description is "edit file X" with no behavior, contract, or verification target. File paths are locator context — the task still describes what is observably true when complete.
- **Line-number-coupled instructions**: design or tasks content that points to "line 42" / "the function on lines 80-95" as the only way to identify the work. Source line numbers drift; name the function, command, struct, or behavior instead.
- **Vague acceptance criteria**: success conditions like "works correctly", "behaves as expected", "handles edge cases" without naming the observable behavior or the verification target (test name, CLI invocation, analyzer rule, manual assertion).
- **Missing scope boundaries on non-trivial work**: design lacking explicit "in scope" / "out of scope" lines for any change that touches more than one subsystem or introduces new behavior. Trivial artifact-only edits may skip this; runtime, build, or tooling effects may not.
Fix every failure with a write-back (see **Write-back**) using the existing context before running the CLI analyzer. If a failure cannot be fixed without new input from the user, surface it explicitly rather than papering over it.
10. **Analyze-Fix Loop** (max 2 iterations)
1. Run `speclink analyze <change-name> --json`
2. Filter findings to **Critical and Warning only** (ignore Suggestion)
3. No Critical/Warning findings → show "Artifacts look consistent ✓" and proceed
4. Critical/Warning findings exist →
a. Show: "Found N issue(s), fixing... (attempt M/2)"
b. Fix each finding in the affected artifact with a write-back (see **Write-back**)
c. Re-run `speclink analyze <change-name> --json`
d. Repeat up to 2 total iterations
5. Findings remain after 2 attempts → show them as a summary and proceed normally (do not block)
11. **Validation**
```bash
speclink validate "<name>"
```
If validation fails, fix the errors with a write-back (see **Write-back**) and re-validate.
12. **End the workflow**
Show summary:
- Change name and location
- The chosen schema — show `no-spec-change` as 「不改規格(no-spec-change)」
- List of artifacts created
- Validation result
Inform the user that the change is ready and that running `$speclink-apply <change-name>` when ready will start implementation.
If you are currently in Codex Plan Mode, also remind the user to switch the session to normal mode before running `$speclink-apply <change-name>`. This is only a reminder: do not try to use ExitPlanMode or EnterPlanMode, do not ask whether to switch modes, and do not invoke apply.
The propose workflow ENDS here. Do not invoke `$speclink-apply`, and do not call **AskUserQuestion** to ask whether to apply. This behavior is identical across Auto Mode, interactive mode, and any other agent mode.
After the summary, run the **Pending-change landscape check** below before presenting Next steps.
---
## Rationalization Table
| What You're Thinking | What You Should Do |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| "The requirements are clear enough, no need for discuss" | Fine if true — but check you're not skipping because you're lazy |
| "This artifact isn't needed for this change" | Check `applyRequires` — if it's in the dependency chain, create it |
| "The spec doesn't need scenarios, the requirement is obvious" | Obvious to you now. Write scenarios for the implementer who doesn't have your context |
| "I'll keep the design brief, code will be self-explanatory" | Design exists so implementers don't reverse-engineer intent. Be specific |
| "This is a small change, skip the scope check" | Small changes touching 5 subsystems aren't small. Check |
| "The placeholder is fine for now, I'll fill it in later" | There is no "later" — implementation is next. Fill it in now |
## Pending-change landscape check
Run this check after the summary, right before presenting the Next steps below.
1. Run `speclink list --json` for the active change names and their task counts (`totalTasks`). The change just created counts.
2. **Only one active change** (the one just created) → skip the rest of this check; the Next steps edges below already cover it.
3. **Two or more** → judge the **soft dependencies of the change you just created only** — never re-judge the whole landscape:
- Read the Impact section of each other active change's proposal with `speclink artifact cat proposal --change <other>` — when that change's `speclink list --json` entry carries a `worktree` object, run it from its `worktree.path` — and decide whether the new change builds on that change's outcome, or edits the same code areas. Each such change is a prerequisite of the new one.
- Record each prerequisite with its own call: `speclink change depends <change-name> --on <prerequisite>`. The verb writes all of its `--on` names or none, so one call per prerequisite keeps one refusal from dropping the others. This writes `depends_on` into the change's metadata, where `speclink plan` and every later session read it. A verbal note is not enough — if you found a prerequisite, the command must have run. An edge that already exists is left as it is. The verb refuses (with zero writes) a self-dependency, an unknown or archived name, and an edge that would form a cycle; report the refusal and move on to the next prerequisite — do not retry it, and do not edit another change's `depends_on`.
- No prerequisite found → run nothing.
- **Hard signal — requirement-level overlap** is the engine's job: `speclink plan` reads every delta. When two changes touch the same requirement of the same capability, the plan lists the one to archive first in the other's `archiveAfter`. It checks whether the canonical spec has that name now, and puts first the change whose archive leaves the name the way the other change needs it — for example, a change that ADDs a name the canonical spec lacks archives before one that MODIFIES it, and one that MODIFIES a name archives before one that REMOVES it. Two changes that both bring the same name in (ADD it, or rename a requirement to it), or both take it away (REMOVE it, or rename it away), are marked `conflict` in `requirementOverlap`. Overlap never delays a start. Do NOT judge overlap yourself. When the plan marks a `conflict` for this change, tell the user that one of the two sides has to change: whichever change archives second fails, on a duplicate name or on a name that is already gone.
4. **Queue jump** — the new change is proposed, and the plan puts it after the proposed changes that came before it. Run `speclink plan --json`. When it is small next to the proposed changes placed before it — fewer tasks than the one it would pass (`totalTasks` from the `speclink list --json` run above), and no change lists it in `dependsOn` — and it is urgent (for example a small fix from hands-on feedback that the user wants soon), move it ahead: find the first proposed change in the plan's `changes` placed before it that has more tasks, and run `speclink change rank <change-name> --before <that change>`. The verb writes the change's board rank — the same order key a drag on the desktop board writes — and `plan` follows it at once.
- The verb refuses because `<change-name>` already has a board rank (someone ordered it by hand) → only suggest the move to the user. Never add `--force`: it would overwrite that order.
- The verb refuses because the move would cross a declared dependency → report the refusal and leave the order as it is.
- Not small, or not urgent → run nothing.
5. Run `speclink plan --json` (again, when step 4 moved the change) and present its result according to the project's effective worktree policy (`speclink workflow-config show --json` → `worktree`; a `SPECLINK_WORKTREE` env override wins):
- **Policy on** → list wave 1 (`waves[0].changes`) as "parallel-safe — run each change in its own session via `$speclink-apply-with-worktree` (the multi-session recipe)", then each later wave in order as "after the wave before it lands". A change's `blockedBy` names what it waits for.
- **Policy off** → one recommended order: the `changes` array in its given order, one at a time.
- `next` is the first change that is ready to start; `skipped` lists changes whose metadata could not be parsed — name them so the user can repair them.
- For each change whose `archiveAfter` is non-empty, add one line: 「封存時 <change> 要在 <archiveAfter 的名稱> 之後」 — an archive-order note only; it never delays a start.
6. The check is suggestions only — report the waves or the order and stop; never invoke any skill automatically.
## Guardrails
Check these before you present the Next steps:
- [ ] Every artifact in the `applyRequires` chain exists and `speclink status` shows it done; optional artifacts were skipped only when their criteria did not apply (step 8).
- [ ] No application code was written, and `$speclink-apply` was not invoked (step 12).
- [ ] Every manual task carries `[M]` right after the checkbox, before the task number (step 8).
- [ ] The change was created with the schema step 4 chose, and a case the rules could not decide was asked, not guessed (step 4).
- [ ] `speclink validate` passed (step 11).
- [ ] The landscape check ran when two or more changes are active, and each prerequisite it found was recorded with `speclink change depends`.
## Next steps
Suggestions only. This skill NEVER invokes any of them — report where things stand and stop; the user decides what runs next.
- Artifacts are complete → `$speclink-apply <change-name>` when the user is ready to implement (with two or more active changes pending, the landscape check above sets the order first)
- Several independent changes will be implemented at once, and the project's worktree policy is on → `$speclink-apply-with-worktree <change-name>` (one git worktree per change)
- The requirements turned out to be fuzzier than they looked → `$speclink-discuss` before implementing