Documentation Agent Orchestrator
A VS Code extension that generates governance-driven AI prompts for technical documentation and provides side-by-side diff previews of AI rewrites.
Features
🎯 Generate AI Documentation Prompts
Transform your rough notes or existing content into structured AI prompts with built-in governance rules:
- Procedure Documentation - Convert steps into formal procedures
- Concept Explanations - Turn technical notes into clear concept docs
- Troubleshooting Guides - Structure problem-solving documentation
Each prompt includes:
- ✅ Governance rules (prevent AI from inventing features)
- ✅ Missing information handling (AI asks questions instead of guessing)
- ✅ Structured output templates
- ✅ Quality enforcement
📊 Preview Documentation Rewrites
Compare original content with AI-generated documentation using VS Code's built-in diff viewer:
- Side-by-side comparison
- Highlight changes
- Easy validation before committing
Usage
1. Generate Documentation Prompt
- Select text in your editor (or open a file with content)
- Open Command Palette (
Ctrl+Shift+P / Cmd+Shift+P)
- Run: "Generate Documentation Prompt"
- Choose task type: Procedure, Concept, or Troubleshooting
- Describe your intent (e.g., "Document the login process")
- The prompt opens in a new tab and is copied to clipboard
- Paste into your AI assistant (Claude, Copilot, ChatGPT, etc.)
2. Preview Documentation Rewrite
- After getting AI output, paste it into a VS Code file
- Open Command Palette
- Run: "Preview Documentation Rewrite Diff"
- Review the side-by-side comparison
- Validate changes before finalizing
Requirements
- VS Code 1.104.0 or higher
- Access to an AI assistant (Claude, GitHub Copilot, ChatGPT, etc.)
Commands
This extension contributes the following commands:
Generate Documentation Prompt - Create a governance-driven AI prompt from selected content
Preview Documentation Rewrite Diff - Compare original content with AI-rewritten documentation
Governance Features
The extension enforces these governance rules in every prompt:
- No feature invention - AI cannot make up functionality
- No terminology changes - Preserves established terms
- No implied steps - Only documents what's explicitly stated
- Missing info handling - AI asks questions instead of guessing
- Violation tracking - AI flags any governance concerns
Example Workflow
Input (rough notes):
Click settings. User profile. Add email. Admin only maybe.
AI Prompt Generated:
- Includes governance rules
- Defines output structure
- Enforces quality standards
AI Response:
- Asks clarifying questions, OR
- Generates structured documentation with governance notes
Diff Preview:
- Compare original vs rewritten
- Validate accuracy
- Accept or iterate
Known Issues
- Diff preview requires running "Generate Documentation Prompt" first
- Context is reset when VS Code restarts
Release Notes
0.0.1
Initial release:
- Generate governance-driven documentation prompts
- Preview documentation rewrites with diff view
- Support for 3 documentation types: Procedure, Concept, Troubleshooting
Contributing
Found a bug or have a feature request? Open an issue
License
MIT
| |