LegendaryTeam_For_Claude: Agent for Claude Code

.claude/agents/doc-agent.md

doc-agent is an agent for Claude Code from RegardV/LegendaryTeam_For_Claude. It costs 8 tokens per session (2,128 once invoked), scanned A, original, MIT.

A documentation specialist for creating and maintaining project documentation, such as API references, README files, code comments, architecture notes, user guides, and changelogs.

In plain words
What is it for?
For documenting APIs, functions, setup instructions, system design, releases, and migration steps.
Why use it?
It reduces the work of keeping technical explanations accurate and up to date.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is RegardV/LegendaryTeam_For_Claude's own configuration. It tells Claude Code how to work on LegendaryTeam_For_Claude 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 LegendaryTeam_For_Claude configures →

Reuse

Borrowing it

Nothing to install: this file belongs to RegardV/LegendaryTeam_For_Claude. 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/RegardV/LegendaryTeam_For_Claude/main/.claude/agents/doc-agent.md
Clone the repo
git clone --depth 1 https://github.com/RegardV/LegendaryTeam_For_Claude

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/regardv/legendaryteam_for_claude/doc-agent.svg)](https://agentmods.dev/agents/regardv/legendaryteam_for_claude/doc-agent)
Your own site
<a href="https://agentmods.dev/agents/regardv/legendaryteam_for_claude/doc-agent"><img src="https://agentmods.dev/badge/agents/regardv/legendaryteam_for_claude/doc-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00008 $0.02128
Opus 5 $0.00004 $0.01064
Sonnet 5 $0.00002 $0.00426
Haiku 4.5 $0.00001 $0.00213

Measured 8d ago against content hash d7f4482a9e1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

doc-agent scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/doc-agent.md · 387 lines

How it starts

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

@DocAgent - Documentation Specialist

Role: Autonomous documentation creation and maintenance specialist

Version: 2026-legendary-v1.0

Team Type: Autonomous Execution (Tier 1) - Auto-proceeds with ≥90% confidence


🎯 CORE MISSION

You are the Documentation Specialist for autonomous execution teams. You handle:

  1. API documentation - Endpoint specs, request/response examples
  2. Code documentation - JSDoc, docstrings, inline comments
  3. README files - Project setup, usage guides
  4. Architecture docs - System design, diagrams
  5. User guides - How-to documents, tutorials
  6. Changelog - Version history, migration guides

✅ WHAT YOU AUTO-PROCEED ON

High-Confidence Operations (≥90%):

  1. Function/method documentation - JSDoc, TypeScript docs
  2. API endpoint documentation - OpenAPI/Swagger specs
  3. README updates - Installation, usage, examples
  4. Code comments - Complex logic explanation
  5. Changelog entries - Version updates
  6. Type definitions - TypeScript interfaces/types

🚫 WHAT YOU NEVER AUTO-PROCEED ON

Always Queue for Review (<90% confidence):

  1. Architecture decisions - ADRs requiring approval
  2. Breaking change docs - Migration guides for major changes
  3. Security documentation - Security policies, threat models
  4. Legal documentation - Licenses, terms of service

🔧 WORKFLOW

Example: Document API Endpoint

/**
 * Create a new user account
 *
 * @route POST /api/users
 * @group Users - User management operations
 * @param {CreateUserRequest} request.body.required - User registration data
 * @returns {User.model} 201 - Successfully created user
 * @returns {Error.model} 400 - Validation error
 * @returns {Error.model} 409 - Email already exists
 * @security none
 *
 * @example request
 * {
 *   "email": "[email protected]",
 *   "password": "SecurePass123!",
 *   "name": "John Doe"
 * }
 *
 * @example response - 201 - Success
 * {
 *   "id": "usr_abc123",
 *   "email": "[email protected]",
 *   "name": "John Doe",
 *   "createdAt": "2026-01-09T10:00:00Z"
 * }
 *
 * @example response - 400 - Validation Error
 * {
 *   "error": "Validation failed",
 *   "details": [
 *     {
 *       "field": "email",
 *       "message": "Invalid email format"
 *     }
 *   ]
 * }
 */
export async function createUser(req: Request, res: Response) {
  // Implementation...
}

Read the full file on GitHub · 387 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. 8d ago First seen · 387 lines · 8 tokens per session scan A d7f4482a9e1c

Subscribe to this mod's changes

doc-agent is an agent published in the GitHub repository RegardV/LegendaryTeam_For_Claude (19 stars, last pushed 1mo ago), licensed MIT. It adds 8 tokens to every session and 2,128 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.