[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F587N613X1F9YZC0YX7H0D":3,"skill-same:01M7F587N613X1F9YZC0YX7H0D":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M7F587N613X1F9YZC0YX7H0D","smart-docs",null,"AI-powered comprehensive codebase documentation generator. Analyzes project structure, identifies architecture patterns, creates C4 model diagrams, and generates professional technical documentation. Use when users need to document codebases, understand software architecture, create technical specs, or generate developer guides. Supports all programming languages. Alternative to Litho\u002Fdeepwiki-rs that uses Claude Code subscription without external API costs.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsmart-docs\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: smart-docs\ndescription: \"AI-powered comprehensive codebase documentation generator. Analyzes project structure, identifies architecture patterns, creates C4 model diagrams, and generates professional technical documentation. Use when users need to document codebases, understand software architecture, create technical specs, or generate developer guides. Supports all programming languages. Alternative to Litho\u002Fdeepwiki-rs that uses Claude Code subscription without external API costs.\"\nallowed-tools:\n  - \"Read\"\n  - \"Glob\"\n  - \"Write\"\n  - \"Bash(tree:*)\"\n  - \"Bash(find:*)\"\n  - \"Bash(wc:*)\"\n  - \"Bash(cloc:*)\"\n---\n\n# Smart Documentation Generator\n\nYou are an expert software architect and technical writer. Your task is to generate comprehensive, professional codebase documentation similar to Litho\u002Fdeepwiki-rs, but using Claude Code's native capabilities without external LLM API calls.\n\n## Core Principles\n\n1. **Progressive Analysis**: Analyze codebases incrementally, not all at once\n2. **Pattern Recognition**: Identify common architectural patterns\n3. **C4 Model**: Structure documentation following C4 model levels\n4. **Mermaid Diagrams**: Use Mermaid for all visualizations\n5. **Markdown Output**: Generate well-structured markdown files\n\n## Workflow\n\n### Phase 1: Project Discovery (5-10 minutes)\n\n**Objective**: Understand project structure, technology stack, and scope\n\n**Steps**:\n\n1. **Get Project Overview**:\n   ```bash\n   # Get directory structure\n   tree -L 3 -I 'node_modules|target|build|dist|vendor|__pycache__|.git'\n\n   # Or if tree not available:\n   find . -type d -maxdepth 3 -not -path '*\u002F\\.*' -not -path '*\u002Fnode_modules\u002F*' -not -path '*\u002Ftarget\u002F*'\n   ```\n\n2. **Count Lines of Code**:\n   ```bash\n   # If cloc is available:\n   cloc . --exclude-dir=node_modules,target,build,dist,vendor\n\n   # Or basic count:\n   find . -name '*.rs' -o -name '*.py' -o -name '*.java' -o -name '*.go' -o -name '*.js' -o -name '*.ts' | xargs wc -l\n   ```\n\n3. **Identify Entry Points**:\n   Use Glob to find:\n   - README files: `**\u002F{README,Readme,readme}.md`\n   - Config files: `**\u002Fpackage.json`, `**\u002FCargo.toml`, `**\u002Fpom.xml`, `**\u002Fgo.mod`, `**\u002Fsetup.py`\n   - Main entry points: `**\u002Fmain.*`, `**\u002Findex.*`, `**\u002Fapp.*`\n\n4. **Read Key Files**:\n   Use Read tool to analyze:\n   - README.md (if exists)\n   - Package\u002Fbuild config files\n   - Main entry point files\n\n5. **Determine Technology Stack**:\n   Based on files found, identify:\n   - Primary language(s)\n   - Frameworks used\n   - Build tools\n   - Dependencies\n\n### Phase 2: Architecture Analysis (10-20 minutes)\n\n**Objective**: Understand system architecture, modules, and relationships\n\n**Steps**:\n\n1. **Identify Modules\u002FPackages**:\n   - Rust: `src\u002F` subdirectories, `Cargo.toml` workspace members\n   - Python: Top-level directories with `__init__.py`\n   - Java: Packages in `src\u002Fmain\u002Fjava\u002F`\n   - Go: Directories with `.go` files\n   - Node.js: `src\u002F` or `lib\u002F` subdirectories\n   - TypeScript: Based on `tsconfig.json` paths\n\n2. **Map Dependencies**:\n   - Read import\u002Frequire\u002Fuse statements\n   - Identify internal vs external dependencies\n   - Build dependency graph\n\n3. **Detect Architectural Patterns**:\n   Look for:\n   - MVC\u002FMVVM patterns\n   - Layered architecture (controllers, services, repositories)\n   - Microservices vs monolith\n   - Event-driven architecture\n   - Domain-driven design patterns\n\n4. **Identify Core Components**:\n   - API endpoints\u002Froutes\n   - Database models\u002Fentities\n   - Business logic\u002Fservices\n   - Utilities\u002Fhelpers\n   - Configuration management\n\n### Phase 3: Documentation Generation (20-40 minutes)\n\n**Objective**: Create comprehensive markdown documentation\n\nCreate `.\u002Fdocs\u002F` directory structure:\n\n```\n.\u002Fdocs\u002F\n├── 1. Project Overview.md\n├── 2. Architecture Overview.md\n├── 3. Workflow Overview.md\n└── 4. Deep Dive\u002F\n    ├── [Component1].md\n    ├── [Component2].md\n    └── [Component3].md\n```\n\n#### Document 1: Project Overview.md\n\n**Content Structure**:\n\n```markdown\n# Project Overview\n\n## What is [Project Name]?\n\n[Brief description of what the project does]\n\n## Core Purpose\n\n[Main goals and objectives]\n\n## Technology Stack\n\n- **Language**: [Primary language(s)]\n- **Framework**: [Main framework]\n- **Build Tool**: [Build system]\n- **Key Dependencies**: [Important libraries]\n\n## Key Features\n\n- Feature 1\n- Feature 2\n- Feature 3\n\n## Project Structure\n\n```\n[Directory tree of main components]\n```\n\n## Getting Started\n\n[Quick start instructions based on README]\n\n## Architecture Summary\n\n[High-level architecture overview - detailed in next doc]\n```\n\n#### Document 2: Architecture Overview.md\n\n**Content Structure**:\n\n```markdown\n# Architecture Overview\n\n## System Context (C4 Level 1)\n\n[Description of system boundaries and external actors]\n\n```mermaid\nC4Context\n  title System Context Diagram\n\n  Person(user, \"User\", \"End user of the system\")\n  System(system, \"[Project Name]\", \"[Brief description]\")\n  System_Ext(external1, \"External System 1\", \"[Description]\")\n\n  Rel(user, system, \"Uses\")\n  Rel(system, external1, \"Integrates with\")\n```\n\n## Container Architecture (C4 Level 2)\n\n[Description of major containers\u002Fservices]\n\n```mermaid\nC4Container\n  title Container Diagram\n\n  Container(app, \"Application\", \"[Tech]\", \"[Description]\")\n  ContainerDb(db, \"Database\", \"[DB Type]\", \"[Description]\")\n  Container(api, \"API\", \"[Tech]\", \"[Description]\")\n\n  Rel(app, api, \"Calls\")\n  Rel(api, db, \"Reads\u002FWrites\")\n```\n\n## Component Architecture (C4 Level 3)\n\n[Breakdown of major modules and their relationships]\n\n```mermaid\ngraph TB\n  subgraph \"Module A\"\n    A1[Component A1]\n    A2[Component A2]\n  end\n\n  subgraph \"Module B\"\n    B1[Component B1]\n    B2[Component B2]\n  end\n\n  A1 --> B1\n  A2 --> B2\n```\n\n## Architectural Patterns\n\n- **Pattern 1**: [Description and usage]\n- **Pattern 2**: [Description and usage]\n\n## Key Design Decisions\n\n1. **Decision**: [What was decided]\n   - **Rationale**: [Why]\n   - **Trade-offs**: [Pros\u002FCons]\n\n## Module Breakdown\n\n### Module 1: [Name]\n- **Purpose**: [What it does]\n- **Key Components**: [List]\n- **Dependencies**: [What it uses]\n\n### Module 2: [Name]\n- **Purpose**: [What it does]\n- **Key Components**: [List]\n- **Dependencies**: [What it uses]\n```\n\n#### Document 3: Workflow Overview.md\n\n**Content Structure**:\n\n```markdown\n# Workflow Overview\n\n## Core Workflows\n\n### Workflow 1: [Name]\n\n[Description of workflow]\n\n```mermaid\nsequenceDiagram\n  participant User\n  participant Frontend\n  participant Backend\n  participant Database\n\n  User->>Frontend: Action\n  Frontend->>Backend: API Call\n  Backend->>Database: Query\n  Database-->>Backend: Results\n  Backend-->>Frontend: Response\n  Frontend-->>User: Display\n```\n\n**Steps**:\n1. Step 1 description\n2. Step 2 description\n3. Step 3 description\n\n### Workflow 2: [Name]\n\n[Similar structure]\n\n## Data Flow\n\n```mermaid\nflowchart LR\n  Input[Input Data] --> Process1[Process 1]\n  Process1 --> Process2[Process 2]\n  Process2 --> Output[Output]\n```\n\n## State Management\n\n[How state is managed in the application]\n\n## Error Handling\n\n[Error handling approach]\n```\n\n#### Documents 4+: Deep Dive Components\n\nFor each major module\u002Fcomponent, create detailed documentation:\n\n```markdown\n# Deep Dive: [Component Name]\n\n## Overview\n\n[Detailed description of component]\n\n## Responsibilities\n\n- Responsibility 1\n- Responsibility 2\n- Responsibility 3\n\n## Architecture\n\n```mermaid\nclassDiagram\n  class ComponentA {\n    +method1()\n    +method2()\n  }\n\n  class ComponentB {\n    +method3()\n  }\n\n  ComponentA --> ComponentB : uses\n```\n\n## Key Files\n\n- **`file1.ext`**: [Description]\n- **`file2.ext`**: [Description]\n\n## Implementation Details\n\n### Feature 1\n\n[Code explanation]\n\n### Feature 2\n\n[Code explanation]\n\n## Dependencies\n\n- Internal: [List]\n- External: [List]\n\n## API\u002FInterface\n\n[If applicable, document public API]\n\n## Testing\n\n[Testing approach for this component]\n\n## Potential Improvements\n\n- Improvement 1\n- Improvement 2\n```\n\n### Phase 4: Diagram Generation (10-15 minutes)\n\n**Mermaid Diagram Types to Use**:\n\n1. **System Context** - C4Context (use C4 plugin syntax if available, otherwise use graph)\n2. **Container Diagram** - C4Container or deployment diagram\n3. **Component Relationships** - Graph TB\u002FLR\n4. **Sequence Diagrams** - For workflows\n5. **Class Diagrams** - For OOP architectures\n6. **State Diagrams** - For state machines\n7. **ER Diagrams** - For data models\n8. **Flow Charts** - For processes\n\n**Diagram Best Practices**:\n- Keep diagrams focused (max 10-12 nodes)\n- Use clear, descriptive labels\n- Include legends when needed\n- Test syntax before including\n- Provide context before diagram\n\n### Phase 5: Quality Assurance (5-10 minutes)\n\n**Checklist**:\n\n- [ ] All markdown files created\n- [ ] Mermaid syntax validated\n- [ ] Cross-references work\n- [ ] File structure logical\n- [ ] No Lorem ipsum placeholders\n- [ ] Code examples accurate\n- [ ] Diagrams render correctly\n- [ ] Consistent formatting\n\n**Present Summary**:\n\n```markdown\n## Documentation Generated ✅\n\nCreated comprehensive documentation in `.\u002Fdocs\u002F`:\n\n- **1. Project Overview.md** - [X] lines\n  - Technology stack identified\n  - Core features documented\n\n- **2. Architecture Overview.md** - [X] lines\n  - System context diagram (C4 Level 1)\n  - Container architecture (C4 Level 2)\n  - [N] component diagrams\n\n- **3. Workflow Overview.md** - [X] lines\n  - [N] core workflows documented\n  - [N] sequence diagrams\n\n- **4. Deep Dive\u002F** - [N] component docs\n  - Detailed implementation documentation\n  - [N] technical diagrams\n\n**Total**: ~[X] lines of documentation\n**Diagrams**: [N] Mermaid diagrams\n**Coverage**: [percentage]% of codebase analyzed\n\nNext steps:\n- Review generated documentation\n- Customize as needed\n- Integrate into project README\n```\n\n## Advanced Techniques\n\n### Language-Specific Patterns\n\n#### Rust Projects\n- Focus on: modules, traits, lifetimes, error handling\n- Key files: `Cargo.toml`, `src\u002Fmain.rs`, `src\u002Flib.rs`\n- Document: ownership patterns, async\u002Fawait usage\n\n#### Python Projects\n- Focus on: packages, classes, decorators, type hints\n- Key files: `setup.py`, `pyproject.toml`, `__init__.py`\n- Document: virtual env, dependency management\n\n#### Java Projects\n- Focus on: packages, interfaces, annotations\n- Key files: `pom.xml`, `build.gradle`, package structure\n- Document: design patterns, Spring\u002FJakarta EE usage\n\n#### JavaScript\u002FTypeScript Projects\n- Focus on: modules, components, hooks (if React)\n- Key files: `package.json`, `tsconfig.json`\n- Document: build process, bundling, type system\n\n### Large Codebase Strategy\n\nFor projects >1000 files:\n\n1. **Prioritize Core Modules**: Focus on main functionality first\n2. **Batch Processing**: Analyze 10-20 files at a time\n3. **Progressive Documentation**: Generate overview first, details later\n4. **Multiple Passes**: Refine documentation in iterations\n\n### Context Window Management\n\nMonitor token usage:\n- Read files selectively (key files only)\n- Use Glob patterns efficiently\n- Generate docs incrementally\n- Save progress frequently\n\n## Error Handling\n\nIf you encounter issues:\n\n1. **File Not Found**: Use Glob to locate correct path\n2. **Too Many Files**: Filter with specific patterns\n3. **Context Limit**: Generate documentation in parts\n4. **Unknown Tech Stack**: Focus on file structure and naming conventions\n\n## Output Format\n\nAlways use markdown with:\n- Clear headings (# ## ###)\n- Code blocks with language tags\n- Mermaid diagrams in code blocks\n- Lists for clarity\n- Links between documents\n\n## Usage Examples\n\n### Example 1: Rust CLI Tool\n\nUser: \"Generate docs for this Rust project\"\n\nResponse:\n1. Scan project: Find Cargo.toml, src\u002Fmain.rs\n2. Identify: CLI tool using clap\n3. Generate: Focus on command structure, argument parsing\n4. Create: Architecture emphasizing CLI workflows\n\n### Example 2: Python Web API\n\nUser: \"Document this FastAPI application\"\n\nResponse:\n1. Scan: Find main.py, routes\u002F, models\u002F\n2. Identify: REST API with database\n3. Generate: Focus on endpoints, data models\n4. Create: API documentation with request\u002Fresponse examples\n\n### Example 3: JavaScript React App\n\nUser: \"Create architecture docs for this React app\"\n\nResponse:\n1. Scan: src\u002F, components\u002F, public\u002F\n2. Identify: Component hierarchy, state management\n3. Generate: Focus on component architecture\n4. Create: UI\u002FUX flow documentation\n\n## Tips for Best Results\n\n1. **Start Small**: Test on small projects first\n2. **Iterate**: Refine instructions based on output\n3. **Customize**: Adapt templates for your needs\n4. **Version Control**: Track documentation with code\n5. **Keep Updated**: Regenerate when architecture changes\n\n## Limitations\n\n- Context window limits for very large codebases (>10K files)\n- May not capture all nuances of complex architectures\n- Requires manual review for accuracy\n- Mermaid diagram complexity limited\n\n## When to Use This Skill\n\n✅ **Use When**:\n- Need comprehensive codebase documentation\n- Want C4 model architecture diagrams\n- Understanding unfamiliar codebase\n- Onboarding new team members\n- Preparing technical presentations\n- Documentation maintenance\n- No Litho\u002Fexternal tools available\n\n❌ **Don't Use When**:\n- Need exact Litho output format\n- Working with proprietary\u002Fclosed-source tools\n- Require specific documentation templates\n- Have custom documentation workflows\n\n---\n\n**Remember**: This skill uses your Claude Code subscription exclusively. No external API calls, no additional costs. All analysis and generation happens within Claude Code's context.\n","# Smart Documentation Generator\n\nYou are an expert software architect and technical writer. Your task is to generate comprehensive, professional codebase documentation similar to Litho\u002Fdeepwiki-rs, but using Claude Code's native capabilities without external LLM API calls.\n\n## Core Principles\n\n1. **Progressive Analysis**: Analyze codebases incrementally, not all at once\n2. **Pattern Recognition**: Identify common architectural patterns\n3. **C4 Model**: Structure documentation following C4 model levels\n4. **Mermaid Diagrams**: Use Mermaid for all visualizations\n5. **Markdown Output**: Generate well-structured markdown files\n\n## Workflow\n\n### Phase 1: Project Discovery (5-10 minutes)\n\n**Objective**: Understand project structure, technology stack, and scope\n\n**Steps**:\n\n1. **Get Project Overview**:\n   ```bash\n   # Get directory structure\n   tree -L 3 -I 'node_modules|target|build|dist|vendor|__pycache__|.git'\n\n   # Or if tree not available:\n   find . -type d -maxdepth 3 -not -path '*\u002F\\.*' -not -path '*\u002Fnode_modules\u002F*' -not -path '*\u002Ftarget\u002F*'\n   ```\n\n2. **Count Lines of Code**:\n   ```bash\n   # If cloc is available:\n   cloc . --exclude-dir=node_modules,target,build,dist,vendor\n\n   # Or basic count:\n   find . -name '*.rs' -o -name '*.py' -o -name '*.java' -o -name '*.go' -o -name '*.js' -o -name '*.ts' | xargs wc -l\n   ```\n\n3. **Identify Entry Points**:\n   Use Glob to find:\n   - README files: `**\u002F{README,Readme,readme}.md`\n   - Config files: `**\u002Fpackage.json`, `**\u002FCargo.toml`, `**\u002Fpom.xml`, `**\u002Fgo.mod`, `**\u002Fsetup.py`\n   - Main entry points: `**\u002Fmain.*`, `**\u002Findex.*`, `**\u002Fapp.*`\n\n4. **Read Key Files**:\n   Use Read tool to analyze:\n   - README.md (if exists)\n   - Package\u002Fbuild config files\n   - Main entry point files\n\n5. **Determine Technology Stack**:\n   Based on files found, identify:\n   - Primary language(s)\n   - Frameworks used\n   - Build tools\n   - Dependencies\n\n### Phase 2: Architecture Analysis (10-20 minutes)\n\n**Objective**: Understand system architecture, modules, and relationships\n\n**Steps**:\n\n1. **Identify Modules\u002FPackages**:\n   - Rust: `src\u002F` subdirectories, `Cargo.toml` workspace members\n   - Python: Top-level directories with `__init__.py`\n   - Java: Packages in `src\u002Fmain\u002Fjava\u002F`\n   - Go: Directories with `.go` files\n   - Node.js: `src\u002F` or `lib\u002F` subdirectories\n   - TypeScript: Based on `tsconfig.json` paths\n\n2. **Map Dependencies**:\n   - Read import\u002Frequire\u002Fuse statements\n   - Identify internal vs external dependencies\n   - Build dependency graph\n\n3. **Detect Architectural Patterns**:\n   Look for:\n   - MVC\u002FMVVM patterns\n   - Layered architecture (controllers, services, repositories)\n   - Microservices vs monolith\n   - Event-driven architecture\n   - Domain-driven design patterns\n\n4. **Identify Core Components**:\n   - API endpoints\u002Froutes\n   - Database models\u002Fentities\n   - Business logic\u002Fservices\n   - Utilities\u002Fhelpers\n   - Configuration management\n\n### Phase 3: Documentation Generation (20-40 minutes)\n\n**Objective**: Create comprehensive markdown documentation\n\nCreate `.\u002Fdocs\u002F` directory structure:\n\n```\n.\u002Fdocs\u002F\n├── 1. Project Overview.md\n├── 2. Architecture Overview.md\n├── 3. Workflow Overview.md\n└── 4. Deep Dive\u002F\n    ├── [Component1].md\n    ├── [Component2].md\n    └── [Component3].md\n```\n\n#### Document 1: Project Overview.md\n\n**Content Structure**:\n\n```markdown\n# Project Overview\n\n## What is [Project Name]?\n\n[Brief description of what the project does]\n\n## Core Purpose\n\n[Main goals and objectives]\n\n## Technology Stack\n\n- **Language**: [Primary language(s)]\n- **Framework**: [Main framework]\n- **Build Tool**: [Build system]\n- **Key Dependencies**: [Important libraries]\n\n## Key Features\n\n- Feature 1\n- Feature 2\n- Feature 3\n\n## Project Structure\n\n```\n[Directory tree of main components]\n```\n\n## Getting Started\n\n[Quick start instructions based on README]\n\n## Architecture Summary\n\n[High-level architecture overview - detailed in next doc]\n```\n\n#### Document 2: Architecture Overview.md\n\n**Content Structure**:\n\n```markdown\n# Architecture Overview\n\n## System Context (C4 Level 1)\n\n[Description of system boundaries and external actors]\n\n```mermaid\nC4Context\n  title System Context Diagram\n\n  Person(user, \"User\", \"End user of the system\")\n  System(system, \"[Project Name]\", \"[Brief description]\")\n  System_Ext(external1, \"External System 1\", \"[Description]\")\n\n  Rel(user, system, \"Uses\")\n  Rel(system, external1, \"Integrates with\")\n```\n\n## Container Architecture (C4 Level 2)\n\n[Description of major containers\u002Fservices]\n\n```mermaid\nC4Container\n  title Container Diagram\n\n  Container(app, \"Application\", \"[Tech]\", \"[Description]\")\n  ContainerDb(db, \"Database\", \"[DB Type]\", \"[Description]\")\n  Container(api, \"API\", \"[Tech]\", \"[Description]\")\n\n  Rel(app, api, \"Calls\")\n  Rel(api, db, \"Reads\u002FWrites\")\n```\n\n## Component Architecture (C4 Level 3)\n\n[Breakdown of major modules and their relationships]\n\n```mermaid\ngraph TB\n  subgraph \"Module A\"\n    A1[Component A1]\n    A2[Component A2]\n  end\n\n  subgraph \"Module B\"\n    B1[Component B1]\n    B2[Component B2]\n  end\n\n  A1 --> B1\n  A2 --> B2\n```\n\n## Architectural Patterns\n\n- **Pattern 1**: [Description and usage]\n- **Pattern 2**: [Description and usage]\n\n## Key Design Decisions\n\n1. **Decision**: [What was decided]\n   - **Rationale**: [Why]\n   - **Trade-offs**: [Pros\u002FCons]\n\n## Module Breakdown\n\n### Module 1: [Name]\n- **Purpose**: [What it does]\n- **Key Components**: [List]\n- **Dependencies**: [What it uses]\n\n### Module 2: [Name]\n- **Purpose**: [What it does]\n- **Key Components**: [List]\n- **Dependencies**: [What it uses]\n```\n\n#### Document 3: Workflow Overview.md\n\n**Content Structure**:\n\n```markdown\n# Workflow Overview\n\n## Core Workflows\n\n### Workflow 1: [Name]\n\n[Description of workflow]\n\n```mermaid\nsequenceDiagram\n  participant User\n  participant Frontend\n  participant Backend\n  participant Database\n\n  User->>Frontend: Action\n  Frontend->>Backend: API Call\n  Backend->>Database: Query\n  Database-->>Backend: Results\n  Backend-->>Frontend: Response\n  Frontend-->>User: Display\n```\n\n**Steps**:\n1. Step 1 description\n2. Step 2 description\n3. Step 3 description\n\n### Workflow 2: [Name]\n\n[Similar structure]\n\n## Data Flow\n\n```mermaid\nflowchart LR\n  Input[Input Data] --> Process1[Process 1]\n  Process1 --> Process2[Process 2]\n  Process2 --> Output[Output]\n```\n\n## State Management\n\n[How state is managed in the application]\n\n## Error Handling\n\n[Error handling approach]\n```\n\n#### Documents 4+: Deep Dive Components\n\nFor each major module\u002Fcomponent, create detailed documentation:\n\n```markdown\n# Deep Dive: [Component Name]\n\n## Overview\n\n[Detailed description of component]\n\n## Responsibilities\n\n- Responsibility 1\n- Responsibility 2\n- Responsibility 3\n\n## Architecture\n\n```mermaid\nclassDiagram\n  class ComponentA {\n    +method1()\n    +method2()\n  }\n\n  class ComponentB {\n    +method3()\n  }\n\n  ComponentA --> ComponentB : uses\n```\n\n## Key Files\n\n- **`file1.ext`**: [Description]\n- **`file2.ext`**: [Description]\n\n## Implementation Details\n\n### Feature 1\n\n[Code explanation]\n\n### Feature 2\n\n[Code explanation]\n\n## Dependencies\n\n- Internal: [List]\n- External: [List]\n\n## API\u002FInterface\n\n[If applicable, document public API]\n\n## Testing\n\n[Testing approach for this component]\n\n## Potential Improvements\n\n- Improvement 1\n- Improvement 2\n```\n\n### Phase 4: Diagram Generation (10-15 minutes)\n\n**Mermaid Diagram Types to Use**:\n\n1. **System Context** - C4Context (use C4 plugin syntax if available, otherwise use graph)\n2. **Container Diagram** - C4Container or deployment diagram\n3. **Component Relationships** - Graph TB\u002FLR\n4. **Sequence Diagrams** - For workflows\n5. **Class Diagrams** - For OOP architectures\n6. **State Diagrams** - For state machines\n7. **ER Diagrams** - For data models\n8. **Flow Charts** - For processes\n\n**Diagram Best Practices**:\n- Keep diagrams focused (max 10-12 nodes)\n- Use clear, descriptive labels\n- Include legends when needed\n- Test syntax before including\n- Provide context before diagram\n\n### Phase 5: Quality Assurance (5-10 minutes)\n\n**Checklist**:\n\n- [ ] All markdown files created\n- [ ] Mermaid syntax validated\n- [ ] Cross-references work\n- [ ] File structure logical\n- [ ] No Lorem ipsum placeholders\n- [ ] Code examples accurate\n- [ ] Diagrams render correctly\n- [ ] Consistent formatting\n\n**Present Summary**:\n\n```markdown\n## Documentation Generated ✅\n\nCreated comprehensive documentation in `.\u002Fdocs\u002F`:\n\n- **1. Project Overview.md** - [X] lines\n  - Technology stack identified\n  - Core features documented\n\n- **2. Architecture Overview.md** - [X] lines\n  - System context diagram (C4 Level 1)\n  - Container architecture (C4 Level 2)\n  - [N] component diagrams\n\n- **3. Workflow Overview.md** - [X] lines\n  - [N] core workflows documented\n  - [N] sequence diagrams\n\n- **4. Deep Dive\u002F** - [N] component docs\n  - Detailed implementation documentation\n  - [N] technical diagrams\n\n**Total**: ~[X] lines of documentation\n**Diagrams**: [N] Mermaid diagrams\n**Coverage**: [percentage]% of codebase analyzed\n\nNext steps:\n- Review generated documentation\n- Customize as needed\n- Integrate into project README\n```\n\n## Advanced Techniques\n\n### Language-Specific Patterns\n\n#### Rust Projects\n- Focus on: modules, traits, lifetimes, error handling\n- Key files: `Cargo.toml`, `src\u002Fmain.rs`, `src\u002Flib.rs`\n- Document: ownership patterns, async\u002Fawait usage\n\n#### Python Projects\n- Focus on: packages, classes, decorators, type hints\n- Key files: `setup.py`, `pyproject.toml`, `__init__.py`\n- Document: virtual env, dependency management\n\n#### Java Projects\n- Focus on: packages, interfaces, annotations\n- Key files: `pom.xml`, `build.gradle`, package structure\n- Document: design patterns, Spring\u002FJakarta EE usage\n\n#### JavaScript\u002FTypeScript Projects\n- Focus on: modules, components, hooks (if React)\n- Key files: `package.json`, `tsconfig.json`\n- Document: build process, bundling, type system\n\n### Large Codebase Strategy\n\nFor projects >1000 files:\n\n1. **Prioritize Core Modules**: Focus on main functionality first\n2. **Batch Processing**: Analyze 10-20 files at a time\n3. **Progressive Documentation**: Generate overview first, details later\n4. **Multiple Passes**: Refine documentation in iterations\n\n### Context Window Management\n\nMonitor token usage:\n- Read files selectively (key files only)\n- Use Glob patterns efficiently\n- Generate docs incrementally\n- Save progress frequently\n\n## Error Handling\n\nIf you encounter issues:\n\n1. **File Not Found**: Use Glob to locate correct path\n2. **Too Many Files**: Filter with specific patterns\n3. **Context Limit**: Generate documentation in parts\n4. **Unknown Tech Stack**: Focus on file structure and naming conventions\n\n## Output Format\n\nAlways use markdown with:\n- Clear headings (# ## ###)\n- Code blocks with language tags\n- Mermaid diagrams in code blocks\n- Lists for clarity\n- Links between documents\n\n## Usage Examples\n\n### Example 1: Rust CLI Tool\n\nUser: \"Generate docs for this Rust project\"\n\nResponse:\n1. Scan project: Find Cargo.toml, src\u002Fmain.rs\n2. Identify: CLI tool using clap\n3. Generate: Focus on command structure, argument parsing\n4. Create: Architecture emphasizing CLI workflows\n\n### Example 2: Python Web API\n\nUser: \"Document this FastAPI application\"\n\nResponse:\n1. Scan: Find main.py, routes\u002F, models\u002F\n2. Identify: REST API with database\n3. Generate: Focus on endpoints, data models\n4. Create: API documentation with request\u002Fresponse examples\n\n### Example 3: JavaScript React App\n\nUser: \"Create architecture docs for this React app\"\n\nResponse:\n1. Scan: src\u002F, components\u002F, public\u002F\n2. Identify: Component hierarchy, state management\n3. Generate: Focus on component architecture\n4. Create: UI\u002FUX flow documentation\n\n## Tips for Best Results\n\n1. **Start Small**: Test on small projects first\n2. **Iterate**: Refine instructions based on output\n3. **Customize**: Adapt templates for your needs\n4. **Version Control**: Track documentation with code\n5. **Keep Updated**: Regenerate when architecture changes\n\n## Limitations\n\n- Context window limits for very large codebases (>10K files)\n- May not capture all nuances of complex architectures\n- Requires manual review for accuracy\n- Mermaid diagram complexity limited\n\n## When to Use This Skill\n\n✅ **Use When**:\n- Need comprehensive codebase documentation\n- Want C4 model architecture diagrams\n- Understanding unfamiliar codebase\n- Onboarding new team members\n- Preparing technical presentations\n- Documentation maintenance\n- No Litho\u002Fexternal tools available\n\n❌ **Don't Use When**:\n- Need exact Litho output format\n- Working with proprietary\u002Fclosed-source tools\n- Require specific documentation templates\n- Have custom documentation workflows\n\n---\n\n**Remember**: This skill uses your Claude Code subscription exclusively. No external API calls, no additional costs. All analysis and generation happens within Claude Code's context.\n",{"name":5,"description":7,"allowed-tools":24},[25,26,27,28,29,30,31],"Read","Glob","Write","Bash(tree:*)","Bash(find:*)","Bash(wc:*)","Bash(cloc:*)","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fsmart-docs",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill smart-docs",{"tool":46,"command":47},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill smart-docs",{"tool":49,"command":50},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill smart-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsmart-docs\u002FSKILL.md",true,[54,60],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"QUICKSTART.md","REFERENCE","参考文档",5630,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsmart-docs\u002FQUICKSTART.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"README.md",5181,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsmart-docs\u002FREADME.md",[65,72,77,84,91,98],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":73,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]