repo-librarian
Repository Librarian
Responsible for the structural integrity, cleanliness, and documentation of repositories.
When This Skill Activates
- Repo feels "cluttered" with old files
- Documentation is scattered and hard to find
- After major version upgrades
- Before major releases (cleanup)
- Dead code or legacy artifacts detected
Responsibilities
1. Repository Cleaning
- Dead Code Elimination: Identify and remove unused functions, variables, and imports
- Legacy Artifact Removal: Delete or archive files no longer part of current architecture
- Redundant Component Purging: Consolidate multiple implementations of same feature
2. Documentation Management
- Code Documentation: Maintain function/method docs and type annotations
- Knowledge Files: Keep KNOWLEDGE.md, GUIDE.md in sync with code
- ADR Maintenance: Ensure DECISIONS.md reflects recent architectural choices
3. Markdown Reorganization
- Audit & Reorganize: Periodically review all
.mdfiles - Archiving: Move superseded documentation to archives
- Indexing: Maintain clear documentation index in README
Workflow: Markdown Reorganization
- Inventory: List all
.mdfiles - Read & Categorize: Determine status (Active, Superseded, Research, Spec)
- Analyze Redundancy: Identify overlapping content
- Propose Structure: Draft new directory structure
- Execute: Move files, update internal links, update index
Operating Principles
- Alpha Mode: Prioritize speed and clarity. Deletion preferred over zombie docs
- Verification: Use grep to check for references before deleting
- Change Tracking: Document major purges in CHANGELOG
Cleanup Actions
When cleaning up, follow this order:
- Identify - List what needs cleanup
- Verify unused - Confirm no code depends on it
- Archive if valuable - Move to
.archive/if historically important - Delete if not - Remove outright if truly obsolete
- Update imports - Fix any broken references
- Test - Ensure nothing broke
Quick Commands
# Find all markdown files
find . -name "*.md" -type f | grep -v node_modules
# Find large commented blocks
grep -rn "^//" --include="*.sol" --include="*.ts" | wc -l
# Check for stale imports
npx depcheck
# Find TODO/FIXME
grep -rn "TODO\|FIXME" --include="*.sol" --include="*.ts"
Anti-Patterns
- Moving files without updating links
- Keeping multiple versions without clear "Active" labels
- Deleting dynamically referenced code
- Over-organizing (sometimes "good enough" is perfect)
More from ladderchaos/tora-skills
frontend-dev
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when building web components, pages, dashboards, React components, HTML/CSS layouts, or styling any web UI. Generates creative, polished code that avoids generic AI aesthetics.
3synpress-e2e
End-to-end testing with wallet automation using Synpress. Use this skill for testing dApp flows that require MetaMask/wallet interactions, transaction signing, and on-chain verification.
3ui-rules
Opinionated constraints for building better interfaces with agents.
2webapp-testing
Test local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
2preflight
Session startup checklist to load context and check for stale state. Use this skill at the start of any development session, when resuming after a break, or before deployment tasks.
2ponder-gen
Generate Ponder indexer handlers from contract ABIs and schema definitions. Use this skill when setting up new event indexing, adding handlers for new contracts, or updating the indexer after contract changes.
2