Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scripts/devloop_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ contains "$spec_skill_text" "Do not convert a conversation, artifact bundle, or
contains "$spec_skill_text" "If interactive and gaps remain, do not draft yet" "spec skill gap interview"
not_contains "$spec_skill_text" "offer to interview for only those gaps after producing the first draft" "spec skill gap interview"
contains "$spec_skill_text" "<repo>/.devloop/specs/YYYY-MM-DD-<slug>.md" "spec skill repo output"
contains "$spec_skill_text" "Discover repo facts before user questions." "spec skill planning guidance"
contains "$spec_skill_text" "Facts are discovered from the repo; decisions are asked of the user." "spec skill planning guidance"
contains "$spec_skill_text" "Ask one user decision at a time and include your recommended answer." "spec skill planning guidance"
contains "$spec_skill_text" "Walk dependency decisions in order: parent decisions before downstream details." "spec skill planning guidance"
contains "$spec_skill_text" "If supplied context is already settled, synthesize it directly without re-interviewing." "spec skill planning guidance"
contains "$spec_skill_text" "Only ask follow-up questions that would change scope, behavior, acceptance criteria, test seams, or implementation slice." "spec skill planning guidance"
contains "$spec_skill_text" "Before final drafting, identify the highest stable existing test seam; prefer one seam when practical and include the chosen seam in the Test plan." "spec skill planning guidance"
contains "$spec_skill_text" "During spec discovery and interview, do not implement the requested product or code change." "spec skill planning guidance"
contains "$spec_template_text" '```mermaid' "spec template Mermaid fence"
contains "$spec_template_text" "flowchart LR" "spec template Mermaid syntax"
ok "spec Mermaid diagram guidance"
Expand Down
12 changes: 12 additions & 0 deletions skills/devloop-spec/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ Do not convert a conversation, artifact bundle, or notes directly into a spec ju

When interactive, ask one question at a time until the gate passes. When the environment cannot ask questions, write a marked draft only if the caller explicitly needs best-effort non-interactive output; otherwise stop with the questions that must be answered.

## Planning Discipline

During spec discovery and interview, do not implement the requested product or code change.

- Discovery before interview: Discover repo facts before user questions. Before asking, inspect repository facts, available commands, relevant paths, existing tests, and local conventions whenever a repo is available.
- Facts vs decisions: Facts are discovered from the repo; decisions are asked of the user. Do not ask the user to restate facts that are cheap to verify locally.
- User decisions: Ask one user decision at a time and include your recommended answer.
- Dependency order: Walk dependency decisions in order: parent decisions before downstream details.
- Settled context: If supplied context is already settled, synthesize it directly without re-interviewing.
- Follow-up threshold: Only ask follow-up questions that would change scope, behavior, acceptance criteria, test seams, or implementation slice.
- Test seam checkpoint: Before final drafting, identify the highest stable existing test seam; prefer one seam when practical and include the chosen seam in the Test plan. If no stable existing seam covers the change, say that explicitly and choose the smallest appropriate new or updated test seam.

## Source Resolution

Resolve the source material before drafting:
Expand Down
Loading