@ericrisco/rsc 4.1.10 → 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.
- package/manifest.json +6 -6
- package/package.json +2 -1
- package/scripts/lib/prompt-audit.js +110 -0
- package/scripts/prompt-audit.js +48 -0
- package/skills/ads/SKILL.md +7 -7
- package/skills/agent-safety/SKILL.md +1 -1
- package/skills/asdd/SKILL.md +2 -2
- package/skills/asdd/references/model-routing.md +5 -5
- package/skills/astro/SKILL.md +1 -1
- package/skills/astro/scripts/verify.sh +1 -1
- package/skills/author-skill/SKILL.md +5 -5
- package/skills/author-skill/references/eval-authoring.md +6 -7
- package/skills/automation-flows/SKILL.md +1 -1
- package/skills/building-agents/SKILL.md +17 -12
- package/skills/building-agents/references/agent-loops-and-harness.md +3 -2
- package/skills/building-agents/references/evals-and-observability.md +7 -5
- package/skills/building-agents/references/provider-abstraction.md +31 -30
- package/skills/chrome-extension/SKILL.md +1 -1
- package/skills/code-review/SKILL.md +3 -0
- package/skills/cold-outreach/SKILL.md +1 -1
- package/skills/cold-outreach/references/templates.md +7 -3
- package/skills/compliance/SKILL.md +8 -8
- package/skills/compliance/evals/README.md +1 -1
- package/skills/compliance/evals/cases.yaml +2 -2
- package/skills/compliance/references/frameworks.md +7 -7
- package/skills/content-engine/SKILL.md +1 -1
- package/skills/cost-tracking/SKILL.md +29 -21
- package/skills/cost-tracking/references/pricing-tables.md +6 -5
- package/skills/course-builder/SKILL.md +4 -3
- package/skills/course-builder/references/outcomes-and-blooms.md +1 -1
- package/skills/course-storytelling/SKILL.md +1 -1
- package/skills/course-storytelling/references/concept-landing-recipe.md +1 -1
- package/skills/csharp-dotnet/SKILL.md +2 -2
- package/skills/data-policy/SKILL.md +1 -1
- package/skills/db-migrations/SKILL.md +6 -5
- package/skills/deep-learning/SKILL.md +2 -2
- package/skills/deployment/SKILL.md +1 -1
- package/skills/deployment/references/dockerfiles-by-stack.md +1 -1
- package/skills/design/engine/RUN.md +1 -1
- package/skills/django/SKILL.md +1 -1
- package/skills/docker/SKILL.md +1 -1
- package/skills/document-processing/SKILL.md +2 -1
- package/skills/electron/SKILL.md +2 -1
- package/skills/email-connector/SKILL.md +2 -1
- package/skills/email-deliverability/SKILL.md +2 -2
- package/skills/embeddings-search/SKILL.md +3 -3
- package/skills/error-handling/SKILL.md +4 -2
- package/skills/expo/SKILL.md +1 -1
- package/skills/fable-operator/SKILL.md +2 -2
- package/skills/fal/SKILL.md +1 -1
- package/skills/fastapi/SKILL.md +18 -9
- package/skills/fastapi/references/database.md +19 -10
- package/skills/finance-ops/SKILL.md +1 -1
- package/skills/firebase/SKILL.md +1 -1
- package/skills/flutter/SKILL.md +1 -1
- package/skills/forecasting/SKILL.md +1 -1
- package/skills/forecasting/references/accuracy-and-backtesting.md +1 -1
- package/skills/forecasting/references/methods-cheatsheet.md +3 -3
- package/skills/ftd/SKILL.md +2 -3
- package/skills/fundraising/references/funnel-math.md +1 -1
- package/skills/gamedev-multiplayer/SKILL.md +2 -2
- package/skills/gamedev-multiplayer/references/unity-and-unreal-netcode.md +4 -4
- package/skills/gamedev-pathing/SKILL.md +1 -1
- package/skills/gamedev-physics/SKILL.md +3 -2
- package/skills/gamedev-physics/references/character-controllers.md +1 -1
- package/skills/gamedev-shaders/SKILL.md +2 -4
- package/skills/gamedev-shipping/SKILL.md +8 -5
- package/skills/gamedev-shipping/references/mobile-and-desktop.md +7 -3
- package/skills/gdpr-privacy/references/dpa-and-transfers.md +1 -1
- package/skills/git-workflow/SKILL.md +3 -3
- package/skills/go/SKILL.md +3 -3
- package/skills/harness/SKILL.md +4 -3
- package/skills/harness/references/daily-curation-automation.md +1 -1
- package/skills/harness/references/providers.yaml +4 -4
- package/skills/harness/references/wiki-protocol.md +2 -1
- package/skills/hiring/SKILL.md +3 -3
- package/skills/htmx/SKILL.md +4 -4
- package/skills/htmx/references/server-contract.md +2 -2
- package/skills/implement/SKILL.md +4 -4
- package/skills/init/SKILL.md +2 -3
- package/skills/init/references/accompaniment-and-profile.md +1 -1
- package/skills/init/references/recommend-skills.md +9 -9
- package/skills/invoicing/SKILL.md +8 -7
- package/skills/java/SKILL.md +3 -2
- package/skills/knowledge-ops/SKILL.md +3 -4
- package/skills/knowledge-ops/references/gardening-playbook.md +3 -3
- package/skills/kotlin-android/SKILL.md +10 -3
- package/skills/kotlin-android/references/gradle-setup.md +1 -4
- package/skills/landing-copy/SKILL.md +1 -1
- package/skills/laravel/SKILL.md +11 -11
- package/skills/lead-gen/SKILL.md +3 -3
- package/skills/linkedin-api/SKILL.md +1 -1
- package/skills/linkedin-api/references/api-reference.md +1 -1
- package/skills/linkedin-content/SKILL.md +1 -1
- package/skills/linkedin-outreach/SKILL.md +4 -4
- package/skills/linkedin-strategy/SKILL.md +2 -2
- package/skills/llm-pipeline/SKILL.md +2 -2
- package/skills/llm-pipeline/references/litellm-router.md +3 -3
- package/skills/logistics-ops/SKILL.md +6 -1
- package/skills/marketing/SKILL.md +1 -1
- package/skills/marketing/references/seo-geo.md +2 -2
- package/skills/mongodb/SKILL.md +3 -2
- package/skills/mongodb/references/aggregation.md +3 -2
- package/skills/mysql/SKILL.md +1 -1
- package/skills/mysql/references/mysql-vs-mariadb.md +1 -1
- package/skills/n8n/SKILL.md +1 -1
- package/skills/nextjs/SKILL.md +1 -1
- package/skills/observability/SKILL.md +1 -1
- package/skills/observability/references/instrumentation-recipes.md +1 -1
- package/skills/ollama/SKILL.md +1 -1
- package/skills/open-weights/SKILL.md +3 -4
- package/skills/orient/SKILL.md +4 -3
- package/skills/parallel/SKILL.md +1 -1
- package/skills/planetscale/SKILL.md +3 -3
- package/skills/planetscale/references/no-foreign-keys.md +3 -3
- package/skills/postgresdb/SKILL.md +4 -4
- package/skills/presentations/SKILL.md +1 -1
- package/skills/prompt-engineering/SKILL.md +6 -6
- package/skills/prompt-engineering/evals/cases.yaml +2 -2
- package/skills/prompt-engineering/references/output-contracts.md +18 -23
- package/skills/rag/references/pipeline.md +7 -5
- package/skills/review/SKILL.md +16 -4
- package/skills/roast-me/prompts/compute.md +5 -5
- package/skills/roast-me/prompts/roast.md +2 -2
- package/skills/sdd-init/SKILL.md +3 -3
- package/skills/ship/SKILL.md +7 -9
- package/skills/shopify/SKILL.md +6 -6
- package/skills/shopify/references/apps-graphql.md +3 -3
- package/skills/skill-scout/SKILL.md +1 -1
- package/skills/specify/SKILL.md +3 -3
- package/skills/specify/references/eliciting-requirements.md +3 -3
- package/skills/structured-extraction/SKILL.md +7 -3
- package/skills/structured-extraction/references/providers.md +8 -5
- package/skills/svelte/SKILL.md +1 -1
- package/skills/swift-ios/SKILL.md +4 -4
- package/skills/tasks/SKILL.md +1 -1
- package/skills/tauri/SKILL.md +4 -3
- package/skills/terms-conditions/SKILL.md +2 -2
- package/skills/translation-l10n/SKILL.md +2 -1
- package/skills/typescript/SKILL.md +5 -4
- package/skills/typescript/references/build-and-monorepo.md +2 -2
- package/skills/unslop/SKILL.md +1 -1
- package/skills/ux/SKILL.md +1 -1
- package/skills/vercel/SKILL.md +3 -2
- package/skills/vercel/references/vercel-json.md +8 -5
- package/skills/verify/SKILL.md +3 -3
- package/skills/vllm/SKILL.md +4 -2
- package/skills/vue-nuxt/SKILL.md +5 -5
- package/skills/webhooks/SKILL.md +10 -1
- package/skills/worktrees/SKILL.md +10 -8
- package/skills/youtube-ideation/SKILL.md +1 -1
- package/targets/agents.js +34 -19
- package/targets/commands.js +7 -7
|
@@ -240,7 +240,7 @@ Metadata API or a `<Script>` tag). Validate every block before shipping.
|
|
|
240
240
|
|
|
241
241
|
**Pick by page type:** `Organization` (homepage/about) · `WebPage` (any page) · `Article`
|
|
242
242
|
(blog/news, with author + `datePublished`/`dateModified`) · `FAQPage` (any Q&A — highest GEO value)
|
|
243
|
-
· `Product` (e-commerce) · `SoftwareApplication` (tools/apps) · `HowTo` (tutorials) ·
|
|
243
|
+
· `Product` (e-commerce) · `SoftwareApplication` (tools/apps) · `HowTo` (tutorials; Google retired HowTo rich results in 2023) ·
|
|
244
244
|
`BreadcrumbList` (navigation) · `LocalBusiness` (physical location). Combine several on one page with
|
|
245
245
|
`@graph`.
|
|
246
246
|
|
|
@@ -306,7 +306,7 @@ Metadata API or a `<Script>` tag). Validate every block before shipping.
|
|
|
306
306
|
|
|
307
307
|
For Product, SoftwareApplication, HowTo, BreadcrumbList, LocalBusiness, SpeakableSpecification, and
|
|
308
308
|
a combined `@graph` example, the full template set lives in the upstream skill credited above; the
|
|
309
|
-
|
|
309
|
+
three types here cover the overwhelming majority of marketing sites.
|
|
310
310
|
|
|
311
311
|
**Validate before shipping (no fabricated ratings or reviews in schema — same proof rule):**
|
|
312
312
|
|
package/skills/mongodb/SKILL.md
CHANGED
|
@@ -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 }) //
|
|
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
|
|
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
|
|
92
|
-
`
|
|
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
|
package/skills/mysql/SKILL.md
CHANGED
|
@@ -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` |
|
|
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` |
|
|
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 |
|
package/skills/n8n/SKILL.md
CHANGED
|
@@ -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` (
|
|
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` |
|
package/skills/nextjs/SKILL.md
CHANGED
|
@@ -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.
|
|
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.
|
|
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)
|
package/skills/ollama/SKILL.md
CHANGED
|
@@ -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
|
|
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.**
|
|
19
|
-
|
|
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
|
-
|
|
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
|
package/skills/orient/SKILL.md
CHANGED
|
@@ -61,7 +61,7 @@ guessing their mood reads as condescending.
|
|
|
61
61
|
|
|
62
62
|
| Step | What | Detail |
|
|
63
63
|
|---|---|---|
|
|
64
|
-
| 1 | Text, in the
|
|
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
|
|
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
|
|
package/skills/parallel/SKILL.md
CHANGED
|
@@ -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
|
|
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
|
|
122
|
-
indexes
|
|
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
|
|
43
|
-
|
|
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
|
|
254
|
-
|
|
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
|
|
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@
|
|
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
|
|
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
|
-
- **
|
|
51
|
-
- **
|
|
52
|
-
- Per-provider code (OpenAI `response_format`, Anthropic
|
|
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` /
|
|
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
|
|
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 /
|
|
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
|
|
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 —
|
|
48
|
+
## Anthropic — `output_config.format`
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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=
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
76
|
-
result =
|
|
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:**
|
|
80
|
-
|
|
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-
|
|
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
|
|
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-
|
|
142
|
-
max_tokens=
|
|
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
|
-
|
|
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
|
package/skills/review/SKILL.md
CHANGED
|
@@ -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
|
|
106
|
-
- **`APPROVE WITH NITS`** —
|
|
107
|
-
- **`CHANGES REQUESTED`** — one or more blockers
|
|
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
|
|
|
@@ -139,6 +139,18 @@ fresh-context subagents** (`refuter-correctness` · `refuter-security` · `refut
|
|
|
139
139
|
told to *refute* readiness, not confirm it. Fresh context is the point: a reviewer who inherits the
|
|
140
140
|
implementer's context inherits its blind spots. The closing review is always at least tier 1.
|
|
141
141
|
|
|
142
|
+
On Codex, select the installed profile with `agent_type`. When the router asks for a
|
|
143
|
+
`task_name`, give the thread a separate name using lowercase letters, digits and underscores.
|
|
144
|
+
For a fresh review, use `fork_turns: "none"` when supported. For repeated calls, append a
|
|
145
|
+
unique suffix to the task name (for example, `finding_verifier_2`).
|
|
146
|
+
|
|
147
|
+
`agent_type` | `task_name`
|
|
148
|
+
--- | ---
|
|
149
|
+
`refuter-correctness` | `refuter_correctness`
|
|
150
|
+
`refuter-security` | `refuter_security`
|
|
151
|
+
`refuter-tests` | `refuter_tests`
|
|
152
|
+
`finding-verifier` | `finding_verifier`
|
|
153
|
+
|
|
142
154
|
**Give each refuter exactly four inputs — no more, no less.** The diff alone is not enough, and
|
|
143
155
|
that is not a detail: with only the diff, the one failure class no test suite can structurally
|
|
144
156
|
catch — *the change is correct and is not what the approved spec asked for* — is invisible to the
|
|
@@ -221,7 +233,7 @@ fix-and-re-review is one round of the loop below.
|
|
|
221
233
|
|
|
222
234
|
### Convergence — the fix loop ends
|
|
223
235
|
|
|
224
|
-
A review loop that never converges is worse than none:
|
|
236
|
+
A review loop that never converges is worse than none: without a cap, fix and re-review can run indefinitely.
|
|
225
237
|
Five rules, enforced by `npx @ericrisco/rsc review ledger` (`.rsc/review-ledger.jsonl`) rather
|
|
226
238
|
than by memory:
|
|
227
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
|
|
9
|
+
| Tier | Description | Example models | Relative input cost (Claude 5.5 list prices) |
|
|
10
10
|
|------|-------------|----------------------|---------------|
|
|
11
|
-
| `light` | Fast, cheap, low reasoning | Haiku
|
|
12
|
-
| `balanced` | General purpose, solid reasoning | Sonnet
|
|
13
|
-
| `heavy` | Frontier reasoning, long-horizon work | Opus, Fable
|
|
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 ≈
|
|
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 |
|
|
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 ≈
|
|
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
|
|
package/skills/sdd-init/SKILL.md
CHANGED
|
@@ -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-
|
|
131
|
-
balanced: claude-sonnet-
|
|
132
|
-
light: claude-haiku-
|
|
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
|
package/skills/ship/SKILL.md
CHANGED
|
@@ -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
|
|
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 **
|
|
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
|
|
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": ["
|
|
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
|
}
|