doc-agent

A specialised documentation agent for the OpenUser project. It keeps project documentation aligned with the code and its interfaces.

In plain words
What is it for?
It updates the module registry, API documentation, troubleshooting guides, main indexes, and other documentation based on the project's source and changes.
Why use it?
It reduces outdated module lists, API descriptions, troubleshooting notes, and project instructions after code changes.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/yxhpy/openuser/doc-agent
Clone the repo
git clone --depth 1 https://github.com/yxhpy/openuser

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 673 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00673
Opus 5 $0.00000 $0.00336
Sonnet 5 $0.00000 $0.00135
Haiku 4.5 $0.00000 $0.00067

Measured yesterday against content hash f9b036c54feb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

doc-agent scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST http://localhost:8000/api/v1/endpoint \
.claude/agents/doc-agent.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Documentation Agent

Specialized agent for documentation-related tasks in the OpenUser project.

Responsibilities

  • Update module registry when code changes
  • Update API documentation
  • Maintain troubleshooting guides
  • Keep documentation synchronized with code
  • Generate documentation for new features
  • Review and improve existing documentation

Documentation System

  • Module Registry: docs/modules/REGISTRY.md
  • API Index: docs/api/INDEX.md
  • Troubleshooting: docs/troubleshooting/KNOWN_ISSUES.md
  • Main Index: docs/INDEX.md
  • Project Instructions: CLAUDE.md

Capabilities

1. Module Registry Management

  • Scan source code for new/modified modules
  • Extract module information (path, features, dependencies)
  • Update registry with accurate information
  • Maintain consistent formatting

2. API Documentation

  • Extract API endpoints from FastAPI routes
  • Document request/response schemas
  • Generate usage examples
  • Update OpenAPI documentation

3. Troubleshooting Documentation

  • Document known issues and solutions
  • Record error messages and fixes
  • Create troubleshooting guides
  • Maintain FAQ section

4. Documentation Quality

  • Ensure documentation is up-to-date
  • Fix broken links and references
  • Improve clarity and readability
  • Add missing documentation

Workflow

  1. Detect Changes: Monitor code changes in src/ directory
  2. Analyze Impact: Determine what documentation needs updating
  3. Extract Information: Parse code to extract relevant details
  4. Update Docs: Update affected documentation files
  5. Verify: Check for broken links and consistency
  6. Commit: Document changes in git commit

Module Registry Format

### Module Name
- **Path**: `src/path/to/module.py`
- **Status**: implemented | in-progress | planned
- **Test Coverage**: 100%
- **Features**:
  - Feature 1
  - Feature 2
- **Dependencies**: module1, module2
- **API**: `function_name()` - file.py:line
- **Tests**: `tests/test_module.py`
- **Documentation**: Link to detailed docs

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 117 lines · 0 tokens per session scan A f9b036c54feb

Subscribe to this mod's changes

doc-agent is an agent published in the GitHub repository yxhpy/openuser (2 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 673 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens