.claude/skills/flow-maintenance/SKILL.md
Perform a comprehensive "Lead Engineer" audit: structure, consistency, code quality, technical debt, documentation coverage, and terminology checks.
npx skillsauth add korchasa/ai-skel-ts flow-maintenanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Execute a rigorous 7-point maintenance sweep to identify structural deviations, documentation inconsistencies, dead code, complexity hotspots, technical debt, missing code documentation, and terminology drift. All findings must be actionable and saved to whiteboard.
<step_by_step>
Initialize & Plan
todo_write, todowrite) to create a plan covering the 7 phases below.Phase 1: Structural Integrity
src/, lib/, scripts/). Flag files at wrong levels.deno.json, package.json, etc.) are at expected locations.Phase 2: Code Hygiene & Dependencies
*.test.*, *_test.*,
test_*.py). Flag tests that:
expect(true).toBe(true), assert True).Phase 3: Complexity & Hotspots
Phase 4: Technical Debt Aggregation
TODO, FIXME, HACK, XXX tags in the codebase.Phase 5: Consistency (Docs vs. Code)
README.md and documents/. Check
if code uses different synonyms (e.g., "User" in docs vs "Customer" in
code).documents/*.md (e.g., "The system
handles X asynchronously"). Verify if the code actually does that.Phase 6: Code Documentation Coverage
Phase 7: Reporting
# Maintenance Report (YYYY-MM-DD)
## 1. Structural Issues
- [ ] File X is in root but should be in Y. (Fix: Move file)
## 2. Hygiene & Quality
- [ ] Unused export `myFunc` in `utils.*`. (Fix: Delete)
- [ ] `main.*` is 550 lines. (Fix: Extract `processLogic` to new file)
## 3. Technical Debt
- [ ] 5 TODOs in `api.*` regarding error handling.
## 4. Consistency
- [ ] Docs say "User", code says "Client". (Fix: Standardize on User)
## 5. Documentation Coverage
- [ ] `utils.*` - function `parseData` missing docs. (Fix: Add docs)
- [ ] `ComplexClass` missing usage example. (Fix: Add example)
</step_by_step>
tools
Scaffold a complete AI agent application skeleton with LLM integration, tool calling, observability, cost tracking, session management, and content fetching using @korchasa/ai-skel-ts. Use when the user asks to create an AI agent, add LLM integration, scaffold an AI application, or mentions "ai-skel", "agent skeleton", or "AI scaffold". Works with any programming language.
testing
Create structured specification for large features using phased decomposition. Produces documents/spec-{name}.md with dependency-ordered phases, atomic tasks, explicit boundaries, and per-phase status tracking.
documentation
Guidelines for writing comprehensive Product Requirements Documents (PRD)
development
How to write in informational style