Behavior first
Use when implementing features or fixing bugs with tests. Applies red-green-refactor, behavior-focused tests, public-interface testing, and small vertical slices. Trigger when the user says TDD, tests, implement with tests, make it stable, or fix with regression coverage.From its SKILL.md
npx -y skills add Rookage/agent-discipline --skill behavior-firstAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.3 KB, 208 tokens by cl100k_base, as published. Nobody here has run it
Behavior First
中文核心:测行为,不拜实现。
Principles
- Test observable behavior through public interfaces.
- Avoid tests that depend on private implementation details.
- Work in vertical slices: one behavior, one test, one minimal implementation.
- Refactor only after tests are green.
Workflow
- Inspect existing test style and commands.
- Identify the public interface or user-visible behavior.
- Write one failing test for one behavior.
- Implement the smallest code needed to pass.
- Repeat for the next behavior.
- Refactor after green.
- Run relevant verification.
Test Quality
Good tests:
- read like specifications
- survive internal refactors
- fail when behavior breaks
Bad tests:
- mock internal collaborators unnecessarily
- assert private function shape
- pass while user behavior is broken
Output
End with:
- behavior implemented
- tests added or changed
- verification command and result
- known gaps, if any
What ships with it: 1 file
237 B alongside SKILL.md
agents/
- openai.yaml237 B