원클릭으로
task-cleanup
Clean up task/ directory after implementation completion, integrating important design decisions into *_design.md before deletion
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Clean up task/ directory after implementation completion, integrating important design decisions into *_design.md before deletion
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyze and extract requirements from use case diagram. Use when extracting UR/FR/NFR from use cases or when called by generate-prd.
Check consistency between implementation code and design documents (design), detecting discrepancies
Generate quality assurance checklists from specifications and plans with structured IDs and categories
Analyze specifications and generate clarification questions to eliminate ambiguity before implementation
Define and manage non-negotiable project principles (Constitution) and verify synchronization with other documents
Automatically executed during document updates or before implementation to check consistency between PRD ↔ *_spec.md ↔ *_design.md. Detects missing requirement ID (UR/FR/NFR) references, data model mismatches, API definition discrepancies, terminology inconsistencies, and ensures traceability between documents.
| name | task-cleanup |
| description | Clean up task/ directory after implementation completion, integrating important design decisions into *_design.md before deletion |
| argument-hint | [ticket-number] |
| arguments | ["ticket-number"] |
| license | MIT |
| user-invocable | true |
| agent | haiku |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion |
Organizes documents under ${CLAUDE_PROJECT_DIR}/${SDD_TASK_PATH}/, integrating important design decisions into ${CLAUDE_PROJECT_DIR}/${SDD_SPECIFICATION_PATH}/*_design.md
before deletion.
Read the following prerequisite references before execution:
references/prerequisites_plugin_update.md - Check for plugin updatesreferences/prerequisites_principles.md - Read AI-SDD principles documentreferences/prerequisites_directory_paths.md - Resolve directory paths using SDD_* environment variables| Path | Persistence | Management Rules |
|---|---|---|
specification/*_design.md | Persistent | Describe technical design, architecture, rationale for technology selection |
task/ | Temporary | Delete after implementation complete. Integrate important design decisions into *_design.md |
Output templates are located under templates/${SDD_LANG:-en}/ within this skill directory.
The SDD_LANG environment variable determines the language (default: en).
ticket-number: $ticket-numberFull argument string: $ARGUMENTS
Fallback: If the value above is empty or remains a literal
$placeholder, treat the argument as omitted and follow the no-argument flow (scope confirmation below).
| Argument | Required | Description |
|---|---|---|
ticket-number | - | Target ticket number or path. Targets entire task/ if omitted |
/task-cleanup TICKET-123/task-cleanup feature/task-management/task-cleanup (without arguments, targets entire task/)When executed without arguments, display the contents of the target directory and ask for user confirmation before starting the process.
Reference: examples/scope_confirmation.md
Replace placeholders with actual directory/file names, types, dates, and counts.
Post-confirmation behavior:
${CLAUDE_PROJECT_DIR}/${SDD_TASK_PATH}/{argument}/${CLAUDE_PROJECT_DIR}/${SDD_TASK_PATH}/Get the file list in the target directory with ls -la ${CLAUDE_PROJECT_DIR}/${SDD_TASK_PATH}/{target}/, then check the last update date for each file with git log -1 --format="%ci" -- <file_path>.
Review content of each file and classify as follows:
Content to Integrate (-> *_design.md):
| Category | Examples |
|---|---|
| Design decisions and rationale | "Reason for choosing Redis: ...", "Reason for adopting this pattern: ..." |
| Alternative evaluation results | "Comparison of Option A vs Option B", "Rejected alternatives and reasons" |
| Technical tips and know-how | Discoveries during implementation, performance improvement points |
| Troubleshooting information | Problems encountered and solutions |
| Reusable patterns | Code patterns or design patterns usable in other features |
Content Safe to Delete (No Migration Needed):
| Category | Examples |
|---|---|
| Work progress notes | "Implementing X", "Y completed" |
| Temporary investigation logs | Diary-like content, trial and error records |
| Specific implementation steps | Detailed procedures already reflected in code |
| Task lists | Lists of completed tasks |
| Date-dependent information | Information dependent on specific periods or dates |
When there is information to integrate, determine appropriate integration target:
*_design.md most related to content*_spec.md exists -> Create new corresponding *_design.md*_spec.md -> Skip integration (delete information)When performing integration:
Before deleting task files, update front matter in related documents if they have YAML front matter. See references/front_matter_task.md and references/front_matter_spec_design.md for valid field values.
| Action | Description |
|---|---|
Update design doc impl-status | Set to "implemented" if all tasks completed successfully |
Update design doc updated | Set to current date |
Update spec status | Consider updating to "approved" if implementation validates the spec |
Delete individual files with git rm ${CLAUDE_PROJECT_DIR}/${SDD_TASK_PATH}/{target}/{file}, or delete the entire directory after all files are processed with git rm -r ${CLAUDE_PROJECT_DIR}/${SDD_TASK_PATH}/{target}/.
Use the templates/${SDD_LANG:-en}/cleanup_output.md template for output formatting.
*_design.md