一键导入
session-cleanup
Verify debug/dev artifacts are removed before commit. Use at session end to apply 'good boy scout' rule - leave code cleaner than you found it.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verify debug/dev artifacts are removed before commit. Use at session end to apply 'good boy scout' rule - leave code cleaner than you found it.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the pragmatic-skeptic 'ponytail' reviewer over the current diff to surface over-engineering — code, abstractions, dependencies, files, or process steps the problem does not need. Read-only and advisory; never trims safety, security, accessibility, data-loss handling, or their tests. Use before pushing a PR, when a change feels heavier than the task warranted, or when boilerplate/a new dependency crept in. Triggers: 'ponytail review', 'is this over-engineered', 'what can I delete here', 'did I over-build this'.
Use this skill to run a structured user-discovery interview for Caro and save the transcript into docs/discovery/transcripts/ under the project's anonymization rules. Use when a new product line or major feature spec needs to clear Gate 1 of .claude/rules/validation-discipline.md (the 20-transcripts rule). Also use to synthesize transcripts into the hypothesis ledger after each batch of 5 interviews. Triggers - "run a discovery interview for <feature>", "log this user conversation as a Caro discovery transcript", "synthesize this week's transcripts into the hypothesis ledger".
Safely reclaim disk space in the caro project. Cleans Rust build cache, stale git worktrees (both .claude/worktrees/ and .worktrees/), empty stubs, and node_modules using a tiered audit that preserves any worktree with uncommitted changes, missing remotes, or a lock file. Use when du shows the project > 30 GB or disk free is low.
DEPRECATED 2026-05-16 — use caro-shell instead. This skill recommends the --backend claude flag and a ~/.config/caro/config.toml path that do not work on the current caro 1.4.0 binary, and its 522-line educational body is 4× the size of caro-shell for no benefit to an agent. Will be removed after 2026-08-01.
Use this skill when the user needs a POSIX shell command synthesized from natural language — "how do I find/grep/awk/find files modified in the last hour", "kill the process on port 3000", "tar this up excluding .git", or any other terminal-task-as-prose. Shells out to the `caro` CLI for safety-validated command inference and presents the suggestion for explicit approval. Refuses to execute the command itself.
Build, render, ship, AND MAINTAIN the caro landing-page demo video using Remotion. Use when creating, updating, re-rendering, extending the project demo MP4 at website/public/caro-demo.mp4 — or when responding to a drift alert from the caro-demo-drift CI workflow or a beads task with label `caro-demo-video`.
| name | session-cleanup |
| description | Verify debug/dev artifacts are removed before commit. Use at session end to apply 'good boy scout' rule - leave code cleaner than you found it. |
| version | 1.0.0 |
| allowed-tools | Bash, Read, Grep, Glob |
| license | AGPL-3.0 |
This skill verifies that debug and development artifacts are cleaned up before committing code. It embodies the "good boy scout" principle: leave the code cleaner than you found it.
Key Responsibilities:
Use this skill:
Automatic Reminder: Consider adding to your session-end routine.
Manual Triggers:
/session-cleanup// These should be removed before commit:
eprintln!("DEBUG: ..."); // Debug prints
println!("[DEBUG] ..."); // Debug prints
dbg!(variable); // Debug macro
#[allow(dead_code)] // Only if for debug code
// TODO: REMOVE // Temporary markers
// Look for these patterns:
#[test]
fn temp_test() { ... } // Temporary tests
#[ignore] // Tests that should be removed or fixed
fn test_disabled() { ... }
// These are fine (production logging):
tracing::debug!(...); // OK - controlled by log level
tracing::info!(...); // OK - informational
// These may be debug artifacts:
tracing::warn!("DEBUG: ..."); // Suspicious - debug in warn?
When running this skill:
Scan for eprintln!/println! debug
grep -rn "eprintln!" src/ | grep -i debug
grep -rn 'println!.*DEBUG' src/
Scan for dbg! macros
grep -rn 'dbg!' src/
Scan for TODO markers
grep -rn 'TODO.*REMOVE\|TEMPORARY\|DEBUG' src/
Check for test artifacts
grep -rn 'temp_test\|test_debug' src/ tests/
Review git diff for debug additions
git diff --cached | grep -E '^\+.*eprintln|^\+.*dbg!'
[During Debug Session]
- Add eprintln! statements to trace execution
- Add temporary tests to verify fixes
- Use dbg! for quick value inspection
[At Session End]
- Invoke /session-cleanup
- Remove all debug artifacts found
- Verify changes still work
- Commit clean code
This skill pairs well with:
/commit - Run cleanup before committing/validate-constitution - Validate standards after cleanupThis skill ensures debug artifacts from investigation sessions don't pollute the codebase.