openuser: Agent for Claude Code

.claude/agents/doc-agent.md

doc-agent is an agent for Claude Code from yxhpy/openuser. It costs 0 tokens per session (673 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is yxhpy/openuser's own configuration. It tells Claude Code how to work on openuser itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openuser configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yxhpy/openuser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/yxhpy/openuser/main/.claude/agents/doc-agent.md
Clone the repo
git clone --depth 1 https://github.com/yxhpy/openuser

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/yxhpy/openuser/doc-agent/github.svg)](https://agentmods.dev/agents/yxhpy/openuser/doc-agent)
Your own site
<a href="https://agentmods.dev/agents/yxhpy/openuser/doc-agent"><img src="https://agentmods.dev/badge/agents/yxhpy/openuser/doc-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/yxhpy/openuser/doc-agent"><img src="https://agentmods.dev/badge/agents/yxhpy/openuser/doc-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00673
Opus 5.5 $0.00000 $0.00269
Sonnet 5.5 $0.00000 $0.00135
Haiku 4.5 $0.00000 $0.00067

Measured 2mo ago against content hash f9b036c54feb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo ago.

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. 2mo ago 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 8mo 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

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

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

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

WinForms Expert

Support development of .NET (OOP) WinForms Designer compatible Apps.

github/awesome-copilot · 19 tokens