garbage-collection

Detects and mitigates repository entropy via automated checks and safe fixes.

44|6|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Habitat-Thinking/ai-literacy-superpowers --skill garbage-collection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: garbage-collection
Source: https://github.com/Habitat-Thinking/ai-literacy-superpowers/tree/main/ai-literacy-superpowers/skills/garbage-collection
Command: npx skills add https://github.com/Habitat-Thinking/ai-literacy-superpowers --skill garbage-collection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Garbage collection rules detect and mitigate repository entropy — stale documentation, dead code, convention drift, dependency rot, and harness degradation — so issues do not accumulate between active development gates and CI checks.

Core Features & Use Cases

  • Rule anatomy and catalogue: Each GC rule specifies what it checks, frequency, enforcement mode, execution tool, and whether auto-fix is safe, supported by a comprehensive reference catalogue.
  • Deterministic and agent enforcement: Schedule deterministic tools or agents to run daily or weekly to apply safe auto-fixes or create GitHub issues for human review.
  • Learning-driven checks: Leverage reflections and assessment artifacts to detect recurring failure patterns and propose new constraints or fitness functions to evolve the harness.
  • Use case: Run a weekly harness-gc agent that formats code, flags orphaned files, detects stale references, reports vulnerable dependencies, and suggests or applies safe fixes per the auto-fix rubric.

Quick Start

Run the garbage-collection agent to scan the repository for stale documentation, dead code, convention drift, and dependency issues, applying safe auto-fixes where deterministic and creating issues when human judgment is required.

Frequently Asked Questions about garbage-collection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect and clean up dead code and stale documentation in my repository?

Repository entropy detection scans for stale documentation, dead code, and convention drift, applying safe auto-fixes when changes are deterministic and verifiable or filing GitHub issues for human review when manual judgment is required.

What is codebase garbage collection and when should I run it?

Codebase garbage collection mitigates repository entropy by checking for dependency lag, harness inconsistencies, and convention drift. It runs on scheduled daily or weekly intervals to prevent issues from accumulating between active development gates and CI checks.

Can I automatically fix convention drift and dependency rot without manual review?

Auto-fixes apply automatically when changes are deterministic, local, verifiable, and reversible. Non-auto-fix findings that require human judgment are filed as GitHub issues rather than applied directly to the repository.

How do I set up a scheduled agent to flag orphaned files and detect stale references?

A weekly harness-gc agent formats code, flags orphaned files, detects stale references, and reports vulnerable dependencies. Each GC rule specifies its check frequency, enforcement mode, execution tool, and auto-fix safety from a reference catalogue.

Does garbage collection work with reflection-driven regression detection workflows?

Reflections and assessment artifacts leverage learning-driven checks to detect recurring failure patterns, proposing new constraints or architectural fitness functions to evolve the harness and mitigate future entropy.

What are the limitations of automated codebase entropy mitigation?

Automated entropy mitigation is limited to safe auto-fixes when changes are deterministic, local, verifiable, and reversible. Non-deterministic findings or issues requiring architectural judgment are deferred to human review via filed GitHub issues.