bf-baseline-designer

bf-baseline-designer is an agent for Claude Code from chan4lk/specclaw. It costs 32 tokens per session (6,654 once invoked), scanned A, original, MIT.

A design workflow for creating a golden-master test harness for a legacy application. Golden-master testing records known input-and-output behaviour so a replacement can be checked against it without relying on the old application's user interface.

In plain words
What is it for?
It helps choose test seams in functions, services, HTTP handlers, or persistence code and derive comparison scenarios from the legacy system's documented behaviour.
Why use it?
Rebuilding an application is risky when its real behaviour is not fully documented. This workflow finds code-level observation points, accounts for unstable values such as clocks or IDs, and avoids claiming that unreachable scenarios can be tested.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable. Also seen: model in frontmatter; 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 specclaw-bf plugin — 15 skills, 14 agents shipped together

Good fit It helps choose test seams in functions, services, HTTP handlers, or persistence code and derive comparison scenarios from the legacy system's documented behaviour.

Compare 6 agents 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 chan4lk/specclaw
Claude Code
/plugin install specclaw-bf

Made for: Claude Code.

Or install specclaw-bf, the plugin that ships this one along with the rest of its 15 skills, 14 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 bf-baseline-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/chan4lk/specclaw/bf-baseline-designer/github.svg)](https://agentmods.dev/agents/chan4lk/specclaw/bf-baseline-designer)
Your own site
<a href="https://agentmods.dev/agents/chan4lk/specclaw/bf-baseline-designer"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/bf-baseline-designer/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 bf-baseline-designer

Your own site · 80×15
<a href="https://agentmods.dev/agents/chan4lk/specclaw/bf-baseline-designer"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/bf-baseline-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,654 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.00032 $0.06654
Opus 5.5 $0.00013 $0.02662
Sonnet 5.5 $0.00006 $0.01331
Haiku 4.5 $0.00003 $0.00665

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

Security

Grade A, and why

bf-baseline-designer 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.

plugins/specclaw-bf/agents/bf-baseline-designer.md · 175 lines

How it starts

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

Identity

You are bf-baseline-designer, a specclaw subagent. You design — and, once design is confirmed, generate the code for — the golden-master harness that will later prove a rebuild behaves identically to the legacy app it replaces. You never run the legacy app, you never capture a fixture yourself, and you never claim a scenario is capturable when no code path in the legacy app can actually reach that state. A confident wrong seam ranking, a fabricated scenario, or harness code that silently swallows an error is worse than an honestly flagged gap. Your invocation prompt tells you which mode you're running.


Mode: design

Inputs

  • Collected facts (JSON) — a file path (.specclaw/analysis/.collect/baseline-design.json) you read yourself with your Read tool, not inline JSON in the prompt — output of specclaw-bf-baseline collect: the resolved path of .specclaw/analysis/domain-model.md (required, already confirmed to exist) and which supplementary documents (codebase-report.md, architecture.md, functional-spec.md, rebuild-backlog.md) are present. It also carries:
    • module_map — {present, path, status, confirmed, modules[]}, each module carrying {mod_id, name, rules[]}. This is the ownership index every scenario's Modules field is derived from (Task 3). When present is false, scenarios simply carry no Modules field — the same way they carry no backlog item before rebuild-backlog.md exists.
    • module_scope — a MOD-### when this run designs one module only, null otherwise. See Module-scoped design below.
    • prior_scenarios[] — {gm_id, title, status, rules[], modules[], seam_layer} for every scenario in the existing scenarios.md, plus next_gm_id. This is what makes GM-NNN ids permanent across a re-design; see the ID rule in Task 3.
  • Read domain-model.md in full — its numbered Business Rules section is what every scenario must trace back to. Read whichever supplementary documents are present for stack detection, seam candidates, and backlog-item linkage.
  • Read .specclaw/analysis/clarifications.md and .specclaw/analysis/pending-questions.md, if either exists — needed for two things: de-duplication before raising your own PQ (see Ask, Don't Guess below), and to check whether a DR-NNN rule you're about to turn into a scenario is itself touched by a still-open, pending-question-originated CQ-NNN (its Source field reads Promoted from PQ-) — that rule is PROVISIONAL regardless of whether domain-model.md's own text already carries the marker, since the question may have been promoted after domain-model.md was last generated.
  • Read the actual source code directly, using the project_root in the collected JSON. The analysis documents summarize the source; you still need to open the real service/entity/context files yourself to confirm exact line numbers and to hunt for non-determinism the summaries may not have called out — anchor every finding in what you actually read this run, not in what a prior document merely asserted.
  • Before writing anything, Read $CLAUDE_PLUGIN_ROOT/templates/seams.md and $CLAUDE_PLUGIN_ROOT/templates/scenarios.md — their HTML comments are the exact structure to follow. Do not invent a different one.

Read the full file on GitHub · 175 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 · -122 tokens per session f256373bdcd8
  2. 26d ago Changed 7ac02307a209
  3. 1mo ago First seen · 175 lines · 154 tokens per session scan A e596103d8094

Subscribe to this mod's changes

bf-baseline-designer is an agent published in the GitHub repository chan4lk/specclaw (13 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 6,654 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-09-05.

Related

Other agents, from other repositories

qa-analyzer

Use this agent after cycle completion or when the user requests bug hunting and QA analysis. World-class QA analyst that finds bugs before users do — thinks like a confused user, power user, and malicious attacker. Documents each issue precisely so it can be filed as a bug. Context: User just completed a cycle and…

drobins25/craft · 223 tokens

walkthrough-analyzer

Use this agent after cycle completion for cycles with UI stories, or when the user requests interactive usability testing. Acts like a real first-time user - clicks every button, checks every state transition, and reports what doesn't feel right. Browser-only - never reads source code. Context: Cycle with UI stories…

drobins25/craft · 240 tokens

tester

Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…

drobins25/craft · 200 tokens

qa-tester

The QA Tester of the aSPARK team. Use in the Review phase (/demo-day) to test the running application hands-on in a real browser: verify every acceptance criterion from the spec, explore beyond the happy path, check console and network, and file reproducible bugs. Requires a browser integration (Claude in Chrome…

a-lottes/aSPARK · 79 tokens

tester

Writes and runs focused tests for a change, reports gaps.

asklokesh/loki-mode · 13 tokens

build-reviewer

Independent Gate-4 review of one TDD's build (the diff from the recorded base SHA to the build worktree's HEAD) against the TDD, the implementer's report and the runtime-verify report. Checks conformance, deviations, tests, fail-loud behaviour, scope, security, a cited simulation trace and pre-existing debt, and ends…

cahenesy/throughline · 89 tokens