smart-docs

Analyze codebase structure and generate Markdown documentation with C4 diagrams.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/yzlin/supa-opencode --skill smart-docs-yzlin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-docs
Source: https://github.com/yzlin/supa-opencode/tree/main/skills/smart-docs
Command: npx skills add https://github.com/yzlin/supa-opencode --skill smart-docs-yzlin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of comprehensive technical documentation for codebases, including architecture diagrams and detailed component breakdowns, making it easier to understand and maintain software projects.

Core Features & Use Cases

  • Codebase Analysis: Analyzes project structure, identifies architectural patterns, and determines the technology stack.
  • C4 Model Diagrams: Generates diagrams following the C4 model (Context, Container, Component) using Mermaid syntax.
  • Technical Documentation: Creates well-structured Markdown files for project overview, architecture, workflows, and deep dives into components.
  • Use Case: Onboarding a new developer to a complex legacy system by providing them with a complete set of up-to-date documentation and architecture visualizations.

Quick Start

Use the smart-docs skill to generate documentation for the current project directory.

Frequently Asked Questions about smart-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate technical documentation for an existing codebase?

To generate technical documentation for a codebase, this Skill analyzes project structure, identifies architectural patterns, and produces well-structured Markdown files with C4 model diagrams.

Can I automatically create C4 model architecture diagrams using Mermaid?

Yes, you can automatically create C4 model architecture diagrams using Mermaid syntax by analyzing your codebase to generate Context, Container, and Component visualizations.

Does this codebase documentation tool support all programming languages?

This codebase documentation tool supports all programming languages by analyzing the project structure and technology stack to generate comprehensive technical specifications and developer guides.

What is the best way to document a legacy system for new developer onboarding?

The best way to document a legacy system for onboarding is to automate codebase analysis, generating complete architecture visualizations and detailed component breakdowns in Markdown.

Do I need to manually map software architecture patterns before generating documentation?

No, you do not need to manually map software architecture patterns; the tool automatically identifies architectural patterns and determines the technology stack during the codebase analysis process.

What limitations exist when automating codebase documentation with AI?

Limitations of automating codebase documentation include relying on the accuracy of project structure analysis to correctly identify architectural patterns and generate corresponding C4 model diagrams and Markdown files.