Updates the documentation based on recent code changes.
Updates project documentation to reflect recent code changes. Use after implementing features or fixing bugs to keep docs in sync with your codebase.
/plugin marketplace add TokenRollAI/cc-plugin/plugin install tr@tokenroll-cc-plugin[Optional: specific update instructions]This command updates the project's documentation to reflect recent code changes. If specific instructions are provided, it follows them. Otherwise, it analyzes the latest git diff to determine what needs updating.
/updateDoc.Step 1: Analyze Changes
$ARGUMENTS) are provided, use them as the high-level description of what changed.git diff HEAD to get recent code changes.Step 2: Synthesize Impacted Concepts
git diff or user's description to identify which core concepts, features, or foundational conventions have been affected..eslintrc impacts "Coding Conventions". A change to src/services/authService.js impacts the "Authentication System" concept.Step 3: Concurrent Document Updates (using recorder in content-only mode)
recorder agent.<concept_name> has been updated.
1. Analyze these changes: <relevant part of git diff or user description>.
2. Read the existing llmdoc documentation thoroughly to understand what documents are impacted by the changes.
3. Holistically update all relevant documents to reflect the changes, ensuring they remain accurate and consistent. You may need to create, modify, or even delete documents.
4. Apply the 'Principle of Minimality': Your updates must be as concise as possible. Use the fewest words necessary to describe the change. Do not write long-winded explanations.
5. You MUST operate in content-only mode."Step 4: Final Indexing (using a single recorder)
recorder agents from Step 3 have completed, invoke a single recorder agent with the task: "The documentation has been updated. Please re-scan the /llmdoc directory and ensure the index.md is fully consistent and up-to-date. Operate in full mode."