You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/build-strata-application-form/SKILL.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Extends an existing Strata Rails app (typically scaffolded by the `build-strata-
11
11
12
12
**Scope (currently):** application forms only. Other Strata features (cases, business processes, tasks) are out of scope for this skill.
13
13
14
-
**TDD is mandatory.** Every step that produces or modifies Ruby code (model, migration, controller, views, routes) must follow the `test-driven-development` skill: write a failing RSpec spec, run `make test` to watch it fail, write minimal Ruby, run `make test` to watch it pass, then `make lint`. Generator output (model stubs, migration stubs, scaffold view specs) is NOT a substitute — replace generator-stub specs with real failing specs before adding behavior. See `skills/test-driven-development/SKILL.md` and `skills/test-driven-development/testing-anti-patterns.md`.
14
+
**TDD is mandatory.** Every step that produces or modifies Ruby code (model, migration, controller, views, routes) must follow the `test-driven-development` skill: write a failing RSpec spec, run `make test` to watch it fail, write minimal Ruby, run `make test` to watch it pass, then `make lint`. Generator output (model stubs, migration stubs, scaffold view specs) is NOT a substitute — replace generator-stub specs with real failing specs before adding behavior. See [`references/test-driven-development.md`](../../references/test-driven-development.md).
15
15
16
16
## Step 1: Confirm intent
17
17
@@ -223,7 +223,7 @@ Loop back to Step 9 if attribute changes are needed. Only proceed once every che
223
223
- Required-attribute validations the rule file specifies
224
224
- Status transitions (`in_progress` → `submitted`) and the immutability rule (no edits after `submitted`)
225
225
226
-
Run `make test` and confirm these specs **fail** (model doesn't exist yet). See the `test-driven-development` skill — do not skip the watch-it-fail step.
226
+
Run `make test` and confirm these specs **fail** (model doesn't exist yet). See [`references/test-driven-development.md`](../../references/test-driven-development.md) — do not skip the watch-it-fail step.
227
227
228
228
**10e. Generate the model:**
229
229
@@ -285,7 +285,7 @@ Save the answer as `<ENTRY_POINT>`. Do not invent — if the user is unclear, as
285
285
286
286
## Step 13: Generate views and wire up the entry point (TDD)
287
287
288
-
Follow the **generated `application_form` rule file's recipe** for views (controllers, views, routes). Apply TDD throughout — see `test-driven-development` skill.
288
+
Follow the **generated `application_form` rule file's recipe** for views (controllers, views, routes). Apply TDD throughout — see [`references/test-driven-development.md`](../../references/test-driven-development.md).
289
289
290
290
**13a. Write failing request and system specs FIRST.** Cover at least:
0 commit comments