Skip to content

Add a pair of skills to clean up dead code - #93

Draft
kylesmile wants to merge 1 commit into
mainfrom
add-gc-skills
Draft

kylesmile wants to merge 1 commit into
mainfrom
add-gc-skills

Conversation

@kylesmile

Copy link
Copy Markdown
Contributor

Why

Dead code can easily build up in a repository over time, and will get left there until someone notices and puts in the work to trace and rule out any potential callers. Removing dead code should make a codebase easier to understand (for both humans and agents), and can help keep the total file sizes in check. What if AI could "garbage collect" dead code for us, so less of it remains in a repository cluttering up the context and causing confusion?

What Changed

  • Create the minor-gc skill to do a light sweep of a codebase using static analysis tools and light reasoning
  • Create the major-gc skill to prove whether code is dead by fully tracing any potential callers, for when the static analysis isn't sufficient

Screenshots

N/A — no UI changes


Pre-merge

  • Have you updated README.md? Any new, renamed, or removed skill needs a row in the README table. Check the box or replace it with N/A if this PR touches no skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant