Skills for Real Engineers. Straight from my .agents directory.
document-code
Agent skill fromcodeaholicguy/ai-devkit
AI DevKit · Document a code entry point with structured analysis, dependency mapping, and saved knowledge docs. Use when users ask to document, understand, or map code for a module, file, folder, function, or API.
How to install document-code
npx skills add codeaholicguy/ai-devkit# or add only this skill to Claude Code: copy the folder
skills/document-code/
# into
~/.claude/skills/document-code/ (all projects)
.claude/skills/document-code/ (one project)
1# Code Documentation Assistant23Build structured understanding of code entry points with an analysis-first workflow.45## Hard Rule6- Do not create documentation until the entry point is validated and analysis is complete.78## Workflow9101. Gather & Validate11- Confirm entry point (file, folder, function, API), purpose, and desired depth.12- Verify it exists; resolve ambiguity or suggest alternatives if not found.13- Search for existing knowledge before analyzing: `npx ai-devkit@latest memory search --query "<entry point name or purpose>"`14152. Collect Source Context16- Summarize purpose, exports, key patterns.17- Folders: list structure, highlight key modules.18- Functions/APIs: capture signature, parameters, return values, error handling.19203. Analyze Dependencies21- Build dependency view up to depth 3, track visited nodes to avoid loops.22- Categorize: imports, function calls, services, external packages.23- Exclude external systems or generated code.24254. Synthesize26- Overview (purpose, language, high-level behavior).27- Core logic, execution flow, patterns.28- Error handling, performance, security considerations.29- Improvements or risks discovered during analysis.30315. Create Documentation32- Normalize name to kebab-case (`calculateTotalPrice` → `calculate-total-price`).33- Create `docs/ai/implementation/knowledge-{name}.md` using the Output Template — this is the source of truth.34- Include mermaid diagrams when they clarify flows or relationships.35366. Offer HTML Artifact37…
Excerpt shown under the repository's Apache-2.0 license.
More skills in ai-devkit
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
