askill
finalize

finalizeSafety 85Repository

Cleans up completed feature work. Removes false starts, dead-end code, debug statements, and experimental remnants from your coding session. Use after a feature is working to consolidate the implementation before committing.

0 stars
1.2k downloads
Updated 3/7/2026

Package Files

Loading files...
SKILL.md

Finalize Recent Work

Clean up after a feature is done — remove iteration artifacts and consolidate the implementation.

Instructions

Step 1: Identify Session Artifacts

Review recent changes (git diff or git diff --staged) and flag:

Remove:

  • console.log, print(), dd(), var_dump(), debugger statements
  • Commented-out code (old approaches, false starts)
  • TODO/FIXME comments that were resolved
  • Temporary variable names (temp, test, foo, xxx)
  • Unused imports added during exploration
  • Test data or hardcoded values that should be dynamic

Simplify:

  • Duplicated logic that can be extracted
  • Over-engineered abstractions (does it need that wrapper?)
  • Naming inconsistencies introduced during iteration
  • Unnecessarily complex conditionals
  • Functions that grew too long during development

Verify:

  • No leftover feature flags for this feature
  • Error messages are user-facing quality (not developer shorthand)
  • Types are specific (no any that snuck in)
  • No credentials, API keys, or secrets in the diff

Step 2: Clean Up

Make changes in small, reviewable steps:

  1. Remove debug statements and dead code
  2. Fix naming inconsistencies
  3. Simplify where possible
  4. Verify nothing broke

Step 3: Run Tests

Run the project's test suite to ensure cleanup didn't break anything.

Step 4: Report

## Finalize Summary

**Files cleaned:** [count]

### Removed
- [X] debug statements
- [X] commented-out blocks
- [X] unused imports

### Simplified
- [description of simplification]

### Verified
- All tests passing
- No secrets in diff
- No `any` types introduced

Rules

  • Never change behavior — only clean up presentation
  • If you're unsure whether code is dead, leave it and flag it rather than deleting
  • Run tests after every batch of changes
  • Keep cleanup commits separate from feature commits

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

83/100Analyzed 3/8/2026

A well-structured, highly actionable skill for cleaning up completed feature work. Provides clear step-by-step instructions with specific examples of what to remove (debug statements, dead code, commented-out code), what to simplify, and what to verify. Includes safety rules to prevent behavior changes and a reporting template. Scores well across all dimensions with clear tags and proper skills folder location. Slight deduction for lacking explicit 'when to use' trigger section."

85
85
90
75
85

Metadata

Licenseunknown
Version-
Updated3/7/2026
Publisherskinnyandbald

Tags

apitesting