analyze-codebase
Run a multi-agent deep analysis of a codebase, producing AI-readable analysis documents in .ai/docs/ covering structure, dependencies, data flow, request flow,…
Generate or refresh a comprehensive, professional README.md for a repository, with architecture overview, mermaid and optional C4 diagrams, repository structure, dependencies, and API documentation. Use whenever the user asks to create, write, update, improve, or regenerate a
$ npx -y skills add divar-ir/ai-doc-gen --skill generate-readme --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/generate-readmeContext preview
The summary Claude sees to decide when to auto-load this skill.
Generate or refresh a comprehensive, professional README.md for a repository, with architecture overview, mermaid and optional C4 diagrams, repository structure, dependencies, and API documentation. Use whenever the user asks to create, write, update, improve, or regenerate a
name: generate-readme description: Generate or refresh a comprehensive, professional README.md for a repository, with architecture overview, mermaid and optional C4 diagrams, repository structure, dependencies, and API documentation. Use whenever the user asks to create, write, update, improve, or regenerate a README, project documentation, or a project overview page — even if they just say "document this project" or "this repo needs docs".
Transform codebase analysis into a clear, welcoming README.md that helps engineers quickly understand the project.
Check for existing analysis documents in `<repo>/.ai/docs/` (structure, dependency, data-flow, request-flow, API analyses). They may have been produced by the `analyze-codebase` skill.
Ask the user (or infer from their request) whether to incorporate the existing README:
Include the following sections, in this order, unless the user excludes some. Only use these headlines plus any carried over from the existing README — don't invent extra sections.
1. Use only information that can be reasonably inferred from the code and repository structure — never invent capabilities, and describe existing code, not hypothetical code. 2. Do not include or reference any file from the `.ai/docs/` directory — those are internal AI artifacts. 3. Format with proper Markdown: headings, syntax-highlighted code blocks, lists, and tables. 4. Make the README welcoming and clear for developers new to the project. 5. For mermaid diagrams: group by logical boundaries, use meaningful relationship labels with descriptive verbs, keep visual hierarchy clean, and prefer several small focused diagrams over one giant one. 6. Note (in your report to the user, not the README) any areas where additional documentation would help.
Write the file to `<repo>/README.md`, then summarize for the user what changed versus the previous README (if any) and flag anything you couldn't verify from the code.
An AI-powered code documentation generator that automatically analyzes repositories and creates comprehensive documentation using large language models.
Repo: divar-ir/ai-doc-gen
Run a multi-agent deep analysis of a codebase, producing AI-readable analysis documents in .ai/docs/ covering structure, dependencies, data flow, request flow,…
Generate AI assistant configuration files for a repository — CLAUDE.md, AGENTS.md, and Cursor rules (.cursor/rules/*.mdc) — from codebase analysis. Use…