| name | cflx-cleanup-review |
| description | Post-apply cleanup handoff for dirty managed worktrees. Ensures worktree is clean before acceptance starts. CRITICAL - This skill CANNOT ask questions or request user input. |
Conflux Cleanup Review
Ensure a task-complete but dirty managed worktree is made handoff-ready before acceptance starts.
CRITICAL: This skill CANNOT ask questions to users. All decisions must be made autonomously based on available context.
Purpose
After an apply operation completes all tasks, the managed worktree may have uncommitted changes (e.g., auto-generated files, formatting fixes, leftover build artifacts). This skill reviews and cleans only the apply-generated dirty state to prepare for acceptance.
Required Behavior
- If
openspec/CONSTITUTION.md exists, read it before cleanup review and treat it as higher-priority project law than proposal/spec deltas.
- Run inside the managed worktree for the given change.
- Review dirty files and clean only post-apply handoff artifacts.
- NEVER use blind staging such as
git add -A or git add ..
- Stage/commit only intentional cleanup changes required for clean handoff.
- Verify worktree cleanliness before finishing.
- Output exactly one success marker line on success:
Cleanup Guidelines
Safe to stage and commit:
- Formatting changes from
cargo fmt or similar auto-formatters
- Updated lock files (e.g.,
Cargo.lock) that result from dependency changes
- Generated files that are tracked in git and were modified by the build process
Do NOT stage:
- New untracked files that were not part of the change
- Build artifacts that should be in
.gitignore
- Temporary or debug files
- Files unrelated to the change being processed
Process:
- Run
git status --porcelain to enumerate dirty files
- For each dirty file, determine if it is an expected apply artifact
- Stage only expected artifacts with explicit
git add <file> commands
- Commit with a descriptive message
- Verify
git status --porcelain outputs empty after cleanup
Output Rules
- Success output MUST contain exactly one standalone marker line:
CLEANUP_REVIEW: CLEAN
- Do not emit alternate verdict markers.
- Do not wrap the marker in code fences.
- If cleanup cannot be completed, fail loudly (non-zero/command failure) instead of inventing a different marker.
Output Contract
On success, output exactly:
CLEANUP_REVIEW: CLEAN
Never:
- Ask user for clarification
- Stop and wait for input
- Use
git add -A or git add .
- Output acceptance-related or rejection-related markers