What problem does it solve?
Manually writing and maintaining architecture documentation is time-consuming and quickly drifts out of sync with the actual code. This Skill lets an AI agent autonomously analyze any codebase and produce a complete set of C4 model documentation—overview, architecture, workflows, module deep-dives, boundary interfaces, and database overview—without requiring any external binary.
Core Features & Use Cases
- Four-Phase Documentation Pipeline: Preprocessing (project scanning), Research (C1-C4 multi-level analysis), Composition (Markdown generation), and Output (validation and delivery), mirroring the deepwiki-rs workflow.
- Full Module Coverage with DDD Grouping: Identifies every domain module under the source tree, classifies them as core/supporting/generic domains, and generates a dedicated Deep-Exploration document per module with Mermaid diagrams.
- Context-Safe Intermediate Persistence: Writes research findings to a
.litho-agent/ temporary directory so long analysis sessions never lose earlier results.
- Use Case: Point the agent at an unfamiliar repository and ask it to document the project; it will produce
1.概述.md through 6.数据库概览.md with C4 context/container diagrams, sequence diagrams, ER diagrams, and confidence scores.
Quick Start
Ask the agent to analyze this codebase and generate complete C4 architecture documentation in the output directory.