Task-file path only.
Source of truth
Use the active task file as the source of truth.
Before compacting, re-read the current subtask and the task-level
sections and diagrams it depends on.
Rules
Compaction must preserve meaning exactly.
It may move, rewrite, or reorganize section content to remove
duplication and shrink the active task file, but it must preserve:
- decisions;
- dependencies;
- constraints;
- review-relevant facts; and
- implementation and test expectations.
Keep shared context at task level.
Keep one authoritative location for each piece of section content.
Keep brief references or restatements only when remaining work still
needs them to understand the current subtask safely.
Allowed changes
- Move subtask-specific Research, Design, and Test specification into
the relevant subtask.
- Rewrite duplicated section content into a shorter equivalent form.
- Reorganize section content to remove duplication and make the
active task file smaller.
- Compact duplicated section content instead of repeating it.
Forbidden changes
Do not use this skill to:
- make new design decisions;
- narrow or expand scope;
- remove still-needed detail; or
- split the task into multiple files.
Stop conditions
If no compaction is needed under these rules, make no task changes and
return control to the invoking workflow.
If compaction reveals a material unresolved question, stop and use
../spec-loop-clarify-task/SKILL.md
, preserving any clarification
grill level already in force for the current work item.
When compaction is complete, return control to the workflow that
invoked this skill.