brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
django-outside-in-tddDrive Django features with outside-in and double-loop TDD: user story, Selenium or functional test, focused Django unit/integration tests, minimal implementation, and refactor. Use when starting or changing Django behavior with tests-first workflow, red/green/refactor, working-state-to-working-state refactors, or deciding which layer should own the next tes…
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a Django feature should be grown from observable user behavior down into views, forms, models, and helpers. Keep the outer test broad enough to prove user value and the inner tests small enough to keep the red/green loop fast.
Primary source: Harry Percival, Test-Driven Development with Python, 3rd ed. Guidance is transformed and paraphrased from chapters 1-7, chapter 24, and Appendix A, especially the user-story-to-functional-test flow, double-loop TDD, working-state-to-working-state refactoring, and outside-in development.
Start from the user-visible behavior.
Run the outer test and make the failure useful.
Drop into the inner loop.
RequestFactory, form instances, or model tests at the narrowest useful boundary.Make the inner test pass with minimal code.
Refactor only on green.
Read patterns.md for layer choices, refactoring rules, and failure-handling patterns.
| Signal | Next Test |
|---|---|
| User workflow not proven | Functional test |
| URL or redirect missing | URL/view test |
| Template output changed | View/template integration test or HTML parser assertion |
| Validation rule unclear | Form or model test |
| Domain helper emerging | Plain Python unit test |
| Refactor crosses wiring | One integration test plus focused unit tests |
Before finishing, report: