twd: Agent for Claude Code

.claude/agents/docs-check.md

docs-check is an agent for Claude Code from BRIKEV/twd. It costs 319 tokens per session (1,606 once invoked), scanned A, original, MIT.

A documentation-review agent for the TWD testing library, which checks whether recent code changes require updates to the project’s VitePress documentation.

In plain words
What is it for?
Use it after implementing a feature, fixing a bug, or changing the interface to compare the changes with the existing guides and API reference.
Why use it?
It helps keep user-facing documentation aligned with new features, bug fixes, and other changes.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to BRIKEV/twd. 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/BRIKEV/twd/main/.claude/agents/docs-check.md
Clone the repo
git clone --depth 1 https://github.com/BRIKEV/twd

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 docs-check

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/brikev/twd/docs-check"><img src="https://agentmods.dev/badge/agents/brikev/twd/docs-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 319 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,606 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.00319 $0.01606
Opus 5.5 $0.00128 $0.00642
Sonnet 5.5 $0.00064 $0.00321
Haiku 4.5 $0.00032 $0.00161

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

Security

Grade A, and why

docs-check 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 16d 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/docs-check.md · 118 lines

How it starts

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

You are a Documentation Consistency Reviewer for the TWD (Test While Developing) library. Your job is to analyze recent code changes and determine whether the VitePress documentation needs to be updated.

Documentation Structure

The docs live in docs/ and are organized as:

Guide Pages (conceptual explanations)

  • docs/getting-started.md - Installation, setup (bundled vs standard)
  • docs/writing-tests.md - Test structure, describe/it/hooks
  • docs/api-mocking.md - Mock Service Worker patterns
  • docs/component-mocking.md - MockedComponent usage
  • docs/module-mocking.md - Sinon-based module mocking
  • docs/testing-library.md - Testing Library integration
  • docs/theming.md - UI customization and sidebar appearance
  • docs/ci-execution.md - CI/headless execution
  • docs/coverage.md - Code coverage
  • docs/frameworks.md - React, Vue, Angular, Solid support
  • docs/agents.md - AI-assisted testing context
  • docs/mcp-integration.md - MCP integration

API Reference (precise signatures, parameters, examples)

  • docs/api/index.md - API overview, imports, core types
  • docs/api/twd-commands.md - twd.get, twd.visit, twd.mockRequest, twd.clearRequestMockRules, etc.
  • docs/api/assertions.md - All assertion types (have.text, be.visible, etc.)
  • docs/api/test-functions.md - describe, it, beforeEach, afterEach

Tutorial (step-by-step learning path)

  • docs/tutorial/ - Installation, first test, API mocking, CI, coverage, production builds

Other

  • docs/index.md - Landing page
  • docs/motivation.md and docs/twd-manifesto.md - Philosophy
  • CHANGELOG.md - Version history

Your Process

Step 1: Identify What Changed

Run git diff main...HEAD --stat and git diff main...HEAD to understand:

  • Which source files were added/modified/deleted
  • What the actual code changes are
  • Whether changes are user-facing (new features, API changes, UI changes) or internal (refactoring, tests only)

If the branch has no commits ahead of main, fall back to git diff HEAD~5 --stat and git diff HEAD~5.

Read the full file on GitHub · 118 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. 16d ago Changed b4b0f55cc4bb
  2. 2mo ago First seen · 118 lines · 319 tokens per session scan A 67dd49a5b7e8

Subscribe to this mod's changes

docs-check is an agent published in the GitHub repository BRIKEV/twd (68 stars, last pushed today), licensed MIT. It adds 319 tokens to every session and 1,606 once invoked, about $0.0013 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-30.

Related

Other agents, from other repositories

evidence-based-investigator

Investigates codebase issues by gathering concrete evidence — file paths, line numbers, code snippets, error messages, git history, and test coverage. Use when thorough, multi-angle research into a bug, failure, or unexpected behavior is needed. Does not trace runtime data flow across modules — use behavioral-analyst.…

testdouble/han · 85 tokens

debugger

Use this agent for root-cause analysis of bugs, test failures, and unexpected behavior. Follows the 5 Whys protocol and produces ROOT-CAUSE.md with evidence chain and remediation plan. Examples: Context: A test suite is failing after a recent commit and the cause is unclear. user: "Figure out why the tests are…

lgbarn/shipyard · 305 tokens

qa-lead

The QA Lead owns test strategy, bug triage, release quality gates, and testing process design. Use this agent for test plan creation, bug severity assessment, regression test planning, or release readiness evaluation.

TraftG/opencode-game-studio · 41 tokens

test-writer

Use this agent to write new Playwright E2E tests from scratch by interactively exploring the application. Navigates pages, discovers user flows, and creates production-grade tests with POM/business-layer architecture. Runs in a worktree for parallel safety. Examples: Context: User needs tests for a new feature. user…

kaizen-yutani/playwright-autopilot · 0 tokens

SWE

Senior software engineer subagent for implementation tasks: feature development, debugging, refactoring, and testing.

archubbuck/workspace-architect · 23 tokens

patch-generator

Implements the fix for one finding inside a scratch workspace clone, staged for review and delivery as a patch file; dispatched by the fix job, not for direct invocation.

fuxicodex/Fuxi · 37 tokens