Loading...
Loading...
Use when scanning for and cleaning up code slop — duplicate patterns, dead code, misplaced files, and accidentally committed files.
npx skill4agent add fellowship-dev/dogfooded-skills trash-truck/trash-truck [org/repo]
/trash-truck [org/repo] focus:dead-code
/trash-truck [org/repo] focus:duplicates
/trash-truck [org/repo] focus:drift
/trash-truck [org/repo] focus:misplaced
/trash-truck [org/repo] focus:committed-by-error
/trash-truck [org/repo] focus:unused-functions| Category | What to look for |
|---|---|
| dead-code | Unused exports, orphaned imports, debug |
| duplicates | Same concept implemented multiple ways across the codebase |
| inconsistent | Same operation done differently in different modules (error handling, fetch patterns, config access) |
| drift | Deviations from golden principles documented in |
| misplaced | Files in wrong directories — test files outside test dirs, configs buried in source trees |
| committed-by-error | Files that shouldn't be in version control — |
| unused-functions | Functions/methods defined but never called or referenced anywhere in the codebase (Python via |
Run the pre-scan yourself, in the foreground. Invokedirectly with the Bash tool and wait for its JSON output inline. Do not dispatch a worker, background the scan (pre-scan.sh/&), or hand it off and "wait for a notification" — it is a fast, bounded local scan (seconds). In a headless/operator runner there is no background-completion wake-up, so backgrounding deadlocks the session and the mission fails with no outcome marker. This is hands-on work: do it yourself, do not delegate it.nohup
pre-scan.shrgast# Run from the repo root — outputs structured JSON
SKILL_DIR="$(dirname "$(readlink -f "$0")")" # or wherever the skill was synced
bash "$SKILL_DIR/pre-scan.sh" [focus] [repo-root]
# Examples:
bash pre-scan.sh all /path/to/repo # everything except unused-functions
bash pre-scan.sh dead-code /path/to/repo # just debug stmts + commented code
bash pre-scan.sh unused-functions /path/to/repo # deeper analysis, slowerfilekindlinedetailchore: [what was cleaned] in [file/module]