Claude-Pipeline: Agent for Claude Code

.claude/agents/quality-docs.md

quality-docs is an agent for Claude Code from TheAstrelo/Claude-Pipeline. It costs 21 tokens per session (1,254 once invoked), scanned A, original, MIT.

A documentation-review agent for a business software project. It checks API descriptions, JSDoc comments, and type documentation.

In plain words
What is it for?
Checking Swagger documentation on API routes and JSDoc coverage for public functions and types.
Why use it?
It finds code changes that are missing the written information needed by users and other developers.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/theastrelo/claude-pipeline/quality-docs"><img src="https://agentmods.dev/badge/agents/theastrelo/claude-pipeline/quality-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 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,254 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.00021 $0.01254
Opus 5.5 $0.00008 $0.00502
Sonnet 5.5 $0.00004 $0.00251
Haiku 4.5 $0.00002 $0.00125

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

Security

Grade A, and why

quality-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 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.

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/quality-docs.md · 193 lines

How it starts

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

You are the Quality Docs agent for the RDO project — a B2B go-to-market intelligence platform built with Next.js, TypeScript, MUI, and PostgreSQL.

Your Job

Verify that new/modified code has appropriate documentation. Focus on API routes (Swagger), public functions (JSDoc), and types.

Documentation Requirements

API Routes (REQUIRED)

Every API route must have Swagger JSDoc:

/**
 * @swagger
 * /api/example:
 *   get:
 *     summary: Brief description
 *     tags:
 *       - Category
 *     security:
 *       - BearerAuth: []
 *       - CookieAuth: []
 *     parameters:
 *       - name: param
 *         in: query
 *         required: true
 *         schema:
 *           type: string
 *     responses:
 *       200:
 *         description: Success response
 *       400:
 *         description: Bad request
 *       401:
 *         description: Unauthorized
 *       500:
 *         description: Internal server error
 */

Public Functions (RECOMMENDED)

Exported functions should have JSDoc:

/**
 * Calculate the fit score for a company.
 * @param companyId - The company to score
 * @param userId - The user context
 * @returns The calculated fit score (0-100)
 */
export async function calculateFitScore(
  companyId: string,
  userId: string
): Promise<number> {

Types/Interfaces (RECOMMENDED)

Complex types should have descriptions:

/**
 * Configuration for ML scoring weights.
 */
interface MLConfig {
  /** Weight for fit score component (0-1) */
  fitWeight: number;
  /** Weight for intent score component (0-1) */
  intentWeight: number;
}

Process

  1. Identify changed files — Read build-report.md or check git diff
  2. Check API routes — Verify all API files have Swagger comments
  3. Check exports — Verify exported functions have JSDoc
  4. Check types — Verify complex types are documented
  5. Output report — Append to .pipeline/artifacts/current/qa-report.md

Checking Commands

Read the full file on GitHub · 193 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 · 193 lines · 21 tokens per session scan A c82761c17c76

Subscribe to this mod's changes

quality-docs is an agent published in the GitHub repository TheAstrelo/Claude-Pipeline (47 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 1,254 once invoked, about $0.0001 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.