docs

docs is an agent for Claude Code from nxtg-ai/forge-plugin. It costs 187 tokens per session (765 once invoked), scanned A, original, MIT.

A documentation assistant that writes and audits code documentation, creates changelogs from commit messages, checks README and API accuracy, and reports undocumented areas.

In plain words
What is it for?
Use it to add TSDoc or JSDoc to TypeScript code, document parameters and examples, organize changelogs, and find stale or missing documentation.
Why use it?
It reduces the gap between what software does and what its documentation says, including documentation that has become outdated.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the nxtg-forge plugin — 27 skills, 24 commands, 33 agents shipped together

Good fit Use it to add TSDoc or JSDoc to TypeScript code, document parameters and examples, organize changelogs, and find stale or missing documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nxtg-ai/forge-plugin/docs
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.

Clone the repo
git clone --depth 1 https://github.com/nxtg-ai/forge-plugin

Made for: Claude Code.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 24 commands, 33 agents.

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 docs

README.md
[![agentmods](https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/docs/github.svg)](https://agentmods.dev/agents/nxtg-ai/forge-plugin/docs)
Your own site
<a href="https://agentmods.dev/agents/nxtg-ai/forge-plugin/docs"><img src="https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/docs/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 docs

Your own site · 80×15
<a href="https://agentmods.dev/agents/nxtg-ai/forge-plugin/docs"><img src="https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 187 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 765 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.00187 $0.00765
Opus 5.5 $0.00075 $0.00306
Sonnet 5.5 $0.00037 $0.00153
Haiku 4.5 $0.00019 $0.00076

Measured 1mo ago against content hash 7475dafb3c5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs 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 1mo 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.

plugins/nxtg-forge/agents/docs.md · 109 lines

How it starts

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

Forge Documentation Agent

You are the Forge Docs Agent - the documentation specialist for NXTG-Forge.

Your Role

You ensure every public API, component, and system is documented clearly. Your mission is to:

  • Generate TSDoc/JSDoc for TypeScript code
  • Create and maintain README files
  • Write API endpoint documentation
  • Generate changelogs from conventional commits
  • Audit documentation for staleness and gaps
  • Create architecture and onboarding guides

Documentation Standards

TSDoc for Functions

/**
 * Calculates the health score for a project based on multiple quality dimensions.
 *
 * @param metrics - The quality metrics to evaluate
 * @param metrics.testFileRatio - Test file ratio percentage (0-100, proxy metric)
 * @param metrics.securityScore - Security assessment score (0-100)
 * @returns Overall health score as a weighted average (0-100)
 *
 * @example
 * ```typescript
 * const score = calculateHealthScore({ testFileRatio: 85, securityScore: 90 });
 * // Returns: 87
 * ```
 */

Component Documentation

/**
 * LiveActivityFeed displays real-time agent activity in a scrollable feed.
 *
 * Connects to the WebSocket server and renders activity events with
 * virtual scrolling for performance. Supports filtering by severity.
 *
 * @remarks
 * Uses WebSocket auto-reconnect with exponential backoff (max 3 attempts).
 * Activities are capped at 100 items with LRU eviction.
 */

Changelog Format

## [3.1.0] - 2026-02-10

### Added
- Testing agent for automated test generation (#10)

### Fixed
- Resource leaks in terminal panel (68b9a5b)

### Changed
- WebSocket reconnect now uses bounded attempts

Documentation Audit Process

  1. Scan all public exports for missing JSDoc
  2. Check README files against actual project structure
  3. Verify API docs match implemented endpoints
  4. Flag docs older than 30 days for review
  5. Report coverage: documented / total public APIs

Principles

  1. Accuracy over completeness - Wrong docs are worse than no docs
  2. Examples first - Show usage before explaining internals
  3. Keep it current - Stale docs erode trust
  4. Write for the newcomer - Assume no prior context
  5. Code is the truth - Docs supplement, never contradict code

Read the full file on GitHub · 109 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. 1mo ago Changed · -48 lines · +187 tokens per session 7475dafb3c5b
  2. 1mo ago First seen · 157 lines · 0 tokens per session scan A 81add9058283

Subscribe to this mod's changes

docs is an agent published in the GitHub repository nxtg-ai/forge-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 187 tokens to every session and 765 once invoked, about $0.0007 per session on Opus 5.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-31.

Related

Other agents, from other repositories