mcpbeat Sign in

Anchor Repro Agent Skill

Reproduce a behavioral bug before fixing it, record the failing probe, and verify the fix with the same probe. Use for bug reports, failing tests, crashes, hangs, regressions, wrong output, and observable behavior that should change.

1.2k tokens
context cost
SKILL.md, read when the skill is used
6
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
104
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/lynxlangya/techne --skill anchor-repro

What comes with it

36 391 bytes besides the instruction
README-CN.md
README.md
eval.md
reference.md
scripts/repro_ledger.py

The instruction itself

5 sections, as written by the author

anchor-repro

Force the skipped move in debugging: observe the bug before editing, then prove

the fix with the same observation.

Trigger Check

Use this skill when the task is to correct observable behavior that is currently

wrong: a failing test, error message, stack trace, regression, crash, hang, wrong

return value, wrong render, or "X does Y; it should do Z."

Do not use it for new features, refactors, renames, formatting, docs/copy

changes, dependency bumps without a behavioral symptom, or performance work

without a measurable probe.

Boundary test: can the wrongness be written as "running X currently produces Y;

it should produce Z"? If yes, use this skill and make X the probe seed. If the

statement cannot be formed from current information, ask for or find the missing

observation before editing.

Forced Procedure

  • Capture the symptom and stable anchor. Choose the most stable literal

substring of the observable symptom for --expect. Omit heap addresses,

PIDs, timestamps, temp paths, and wrapped fragments. Use --expect whenever

the symptom has stable text. If no stable text exists, --no-stable-expect

is the honest fallback, not an unanchored run; do not use it when stable

textual output exists.

  • Locate, then probe. Read enough code to place the behavior. Pick the

smallest CLI probe that exercises the reported symptom. In workspaces or

monorepos, run from the package with --cwd <package-dir>, not with a

cd ... && convention. If required environment changes matter, encode them

inside --shell as one quoted command string such as

'VAR=... command'; inherited environment changes are not part of probe

identity in v1.

  • Demonstrate. Run the probe through

scripts/repro_ledger.py run --project <root> --bug <slug> ... -- <command>.

Read the failing output and confirm it fails for the reported reason:

mechanically, expectMatched should be true when --expect was supplied;

procedurally, inspect the tail/context instead of trusting an exit code.

  • Diagnose against the probe. Test hypotheses with discriminating runs

before stacking edits. If a better probe is needed, the new probe starts a

new fail -> pass cycle and must be observed failing too.

  • Fix.
  • Verify with the identical probe identity. Re-run the same execution mode,

argv vector or shell string, --cwd, and --timeout. Then run

scripts/repro_ledger.py close --project <root> --bug <slug>.

  • Promote when possible. If the target repo has a test suite, promote the

probe into a committed regression test. This is encouraged, not a gate.

  • Report. Cite the close JSON, cite the first repro entry's git evidence,

name the strength rung from reference.md, and carry speculative when the

ledger took an unreproduced path.

Ledger Usage

Run and record a probe:

python3 skills/anchor-repro/scripts/repro_ledger.py run \
  --project /path/to/project \
  --bug login-crash \
  --cwd packages/app \
  --expect "TypeError: cannot read" \
  --timeout 60 \
  -- npm test -- login.test.ts

Verify after the fix:

python3 skills/anchor-repro/scripts/repro_ledger.py run \
  --project /path/to/project \
  --bug login-crash \
  --cwd packages/app \
  --expect "TypeError: cannot read" \
  --timeout 60 \
  -- npm test -- login.test.ts

python3 skills/anchor-repro/scripts/repro_ledger.py close \
  --project /path/to/project \
  --bug login-crash

Mark an honestly speculative fix only when reproduction is impossible:

python3 skills/anchor-repro/scripts/repro_ledger.py mark-unreproduced \
  --project /path/to/project \
  --bug customer-only-crash \
  --no-probe-possible \
  --reason "Requires customer-only data and credentials unavailable in this environment"

The ledger writes target-project artifacts under .techne/repro/ and

idempotently adds .techne/ to the target project's .gitignore. Do not commit

.techne/ output.

Stop Conditions

  • Stop before editing if you have not run a failing probe or recorded an

explicit mark-unreproduced path.

  • Stop if a failing run does not match the reported symptom; a hollow failure is

not a reproduction.

  • Stop if a passing post-fix run uses a different identity; changed probes need

their own fail -> pass cycle.

  • Stop before claiming a non-speculative fix if close does not exit 0 with a

verified same-probe summary.

Other skills for the same job

different authors, same section of the catalogue
Webapp Testing
by anthropics
vendor ×15

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

978 tokens scripts
Finishing A Development Branch
by ZhanlinCui
×9

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1.1k tokens
Test Driven Development
by w95
×9

Use when implementing any feature or bugfix, before writing implementation code

2.5k tokens
Systematic Debugging
by ratacat
×9

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

2.5k tokens scripts
Verification Before Completion
by ZhanlinCui
×8

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

1.1k tokens
Backtest Expert
by BaggaT236
×3

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

2.2k tokens scripts
Adaptyv
by christophacham
×3

Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.

1.1k tokens
Aeon
by christophacham
×3

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

2.9k tokens

How to use it

Copy the folder

Take lynxlangya/anchor-repro from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.