@ericrisco/rsc 4.1.11 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/manifest.json +6 -6
  2. package/package.json +2 -1
  3. package/scripts/lib/prompt-audit.js +110 -0
  4. package/scripts/prompt-audit.js +48 -0
  5. package/skills/ads/SKILL.md +7 -7
  6. package/skills/agent-safety/SKILL.md +1 -1
  7. package/skills/asdd/SKILL.md +2 -2
  8. package/skills/asdd/references/model-routing.md +5 -5
  9. package/skills/astro/SKILL.md +1 -1
  10. package/skills/astro/scripts/verify.sh +1 -1
  11. package/skills/author-skill/SKILL.md +5 -5
  12. package/skills/author-skill/references/eval-authoring.md +6 -7
  13. package/skills/automation-flows/SKILL.md +1 -1
  14. package/skills/building-agents/SKILL.md +17 -12
  15. package/skills/building-agents/references/agent-loops-and-harness.md +3 -2
  16. package/skills/building-agents/references/evals-and-observability.md +7 -5
  17. package/skills/building-agents/references/provider-abstraction.md +31 -30
  18. package/skills/chrome-extension/SKILL.md +1 -1
  19. package/skills/cold-outreach/SKILL.md +1 -1
  20. package/skills/cold-outreach/references/templates.md +7 -3
  21. package/skills/compliance/SKILL.md +8 -8
  22. package/skills/compliance/evals/README.md +1 -1
  23. package/skills/compliance/evals/cases.yaml +2 -2
  24. package/skills/compliance/references/frameworks.md +7 -7
  25. package/skills/content-engine/SKILL.md +1 -1
  26. package/skills/cost-tracking/SKILL.md +29 -21
  27. package/skills/cost-tracking/references/pricing-tables.md +6 -5
  28. package/skills/course-builder/SKILL.md +4 -3
  29. package/skills/course-builder/references/outcomes-and-blooms.md +1 -1
  30. package/skills/course-storytelling/SKILL.md +1 -1
  31. package/skills/course-storytelling/references/concept-landing-recipe.md +1 -1
  32. package/skills/csharp-dotnet/SKILL.md +2 -2
  33. package/skills/data-policy/SKILL.md +1 -1
  34. package/skills/db-migrations/SKILL.md +6 -5
  35. package/skills/deep-learning/SKILL.md +2 -2
  36. package/skills/deployment/SKILL.md +1 -1
  37. package/skills/deployment/references/dockerfiles-by-stack.md +1 -1
  38. package/skills/design/engine/RUN.md +1 -1
  39. package/skills/django/SKILL.md +1 -1
  40. package/skills/docker/SKILL.md +1 -1
  41. package/skills/document-processing/SKILL.md +2 -1
  42. package/skills/electron/SKILL.md +2 -1
  43. package/skills/email-connector/SKILL.md +2 -1
  44. package/skills/email-deliverability/SKILL.md +2 -2
  45. package/skills/embeddings-search/SKILL.md +3 -3
  46. package/skills/error-handling/SKILL.md +4 -2
  47. package/skills/expo/SKILL.md +1 -1
  48. package/skills/fable-operator/SKILL.md +2 -2
  49. package/skills/fal/SKILL.md +1 -1
  50. package/skills/fastapi/SKILL.md +18 -9
  51. package/skills/fastapi/references/database.md +19 -10
  52. package/skills/finance-ops/SKILL.md +1 -1
  53. package/skills/firebase/SKILL.md +1 -1
  54. package/skills/flutter/SKILL.md +1 -1
  55. package/skills/forecasting/SKILL.md +1 -1
  56. package/skills/forecasting/references/accuracy-and-backtesting.md +1 -1
  57. package/skills/forecasting/references/methods-cheatsheet.md +3 -3
  58. package/skills/ftd/SKILL.md +2 -3
  59. package/skills/fundraising/references/funnel-math.md +1 -1
  60. package/skills/gamedev-multiplayer/SKILL.md +2 -2
  61. package/skills/gamedev-multiplayer/references/unity-and-unreal-netcode.md +4 -4
  62. package/skills/gamedev-pathing/SKILL.md +1 -1
  63. package/skills/gamedev-physics/SKILL.md +3 -2
  64. package/skills/gamedev-physics/references/character-controllers.md +1 -1
  65. package/skills/gamedev-shaders/SKILL.md +2 -4
  66. package/skills/gamedev-shipping/SKILL.md +8 -5
  67. package/skills/gamedev-shipping/references/mobile-and-desktop.md +7 -3
  68. package/skills/gdpr-privacy/references/dpa-and-transfers.md +1 -1
  69. package/skills/git-workflow/SKILL.md +3 -3
  70. package/skills/go/SKILL.md +3 -3
  71. package/skills/harness/SKILL.md +4 -3
  72. package/skills/harness/references/daily-curation-automation.md +1 -1
  73. package/skills/harness/references/providers.yaml +4 -4
  74. package/skills/harness/references/wiki-protocol.md +2 -1
  75. package/skills/hiring/SKILL.md +3 -3
  76. package/skills/htmx/SKILL.md +4 -4
  77. package/skills/htmx/references/server-contract.md +2 -2
  78. package/skills/implement/SKILL.md +3 -3
  79. package/skills/init/SKILL.md +2 -3
  80. package/skills/init/references/accompaniment-and-profile.md +1 -1
  81. package/skills/init/references/recommend-skills.md +9 -9
  82. package/skills/invoicing/SKILL.md +8 -7
  83. package/skills/java/SKILL.md +3 -2
  84. package/skills/knowledge-ops/SKILL.md +3 -4
  85. package/skills/knowledge-ops/references/gardening-playbook.md +3 -3
  86. package/skills/kotlin-android/SKILL.md +10 -3
  87. package/skills/kotlin-android/references/gradle-setup.md +1 -4
  88. package/skills/landing-copy/SKILL.md +1 -1
  89. package/skills/laravel/SKILL.md +11 -11
  90. package/skills/lead-gen/SKILL.md +3 -3
  91. package/skills/linkedin-api/SKILL.md +1 -1
  92. package/skills/linkedin-api/references/api-reference.md +1 -1
  93. package/skills/linkedin-content/SKILL.md +1 -1
  94. package/skills/linkedin-outreach/SKILL.md +4 -4
  95. package/skills/linkedin-strategy/SKILL.md +2 -2
  96. package/skills/llm-pipeline/SKILL.md +2 -2
  97. package/skills/llm-pipeline/references/litellm-router.md +3 -3
  98. package/skills/logistics-ops/SKILL.md +6 -1
  99. package/skills/marketing/SKILL.md +1 -1
  100. package/skills/marketing/references/seo-geo.md +2 -2
  101. package/skills/mongodb/SKILL.md +3 -2
  102. package/skills/mongodb/references/aggregation.md +3 -2
  103. package/skills/mysql/SKILL.md +1 -1
  104. package/skills/mysql/references/mysql-vs-mariadb.md +1 -1
  105. package/skills/n8n/SKILL.md +1 -1
  106. package/skills/nextjs/SKILL.md +1 -1
  107. package/skills/observability/SKILL.md +1 -1
  108. package/skills/observability/references/instrumentation-recipes.md +1 -1
  109. package/skills/ollama/SKILL.md +1 -1
  110. package/skills/open-weights/SKILL.md +3 -4
  111. package/skills/orient/SKILL.md +4 -3
  112. package/skills/parallel/SKILL.md +1 -1
  113. package/skills/planetscale/SKILL.md +3 -3
  114. package/skills/planetscale/references/no-foreign-keys.md +3 -3
  115. package/skills/postgresdb/SKILL.md +4 -4
  116. package/skills/presentations/SKILL.md +1 -1
  117. package/skills/prompt-engineering/SKILL.md +6 -6
  118. package/skills/prompt-engineering/evals/cases.yaml +2 -2
  119. package/skills/prompt-engineering/references/output-contracts.md +18 -23
  120. package/skills/rag/references/pipeline.md +7 -5
  121. package/skills/review/SKILL.md +4 -4
  122. package/skills/roast-me/prompts/compute.md +5 -5
  123. package/skills/roast-me/prompts/roast.md +2 -2
  124. package/skills/sdd-init/SKILL.md +3 -3
  125. package/skills/ship/SKILL.md +7 -9
  126. package/skills/shopify/SKILL.md +6 -6
  127. package/skills/shopify/references/apps-graphql.md +3 -3
  128. package/skills/skill-scout/SKILL.md +1 -1
  129. package/skills/specify/SKILL.md +3 -3
  130. package/skills/specify/references/eliciting-requirements.md +3 -3
  131. package/skills/structured-extraction/SKILL.md +7 -3
  132. package/skills/structured-extraction/references/providers.md +8 -5
  133. package/skills/svelte/SKILL.md +1 -1
  134. package/skills/swift-ios/SKILL.md +4 -4
  135. package/skills/tasks/SKILL.md +1 -1
  136. package/skills/tauri/SKILL.md +4 -3
  137. package/skills/terms-conditions/SKILL.md +2 -2
  138. package/skills/translation-l10n/SKILL.md +2 -1
  139. package/skills/typescript/SKILL.md +5 -4
  140. package/skills/typescript/references/build-and-monorepo.md +2 -2
  141. package/skills/unslop/SKILL.md +1 -1
  142. package/skills/ux/SKILL.md +1 -1
  143. package/skills/vercel/SKILL.md +3 -2
  144. package/skills/vercel/references/vercel-json.md +8 -5
  145. package/skills/verify/SKILL.md +3 -3
  146. package/skills/vllm/SKILL.md +4 -2
  147. package/skills/vue-nuxt/SKILL.md +5 -5
  148. package/skills/webhooks/SKILL.md +10 -1
  149. package/skills/worktrees/SKILL.md +10 -8
  150. package/skills/youtube-ideation/SKILL.md +1 -1
  151. package/targets/agents.js +26 -17
  152. package/targets/commands.js +7 -7
