Choose the planning form for new work and plan it before execution. Use this skill to decide whether the work is taskless, chat-only, a task file, a task file with subtasks, or multiple task files / backlog items, and to create the needed plan for non-trivial implementation work or investigation work that needs its own task.
Use this skill for planning-form selection and task planning before execution.
Read this file fully unless it is already loaded in the current
session context. Apply project instructions such as AGENTS.md when
present.
If these rules are already in context, keep a short digest and re-read only if the digest is missing or the user says the rules changed.
implement, investigate, go ahead, proceed, or apply
counts as approval only when the active task is ready and the
directive clearly refers to that task. If readiness or the referent
is unclear, ask.If AGENTS.md conflicts with these rules, stop and ask the user.
If the assistant stops or pauses, explain why.
If the user explicitly asks for a planning form, planning procedure, or sectioned task format, do not simplify it unless the user explicitly agrees.
After execution approval for implementation work, follow
spec-loop-implementation-flow/SKILL.md.
After execution approval for investigation work, perform only the
approved investigation, record final output in Findings, satisfy any
Test specification, and present or move the task/subtask to
review using the active path.
Classify each work item as one of:
Treat implementation work as non-trivial when any of these hold:
Investigation work means research, spike, prototype, catalog, proof, or similar evidence-gathering whose output is knowledge or a reviewable artifact rather than product change. It needs a task only when the investigation itself needs explicit planning, separate tracking, or a reviewable output. Ordinary planning research stays in PLAN inside the current task or chat state. Investigation work must not ship product, test, build, config, runtime, or coupled documentation changes; plan that scope as implementation work.
After first classification, read and follow planning-form-selection-guidance.md.
When planning-form selection chooses task file with subtasks or
multiple task files / backlog items, first do only the whole-work
clarification needed for Scope, Motivation, and a sound rough
breakdown. Then use
spec-loop-plan-work-breakdown/SKILL.md
to identify the current task, or the current subtask when subtasks
are in use, and lightweight later tasks or subtasks. Do full
clarification and detailed planning only for that current task, or
for that current subtask plus any required shared context.
Phases:
Rules:
Standalone documentation work is outside this phase model unless the user or project instructions say otherwise.
Before creating or revising task or current-subtask planning content, apply the clarification skill's mandatory decision screening from spec-loop-clarify-task/SKILL.md. Use that skill's definition of important open decision.
Apply this gate proactively; do not wait for the User to ask for clarification.
For file-based multi-item work, apply this gate twice:
For subtasks, apply this gate only to the current subtask and required task-level context. Apply it to future subtasks when they become current.
If clarification returns an unresolved blocker that needs ADR work or separate investigation work, route that work before continuing the blocked task plan.
If drafting later exposes an important open decision, stop and clarify before continuing.
For a Spec Loop task, planning uses the same task sections for implementation and investigation. It must cover current scope, material clarified decisions, relevant research and constraints, Design, review expectations, and needed verification.
Use the shared task guidance from common-task-guidance.md.
When this planning form is in use:
If durable state becomes unsafe to keep only in chat, switch to the task-file planning form before continuing.
When this planning form is in use:
tasks/ as the default task directory when project
instructions do not define one.For task file with subtasks or multiple task files / backlog items,
apply the rule above: fully plan only the current task, or the
current subtask plus required shared context when subtasks are in
use.
Before requesting execution approval for task-file work, use spec-loop-prepare-execution-approval/SKILL.md.
For ADR-only work, use spec-loop-write-adr/SKILL.md for ADR location, naming, structure, and update rules.
If task planning or accepted investigation findings show that a durable architecture or policy decision is needed, route ADR work through spec-loop-write-adr/SKILL.md. Do not hide ADR work inside clarification.
If ADR work is part of a larger implementation change, keep it in that task and use spec-loop-write-adr/SKILL.md during EXECUTION.
Living project documents hold current project truth: specifications, API contracts, architecture and operations documents, project glossaries, and current ADRs. Historical, archived, and incidental documents do not count.
Spec Loop does not require a project to have living project documents.
If none exist, do not create documents or a Living Project Documents
list solely to satisfy this policy.
Projects with multiple living project documents should keep one list
named Living Project Documents as their entry point:
README.md;Use the list as the starting point for relevant Research. If current
work names or depends on an unlisted living document, ask how to handle
it. If a project has multiple living documents but no list, ask the
User before creating the default list in the root README.md.
A project glossary is a living project document. Search for
glossary.adoc and glossary.md even when no list exists. If an
existing glossary is omitted from a list that covers other living
documents, ask how to handle it. If the glossary is the only living
document, use it and update it when affected without requiring a list.
A living-project-document action does not by itself require a task.
Include required actions in the same increment as the implementation.
For task-based work, record the check in Research and list the actions
in Design. For taskless implementation or standalone documentation
work, complete the actions together and list each action and resulting
file or files in the final response, or state None affected. See
common-task-guidance.md for task content.
Recognize glossary.adoc and glossary.md as project glossary files.
If both exist, ask which one is canonical before updating either.
For a Spec Loop AsciiDoc glossary, use spec-loop-write-glossary/SKILL.md. For other glossary formats, follow the project's format.
An existing project glossary is the shared domain-language source above
individual tasks and code. Without one, use Research plus the existing
codebase until a project glossary is created.
The presence or absence of a project glossary does not determine
whether a task or subtask needs task Glossary. It determines only
which shared source task vocabulary and task-glossary deltas are
compared against.
When approved work changes, clarifies, or implements shared domain terms, include a task Glossary when needed. If an existing project glossary is affected, plan its update in the same increment. Treat project glossary creation, update, or supersession as living-project-document work. Create or supersede a project glossary only when approved by the User, project instructions, or the task plan.
When a task or subtask needs Scenario or Glossary, read
scenario-and-glossary-guidance.md and follow it. Task
Glossary sections are planning artifacts; project glossary actions
happen only during EXECUTION.
Use spec-loop-setup-doc-rendering/SKILL.md for rendering setup.
7033338
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.