refactor(bdd): rename tdd-bdd skill to bdd (dir, triggers, 24 refs, symlink) feat(skills): add sieve (Real/Good/Minimal gate) and winnow (debloat audit) feat(skills): add background-work and review-angles from review-round lessons feat(bdd): fold rules 7/13/17 into interface-design + new SKILL sections docs(refute): extract shared elenchus doctrine, cite from review-angles/winnow/bdd docs(CLAUDE): reframe Simplicity First as the three sieves docs(README): list new skills, add Socratic-spine roadmap
3.5 KiB
name, description
| name | description |
|---|---|
| dev-python | Orchestrate the full Python development workflow in a uv + Docker + justfile project — implement, lint, typecheck, test (TDD-BDD), commit. Use ONLY when the user explicitly asks for the workflow ("run the python workflow", "full dev loop", "/dev-python"). Do NOT auto-invoke for individual tasks like fixing a bug, adding a function, or writing tests — those use the relevant focused skill (`/bdd`, `/diagnose`, `/jj-atomic`) directly. |
dev-python
Workflow for build-py-project-shaped repos (uv + Docker + justfile).
Each phase must pass before the next. Do not advance silently.
When to use
- User says "run the python workflow", "full dev loop", "/dev-python".
- A fresh feature or fix needs the complete loop, not a single skill.
When NOT to use
- Single-task work: a bug fix →
/diagnose+/bdddirectly. - Writing tests for an already-implemented behaviour →
/bddonly. - Committing a single change →
/jj-atomiconly.
Phases
0. Frame
Karpathy guardrails — state assumptions explicitly, name the simpler
approach you're rejecting, surface tradeoffs. Push back when warranted; if
something is unclear, stop and ask. See
../../../CLAUDE.md for the full version. If the
task is ambiguous, hand off to
/grill-me or
/grill-with-docs first.
1. Implement
- Write code under
src/<package>/. - Match existing style; touch only what the task requires.
2. Lint
just lint # ruff check
If it fails:
just lint-fix && just fmt
just lint && just fmt-check # confirm clean
3. Typecheck
just typecheck # ty check
Fix type errors. Don't suppress with # type: ignore unless genuinely
unavoidable — explain inline why.
4. Test (TDD-BDD)
Hand to /bdd, which loops red→green→refactor
one scenario at a time — never write all the tests upfront (that's the
horizontal-slicing anti-pattern called out in bdd itself). When every
scenario from step 0 is green:
just test
The full suite must be green before commit. New edge case found mid-loop → add as the next scenario, don't skip.
5. Commit
Hand to /jj-atomic. The fix
- the regression test land in the same atomic change.
Reference: justfile commands
| Command | What |
|---|---|
just build-dev / build-prod |
Build dev / prod container |
just up / up-prod |
Shell into dev / start prod container |
just down |
Stop all containers |
just lint / lint-fix |
ruff check / with auto-fix |
just fmt / fmt-check |
ruff format (apply / check) |
just typecheck |
ty check |
just test / test-verbose |
pytest with coverage |
just check |
lint + fmt-check + typecheck + test |
just fix-and-check |
lint-fix + fmt + typecheck + test |
See also
../bdd/SKILL.md— Given/When/Then loop; Python siblingstests-py.md,mocking-py.md,interface-design-py.md,docstrings-py.md.../diagnose/SKILL.md— six-phase bug hunt.../../productivity/jj-atomic/SKILL.md— commit discipline.../../scaffold/build-py-project/SKILL.md— sets up the project this workflow assumes.write-readme-py— README frompyproject.toml+justfile.