giuseppe-trisciuoglio/specs-code-cleanup
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 testcompletedTake 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.