@@ -191,7 +191,7 @@ db.orders.aggregate([
191
191
  pipeline: [ { $project: { name: 1 } } ] // project inside $lookup: pull only what you need
192
192
  }},
193
193
  { $group: { _id: "$customerId", total: { $sum: "$amount" } } }
194
- ], { allowDiskUse: true }) // $group/$sort spill past 100 MB/stage; this lets large groups complete,
194
+ ], { allowDiskUse: true }) // spill past 100 MB/stage even where allowDiskUseByDefault=false (6.0+ default: true);
195
195
  // it is NOT a substitute for a missing $match index — see anti-patterns.
196
196
  ```
197
197
 
@@ -291,7 +291,8 @@ Serverless / M2 / M5 were auto-migrated to Flex.
291
291
  ### Aggregation memory
292
292
 
293
293
  Each blocking stage (`$group`, `$sort` without an index, `$bucket`) is capped at **100 MB**. Past it
294
- the stage errors unless `allowDiskUse:true` lets it spill. Spilling is a correctness fallback for
294
+ the stage spills to disk (6.0+, `allowDiskUseByDefault` is `true` on `mongod`); it errors only when
295
+ the server sets that parameter to `false` or the query passes `allowDiskUse:false`. Spilling is a correctness fallback for
295
296
  genuinely large groups, not a performance fix for a missing index.
296
297
 
297
298
  ## Verify
@@ -88,8 +88,9 @@ transactions-and-ops.)
88
88
  ## Memory limit and `allowDiskUse`
89
89
 
90
90
  Each blocking stage (`$group`, `$sort` without a supporting index, `$bucket`,
91
- `$setWindowFields`) is capped at **100 MB**. Past it the stage errors unless you pass
92
- `allowDiskUse: true`, which lets it spill to temporary files on disk.
91
+ `$setWindowFields`) is capped at **100 MB**. Past it the stage spills to temporary files on disk:
92
+ since 6.0 the `mongod` parameter `allowDiskUseByDefault` is `true`. The stage errors instead when that
93
+ parameter is `false` (then pass `allowDiskUse: true` to spill) or the query passes `allowDiskUse: false`.
93
94
 
94
95
  Spilling is the right tool for a genuinely large aggregation (an analytics rollup over the whole
95
96
  collection). It is the **wrong** tool to "fix" a slow pipeline whose real problem is a `$match` that
@@ -207,7 +207,7 @@ They share a heritage and diverge in ways that break copy-pasted SQL. Do not ass
207
207
  |---|---|---|
208
208
  | Default auth | `caching_sha2_password` | `mysql_native_password` / `ed25519` |
209
209
  | `VECTOR` | MySQL 9.0+ only; `STRING_TO_VECTOR()` | Native in 11.8; `VEC_DISTANCE_COSINE()` — different syntax |
210
- | `RETURNING` | `INSERT ... RETURNING` only (8.0+) | `INSERT`/`UPDATE`/`DELETE ... RETURNING` |
210
+ | `RETURNING` | Not supported (use `LAST_INSERT_ID()` / `ROW_COUNT()`) | `INSERT`/`UPDATE`/`DELETE ... RETURNING` |
211
211
  | Sequences | No `CREATE SEQUENCE` | `CREATE SEQUENCE` supported |
212
212
  | System-versioned (temporal) tables | Not supported | `WITH SYSTEM VERSIONING` supported |
213
213
  | Snapshot isolation | RR snapshot, no write-conflict detection | `innodb_snapshot_isolation` defaults **ON** |
@@ -56,7 +56,7 @@ on MariaDB.
56
56
 
57
57
  | Feature | MySQL | MariaDB |
58
58
  |---|---|---|
59
- | `RETURNING` | `INSERT ... RETURNING` only (8.0+) | `INSERT` / `UPDATE` / `DELETE ... RETURNING` |
59
+ | `RETURNING` | Not supported (use `LAST_INSERT_ID()` / `ROW_COUNT()`) | `INSERT` / `UPDATE` / `DELETE ... RETURNING` |
60
60
  | Sequences | No `CREATE SEQUENCE` (use `AUTO_INCREMENT`) | `CREATE SEQUENCE` supported |
61
61
  | System-versioned (temporal) tables | Not supported | `WITH SYSTEM VERSIONING` + `FOR SYSTEM_TIME` queries |
62
62
  | `JSON` type | Native binary `JSON` | Historically a `LONGTEXT` alias with JSON functions; check the version — behaviour and storage differ |
@@ -172,6 +172,6 @@ Details in `references/n8n-mcp-tools.md`.
172
172
  |---|---|
173
173
  | Designing the flow (trigger/steps/error path, dedup) and producing the importable JSON | `automation-flows` — start there if the logic isn't settled |
174
174
  | Whether n8n is the right platform at all — cost model, self-host vs cloud | `automation-strategy` |
175
- | Operating a different platform | `make`, `zapier`, `power-automate` (neither Zapier nor Power Automate can create flows via API — n8n's edge) |
175
+ | Operating a different platform | `make`, `zapier`, `power-automate` (Zapier has no flow-creation API on a normal account; Power Automate creates only solution-aware flows, via the Dataverse Web API) |
176
176
  | A generic typed HTTP client with auth/pagination/backoff — real code, not a workflow | `api-connector-builder` |
177
177
  | The inbound webhook receiver in your own app (here webhooks are only n8n triggers) | `webhooks` |
@@ -106,7 +106,7 @@ export async function renameProject(_prev: RenameResult | null, formData: FormDa
106
106
  if (!owned) return { status: "error", message: "Forbidden" };
107
107
 
108
108
  const updated = await db.project.update({ where: { id: parsed.data.id }, data: { name: parsed.data.name } });
109
- revalidateTag(`project:${updated.id}`);
109
+ revalidateTag(`project:${updated.id}`); // v15. On v16: updateTag(`project:${updated.id}`) (read-your-writes)
110
110
  return { status: "ok", data: { id: updated.id, name: updated.name } };
111
111
  }
112
112
  ```
