jb-tdd
TDD (Red-Green-Refactor)
Use this skill whenever you need reliable, incremental implementation with test-first development.
When to use
- Building new behavior where correctness matters
- Fixing bugs with a reproducible failing test
- Refactoring safely with behavior locked by tests
- Working in codebases where regression risk is high
Workflow
-
Red
- Write or update a test that describes the intended behavior.
- Run tests and verify the new/changed test fails for the right reason.
-
Green
- Implement the smallest possible code change to make the failing test pass.
- Run the smallest relevant test scope first, then broader tests.
-
Refactor
- Improve naming, remove duplication, simplify logic.
- Keep behavior unchanged and run tests again.
-
Repeat
- Continue in small cycles until acceptance criteria are complete.
Guardrails
- Never skip the failing test step.
- Keep each cycle small and reviewable.
- Prefer deterministic tests over timing/network fragile tests.
- If behavior is unclear, stop and ask for clarification before coding.
Deliverables
- Final passing tests for all new/changed behavior
- Minimal implementation changes
- Brief summary of what each red-green-refactor cycle achieved
More from bjesuiter/skills
mole-mac-cleanup
Mac cleanup & optimization tool combining CleanMyMac, AppCleaner, DaisyDisk features. Deep cleaning, smart uninstaller, disk insights, and project artifact purge.
32xcode
Build, test, and manage Xcode projects and Swift packages. Use when the user mentions Xcode, iOS/macOS app development, simulators, Swift packages, or needs to build/test Apple platform apps. Triggers on "build", "run", "test", "simulator", "xcodebuild", "swift package", "iOS app", "macOS app".
30summarize
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
27jb-browser-testing
Private browser testing rules for jb workflows. Prefer playwriter_exec with careful tab selection, fall back to agent-browser, and avoid playwright-mcp.
16mcporter
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
16security-check
Red-team security review for code changes. Use when reviewing pending git changes, branch diffs, or new features for security vulnerabilities, permission gaps, injection risks, and attack vectors. Acts as a pen-tester analyzing code.
16