Generate great doc system for this project
Generates comprehensive documentation by analyzing your codebase, identifying core concepts, and creating structured docs. Use it to automatically build project overviews, architecture guides, and coding conventions.
/plugin marketplace add TokenRollAI/cc-plugin/plugin install tr@tokenroll-cc-pluginSTEP 0:
Step 1: Global Investigation (using scout)
scout agents to explore the codebase and produce reports.Step 2: Propose Core Concepts & Get User Selection
AskUserQuestion tool to present this list to the user as a multiple-choice question: "I've analyzed the project and found these potential core concepts. Please select the ones you want to document now:".Step 3: Generate Concise Foundational Documents
recorder agents to create essential, project-wide documents.overview/project-overview.md. Analyze all scout reports to define the project's purpose, primary function, and tech stack."reference/coding-conventions.md. Analyze project config files (.eslintrc, .prettierrc) and extract only the most important, high-level rules."reference/git-conventions.md. Analyze git log to infer and document the primary branch strategy and commit message format."content-only mode.Step 4: Document User-Selected Concepts
recorder agent.recorder will be highly specific to control scope and detail:
"Task: Holistically document the <selected_concept_name>.
1. Read all relevant scout reports and source code...
2. Generate a small, hierarchical set of documents:
overview document if the concept is large enough to require its own high-level summary (e.g., overview/authentication-overview.md).architecture documents. This is mandatory and should be the core 'LLM Retrieval Map'.guide documents that explain the most common workflow for this concept (e.g., how-to-authenticate-a-user.md).reference documents ONLY if there are critical, well-defined data structures or API specs. Do not create reference docs for minor details.
3. Operate in content-only mode."Step 5: Final Indexing
recorder agents from both Step 3 and Step 4 have completed, invoke a single recorder in full mode to build the final index.md from scratch.Step 6: Cleanup
/llmdoc/agent/.