@@ -114,7 +114,7 @@ Per-stack init (Node SDK 2.0 manual setup, Go SDK, context propagation across HT
114
114
  ```javascript
115
115
  // LLM call as a span: model + token attrs. These attributes feed ../cost-tracking/SKILL.md.
116
116
  await tracer.startActiveSpan('chat gpt-4o', async (span) => {
117
- span.setAttribute('gen_ai.system', 'openai');
117
+ span.setAttribute('gen_ai.provider.name', 'openai');
118
118
  span.setAttribute('gen_ai.request.model', 'gpt-4o');
119
119
  const res = await openai.chat.completions.create({ /* ... */ });
120
120
  span.setAttribute('gen_ai.usage.input_tokens', res.usage.prompt_tokens);
@@ -102,7 +102,7 @@ Use `gen_ai.*` semantic conventions (client spans exited experimental, early 202
102
102
 
103
103
  ```python
104
104
  with tracer.start_as_current_span("chat gpt-4o") as span:
105
- span.set_attribute("gen_ai.system", "openai")
105
+ span.set_attribute("gen_ai.provider.name", "openai")
106
106
  span.set_attribute("gen_ai.operation.name", "chat")
107
107
  span.set_attribute("gen_ai.request.model", "gpt-4o")
108
108
  span.set_attribute("gen_ai.request.temperature", 0.2)
@@ -71,7 +71,7 @@ in the table below are derived from this formula, not vendor-published numbers
71
71
  | --- | --- | --- |
72
72
  | 8 GB | 7–8B Q4_K_M (~5–6 GB) | leave headroom for KV cache + the OS |
73
73
  | 12 GB | up to ~14B Q4_K_M (~9–10 GB) | 7–8B at Q8_0 also fits |
74
- | 16 GB | 14B Q4_K_M comfortably; 32B is tight | 32B Q4_K_M ≈ 20 GB — won't fit |
74
+ | 16 GB | 14B Q4_K_M comfortably | 32B Q4_K_M ≈ 20 GB — won't fit |
75
75
  | 24 GB | 32B Q4_K_M (~20 GB) | 70B does **not** fit at any usable quant |
76
76
  | 48 GB+ / 2×24 GB | 70B Q4_K_M (~40–48 GB) | needs the full budget; long context pushes over |
77
77
  | Mac unified (e.g. 64 GB) | weights share RAM with everything else | budget against total unified memory |
@@ -15,8 +15,8 @@ serve, or fine-tune anything — it feeds the skills that do (see [Related skill
15
15
  ## The one rule (read before you name a model)
16
16
 
17
17
  **Model names and their licenses change monthly. Never state a license from memory — open the
18
- model card and confirm it, every time.** This file was authored against cards live in mid-2026;
19
- by the time you read it, versions have shipped and terms have moved. So:
18
+ model card and confirm it, every time.** Versions ship and terms move between one read and the
19
+ next. So:
20
20
 
21
21
  - Treat every specific version/license line below as **[verify the card]**, not as settled fact.
22
22
  - State the license **class** (OSI-open vs custom-community vs restricted), then send the reader to
@@ -24,8 +24,7 @@ by the time you read it, versions have shipped and terms have moved. So:
24
24
  - The *decision framework* and the *class taxonomy* are the durable parts. The version list is the
25
25
  perishable part. Weight your trust accordingly.
26
26
 
27
- Real, verified-mid-2026 examples of *why* this rule exists — all confirmed against the source, and
28
- all things that were different at my Jan-2026 cutoff:
27
+ Examples of *why* this rule exists, each confirmed against its source in mid-2026:
29
28
 
30
29
  - **Gemma 4** moved to **Apache-2.0**, while Gemma 1–3 stay on the custom Gemma Terms of Use
31
30
  (confirmed on [ai.google.dev/gemma/terms](https://ai.google.dev/gemma/terms), accessed
@@ -61,7 +61,7 @@ guessing their mood reads as condescending.
61
61
 
62
62
  | Step | What | Detail |
63
63
  |---|---|---|
64
- | 1 | Text, in the three rules | always |
64
+ | 1 | Text, in the four rules | always |
65
65
  | 2 | One diagram in the chat | the smallest form that carries the point |
66
66
  | 3 | One self-contained HTML page | big pictures, few words; open it |
67
67
  | 4 | Animated video | only offered, never made unasked |
@@ -80,13 +80,14 @@ No turn ends in seco. One block, at the end, never mid-work.
80
80
  ➡️ Siguiente — 1-3 concrete options, ending in a question
81
81
  ```
82
82
 
83
+ The labels are shown in Spanish; write them in the person's language (rule 1).
83
84
  📍 and ➡️ always. ✅ and 🧭 only when they carry something. Situate from what is **actually** built;
84
85
  an invented state is worse than a shorter block. At a real fork, ask: the fork is where the person's
85
86
  judgment is worth more than yours.
86
87
 
87
88
  **Emoji off.** If `.rsc/.no-emoji` exists, the block has no glyph: the same four lines open with
88
- `Dónde estás:`, `Hecho:`, `Decidido:` and `Siguiente:`. The session-start hook says so; the rule also
89
- holds for every reply, commit, pull request and document, whatever a skill or a template shows.
89
+ `Dónde estás:`, `Hecho:`, `Decidido:` and `Siguiente:`, in the person's language. The session-start
90
+ hook says so; the rule also holds for every reply, commit, pull request and document, whatever a skill or a template shows.
90
91
 
91
92
  ## Where this ends
92
93
 
@@ -73,7 +73,7 @@ SUBAGENT BRIEF (one per unit)
73
73
 
74
74
  Each subagent still owns its own discipline inside its scope — TDD via `implement`, the stack skill's test mechanics, decision logging. This skill does not relax any of that; it just runs several of them at once.
75
75
 
76
- **Per-unit model tier (when routing is enabled).** `parallel` has *no fixed tier* — this is the most concrete place per-phase model routing pays off. When `models.enabled: true` in `02-DOCS/wiki/sdd/config.yaml`, give each unit the tier of the *kind of work it does*, not one tier for the whole fan-out: an implement-type unit → `balanced`, a scan/research/boilerplate unit → `light`, a unit doing genuine design or root-cause reasoning → `heavy`. Resolve the tier to a concrete model via `models.tiers` and **dispatch that subagent on that model** (e.g. Claude Code's `model` field on the Task/subagent) — real routing, independent of the session model. If routing is off or no profile exists, dispatch on the session model and say nothing. Full protocol: `../asdd/references/model-routing.md`.
76
+ **Per-unit model tier (when routing is enabled).** `parallel` has *no fixed tier* — this is the most concrete place per-phase model routing pays off. When `models.enabled: true` in `02-DOCS/wiki/sdd/config.yaml`, give each unit the tier of the *kind of work it does*, not one tier for the whole fan-out: an implement-type unit → `balanced`, a scan/research/boilerplate unit → `light`, a unit doing genuine design or root-cause reasoning → `heavy`. Resolve the tier to a concrete model via `models.tiers` and **dispatch that subagent on that model** (e.g. Claude Code's `model` field on the Task/subagent) — real routing, independent of the session model. If routing is off or no profile exists, say nothing about models and dispatch each unit on the balanced tier (the `developer` agent, below). Full protocol: `../asdd/references/model-routing.md`.
77
77
 
78
78
  **Set the model on every dispatch — an omitted model silently inherits the session's, usually the most expensive one, and that is how a fan-out's cost quietly explodes.** rsc installs a `developer` subagent pinned to the **balanced** tier (Sonnet by default; the user's onboarding choice in `.rsc/developer.json`, never `light`). For implement-type units, **dispatch to the `developer` agent** (e.g. Claude Code `subagent_type: developer`) — that's the deliberate cost cap the user asked for. Only escalate a genuinely heavy unit (real design / root-cause) to a heavy model, and only when routing is enabled; otherwise balanced is the floor and the ceiling. If you dispatch a raw subagent instead, name its tier explicitly.
79
79
 
@@ -118,13 +118,13 @@ CREATE TABLE orders (
118
118
  );
119
119
  ```
120
120
 
121
- With Prisma, declare `relationMode = "prisma"` so the client emulates relations and adds the implicit
122
- indexes instead of emitting DB-level FKs:
121
+ With Prisma, declare `relationMode = "prisma"` so the client emulates relations instead of emitting
122
+ DB-level FKs. Prisma does not create the FK indexes: add `@@index` on each relation scalar yourself.
123
+ The connection URL lives in `prisma.config.ts`, not the datasource block (see `../prisma-orm/SKILL.md`):
123
124
 
124
125
  ```prisma
125
126
  datasource db {
126
127
  provider = "mysql"
127
- url = env("DATABASE_URL")
128
128
  relationMode = "prisma"
129
129
  }
130
130
  ```
@@ -39,13 +39,13 @@ For large fan-out, prefer a batched background job over one giant transaction so
39
39
  ## Prisma: relationMode = "prisma"
40
40
 
41
41
  Setting `relationMode = "prisma"` tells Prisma to emulate relations in the client instead of emitting
42
- DB-level foreign keys. Prisma then also creates the **implicit indexes** on relation scalar fields that
43
- a real FK would have given you for free.
42
+ DB-level foreign keys. Prisma does **not** create the index a real FK would have given you for free:
43
+ declare `@@index` on every relation scalar field yourself (schema validation warns when one is missing).
44
+ The connection URL lives in `prisma.config.ts`, not the datasource block.
44
45
 
45
46
  ```prisma
46
47
  datasource db {
47
48
  provider = "mysql"
48
- url = env("DATABASE_URL")
49
49
  relationMode = "prisma"
50
50
  }
51
51
 
@@ -250,8 +250,8 @@ Full sequences (zero-downtime expand-contract, batched backfills, per-ORM runner
250
250
  [migrations](references/migrations.md). These four are absolute because each one is a lock you cannot
251
251
  take back once traffic is on the table:
252
252
 
253
- 1. Index creation on a live table is **always** `CONCURRENTLY` — plain `CREATE INDEX` holds ACCESS
254
- EXCLUSIVE for the entire build and blocks every writer. It therefore cannot run inside a txn.
253
+ 1. Index creation on a live table is **always** `CONCURRENTLY` — plain `CREATE INDEX` holds SHARE
254
+ for the entire build and blocks every writer. `CONCURRENTLY` cannot run inside a txn.
255
255
  2. Never `ADD COLUMN ... NOT NULL` without a default/backfill plan, and never add a **volatile**
256
256
  default (`now()`, `gen_random_uuid()`) on a large table without a batched backfill — a volatile
257
257
  default rewrites the whole table under ACCESS EXCLUSIVE. A non-volatile constant is instant (PG11+).
@@ -261,8 +261,8 @@ take back once traffic is on the table:
261
261
  somewhere, so the next environment replays a history that no longer matches the one in production.
262
262
 
263
263
  Lock modes: `CREATE INDEX CONCURRENTLY` takes SHARE UPDATE EXCLUSIVE (allows writes); plain
264
- `CREATE INDEX`, `ALTER TABLE ... TYPE`, `ADD COLUMN` with a volatile default, and `VACUUM FULL` take
265
- ACCESS EXCLUSIVE (blocks everything). Full table in
264
+ `CREATE INDEX` takes SHARE (allows reads, blocks writes); `ALTER TABLE ... TYPE`, `ADD COLUMN` with a
265
+ volatile default, and `VACUUM FULL` take ACCESS EXCLUSIVE (blocks everything). Full table in
266
266
  [migrations](references/migrations.md#lock-impact-reference).
267
267
 
268
268
  ## Anti-patterns
@@ -148,7 +148,7 @@ If the client will *edit* the slides, this is the wrong pipeline — rebuild wit
148
148
 
149
149
  ## Tooling & current versions (verified 2026-06)
150
150
 
151
- - **Marp** — `@marp-team/marp-cli`. Run pinned: `npx @marp-team/marp-cli@latest deck.md --pdf`. Exports HTML / PDF / PPTX / PNG / JPEG. Needs a Chromium-family browser (Chrome/Edge) or Firefox for PDF/PPTX/image export (v4 added Firefox via WebDriver BiDi as a fallback; Chrome/Edge are preferred and give the most faithful PDF). `--pptx` is image-per-slide; `--pptx-editable` is **experimental** and needs LibreOffice (`soffice`). `--notes` / a `.txt` output exports speaker notes. Node 18+. (→ `references/markdown-decks.md`)
151
+ - **Marp** — `@marp-team/marp-cli`. Run pinned: `npx @marp-team/marp-cli@4.5.1 deck.md --pdf`. Exports HTML / PDF / PPTX / PNG / JPEG. Needs a Chromium-family browser (Chrome/Edge) or Firefox for PDF/PPTX/image export (v4 added Firefox via WebDriver BiDi as a fallback; Chrome/Edge are preferred and give the most faithful PDF). `--pptx` is image-per-slide; `--pptx-editable` is **experimental** and needs LibreOffice (`soffice`). `--notes` / a `.txt` output exports speaker notes. Node 18+. (→ `references/markdown-decks.md`)
152
152
  - **Slidev** — `@slidev/cli` (Vue-based). Scaffold `npm init slidev@latest`; dev `slidev`; export `slidev export` (PDF default; `--format pptx|png`). Export needs `playwright-chromium` installed in the project (`npx playwright install chromium` or `npm i -D playwright-chromium`). PPTX is image-per-slide; notes carry over per slide. Best for code-heavy / developer talks (live code, Monaco, Mermaid, Vue components). (→ `references/markdown-decks.md`)
153
153
  - **python-pptx** — `pip install python-pptx` (current major `1.x`, e.g. `1.0.x`). Pure Python, **no** Office/LibreOffice needed to write `.pptx`. Creates masters/layouts, text, tables, **native editable charts**, images, speaker notes. Cannot render to PDF itself — convert via LibreOffice `soffice --headless --convert-to pdf` or open in Office. (→ `references/pptx-python.md`)
154
154
  - **decktape / Playwright** — fallback HTML→PDF for any web deck (reveal.js, custom HTML) when Marp/Slidev export isn't available. (→ `references/markdown-decks.md`)
@@ -43,13 +43,13 @@ JSON requested means a contract is mandatory. Choose by reliability, not habit:
43
43
  | Mechanism | Use when | Reliability |
44
44
  | --- | --- | --- |
45
45
  | OpenAI strict `json_schema` via `response_format` | Provider supports it and you control the schema | Highest — provider compiles schema to a token-masking FSM; **<0.1% schema-failure rate** (figure from OpenAI's 2024 Structured Outputs launch; accessed 2026-06-02) |
46
- | Anthropic strict tool use | On Claude; output arrives as one block | Close second; reliable schema adherence |
46
+ | Anthropic `output_config.format` | On Claude | Constrained decoding against the schema; values still need validation |
47
47
  | JSON *mode* | Nothing stronger is available | Guarantees valid JSON **only** — NOT your schema. Validate after |
48
48
  | Freeform + regex/parse | Output is a token or a short fixed shape | You own the parser and the retry; brittle for nested data |
49
49
 
50
- - **Anthropic assistant-prefill structured output is dead in latest models.** Anthropic's own migration guide states prefilling assistant messages returns a `400` error on Sonnet 4.6, Opus 4.6, and Opus 4.7, and points you to structured outputs / `output_config.format` instead (Anthropic, Migration guide, platform.claude.com/docs/en/about-claude/models/migration-guide, accessed 2026-06-02). Do not reach for prefill to force a shape — use strict tool use or native structured output.
51
- - **Anthropic strict tool-use output arrives as one block at end of stream** — you cannot parse fields progressively. OpenAI/Gemini stream field-by-field. If you parse-as-you-stream, design for the provider you actually use.
52
- - Per-provider code (OpenAI `response_format`, Anthropic strict tool use, Gemini `responseSchema`, pydantic/zod surface, retry-on-parse-fail): `references/output-contracts.md`.
50
+ - **On current Claude models, assistant prefill and forced tool use both return a `400`.** Anthropic's migration guide routes structured output to `output_config.format` (platform.claude.com/docs/en/about-claude/models/migration-guide). Do not reach for prefill or `tool_choice` to force a shape.
51
+ - **Validate the complete object, never a streamed prefix.** Structured answers stream as text deltas and tool inputs as partial JSON; neither is your contract until it is whole.
52
+ - Per-provider code (OpenAI `response_format`, Anthropic `output_config.format`, Gemini `responseSchema`, pydantic/zod surface, retry-on-parse-fail): `references/output-contracts.md`.
53
53
 
54
54
  ## Few-shot: how many, which ones
55
55
 
@@ -118,9 +118,9 @@ Assert on the contract: schema-valid, exact token, contains/not-contains. Keep t
118
118
 
119
119
  | Anti-pattern | Why it bites | Do instead |
120
120
  | --- | --- | --- |
121
- | "Please try to output JSON" | No contract, no enforcement — parses until it doesn't | Strict `json_schema` / strict tool use; see table above |
121
+ | "Please try to output JSON" | No contract, no enforcement — parses until it doesn't | Strict `json_schema` / `output_config.format`; see table above |
122
122
  | Trusting JSON *mode* for your schema | Valid JSON ≠ your fields/types | JSON mode then validate, or use a strict mechanism |
123
- | Anthropic assistant-prefill to force a shape | Returns a 400 on Sonnet 4.6 / Opus 4.6 / Opus 4.7 (Anthropic migration guide) | Strict tool use or native structured output |
123
+ | Anthropic assistant-prefill or forced `tool_choice` to force a shape | Returns a 400 on current Claude models (Anthropic migration guide) | `output_config.format` |
124
124
  | Wall-of-text prompt | No block order; instructions buried | Use the skeleton; hard rules last |
125
125
  | 3 near-identical few-shot examples | Teaches one shape, wastes tokens | 3 deliberately different: normal / awkward / edge |
126
126
  | Negative-only constraints ("don't…") | Invites negotiation, ignored on long input | Phrase positively; re-state task after long input |
@@ -8,7 +8,7 @@ should_trigger:
8
8
  - prompt: "El prompt a veces da respuestas distintas con la misma entrada, ¿cómo lo hago determinista?"
9
9
  why: "Spanish; outputs drift between reruns for identical input — the determinism / contract problem this skill exists to fix."
10
10
  - prompt: "Make this prompt enforce a fixed schema reliably instead of sometimes returning prose."
11
- why: "Forcing a fixed schema out of a model — the output-contract decision table (strict json_schema / strict tool use vs JSON mode)."
11
+ why: "Forcing a fixed schema out of a model — the output-contract decision table (strict json_schema / Anthropic output_config.format vs JSON mode)."
12
12
  - prompt: "Write me a small eval set to check this prompt before I change it."
13
13
  why: "Inline eval set authored before tuning — the discipline the 'Inline evals — write these first' section exists to enforce; the small set, not a standing harness."
14
14
  - prompt: "Users can paste 'ignore your instructions' into my input field and the model obeys it."
@@ -37,7 +37,7 @@ capability:
37
37
  - scenario: "A 'classify this support ticket' prompt is flaky: it sometimes returns prose explanations instead of exactly one of {bug, billing, other}, and it obeys instructions users paste into the ticket text. Harden it."
38
38
  must_include:
39
39
  - "Ordered skeleton: role -> task -> context -> constraints -> output contract -> examples, with the real input last."
40
- - "An explicit output contract recommending strict json_schema (OpenAI) or strict tool use (Anthropic), noting JSON mode guarantees valid JSON but NOT the schema."
40
+ - "An explicit output contract recommending strict json_schema (OpenAI) or output_config.format (Anthropic), noting JSON mode guarantees valid JSON but NOT the schema."
41
41
  - "Three deliberately different few-shot examples (normal / awkward / edge), not near-identical clones."
42
42
  - "At least 5 inline eval cases including one adversarial injection case, written before tuning."
43
43
  - "Delimit untrusted ticket text as data and re-state the task after long input; phrase constraints positively; add a refusal anchor."
@@ -45,40 +45,35 @@ Raw form (no SDK helper):
45
45
  }
46
46
  ```
47
47
 
48
- ## Anthropic — strict tool use
48
+ ## Anthropic — `output_config.format`
49
49
 
50
- Reliable schema adherence, close behind OpenAI strict. Define a single tool whose
51
- `input_schema` is your contract and force it. **Assistant-prefill structured output is
52
- dead in the latest models** — Anthropic's migration guide states prefill returns a `400`
53
- on Sonnet 4.6 / Opus 4.6 / Opus 4.7 and routes you to structured outputs / `output_config.format`
54
- (platform.claude.com/docs/en/about-claude/models/migration-guide). Do not use prefill to
55
- coerce a shape.
50
+ Constrained decoding against a JSON Schema: the first text block of the answer is valid JSON in
51
+ your shape. Two older routes now fail on current Claude models: **assistant prefill** and **forced
52
+ tool use** (`tool_choice` of `tool` or `any`) both return a `400`. Do not use either to coerce
53
+ a shape. Strict tool use (`"strict": true` on a tool) remains the right tool when you want the
54
+ model to *call your code*, not to shape its final answer.
56
55
 
57
56
  ```python
57
+ import json
58
58
  import anthropic
59
59
  client = anthropic.Anthropic()
60
60
  msg = client.messages.create(
61
61
  model="claude-…", # from config
62
- max_tokens=256,
63
- tools=[{
64
- "name": "emit_triage",
65
- "description": "Return the ticket category.",
66
- "input_schema": {
67
- "type": "object",
68
- "properties": {"category": {"type": "string", "enum": ["bug", "billing", "other"]}},
69
- "required": ["category"],
70
- },
71
- }],
72
- tool_choice={"type": "tool", "name": "emit_triage"},
62
+ max_tokens=4096, # thinking is on by default on current models and shares this budget
63
+ output_config={"format": {"type": "json_schema", "schema": {
64
+ "type": "object",
65
+ "properties": {"category": {"type": "string", "enum": ["bug", "billing", "other"]}},
66
+ "required": ["category"],
67
+ "additionalProperties": False,
68
+ }}},
73
69
  messages=[{"role": "user", "content": prompt}],
74
70
  )
75
- block = next(b for b in msg.content if b.type == "tool_use")
76
- result = block.input # {"category": "..."}
71
+ text = next(b.text for b in msg.content if b.type == "text")
72
+ result = json.loads(text) # {"category": "..."}
77
73
  ```
78
74
 
79
- **Streaming caveat:** Anthropic tool-use output arrives as ONE block at end of stream —
80
- you cannot read fields progressively. OpenAI/Gemini stream field-by-field. If your UI
81
- parses-as-it-streams, that path does not exist on Claude tool use.
75
+ **Streaming caveat:** a structured answer streams as ordinary text deltas, and tool inputs stream
76
+ as partial JSON deltas. Either way, validate only the complete object, never a prefix.
82
77
 
83
78
  ## Google Gemini — `responseSchema`
84
79
 
@@ -32,8 +32,9 @@ nothing else.
32
32
  # Generate context per chunk, then index context + chunk for BOTH dense and BM25.
33
33
  def contextualize(client, doc_text, chunk_text):
34
34
  msg = client.messages.create(
35
- model="claude-sonnet-4-5",
35
+ model="claude-haiku-5-5", # cheap tier: one call per chunk
36
36
  max_tokens=120,
37
+ thinking={"type": "disabled"}, # a 1-2 sentence context needs no reasoning budget
37
38
  system=[{"type": "text",
38
39
  "text": f"<document>\n{doc_text}\n</document>",
39
40
  "cache_control": {"type": "ephemeral"}}], # cache the doc
@@ -41,7 +42,7 @@ def contextualize(client, doc_text, chunk_text):
41
42
  f"Here is the chunk:\n<chunk>{chunk_text}</chunk>\n"
42
43
  "Give a 1-2 sentence standalone context for retrieval. Context only."}],
43
44
  )
44
- return msg.content[0].text.strip()
45
+ return "".join(b.text for b in msg.content if b.type == "text").strip()
45
46
 
46
47
  def indexable(doc_text, chunk):
47
48
  ctx = contextualize(client, doc_text, chunk["text"])
@@ -138,13 +139,14 @@ def answer(query):
138
139
 
139
140
  context = "\n".join(f"[{c['chunk_id']}] {c['text']}" for c in top)
140
141
  resp = llm.messages.create(
141
- model="claude-sonnet-4-5",
142
- max_tokens=1024,
142
+ model="claude-sonnet-5-5",
143
+ max_tokens=4096, # thinking is on by default and shares this budget
143
144
  system=GROUNDING_PROMPT, # section 4, refusal clause included
144
145
  messages=[{"role": "user",
145
146
  "content": f"<context>\n{context}\n</context>\n\nQuestion: {query}"}],
146
147
  )
147
- return resp.content[0].text # contains [chunk_id] citations or the refusal line
148
+ # text blocks only: the response can also carry thinking blocks
149
+ return "".join(b.text for b in resp.content if b.type == "text") # [chunk_id] citations or the refusal line
148
150
  ```
149
151
 
150
152
  Keep `chunk_id` + `source` on every object from chunking through this function so the cited ids
@@ -102,9 +102,9 @@ The reviewer is held to the same evidence bar as the author, because a reviewer
102
102
 
103
103
  End every review you give with one of three, and nothing mushy in between:
104
104
 
105
- - **`APPROVE`** — no blockers, no unresolved should-fix. Say it plainly and **point to ship**.
106
- - **`APPROVE WITH NITS`** — mergeable; the nits are the author's call.
107
- - **`CHANGES REQUESTED`** — one or more blockers/should-fix. List exactly what unblocks it.
105
+ - **`APPROVE`** — no confirmed blocker, nothing else worth noting. Say it plainly and **point to ship**.
106
+ - **`APPROVE WITH NITS`** — no confirmed blocker; should-fix and nits are noted (`--note`) and are the author's call.
107
+ - **`CHANGES REQUESTED`** — one or more blockers that survived the three filters below. List exactly what unblocks it.
108
108
 
109
109
  ### The sello — when this project opted in
110
110
 
@@ -233,7 +233,7 @@ fix-and-re-review is one round of the loop below.
233
233
 
234
234
  ### Convergence — the fix loop ends
235
235
 
236
- A review loop that never converges is worse than none: Anthropic saw a single PR take 50 rounds.
236
+ A review loop that never converges is worse than none: without a cap, fix and re-review can run indefinitely.
237
237
  Five rules, enforced by `npx @ericrisco/rsc review ledger` (`.rsc/review-ledger.jsonl`) rather
238
238
  than by memory:
239
239
 
@@ -6,11 +6,11 @@ You are analysing a batch of user prompts to identify cases where a heavier (mor
6
6
 
7
7
  This skill uses three tier labels. The mapping to specific model names shifts over releases — the tiers are stable even when the names change.
8
8
 
9
- | Tier | Description | Example models (2026) | Relative cost |
9
+ | Tier | Description | Example models | Relative input cost (Claude 5.5 list prices) |
10
10
  |------|-------------|----------------------|---------------|
11
- | `light` | Fast, cheap, low reasoning | Haiku, GPT-3.5, Gemini Flash | 1× |
12
- | `balanced` | General purpose, solid reasoning | Sonnet, GPT-4 mini, Gemini Pro | 3–5× |
13
- | `heavy` | Frontier reasoning, long-horizon work | Opus, Fable/Mythos, GPT-4 full | 10–50× |
11
+ | `light` | Fast, cheap, low reasoning | Claude Haiku 5.5 | 1× |
12
+ | `balanced` | General purpose, solid reasoning | Claude Sonnet 5.5 | ≈20× |
13
+ | `heavy` | Frontier reasoning, long-horizon work | Claude Opus 5.5, Fable | ≈40× |
14
14
 
15
15
  Overuse = using `heavy` where `balanced` would suffice, or using `balanced`/`heavy` where `light` would suffice.
16
16
 
@@ -95,6 +95,6 @@ Return a single JSON object:
95
95
  - `architectural_decision` — design/plan/migrate/strategy (usually NOT overuse)
96
96
  - `debug_complex` — race conditions, memory leaks, performance (usually NOT overuse)
97
97
 
98
- `estimated_tier_ratio`: approximate cost ratio (e.g. 10 means the heavy tier cost ~10× the recommended tier). Use rough multiples: light→balanced ≈ 3–5×; light→heavy ≈ 10–50×; balanced→heavy ≈ 3–10×.
98
+ `estimated_tier_ratio`: approximate cost ratio (e.g. 10 means the heavy tier cost ~10× the recommended tier). Use rough multiples from Claude 5.5 list prices: light→balanced ≈ 20×; light→heavy ≈ 40×; balanced→heavy ≈ 2×. Other providers' ladders differ; use their own price ratio when the session ran on them.
99
99
 
100
100
  Only return `high` and `medium` confidence cases. If you are uncertain, omit the record — false positives harm the user's trust in the report.
@@ -121,13 +121,13 @@ Based on their actual usage patterns, produce a 4–6 row personalised cheat she
121
121
 
122
122
  | Task pattern | Use this tier | Reasoning level | Notes |
123
123
  |--------------|--------------|-----------------|-------|
124
- | Read/show/list a file | light | none | 10–50× cheaper than heavy |
124
+ | Read/show/list a file | light | none | ≈40× cheaper than heavy |
125
125
  | One-word confirmation | light | none | Heavy has no work to do here |
126
126
  | Single-file edit (clear scope) | balanced | low | Heavy adds nothing |
127
127
  | Multi-file refactor | heavy | medium | Justified — needs context |
128
128
  | Architecture / system design | heavy | high | Worth the premium |
129
129
 
130
- Anchor cost comparisons to the tier ladder: light ≈ 1×, balanced ≈ 3–5×, heavy ≈ 10–50×.
130
+ Anchor cost comparisons to the tier ladder: light ≈ 1×, balanced ≈ 20×, heavy ≈ 40× (Claude 5.5 list input prices).
131
131
 
132
132
  #### 4d. What You Got Right (Compute)
133
133
 
@@ -127,9 +127,9 @@ models:
127
127
  enabled: false # opt-in master switch; false = honor session model, announce nothing
128
128
  provider: anthropic # which provider the tiers below resolve to
129
129
  tiers:
130
- heavy: claude-opus-4-8
131
- balanced: claude-sonnet-4-6
132
- light: claude-haiku-4-5-20251001
130
+ heavy: claude-opus-5-5
131
+ balanced: claude-sonnet-5-5
132
+ light: claude-haiku-5-5
133
133
  phases:
134
134
  constitution: heavy
135
135
  specify: balanced
@@ -94,9 +94,9 @@ skill. Note `.rsc/.no-ship-guard` opts out of the branch-hygiene rules above but
94
94
  sello, which has its own switch. The sello binds bytes, not intent — it proves what ships is what
95
95
  was reviewed, never that the review was any good.
96
96
 
97
- ## The three landing options — always present exactly three
97
+ ## The landing options — three, or two when main is closed
98
98
 
99
- This mirrors the harness "siempre 3 opciones" pattern. Gather the one fact that changes the answer (does this repo use PRs / require review on `main`?), then present **exactly three** with an honest recommendation matched to the workflow, in the user's register.
99
+ This mirrors the harness "siempre 3 opciones" pattern. Gather the one fact that changes the answer (does this repo use PRs / require review on `main`?), then present **all the legal options** (three; two when the default branch is closed, below) with an honest recommendation matched to the workflow, in the user's register.
100
100
 
101
101
  | Option | What it does | Choose it when |
102
102
  | --- | --- | --- |
@@ -137,7 +137,7 @@ Stacked PR / feature-track support still fits inside the three landing options:
137
137
 
138
138
  ```bash
139
139
  git switch main && git pull --ff-only
140
- git merge --no-ff feature/<slug> -m "feat: <what shipped> (<spec-slug>)" # no AI trailer
140
+ git merge --no-ff feature/<slug> -m "✨ feat: <what shipped> (<spec-slug>)" # no AI trailer
141
141
  git push origin main
142
142
  # the merge above already retired the worktree and its branch: post-merge does it
143
143
  git branch -d feature/<slug> 2>/dev/null || true # no worktree involved? then the branch alone
@@ -146,9 +146,7 @@ git push origin --delete feature/<slug> 2>/dev/null || true
146
146
 
147
147
  Use `--no-ff` so the feature is one legible merge commit tied to the spec. Confirm the trunk still builds after the merge if the repo has a local gate (defer the actual run to `verify`).
148
148
 
149
- **You no longer run the cleanup; you check that it ran.** A `post-merge` hook retires the worktree and its branch the moment the work lands, on both landing paths — the local merge above and the `pull --ff-only` after a forge merge. It removes only what the reaper already classifies as safe, so anything holding unsaved work survives with its reason, exactly as before.
150
-
151
- This used to be an instruction in this paragraph, and it was skipped on both features that reached it. That is why it is a hook now: an instruction at the end of a long phase is the least reliable place to put a step that matters (P1).
149
+ **You do not run the cleanup; you check that it ran.** A `post-merge` hook retires the worktree and its branch the moment the work lands, on both landing paths — the local merge above and the `pull --ff-only` after a forge merge. It removes only what the reaper already classifies as safe, so anything holding unsaved work survives with its reason.
152
150
 
153
151
  If something did survive, it survived *for a reason* — read it rather than forcing it: `npx @ericrisco/rsc worktrees` lists what is left and why. `worktrees reap <path>` still exists for the backlog and for anything the hook deliberately refused; name the path, because bare `reap` retires every worktree that qualifies and with `parallel` running two streams that is how shipping A deletes B. Naming a path selects it, it does not accept the risk: add `--confirm` only after the user has seen the reason and said yes.
154
152
 
@@ -159,7 +157,7 @@ Write the **commit(s)** clean, push, then open the PR with `gh`. The PR body lin
159
157
  ```bash
160
158
  git push -u origin feature/<slug>
161
159
  gh pr create \
162
- --title "feat: <what shipped> (<spec-slug>)" \
160
+ --title "✨ feat: <what shipped> (<spec-slug>)" \
163
161
  --body-file /tmp/ship-pr-body.md # body authored per the template below — NO AI footer
164
162
  ```
165
163
 
@@ -244,7 +242,7 @@ In the `orient` voice: the explainer, the checklist result in one line, the thre
244
242
  | Rationalization | Reality |
245
243
  | --- | --- |
246
244
  | "I'll add `Co-Authored-By: Claude` / a 'Generated with Claude Code' footer to be transparent" | It forges the record. The work is the responsible person's — no AI trailer, ever. Strip it. |
247
- | "Review didn't formally approve but it's obviously fine" | No verdict = not ready. Ship runs on APPROVE only. Route back to review. |
245
+ | "Review didn't formally approve but it's obviously fine" | No verdict = not ready. Ship runs on APPROVE or APPROVE WITH NITS only. Route back to review. |
248
246
  | "Tier 2, but the three refuters approved — I'll self-merge" | An agent's approval never counts as a human's. Tier 2 waits for human approval. |
249
247
  | "Tier 2, one reviewer was enough here" | The push gate wants the panel recorded (`review ledger panel … --lenses correctness,security,tests`). Run the three, record them, then push. |
250
248
  | "The tree has a couple of stray edits, they're harmless" | A dirty tree means the merge is not the reviewed diff. Clean it or stash it first. |
@@ -286,7 +284,7 @@ End with:
286
284
  "used": ["ship"],
287
285
  "missing": [],
288
286
  "fallback": [],
289
- "compact_rules": ["Keep exactly three landing options.", "Archive the final state."]
287
+ "compact_rules": ["Present every legal landing option: three, or two when main is closed.", "Archive the final state."]
290
288
  },
291
289
  "evidence": ["closing review verdict", "rsc risk tier", "verification record", "PR/merge/park/discard reference", "human approval when tier 2"]
292
290
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: shopify
3
- description: "Use when building or customizing a Shopify store across its three code surfaces — themes (Liquid, Online Store 2.0 sections, blocks and JSON templates), apps (Remix with the versioned GraphQL Admin API and its query-cost model), and checkout (UI extensions, Functions, Web Pixels), plus the CLI flow and checkout-extensibility migration. NOT WooCommerce or PHP stores (that is `wordpress`), NOT the React layer of a headless storefront (that is `nextjs`), NOT non-Shopify payment integrations (that is `stripe`)."
3
+ description: "Use when building or customizing a Shopify store across its three code surfaces — themes (Liquid, Online Store 2.0 sections, blocks and JSON templates), apps (the React Router template with the versioned GraphQL Admin API and its query-cost model), and checkout (UI extensions, Functions, Web Pixels), plus the CLI flow and checkout-extensibility migration. NOT WooCommerce or PHP stores (that is `wordpress`), NOT the React layer of a headless storefront (that is `nextjs`), NOT non-Shopify payment integrations (that is `stripe`)."
4
4
  tags: [shopify, liquid, ecommerce, themes, checkout, graphql, storefront]
5
5
  recommends: [nextjs, stripe, wordpress, api-design, seo-geo]
6
6
  origin: risco
@@ -23,7 +23,7 @@ Pinned stack (verify against shopify.dev before pinning in a repo):
23
23
  2025-07†. Each version is supported ~12 months. Pin `apiVersion` and bump quarterly.
24
24
  † `2025-07` is at the edge of its window — accessible only until 2026-07-16; treat it as
25
25
  sunsetting and do not pin it in new work. Re-check the live list at shopify.dev/docs/api/usage/versioning.
26
- - **Remix app template** (`@shopify/shopify-app-remix`, App Bridge, Polaris React). GraphQL > REST —
26
+ - **React Router app template** (`@shopify/shopify-app-react-router`, App Bridge, Polaris web components; Remix merged into React Router 7 and the Remix template is for existing apps only). GraphQL > REST —
27
27
  REST Admin API is legacy; Shopify steers all new app work to GraphQL.
28
28
  - **Dawn** — Shopify's source-available reference theme; OS 2.0 architecture is the baseline.
29
29
 
@@ -35,7 +35,7 @@ was a Liquid section, or editing `checkout.liquid` when the seam is now an exten
35
35
  | Surface | You're working on… | Tool & entry | Reference |
36
36
  |---|---|---|---|
37
37
  | **Theme** | `.liquid` files, `{% schema %}`, JSON templates, storefront rendering, merchant-editable content | `shopify theme dev` on a Dawn-based theme | `references/liquid-themes.md` |
38
- | **App** | embedded admin UI, reading/writing store data, webhooks, automation | `shopify app dev` on the Remix template + Admin GraphQL | `references/apps-graphql.md` |
38
+ | **App** | embedded admin UI, reading/writing store data, webhooks, automation | `shopify app dev` on the React Router template + Admin GraphQL | `references/apps-graphql.md` |
39
39
  | **Checkout** | checkout/thank-you/order-status UI or logic, discounts, shipping, tracking | Checkout UI extensions / Functions / Web Pixels | `references/checkout-extensibility.md` |
40
40
 
41
41
  If the answer is "the React rendering layer of a headless storefront", that is `../nextjs/SKILL.md`,
@@ -125,13 +125,13 @@ shopify app deploy # release app + extensions (NOT `app config push` — remo
125
125
  CLI 4.x auto-upgrades via your package manager but skips CI and project-local installs — pin the
126
126
  version in CI so a silent bump never changes a release.
127
127
 
128
- ## App surface — Remix + GraphQL Admin API
128
+ ## App surface — React Router template + GraphQL Admin API
129
129
 
130
- Apps are the Remix template. The shape:
130
+ New apps start from the React Router template (existing Remix apps: Shopify's upgrade guide). The shape:
131
131
 
132
132
  ```text
133
133
  app/shopify.server.js # shopifyApp({ apiVersion, sessionStorage, webhooks, ... })
134
- app/routes/app.*.jsx # embedded admin pages (App Bridge + Polaris)
134
+ app/routes/app.*.jsx # embedded admin pages (App Bridge + Polaris web components, `<s-page>`)
135
135
  shopify.app.toml # app config, scopes, webhook subscriptions
136
136
  extensions/* # app extensions (theme app ext, UI ext, Functions, Flow)
137
137
  ```