Provides final code cleanup after task review approval. Removes debug logs, temporary comments, dead code, optimizes imports, and improves readability. Use when asked to clean up code, polish, finalize, tidy up, remove technical debt, or prepare code for completion after review. Not for refactoring logic or fixing bugs—focused solely on cosmetic and hygiene cleanup.
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill specs-code-cleanup
Performs post-review cosmetic cleanup to make code production-ready. This workflow is now integrated as Phase T-7 of /developer-kit-specs:specs.task-implementation. It can also be invoked manually using --action=cleanup.
Input: docs/specs/[id]/tasks/TASK-XXX.md (reviewed status)
Output: Cleaned code, task marked completed
| Argument | Required | Description |
|----------|----------|-------------|
| --lang | No | java, spring, typescript, nestjs, react, python, general |
| --task | Yes | Path to task file |
| --action| No | Set to cleanup for manual invocation |
./mvnw spotless:apply, npm run lint:fix, black, etc.See references/language-patterns.md for language-specific formatter commands, import ordering, and grep patterns.
$ARGUMENTS for parameters:--lang (optional): Target language/framework--task (required): Task ID or file path--spec (optional): Spec folder path (used with task ID)Support two formats:
--task=docs/specs/001-feature/tasks/TASK-001.md--spec=docs/specs/001-feature --task=TASK-001If Format 2 is used, construct the task file path as: {spec}/tasks/{task}.md
reviewed or implemented (not completed)TASK-XXX--review.md exists and is approved/developer-kit-specs:specs.task-review firstprovides filesTASK-XXX--review.md for files created/modifiedprovides field for file pathsSearch files for temporary/debug artifacts with Grep:
console.log, System.out.println, print(, // DEBUG:, // temp, // hackTODO/FIXME comments (keep unresolved ones)Review context for each finding. Remove confirmed debt and document what was removed.
## Cleanup Summary section to the task filecompleted and set completed_date + cleanup_date## Cleanup Summary to task file with:/developer-kit-specs:specs.task-implementation --lang=spring --task="docs/specs/001-user-auth/tasks/TASK-001.md" --action=cleanup
Actions:
reviewedUserController.java, UserService.java, UserRepository.javaSystem.out.println and 2 resolved TODOs./mvnw spotless:apply./mvnw test -qcompleted/developer-kit-specs:specs.task-implementation --lang=typescript --task="docs/specs/002-dashboard/tasks/TASK-003.md" --action=cleanup
Actions:
reviewedDashboard.tsx, useDashboard.ts, Dashboard.test.tsxconsole.log statementsnpm run lint:fix and npm run formatnpm testcompletedExecute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
Comprehensive GitHub code review with AI-powered swarm coordination
Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.
Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.
GitHub CLI (gh) comprehensive reference for repositories, issues, pull requests, Actions, projects, releases, gists, codespaces, organizations, extensions, and all GitHub operations from the command line.
GitHub CLI - manage repositories, issues, pull requests, actions, releases, and more from the command line.
You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.
You are a technical debt expert specializing in identifying, quantifying, and prioritizing technical debt in software projects. Analyze the codebase to uncover debt, assess its impact, and create acti
Take giuseppe-trisciuoglio/specs-code-cleanup from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.