doc-tdd-fixer

doc-tdd-fixer is a skill for Claude Code from vladm3105/aidoc-flow-framework. It costs 47 tokens per session (4,203 once invoked), scanned A, a copy of doc-bdd-fixer, MIT.

A document-fixing skill that applies the latest audit findings to a test-driven development document (TDD). It repairs structure, links, identifiers, test cases, references, and changes from the upstream specification.

In plain words
What is it for?
Use it after a TDD audit reports problems, as part of an audit-and-fix cycle.
Why use it?
It turns an audit report into concrete corrections so the TDD can pass its quality checks.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aidoc-flow plugin — 52 skills, 12 commands, 11 agents, 1 hook shipped together

Good fit Use it after a TDD audit reports problems, as part of an audit-and-fix cycle.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add vladm3105/aidoc-flow-framework
Claude Code
/plugin install aidoc-flow

Made for: Claude Code.

Or install aidoc-flow, the plugin that ships this one along with the rest of its 52 skills, 12 commands, 11 agents, 1 hook.

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-tdd-fixer

README.md
[![agentmods](https://agentmods.dev/badge/skills/vladm3105/aidoc-flow-framework/doc-tdd-fixer/github.svg)](https://agentmods.dev/skills/vladm3105/aidoc-flow-framework/doc-tdd-fixer)
Your own site
<a href="https://agentmods.dev/skills/vladm3105/aidoc-flow-framework/doc-tdd-fixer"><img src="https://agentmods.dev/badge/skills/vladm3105/aidoc-flow-framework/doc-tdd-fixer/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 doc-tdd-fixer

Your own site · 80×15
<a href="https://agentmods.dev/skills/vladm3105/aidoc-flow-framework/doc-tdd-fixer"><img src="https://agentmods.dev/badge/skills/vladm3105/aidoc-flow-framework/doc-tdd-fixer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,203 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 88% copy Near-identical to another mod 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.00047 $0.04203
Opus 5 $0.00023 $0.02101
Sonnet 5 $0.00009 $0.00841
Haiku 4.5 $0.00005 $0.00420

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

Security

Grade A, and why

doc-tdd-fixer 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 4d 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.

Origin

This is a copy

88% identical to doc-bdd-fixer — 159 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

archive/platforms/claude-code-plugin/skills/doc-tdd-fixer/SKILL.md · 327 lines

How it starts

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

doc-tdd-fixer

Purpose

Read the latest audit report and apply fixes to a TDD, bridging ../doc-tdd-audit/SKILL.md and a passing TDD so the audit↔fix cycle can converge.

Layer: 7 (TDD quality improvement). Upstream: the TDD document + .aidoc/audit/07_TDD-audit.md. Downstream: the fixed TDD + TDD-NN.F_fix_report_vNNN.md.

When to Use

After doc-tdd-audit returns FAIL, as part of an Audit → Fix → Audit loop. Do not use without an audit report (run the audit first) or to create a new TDD (use ../doc-tdd/SKILL.md / ../doc-tdd-autopilot/SKILL.md).

Input Contract

Consume the .aidoc/audit/07_TDD-audit.md report. Back up the TDD before editing (tmp/backup/TDD-NN_<ts>/); on error, restore. Element-ID standards come from ${CLAUDE_PLUGIN_ROOT}/framework/governance/ID_NAMING_STANDARDS.md; structure rules from ${CLAUDE_PLUGIN_ROOT}/framework/layers/07_TDD/TDD-TEMPLATE.yaml and README.md.

Remediate Mode

Resolve review_mode from .aidoc/profile.yaml; if unset, fall through to the framework default team per the precedence chain in ${CLAUDE_PLUGIN_ROOT}/framework/governance/ADAPTATION.md. Same fallback applies to other adaptation knobs (section_toggles).

team mode (per REVIEW_TEAM.md §Operations §Remediate)

  1. Read the audit report at .aidoc/audit/07_TDD-audit.md AND, when present, the per-persona slots under .aidoc/review/07_TDD/<TDD-id>/ (where <TDD-id> is the short artifact ID, e.g. TDD-01).
    • Prefer the per-persona slots for the structured findings — stable ids, priorities, locations, recommendations.
    • Slots are optional — when absent (e.g. single_pass run produced no synthesizer output), fall back to parsing the audit report's Findings sections directly.
  2. Resolve responsible lenses per finding. Each blocking finding (P0 + P1) carries a personas array in the synthesizer's reduced form OR can be inferred from per-lens slot membership. Dispatch rules:
    • Single-lens finding (1 persona): dispatch that lens.
    • Multi-lens finding (2+ personas): dispatch all listed lenses in parallel. Each writes its own <persona>.fix_<N>.json slot. The fix is accepted only when every dispatched lens returns no new P0/P1 (any one lens regressing reverts the patch).
    • No-persona / orphan finding (empty or missing personas): dispatch the TDD crew's author lens (per REVIEW_CREWS.yaml: qa_lead for TDD) as the default responsible reviewer.

Read the full file on GitHub · 327 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. 4d ago Changed 92b7f749c7b2
  2. 5d ago First seen · 327 lines · 47 tokens per session scan A dc7044902dd9

Subscribe to this mod's changes

doc-tdd-fixer is a skill published in the GitHub repository vladm3105/aidoc-flow-framework (17 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 4,203 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to doc-bdd-fixer, differing in 159 lines, and is treated as a copy.