hunt
Bug hunter — try to break code that is already green, with properties, boundaries, hostile input and concurrency. Use for "сломай это", "поищи баги", "break it", after green on R2/R3.
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- hunt
- description
- Bug hunter — try to break code that is already green, with properties, boundaries, hostile input and concurrency. Use for "сломай это", "поищи баги", "break it", after green on R2/R3.
03 SKILL.md 正文
Bug hunt
Green tests prove the cases someone thought of. A hunt looks for the ones nobody did (D049).
Triggers
- RU: «сломай это», «поищи баги», «что тут может упасть»
- EN: "break it", "hunt for bugs", "what could go wrong here"
When it runs
- Always on R3 blocks and on files inside the project's
critical_zones. - Briefly on R2, after the block's tests are green.
- On the hottest modules (
bedrock arch hotspots) when the architecture review runs. Done when: the block's plan says which of these applies.
1. Brief the hunter
Start the bug-hunter agent with a brief from templates/briefs/brief.md:
- Task: the module and the spec it must meet (plan done-when, decisions, module note).
- Read: the code and its tests, in order.
- Known: the cases the tests already cover.
- Commands: the project's test command through
bedrock cmd. Done when: the agent's report file exists.
2. What the hunter tries
- Properties from the spec, not from the code: Hypothesis in Python, fast-check in TS. Examples: a round trip returns the input, a sort keeps every element, a total never goes negative. The libraries are dev dependencies, added only on the owner's word.
- Boundaries: empty, null, zero, max, one past max, the first and the last element.
- Hostile input: injection strings, huge input, odd unicode, wrong types.
- Concurrency: the same request twice at once, a replay, a kill mid-run.
- Scale: the data volume the plan's Scale section names.
- Metamorphic checks for text and extraction systems (the domain pack names them): a paraphrase keeps the result, an added negation never yields a positive fact, a relative's condition is not the subject's, document order does not change the facts, and a fact split across a chunk boundary is still found. Done when: each tried technique is listed in the report with its result.
3. Every finding is checked
- Minimise it to the smallest failing input.
- A
verifieragent re-runs it from scratch. Agent-written property reports are often invalid: only a reproduced failure counts. - Confirmed → the
debugskill, cause first. Spec ambiguity → one question to the owner. Done when: each finding is reproduced and routed, or cut with the verifier's reason.
4. Keep what it found
A confirmed finding leaves a regression test at the right seam (the debug skill does this)
and, when it is a pattern, a line in the domain pack or a failure note in the knowledge base.
Done when: each confirmed finding has its test or its note.
04 同仓库更多 Skills
writing
Write or rewrite skills, agent definitions, briefs and rule files by the D013 rules, then check them. Use for "напиши скилл", "поправь агента", "write a skill", "edit this brief".
triage
Bug triage — reproduce each report on the current version, group duplicates, set priority, decide fix, defer or decline. Use for "разбери баги", "что с репортами QA", "triage", "new bug reports".
start
Start a project with bedrock — a new one by interview, or an existing one by onboarding; writes the base, AGENTS.md, workspace settings and verified commands. Use for "новый проект", "подключи проект", "start a project".
review
Review gate for a finished block — deterministic checks, code review, plan-compliance review, silent fixes, rounds until clean. Use for "проверь", "ревью", "review this", before any PR.
retro
Weekly retro — read the week's logs, agents, reviews and failures, find what repeats, tune the system, plan a realistic next week. Use for "ретро", "итоги недели", "retro", "how did the week go".
night
Autonomous work until morning — a pre-sleep check, the allowed list, auto-continue with fuses, a watchdog, a morning report. Use for "автономно до утра", "поработай ночью", "work overnight".