spec-loop-compact-task-file
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTask-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.
- 将子任务专属的Research、Design和Test specification移至对应的子任务中。
- 将重复的章节内容重写为更简短的等效形式。
- 重组章节内容以消除重复,减小当前任务文件的体积。
- 压缩重复的章节内容,而非重复呈现。
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.
请勿使用此skill进行以下操作:
- 做出新的设计决策;
- 缩小或扩大范围;
- 删除仍需保留的细节;或
- 将任务拆分为多个文件。
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
, preserving any clarification
grill level already in force for the current work item.
../spec-loop-clarify-task/SKILL.mdWhen compaction is complete, return control to the workflow that
invoked this skill.
若根据这些规则无需压缩,则不修改任务,将控制权返回至调用该工作流的流程。
若压缩过程中发现重大未解决问题,请停止操作并使用,同时保留当前工作项已生效的任何澄清审查级别。
../spec-loop-clarify-task/SKILL.md压缩完成后,将控制权返回至调用此skill的工作流。