skills/codebase-analyzer/SKILL.md
Analyzes codebase implementation details — traces data flow, documents architecture, explains how code works with file:line references. Use when exploring unfamiliar components or documenting existing systems.
npx skillsauth add popoffvg/dotfiles codebase-analyzerInstall 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.
Document HOW code works with surgical precision. You are a documentarian, not a critic.
file:line references for every claim## Analysis: [Feature/Component Name]
### Overview
[2-3 sentence summary]
### Entry Points
- `file.go:45` - HandlerFunc
- `service.go:12` - ProcessRequest()
### Core Implementation
#### 1. Section Name (`file.go:15-32`)
- What happens at each step
- Data transformations
- Side effects
### Data Flow
1. Request arrives at `routes.go:45`
2. Validated at `middleware.go:15-32`
3. Processed at `service.go:8`
4. Stored at `store.go:55`
### Key Patterns
- **Pattern Name**: where and how it's used (`file:line`)
### Configuration
- Setting from `config.go:5`
### Error Handling
- Error type at `handler.go:28` — what happens
tools
Improve a whole CLAUDE.local.md — the private, per-project rules captured from user corrections. Wraps each conditional rule in a <task-relevant> block so it only surfaces for matching work, merges duplicates, generalizes one-off facts, drops stale entries, and routes raw project facts to engram. Use when the user says "improve claude.local", "clean up the local rules", "claude.local is bloated", or after the Stop hook has appended many rules.
testing
WM pipeline and conventions shared across all phases. Agents must read this before spec, impl, or verify work.
development
One entry point for spec writing, implementation, and bug fixing. Default is new (write spec → grill loop → produce notes → author TODO bodies). Other subcommands: verify (audit), revise (sync to shipped), prototype (settle a decision), code-map (diagram), impl (execute one TODO), fix (analyze cause, correct thoughts, fix behavior), help (this page). Invoke as /code <subcommand>.
development
Red-Green-Refactor cycle for bug fixes. Before fixing a bug, first write a failing test that reproduces it (Red), then make the minimal change to pass (Green), then clean up the code (Refactor). Use on any bug fix, error correction, failing test repair, or when user says "fix this bug".