一键导入
outside-in-tdd
UI-first BDD for event-model slices, RGR sequence, observed-failure evidence, drill-down unit tests, and non-behavioral exemptions for eddy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
UI-first BDD for event-model slices, RGR sequence, observed-failure evidence, drill-down unit tests, and non-behavioral exemptions for eddy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Process Forgejo PR feedback with reflection, guardrail-gap classification, and inline thread replies.
Fine-grained outside-in RED-GREEN-REFACTOR microcycles with specialist agents and single-diagnostic implementation.
Write implementation plans as test-addressed red-green-refactor cycles, with UI-first Cucumber REDs for event-model slices, rather than component waterfalls.
eddy Rust workspace conventions, Nix toolchain use, error handling, env parsing, tests, and docs coupling.
Event Modeling pattern advice; use when deciding whether something is an event, command, read model, state change, state view, automation, or translation.
Sandbox, LLM/tool trust boundaries, red-team tests, metrics/docs coupling, and threat-model update triggers.
| name | outside-in-tdd |
| description | UI-first BDD for event-model slices, RGR sequence, observed-failure evidence, drill-down unit tests, and non-behavioral exemptions for eddy. |
Use this skill for behavior changes and bug fixes. This skill defines the discipline; the opencode-rgr-loop plugin should perform the normal orchestration through rgr_loop and typed phase submissions. The specialist RGR agents are the fallback path when the plugin is unavailable or cannot fit the task.
Never write production behavior without one observed failing test demanding it. Multi-failure output is not valid RED; narrow the command or split the behavior until exactly one test or one intentional compiler/API diagnostic is failing.
For an event-model slice, the demanding test starts at the black-box UI/process boundary: a Cucumber scenario runs the compiled program, drives the UI like a user, and asserts on visible behavior. Treat that scenario as the outer RED for the slice unless the user explicitly narrows the boundary.
rgr_loop with a BDD-style behavioral specification and treat its typed submissions as the authoritative RGR ledger.rgr-test-author to write or activate that test, run the focused command, and capture real failing output.rgr-test-reviewer to approve the RED evidence and API pressure before production edits.rgr-diagnostic-implementer with the current diagnostic and allowed immediate change; it implements only the minimum code that changes that diagnostic.rgr-implementation-reviewer to approve the GREEN diff before refactor or broader verification.When the black-box Cucumber or other acceptance failure points at internal logic, route the lower-level unit test through rgr-test-author and rgr-test-reviewer, observe it fail, use rgr-diagnostic-implementer for the minimum GREEN change, then return to the outer test before declaring the slice green.
Observed failure output must be copied from an actual run, not paraphrased. It must identify one current failing test or diagnostic. Commit bodies should explain why and include the RED command/output for behavior commits when practical.
RED is not required for docs-only changes, pure renames or moves where existing tests cover behavior, generated lockfile updates, and mechanical config chores. Do not create deterministic tests that assert documentation wording for docs-only changes; use human/operator review for those changes unless the documentation is generated from or consumed by executable behavior. If a production Rust edit changes observable behavior, the exemption does not apply.