← スキル一覧に戻る

cleanup
by vm-wylbur
PB's dotfiles for bash and emacs
⭐ 1🍴 0📅 2025年12月29日
SKILL.md
name: cleanup description: "Repository cleanup with evidence-based decisions (user)" version: 1.0.0 metadata: priority: medium requires: ["claude-mem"] changelog: "1.0.0 - Initial skill from command conversion"
Repository Cleanup
Perform comprehensive repository cleanup with evidence-based decisions.
When to Activate
- User says "cleanup", "clean up repo", "tidy files"
- Working directory has accumulated unstaged/untracked files
Workflow
Launch the cleanup-analyzer agent to scan unstaged and untracked files, then process categories interactively.
Phase 1: Analysis (Agent)
Launch cleanup-analyzer agent using the Task tool with subagent_type='general-purpose'. The agent will return JSON with categorized files and evidence.
Phase 2: Quick Wins (Interactive)
Present obvious_deletions and markdown files:
- Show evidence for each deletion candidate
- Execute approved deletions immediately
- For .md files not in lessons_learned_docs, offer to run /ingest-docs
Phase 3: Deduplication (Interactive)
For each duplicate pair:
- Show similarity score and evidence
- Show memory context if available
- Present options: merge/keep both/delete one/skip
- Execute approved action immediately
Phase 4: Completed Work (Interactive)
For each completed proposal:
- Show implementation evidence
- Present draft memory (content, tags, files)
- Get approval to store memory + archive file
- Execute: store memory, then git mv to docs/completed/
Phase 5: Should Commit (Interactive)
- Show files ready to commit with evidence
- Get approval and execute git add
Phase 6: Ambiguous (Interactive)
For each ambiguous file:
- Show evidence and questions
- Ask user: keep/delete/commit/defer
- Execute decision
Phase 7: Summary
- Show actions taken (counts by type)
- Draft cleanup session memory
- Store memory if approved
Guardrails
- Execute actions immediately after approval (don't batch)
- Show evidence before each decision
- For .md files, integrate with /ingest-docs workflow
- Capture completed work and cleanup decisions to memory
- Use the agent's evidence, don't re-analyze
- Never delete without explicit approval
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です