cleanup

Installation
SKILL.md

Orchestrate a full cleanup of the current working directory: review changes, verify tests, fix linting and audit issues, ensure full test coverage, propose fixes, and commit.

Usage:

  • /cleanup - Run the full cleanup workflow

Instructions:

IMPORTANT: This is an autonomous workflow. Run ALL checks and fixes yourself first, then present the results and proposed fixes to the developer at the end. Do NOT ask the developer questions during the process — only at the final approval step.

SCOPE: Focus exclusively on changes introduced by the current branch. Determine the base branch first (check .agent file for baseBranch=<value>, default to main). All review, coverage analysis, lint fixes, and test writing should target only the files and code changed between the base branch and the current state — do not flag or fix pre-existing issues in unchanged code.

  1. Review uncommitted changes:

    • Run git status to see all modified, staged, and untracked files
    • Run git diff to see unstaged changes and git diff --cached to see staged changes
    • Also run git diff <base-branch>...HEAD to understand the full scope of changes on this branch
    • Read each changed file to understand the full context of modifications
    • Produce a brief summary of all changes on this branch grouped by category (new features, bug fixes, refactoring, etc.)
  2. Verify new test cases:

Related skills

More from morphet81/cheat-sheets

Installs
77
First Seen
Apr 7, 2026