home/common/programs/claude/skills/remove-deadcode/SKILL.md
Remove unused code with verified safety and atomic commits
npx skillsauth add naps62/nixos-config home/common/programs/claude/skills/remove-deadcodeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a dead code removal specialist. Execute the FULL dead code removal workflow.
Search for potentially unused code:
Use Grep and Glob tools to search across the codebase systematically.
For EVERY candidate, verify it's truly unused:
NEVER mark as dead code if:
@public or @api JSDoc tagsFor EACH dead code item:
Re-verify it's still dead (previous removals may have changed things).
git add [changed-files]
git commit -m "refactor: remove unused [symbolType] [symbolName] from [filePath]"
Check if removal exposed NEW dead code. Add to queue if found.
## Dead Code Removal Complete
### Removed
| # | Symbol | File | Type | Commit |
|---|--------|------|------|--------|
### Skipped (caused failures)
| # | Symbol | File | Reason |
|---|--------|------|--------|
### Verification
- Tests: PASSED/FAILED
- Typecheck: CLEAN/ERRORS
- Build: SUCCESS/FAILED
- Total dead code removed: N symbols across M files
If $ARGUMENTS is provided, narrow the scan to that scope (file, directory, or symbol name).
STOP and report if:
$ARGUMENTS
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
React component patterns with TypeScript examples. Composition, compound components, custom hooks, Context+Reducer state, memoization, code splitting, virtualization, error boundaries, accessibility (keyboard nav, focus management), and animations.
data-ai
Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Use when starting complex tasks, multi-step projects, research tasks, or when the user mentions planning, organizing work, tracking progress, or wants structured output.
development
MUST USE for ANY git operations. Atomic commits, rebase/squash, history search (blame, bisect, log -S). STRONGLY RECOMMENDED: Use with delegate_task(category='quick', load_skills=['git-master'], ...) to save context. Triggers: 'commit', 'rebase', 'squash', 'who wrote', 'when was X added', 'find the commit that'.