analyze-codebase
Run a multi-agent deep analysis of a codebase, producing AI-readable analysis documents in .ai/docs/ covering structure,…
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
Claude Code
$ npx -y skills add divar-ir/ai-doc-gen --skill generate-readme --agent claude-code
Codex
$ npx skills add divar-ir/ai-doc-gen --skill generate-readme -a codex -y
Cursor
$ npx skills add divar-ir/ai-doc-gen --skill generate-readme -a cursor -y
Gemini CLI
$ npx skills add divar-ir/ai-doc-gen --skill generate-readme -a gemini-cli -y
GitHub Copilot
$ npx skills add divar-ir/ai-doc-gen --skill generate-readme -a github-copilot -y
OpenCode
$ npx skills add divar-ir/ai-doc-gen --skill generate-readme -a opencode -y
Windsurf
$ npx skills add divar-ir/ai-doc-gen --skill generate-readme -a windsurf -y
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.
Run a multi-agent deep analysis of a codebase, producing AI-readable analysis documents in .ai/docs/ covering structure,…
Generate AI assistant configuration files for a repository — CLAUDE.md, AGENTS.md, and Cursor rules (.cursor/rules/*.mdc) — from…
How to work in a Codebase Wiki project (the `codebase-wiki` starter pack): an agent-authored, source-grounded wiki of the…
Simulates academic peer review, evaluating papers across Originality, Methodology, Results, and Writing to provide Major/Minor…