Generate comprehensive documentation for your codebase using DeepWiki system with evidence-backed content, ASCII diagrams, and automatic cross-references.
Generates comprehensive codebase documentation with evidence-backed content, ASCII diagrams, and automatic cross-references.
/plugin marketplace add gravity9-tech/pandora-marketplace/plugin install deepwiki@pandora-marketplace<codebase_path> <wiki_location> [user_context]sonnetOrchestrates comprehensive documentation generation for a codebase. Manages three phases: structure generation, todo list creation, and iterative page generation with progress tracking.
$1 - required): codebase_path - Root directory to analyze (e.g., ./, /path/to/project)$2 - required): wiki_location - Output directory for wiki (e.g., ./wiki, /path/to/docs/wiki)$3 - optional): user_context - Optional guidance (e.g., "small e-commerce PWA")Check if {wiki_location}/.temp/todo.md exists with incomplete items for these input parameters
If exists with unchecked items:
Resuming from: [N] incomplete pagesIf not exists:
{
"codebase_path": "$1",
"wiki_location": "$2",
"user_context": "$3"
}
{wiki_location}/.temp/todo.md from structure:
---
generated_at: [ISO timestamp]
total_pages: [count]
completed: 0
---
# Documentation Generation Todo List
- [ ] **overview/system-overview.md** — [purpose]
- [ ] **overview/technology-stack.md** — [purpose]
- [ ] **architecture/system-architecture.md** — [purpose]
...
Group incomplete items by section (e.g., overview/*, architecture/*)
For each section:
{wiki_location}/.temp/queue.md (if not exists) to track concurrent results:
---
section: [section_name]
status: processing
agents_running: [count]
---
# Pending Results
[Result entries from subagents]
Launch parallel deepwiki-doc-generator subagents for all pages in section:
{
"page_path": "[page_path]",
"page_purpose": "[purpose]",
"required_sections": [...],
"required_diagrams": [...],
"source_files": [...],
"codebase_path": "$1",
"wiki_location": "$2",
"sitemap_path": "{wiki_location}/.temp/documentation_structure.md"
}
Wait for all agents in section to complete
Verify and persist files for each completed agent:
{wiki_location}/[page_path] file exists[x] (completed)mkdir -p {wiki_location}/[section]/[x] (completed)✓ [page_path] (verified and persisted)Merge verified results into todo list (atomically update [ ] → [x] for completed items)
Display progress: ✓ Section [name]: [N] pages generated ([Total]/[Max])
Continue to next section
When all items checked:
✓ Documentation generation complete!
Total pages: [N]
Location: {wiki_location}/
Structure: {wiki_location}/.temp/documentation_structure.md
Todo list: {wiki_location}/.temp/todo.md
Resume tips: Run command again to continue from incomplete items.
Key Responsibility: The slash command (orchestrator) is responsible for ensuring all generated files are persisted to disk, not the subagents.
Persistence Flow:
{wiki_location}/[page_path]--- markers)mkdir -p {wiki_location}/[section]/Rationale: Prevents silent failures where agents report completion but files don't persist. Guarantees consistency between todo list and actual filesystem state.
{wiki_location}/.temp/documentation_structure.md — Generated by planner{wiki_location}/.temp/todo.md — Generated and managed by slash command{wiki_location}/[page_path]/*.md — Generated by doc generator/deepwiki ./ ./wiki
/deepwiki /path/to/repo /path/to/repo/wiki "Small e-commerce PWA"
/deepwiki ./myproject ./myproject/docs "Microservices backend"