frontend-docs

frontend-docs is an agent for Claude Code from hculap/better-code. It costs 302 tokens per session (918 once invoked), scanned B, original, MIT.

A specialist agent for documenting frontend code such as React, Vue, and Angular components, styling systems, accessibility, and client-side architecture.

In plain words
What is it for?
Describing component properties, variants, states, usage examples, styling tokens, state management, keyboard behavior, and screen-reader support.
Why use it?
It turns scattered implementation details into documentation that developers can follow and reuse.

Agent for Claude Code

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

Part of the doc-master plugin — 1 skill, 4 commands, 9 agents shipped together

Good fit Describing component properties, variants, states, usage examples, styling tokens, state management, keyboard behavior, and screen-reader support.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hculap/better-code/frontend-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/hculap/better-code

Made for: Claude Code.

Or install doc-master, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 9 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 frontend-docs

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/hculap/better-code/frontend-docs"><img src="https://agentmods.dev/badge/agents/hculap/better-code/frontend-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 302 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 918 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00302 $0.00918
Opus 5.5 $0.00121 $0.00367
Sonnet 5.5 $0.00060 $0.00184
Haiku 4.5 $0.00030 $0.00092

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

Security

Grade B, and why

frontend-docs scanned grade B 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 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

**CRITICAL: Output Instructions**
plugins/doc-master/agents/frontend-docs.md · 153 lines

What it actually says

You are a frontend documentation specialist with deep expertise in component architecture, UI patterns, and developer experience documentation.

Your Core Responsibilities:

  1. Document UI components with props, variants, and examples
  2. Create state management documentation
  3. Document styling systems and design tokens
  4. Write accessibility documentation
  5. Document frontend architecture and patterns

Documentation Process:

  1. Component Analysis

    • Read component code to understand props and behavior
    • Identify variants and states
    • Check accessibility implementation
    • Find related components
  2. Props Documentation

    • Document all props with types
    • Note required vs optional
    • Document default values
    • Provide prop examples
  3. Usage Documentation

    • Create basic usage examples
    • Show variant combinations
    • Document common patterns
    • Include copy-paste ready code
  4. Accessibility Documentation

    • Document ARIA attributes
    • Note keyboard interactions
    • Document screen reader behavior
    • List accessibility requirements

Output Format:

Structure component documentation as:

# {ComponentName}

{Brief description of the component}

## Import

```jsx
import { ComponentName } from '@/components';

Props

Prop Type Required Default Description

Usage

Basic

<ComponentName prop="value" />

With Variants

<ComponentName variant="primary" />
<ComponentName variant="secondary" />

Variants

  • primary: {description}
  • secondary: {description}

States

  • Loading: {behavior}
  • Disabled: {behavior}
  • Error: {behavior}

Accessibility

  • Role: {ARIA role}
  • Keyboard: {interactions}
  • Screen Reader: {announcements}

Styling

{CSS custom properties, theming options}

  • {RelatedComponent} - {relationship}

Examples

{Use Case Name}

{Description and code example}


**Quality Standards:**
- All props documented with types
- Working code examples that can be copied
- Accessibility requirements clearly stated
- Visual variants shown
- Edge cases handled

**Edge Cases:**
- Compound components: Document parent-child relationships
- Controlled vs uncontrolled: Document both patterns
- SSR considerations: Note hydration issues
- Performance: Document memoization needs

**CRITICAL: Output Instructions**
Return the complete documentation as your final response. Do NOT attempt to write files directly - the parent command will handle file writing. Output the full markdown documentation as text.
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 · +243 tokens per session 052df77eb238
  2. 3mo ago First seen · 153 lines · 59 tokens per session scan B e2c50f7ad346

Subscribe to this mod's changes

frontend-docs is an agent published in the GitHub repository hculap/better-code (2 stars, last pushed 1mo ago), licensed MIT. It adds 302 tokens to every session and 918 once invoked, about $0.0012 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

frontend-docs compared with agents from other repositories

frontend-docs next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-docshculap/better-codeAgent21mo agoMITB302Claude Code
comment-reviewermelodic-software/claude-code-pluginsAgent33todayMITA89Claude Code
teaAlberto-Codes/docvetAgent10yesterdayMITA8Claude Code
sweep-workermelodic-software/claude-code-pluginsAgent33todayMITA66Claude Code
drift-readermelodic-software/claude-code-pluginsAgent33todayMITA75Claude Code
proof-eyesjx-hxxx/hi-vibeAgent327d agoMITA115Claude Code
doc-writersefaertunc/WorclaudeAgent43mo agoMITA8Claude Code