loose-ends
Skill60 starsChanged 10 months agoMITView on GitHub
Before declaring work complete, checks for loose ends: unused imports, TODO comments created, missing tests, stale references, incomplete error handling. Activates after implementing features or fixes. The cleanup that always gets skipped.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- paradite/skillstheir own version, first seen Aug 22, 2026
- zcaceres/skillstheir own version, first seen Aug 19, 2026
- noron12234/loose-endstheir own version, first seen Jul 29, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- zcaceres/skills★ 7same name
- noron12234/loose-ends★ 1same name
- paradite/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- agent-auditSkill
- battle-planSkill
- breadcrumbsSkill
- careful-deleteSkill
- debug-to-fixSkill
- dont-be-greedySkill
- dripSkill
- etaSkill
- fan-outSkill
- geordieSkill
- granola-syncSkill
- keep-it-simpleSkill
- learn-from-thisSkill
- map-reduceSkill
- obsidian-base-createSkill
- obsidian-canvas-createSkill
- obsidian-daily-driverSkill
- obsidian-note-createSkill
- obsidian-session-syncSkill
- obsidian-vault-initSkill
- obsidian-vault-searchSkill
- pair-modeSkill
- pipelineSkill
- pre-mortemSkill
- prove-itSkill
- retrospectiveSkill
- rubber-duckSkill
- safe-refactorSkill
- sanity-checkSkill
- skill-creatorSkill
- skill-forgeSkill
- skill-gateSkill
- split-decisionSkill
- stay-in-laneSkill
- trace-itSkill
- you-sureSkill
- youtube-transcriptSkill
- zero-inSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
After fixing a bug
- Distinctive: line 29
After any multi-file change
- Distinctive: line 37
Before declaring complete, run through:
- Distinctive: line 76
Run the sweep script to find common cruft:
- Distinctive: line 105
Not all loose ends are equal:
- Distinctive: line 136
Leave console.log in production code
- Distinctive: line 137
Create TODOs and forget about them
- Distinctive: line 138
Leave unused imports from experimentation
- Distinctive: line 146
Verify imports are used
- Distinctive: line 147
Check that tests pass after changes
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Loose Ends
<purpose>
Implementation feels done, but loose ends remain. The import you added but didn't
use. The TODO you wrote and forgot. The test you meant to add. The console.log
you left in. This skill forces a sweep before declaring victory.
</purpose>When To Activate
<triggers>
- About to say "done" or "complete"
- Finishing a feature implementation
- After fixing a bug
- Before committing changes
- After any multi-file change
- User asks "is it ready?"
</triggers>Instructions
The Loose Ends Checklist
Before declaring complete, run through:
<checklist>
## Loose Ends SweepCode Hygiene
- No unused imports
- No unused variables
- No commented-out code (unless intentional)
- No console.log/print statements left in
- No debugger statements
TODOs and FIXMEs
- No new TODOs created and forgotten
- Any existing TODOs in touched files addressed or noted
Tests
- New code has tests (or explicit reason why not)
- Existing tests still pass
- Edge cases considered
Types (if applicable)
- No
anytypes added - No type assertions without reason
- Interfaces/types defined for new structures
References
- Old references updated if things were renamed
- No broken imports
- No stale comments referring to old code
Error Handling
- Errors handled or explicitly bubbled up
- User-facing errors have good messages
- No silent failures
</checklist>
Automated Sweep
Run the sweep script to find common cruft:
python scripts/sweep.pyScans for:
console.log,print(),debuggerstatementsTODO,FIXME,XXX,HACKcommentsdd(),var_dump(),binding.pry(PHP/Ruby)
Quick Scan Commands
# Find TODOs in changed files
git diff --name-only | xargs grep -n "TODO\|FIXME"
# Find console.log in changed files
git diff --name-only | xargs grep -n "console.log"
# Find unused imports (TypeScript)
npx tsc --noEmit 2>&1 | grep "declared but"
# Find any types added
git diff | grep ": any"Prioritize by Impact
Not all loose ends are equal:
| Priority | Type | Action |
| Fix now | Broken imports, missing exports | Blocks functionality |
| Fix now | console.log in production code | Leaks info |
| Should fix | Unused imports/variables | Code smell |
| Should fix | Missing tests for new logic | Technical debt |
| Note for later | Old TODOs in touched files | Existing debt |
| Ignore | Style inconsistencies | Not your scope |
Output Format
## Loose Ends Check
**Files changed:** [count]
**Fixed:**
- [x] Removed unused import in `file.ts`
- [x] Removed console.log in `handler.ts`
**Noted:**
- [ ] `utils.ts:45` has existing TODO (not from this change)
**Clean:** No loose ends found / All addressedNEVER
- Declare "done" without scanning for loose ends
- Leave console.log in production code
- Create TODOs and forget about them
- Leave unused imports from experimentation
- Skip the checklist because "it's a small change"
ALWAYS
- Scan changed files before committing
- Remove debugging artifacts
- Address or document any TODOs you create
- Verify imports are used
- Check that tests pass after changes
Example
After implementing a new API endpoint:
## Loose Ends Check
**Files changed:** 4
**Scanning...**
`api/users.ts`:
- Line 3: unused import `lodash` → Removed
- Line 45: console.log for debugging → Removed
`types/user.ts`:
- Clean
`tests/users.test.ts`:
- New endpoint has test → Good
- Edge case (empty input) not tested → Added
`services/user.ts`:
- Line 23: TODO I wrote: "validate email format" → Addressed now
**Result:** 4 loose ends found and fixed. Ready to commit.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

