@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.
- 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/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 +3 -3
- 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 +4 -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 +26 -17
- package/targets/commands.js +7 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Shopify apps & the GraphQL Admin API — deep dive
|
|
2
2
|
|
|
3
|
-
Companion to the App surface section of `../SKILL.md`. The template is `@shopify/shopify-app-
|
|
3
|
+
Companion to the App surface section of `../SKILL.md`. The template is `@shopify/shopify-app-react-router`.
|
|
4
4
|
|
|
5
5
|
## Template wiring
|
|
6
6
|
|
|
7
7
|
```js
|
|
8
8
|
// app/shopify.server.js
|
|
9
|
-
import { shopifyApp, ApiVersion } from "@shopify/shopify-app-
|
|
9
|
+
import { shopifyApp, ApiVersion } from "@shopify/shopify-app-react-router/server";
|
|
10
10
|
import { PrismaSessionStorage } from "@shopify/shopify-app-session-storage-prisma";
|
|
11
11
|
|
|
12
12
|
const shopify = shopifyApp({
|
|
@@ -87,7 +87,7 @@ webhooks can be missed.
|
|
|
87
87
|
## App Bridge & Polaris
|
|
88
88
|
|
|
89
89
|
Embedded UI runs inside the Shopify admin iframe. App Bridge handles session-token auth, navigation,
|
|
90
|
-
and toasts; Polaris
|
|
90
|
+
and toasts; Polaris web components give admin-consistent UI. Keep app UI in Polaris so it matches the
|
|
91
91
|
admin chrome — do not hand-roll admin-looking CSS.
|
|
92
92
|
|
|
93
93
|
## App extensions & deploy
|
|
@@ -10,7 +10,7 @@ origin: risco
|
|
|
10
10
|
|
|
11
11
|
You are the **gap detector** for the skills catalog. Before a task starts, in the middle of one that is dragging, or right after delivering work that turned out to be a procedure — you answer exactly one question: *is there a skill that should be handling this, and is it loaded?* You do **not** do the work. You name what to load, then get out of the way.
|
|
12
12
|
|
|
13
|
-
Every run ends in one of the verdicts in the table below:
|
|
13
|
+
Every run ends in one of the seven verdicts in the decision table below. The three gap verdicts:
|
|
14
14
|
|
|
15
15
|
- **INSTALLED-elsewhere** — the skill exists in the catalog and on disk somewhere (user scope, another project, a plugin) but is not active *here*. → emit a scope-fix / install command.
|
|
16
16
|
- **MISSING** — the skill exists in the catalog but is not installed at all. → emit an install command and a one-line why.
|
package/skills/specify/SKILL.md
CHANGED
|
@@ -24,7 +24,7 @@ You are not slowing them down; you make the intent reviewable *before* code exis
|
|
|
24
24
|
|
|
25
25
|
### Your first sentence is not a verdict on the idea
|
|
26
26
|
|
|
27
|
-
Catching the intent eagerly, above, is right. What comes *after* catching it
|
|
27
|
+
Catching the intent eagerly, above, is right. What comes *after* catching it must not validate: the opening line carries no verdict. "Great idea", "makes sense", "that would be really useful" — or, since half this catalog's work happens in Spanish, "buena idea", "qué gran idea", "me encanta", "tiene todo el sentido" — is a verdict you do not have the evidence for, delivered at the cheapest possible moment to be wrong, to someone who still believes you. The ban is on the **judgement**, in any language, not on any particular wording: the list above is what it looks like, not what it is limited to. A spec built on a validated premise is coherent, plannable, testable and pointed at the wrong thing; nothing downstream can catch that, because every later gate compares artifacts to each other and they all agree.
|
|
28
28
|
|
|
29
29
|
So the first response to an intent carries exactly two things:
|
|
30
30
|
|
|
@@ -40,7 +40,7 @@ If, having looked, there is no real objection, **say so in one line and move on
|
|
|
40
40
|
**Offer autopilot once, right here.** At this boundary, propose how to run the rest of the chain:
|
|
41
41
|
> *"¿Quieres que lo lleve hasta el final yo solo — spec → plan → código → verify, parando solo si algo es ambiguo — o prefieres que pare a que apruebes en cada fase?"*
|
|
42
42
|
|
|
43
|
-
A **yes engages autopilot** (`../asdd/SKILL.md`): you still write the spec and every artifact, but you auto-advance through the phases without re-asking — that up-front yes is the approval that satisfies the hard gate above, for the whole run. A **no** (or silence) keeps the default gated flow: write the spec, hand to `clarify`/`plan`, stop for approval before code. Either way the spec gets written; autopilot only changes whether you pause *between* phases — and it still stops for genuine ambiguity, hard failures, or destructive/outward actions (ship still confirms). If `sdd.
|
|
43
|
+
A **yes engages autopilot** (`../asdd/SKILL.md`): you still write the spec and every artifact, but you auto-advance through the phases without re-asking — that up-front yes is the approval that satisfies the hard gate above, for the whole run. A **no** (or silence) keeps the default gated flow: write the spec, hand to `clarify`/`plan`, stop for approval before code. Either way the spec gets written; autopilot only changes whether you pause *between* phases — and it still stops for genuine ambiguity, hard failures, or destructive/outward actions (ship still confirms). If `sdd.execution_mode: automatic` in config, autopilot is the default — still surface it once.
|
|
44
44
|
|
|
45
45
|
## The one rule that defines this skill
|
|
46
46
|
|
|
@@ -66,7 +66,7 @@ If no profile exists, use analogies and keep questions plain. Never assume fluen
|
|
|
66
66
|
|
|
67
67
|
## FRAME before you ask anything — from `idea-refinement`
|
|
68
68
|
|
|
69
|
-
Before the frontier round, write five lines. They are the FRAME block of `../idea-refinement/SKILL.md
|
|
69
|
+
Before the frontier round, write five lines. They are the FRAME block of `../idea-refinement/SKILL.md`:
|
|
70
70
|
|
|
71
71
|
- **Actor** — who is struggling, and in what situation?
|
|
72
72
|
- **Current workaround** — what do they do today, *including doing nothing*?
|
|
@@ -85,9 +85,9 @@ Phrase by register:
|
|
|
85
85
|
> "Expired-link recovery in scope, or defer?"
|
|
86
86
|
|
|
87
87
|
Always: emit the round → wait → record each answer in its section → confirm it
|
|
88
|
-
→ recompute the frontier.
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
→ recompute the frontier. Two independent questions in one message are
|
|
89
|
+
fine; avoid questions whose answers depend on each other, which is what
|
|
90
|
+
crossing a dependency produces.
|
|
91
91
|
|
|
92
92
|
## Turning answers into testable criteria
|
|
93
93
|
|
|
@@ -74,8 +74,8 @@ data = json.loads(resp.choices[0].message.content) # now guaranteed valid + typ
|
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
On the OpenAI Responses API the same block moves under `text.format` instead of `response_format`. On
|
|
77
|
-
Anthropic, the equivalent is `output_config={"format": {"type": "json_schema", "schema": {...}}}` on
|
|
78
|
-
Opus
|
|
77
|
+
Anthropic, the equivalent is `output_config={"format": {"type": "json_schema", "schema": {...}}}` on the
|
|
78
|
+
current Claude models (Opus 5.5, Sonnet 5.5, Haiku 5.5) and earlier ones back to the 4.5 generation; Anthropic compiles your schema into a grammar and **caches it for
|
|
79
79
|
24h**, and the SDKs ship helpers (`client.messages.parse(...)` in Python, `zodOutputFormat(schema)` in TS).
|
|
80
80
|
The older deprecated `output_format` param and the deprecated `structured-outputs-2025-11-13` beta header
|
|
81
81
|
still work in a transition window — do not write new code against them. Full shapes in
|
|
@@ -181,7 +181,11 @@ When you want one Pydantic model to run across OpenAI, Anthropic, and local back
|
|
|
181
181
|
SDK, use Instructor's unified entrypoint:
|
|
182
182
|
|
|
183
183
|
```python
|
|
184
|
-
|
|
184
|
+
from instructor import Mode
|
|
185
|
+
|
|
186
|
+
# Instructor's default Anthropic mode (Mode.TOOLS) forces a tool call, and current Claude models
|
|
187
|
+
# reject a forced tool_choice with a 400. MD_JSON does not force one.
|
|
188
|
+
client = instructor.from_provider("anthropic/claude-opus-5-5", mode=Mode.MD_JSON) # or "openai/gpt-5.1", "ollama/llama3.3"
|
|
185
189
|
```
|
|
186
190
|
|
|
187
191
|
Reach for Instructor when you need **provider portability** or **value-level validation with reask**. Reach
|
|
@@ -63,8 +63,8 @@ resp = client.responses.create(
|
|
|
63
63
|
|
|
64
64
|
```python
|
|
65
65
|
resp = client.messages.create(
|
|
66
|
-
model="claude-opus-
|
|
67
|
-
max_tokens=
|
|
66
|
+
model="claude-opus-5-5",
|
|
67
|
+
max_tokens=16000, # thinking is on by default on current models and shares this budget
|
|
68
68
|
messages=[{"role": "user", "content": text}],
|
|
69
69
|
output_config={"format": {"type": "json_schema", "schema": {
|
|
70
70
|
"type": "object",
|
|
@@ -81,8 +81,9 @@ resp = client.messages.create(
|
|
|
81
81
|
|
|
82
82
|
- Anthropic compiles the schema into a grammar and **caches it for 24h**, then constrains decoding
|
|
83
83
|
token-by-token.
|
|
84
|
-
- Supported
|
|
85
|
-
|
|
84
|
+
- Supported on the current Claude models (Opus 5.5, Sonnet 5.5, Haiku 5.5) and earlier generations
|
|
85
|
+
back to 4.5; confirm a given model with the Models API (`capabilities["structured_outputs"]`).
|
|
86
|
+
Also on Bedrock, Vertex, and Foundry (beta).
|
|
86
87
|
- SDK helpers: Python `client.messages.parse(...)` returns a parsed object; TS `zodOutputFormat(schema)` /
|
|
87
88
|
`jsonSchemaOutputFormat(schema)`.
|
|
88
89
|
- **Deprecated** (transition window only — do not write new code against these): the `output_format` param
|
|
@@ -119,7 +120,9 @@ class Order(BaseModel):
|
|
|
119
120
|
total_cents: int
|
|
120
121
|
due_date: str | None
|
|
121
122
|
|
|
122
|
-
|
|
123
|
+
# Instructor's default Anthropic mode (Mode.TOOLS) forces a tool call, and current Claude models
|
|
124
|
+
# reject a forced tool_choice with a 400. MD_JSON does not force one.
|
|
125
|
+
client = instructor.from_provider("anthropic/claude-opus-5-5", mode=instructor.Mode.MD_JSON) # or "openai/gpt-5.1", "ollama/llama3.3"
|
|
123
126
|
order = client.chat.completions.create(
|
|
124
127
|
response_model=Order,
|
|
125
128
|
max_retries=2, # bound the reask loop
|
package/skills/svelte/SKILL.md
CHANGED
|
@@ -26,7 +26,7 @@ Two things break Svelte code more than anything else: treating `$effect` as the
|
|
|
26
26
|
- Next.js / React Server Components → `../nextjs/SKILL.md`. Different reactivity model and data-loading contract. Never cross runes with RSC.
|
|
27
27
|
- Pure TypeScript typing (generics, mapped/conditional types) with no Svelte dimension → `../typescript/SKILL.md`.
|
|
28
28
|
- Deploy-target specifics (env, edge, project config) → `../vercel/SKILL.md`, `../netlify/SKILL.md`, `../cloudflare/SKILL.md`. This skill *picks the adapter*; those skills own the platform.
|
|
29
|
-
- React
|
|
29
|
+
- React → `../react/SKILL.md`, Vue/Nuxt → `../vue-nuxt/SKILL.md`, Astro → `../astro/SKILL.md`, SolidJS → `../solid-js/SKILL.md`, Angular → `../angular/SKILL.md`.
|
|
30
30
|
|
|
31
31
|
Current as of June 2026: **Svelte 5.56.x**, **SvelteKit 2.61.x**. Svelte 5 (runes) shipped Oct 2024.
|
|
32
32
|
|
|
@@ -9,10 +9,10 @@ origin: risco
|
|
|
9
9
|
|
|
10
10
|
# swift-ios
|
|
11
11
|
|
|
12
|
-
**
|
|
13
|
-
app lifecycle, Xcode, iOS APIs, App Store shipping.
|
|
14
|
-
and approachable concurrency, actors and task groups, `some` vs `any`, ARC and
|
|
15
|
-
Testing, macros
|
|
12
|
+
**Scope — the platform and the language.** This skill owns the **platform**: SwiftUI/UIKit views,
|
|
13
|
+
app lifecycle, Xcode, iOS APIs, App Store shipping. It owns language-level Swift too — Swift 6
|
|
14
|
+
data-race safety and approachable concurrency, actors and task groups, `some` vs `any`, ARC and
|
|
15
|
+
performance, Swift Testing, macros. A concurrency error, a hang, a data race or a
|
|
16
16
|
retain cycle belongs here, and so do interface feel, springs and materials on iOS.
|
|
17
17
|
|
|
18
18
|
|
package/skills/tasks/SKILL.md
CHANGED
|
@@ -41,7 +41,7 @@ use analogies and ask once "technical or with analogies?"; never invent one.
|
|
|
41
41
|
|
|
42
42
|
## Inputs (refuse to start without them)
|
|
43
43
|
|
|
44
|
-
You break down a **plan**, not an intent. Before slicing, confirm
|
|
44
|
+
You break down a **plan**, not an intent. Before slicing, confirm the first three exist; read the fourth if present:
|
|
45
45
|
|
|
46
46
|
1. **The plan** — `02-DOCS/wiki/sdd/plans/<slug>.md`, written by the `plan`
|
|
47
47
|
phase. It must contain the architecture, interfaces, and testing strategy.
|
package/skills/tauri/SKILL.md
CHANGED
|
@@ -50,9 +50,10 @@ A command is a Rust function the frontend can call. Each rule below has a one-li
|
|
|
50
50
|
camelCase (JS) ⇄ snake_case (Rust).*
|
|
51
51
|
- **Fallible commands return `Result<T, E>` where `E: Serialize`.** *An `Err` becomes a
|
|
52
52
|
rejected JS promise; a panic instead crashes the command thread silently.*
|
|
53
|
-
- **Never block the
|
|
54
|
-
spawned task. *
|
|
55
|
-
|
|
53
|
+
- **Never block the main thread.** Long or I/O work goes in an `async` command (or
|
|
54
|
+
`#[tauri::command(async)]`) or a spawned task. *A command without `async` runs on the main
|
|
55
|
+
thread — a blocking call there freezes the UI; `async` commands run on a separate task via
|
|
56
|
+
`async_runtime::spawn`.*
|
|
56
57
|
- **Share state with `.manage(x)` + `State<'_, T>`.** *If a guard is held across an
|
|
57
58
|
`.await`, use `tokio::sync::Mutex`, not `std::sync::Mutex` — the std guard is not `Send`
|
|
58
59
|
and will not compile in an async command.*
|
|
@@ -121,8 +121,8 @@ Good: TO THE FULLEST EXTENT PERMITTED BY LAW, OUR TOTAL LIABILITY IS CAPPED
|
|
|
121
121
|
|
|
122
122
|
## The legal boundary (non-negotiable)
|
|
123
123
|
|
|
124
|
-
- **You draft; you do not advise.**
|
|
125
|
-
- **Emit the attorney-review line** on any full ToS draft or any clause that limits liability, forces arbitration, or crosses a jurisdiction you cannot verify: "Have a licensed attorney review this before you publish or rely on it." This is mandatory
|
|
124
|
+
- **You prepare a starting draft; you do not advise.** Unauthorized-practice-of-law (UPL) rules reserve legal advice for licensed lawyers. You produce a starting document for attorney review and explain trade-offs; you do not opine on what is "legally safe".
|
|
125
|
+
- **Emit the attorney-review line** on any full ToS draft or any clause that limits liability, forces arbitration, or crosses a jurisdiction you cannot verify: "Have a licensed attorney review this before you publish or rely on it." This line is mandatory. (ABA Formal Op. 512 sets the lawyer's own duty to review AI-generated work; it is the reviewing attorney's obligation, not a rule for this draft.)
|
|
126
126
|
- **The privacy policy is NOT in here.** Terms *link* to the privacy policy; they do not contain it. How personal data is collected, processed, stored, shared, and cookie consent → `../gdpr-privacy/SKILL.md`. Internal data-handling/retention rules → `../data-policy/SKILL.md`.
|
|
127
127
|
- **Jurisdiction limits.** Default to a single named jurisdiction. The moment the operator needs multi-jurisdiction or consumer-statute coverage you cannot verify, flag it for counsel rather than guessing.
|
|
128
128
|
- **Hand off the edges:** a negotiated two-party agreement (NDA/MSA/SOW) → `../contracts/SKILL.md`; the signing/audit-trail mechanics → `../e-signature/SKILL.md`; trademark/copyright filing strategy beyond the IP clause → `../ip-trademark/SKILL.md`; SOC 2 / regulatory posture → `../compliance/SKILL.md`.
|
|
@@ -163,7 +163,8 @@ export function generateStaticParams() {
|
|
|
163
163
|
return routing.locales.map((locale) => ({ locale }));
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export default function RootLayout({ children, params
|
|
166
|
+
export default async function RootLayout({ children, params }) {
|
|
167
|
+
const { locale } = await params; // params is a Promise
|
|
167
168
|
const dir = locale === "ar" || locale === "he" ? "rtl" : "ltr";
|
|
168
169
|
return <html lang={locale} dir={dir}>{children}</html>;
|
|
169
170
|
}
|
|
@@ -11,12 +11,13 @@ origin: risco
|
|
|
11
11
|
Express data and contracts precisely in the TypeScript type system, and configure the
|
|
12
12
|
compiler so the types actually hold.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Written against **TypeScript 5.9**: redesigned `tsc --init` defaults
|
|
15
15
|
(`module: nodenext`, `target: esnext`, `moduleDetection: force`, strict on), `import defer`
|
|
16
16
|
for deferred module evaluation, expandable editor hovers. The **TypeScript 7 native
|
|
17
|
-
compiler** (
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
compiler** (the Go port) type-checks roughly 10x faster (VS Code's 1.5M LOC: 89s -> 8.74s);
|
|
18
|
+
`typescript` 7.x on npm ships it as `tsc`, and `@typescript/native-preview` ships it as `tsgo`.
|
|
19
|
+
Read the project's version first (`npx tsc -v`) and check its release notes before advising on
|
|
20
|
+
a version newer than 5.9.
|
|
20
21
|
|
|
21
22
|
## Boundary: language vs runtime vs framework
|
|
22
23
|
|
|
@@ -102,8 +102,8 @@ Adoption steps:
|
|
|
102
102
|
1. Add it as a dev dependency; keep `typescript` (`tsc`) installed as the stable fallback.
|
|
103
103
|
2. Run `tsgo --noEmit` in CI for the speed win; if a diagnostic differs, fall back to `tsc` for
|
|
104
104
|
that check and report it — the preview does not yet cover 100% of `tsc` behavior.
|
|
105
|
-
3.
|
|
106
|
-
|
|
105
|
+
3. On a project whose `typescript` is 7.x, `tsc` is already the native compiler and the preview
|
|
106
|
+
package is unnecessary; check `npx tsc -v` before adding it.
|
|
107
107
|
|
|
108
108
|
## Declaration emit & publishing a library
|
|
109
109
|
|
package/skills/unslop/SKILL.md
CHANGED
|
@@ -54,7 +54,7 @@ When a text needs both passes: audit first, register last.
|
|
|
54
54
|
|
|
55
55
|
Voiceless writing is as obvious as slopped writing. After the cuts, put something back:
|
|
56
56
|
|
|
57
|
-
- **
|
|
57
|
+
- **Keep the author's opinion.** Where the source takes a stand, state it plainly instead of flattening it into balanced pros and cons. Never add a stance the author did not take.
|
|
58
58
|
- **Vary the rhythm.** Short sentence. Then a longer one that takes its time and earns the length.
|
|
59
59
|
- **Admit complexity.** "Impressive and slightly unsettling" beats "impressive".
|
|
60
60
|
- **Use "I" when it fits.** First person is not unprofessional.
|
package/skills/ux/SKILL.md
CHANGED
|
@@ -92,7 +92,7 @@ When the task is to audit an existing interface: steps 0 and 4 first, then repor
|
|
|
92
92
|
by impact on the job, in the format of `upstream/ux-designer/GUIDE.md` › *Reviewing or auditing a
|
|
93
93
|
UI* (Blocker / Major / Minor, where, fix, reference). Inspection order and the full checklists:
|
|
94
94
|
`upstream/ux-usability-foundations/GUIDE.md` › *Workflow for critiquing* and
|
|
95
|
-
`references/checklists.md`. Split quick wins from structural changes. If nothing serious turns up,
|
|
95
|
+
`upstream/ux-usability-foundations/references/checklists.md`. Split quick wins from structural changes. If nothing serious turns up,
|
|
96
96
|
say so in one line.
|
|
97
97
|
|
|
98
98
|
## Report
|
package/skills/vercel/SKILL.md
CHANGED
|
@@ -172,8 +172,9 @@ Add the `$schema` line first — you get editor autocomplete and validation for
|
|
|
172
172
|
|
|
173
173
|
Whys:
|
|
174
174
|
|
|
175
|
-
- **`maxDuration`** caps wall-clock per invocation.
|
|
176
|
-
|
|
175
|
+
- **`maxDuration`** caps wall-clock per invocation. Under Fluid the default is 300s on every plan;
|
|
176
|
+
the ceiling is plan-bound (Hobby 300s, Pro and Enterprise 800s, 1800s in the extended-duration
|
|
177
|
+
beta). Setting `30` on Hobby is fine; setting `800` on Hobby silently can't apply.
|
|
177
178
|
- **No `memory` key here when Fluid is on** (default for new projects since 2025-04-23). Under Fluid,
|
|
178
179
|
default function memory/CPU is a *dashboard* setting, not a `vercel.json` key — putting `memory`
|
|
179
180
|
in-file is ignored or rejected. See `references/vercel-json.md`.
|
|
@@ -62,13 +62,16 @@ time, so it can compute config from env vars or API calls.
|
|
|
62
62
|
|
|
63
63
|
### Per-plan duration & memory
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
Under Fluid compute (on by default):
|
|
66
|
+
|
|
67
|
+
| Plan | `maxDuration` default → ceiling | Memory / CPU default → max |
|
|
66
68
|
| --- | --- | --- |
|
|
67
|
-
| Hobby |
|
|
68
|
-
| Pro |
|
|
69
|
-
| Enterprise |
|
|
69
|
+
| Hobby | 300s → 300s | 2 GB / 1 vCPU → 2 GB / 1 vCPU |
|
|
70
|
+
| Pro | 300s → 800s (1800s in the extended-duration beta) | 2 GB / 1 vCPU → 4 GB / 2 vCPU |
|
|
71
|
+
| Enterprise | 300s → 800s (1800s in the extended-duration beta) | 2 GB / 1 vCPU → 4 GB / 2 vCPU |
|
|
70
72
|
|
|
71
|
-
|
|
73
|
+
Above 800s, set `maxDuration` per function, not as a project default. Under Fluid the default
|
|
74
|
+
memory/CPU is a dashboard setting, not a `vercel.json` key.
|
|
72
75
|
|
|
73
76
|
## `crons`
|
|
74
77
|
|
package/skills/verify/SKILL.md
CHANGED
|
@@ -44,8 +44,8 @@ LOCATE → find the spec, the task done-checks, and which stack(s) changed
|
|
|
44
44
|
RUN → execute the relevant stack scripts/verify.sh (lint, type, test+coverage, audit),
|
|
45
45
|
or the generic gate from config.yaml when no stack ships one
|
|
46
46
|
WALK → check every task done-check and every spec acceptance criterion against real output
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
RECORD → write the verification record under 02-DOCS/wiki/sdd/, with the rollback plan (revert
|
|
48
|
+
sha, migration down, flag off), index it
|
|
49
49
|
VERDICT → PASS only if every item has passing evidence; otherwise FAIL with the gaps + handoff
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -107,7 +107,7 @@ The dangerous way a checker breaks is not a crash — it is **fail-open**: nothi
|
|
|
107
107
|
|
|
108
108
|
**Over-blocking is not the safe side.** It feels like caution and it is not: a gate that fires on correct work gets muted, worked around, or wedges the pipeline that depends on it, which is the same damage as a gate that checks nothing with the sign reversed. And it is *harder* to notice, because the failure arrives dressed as diligence.
|
|
109
109
|
|
|
110
|
-
Where this bites hardest is a check that matches text rather than structure — **"the path appears in the string" is not "the write targets that location"**.
|
|
110
|
+
Where this bites hardest is a check that matches text rather than structure — **"the path appears in the string" is not "the write targets that location"**. A gate proven only by mutants that make it fail can still block every correct input: a text match on a protected path blocks every read of that file as if it were a write to it.
|
|
111
111
|
|
|
112
112
|
So when you write the negative control, write the positive one beside it, and prefer matching **structure** (a parsed tool call, a resolved path, an exit code) over matching text that happens to contain the thing you care about.
|
|
113
113
|
|
package/skills/vllm/SKILL.md
CHANGED
|
@@ -128,11 +128,13 @@ live without merging or a second server
|
|
|
128
128
|
([LoRA docs](https://docs.vllm.ai/en/latest/features/lora.html), accessed 2026-07).
|
|
129
129
|
|
|
130
130
|
```bash
|
|
131
|
+
# --max-loras: how many adapters resident at once
|
|
132
|
+
# --max-lora-rank: must be >= the rank the adapter was trained at
|
|
131
133
|
vllm serve meta-llama/Llama-3.2-3B-Instruct \
|
|
132
134
|
--enable-lora \
|
|
133
135
|
--lora-modules sql=/adapters/sql-lora legal=/adapters/legal-lora \
|
|
134
|
-
--max-loras 2 \
|
|
135
|
-
--max-lora-rank 16
|
|
136
|
+
--max-loras 2 \
|
|
137
|
+
--max-lora-rank 16
|
|
136
138
|
```
|
|
137
139
|
|
|
138
140
|
Route to an adapter by naming it in the request `model` field: `"model": "sql"` hits the SQL adapter,
|
package/skills/vue-nuxt/SKILL.md
CHANGED
|
@@ -279,8 +279,9 @@ preset here, then hand platform specifics to [`deployment`](../deployment/SKILL.
|
|
|
279
279
|
- `defineAsyncComponent` and Nuxt's auto `Lazy<Component>` prefix to code-split below the fold.
|
|
280
280
|
- `<NuxtImg>` / `@nuxt/image` for responsive, optimized images (a top LCP lever).
|
|
281
281
|
- Shrink the SSR payload with `pick`/`transform` on `useFetch`/`useAsyncData`.
|
|
282
|
-
- Vue 3.6 **Vapor Mode** (compile-time, no-VDOM, opt-in per component via `<script setup vapor>`)
|
|
283
|
-
|
|
282
|
+
- Vue 3.6 **Vapor Mode** (compile-time, no-VDOM, opt-in per component via `<script setup vapor>`)
|
|
283
|
+
ships with Vue 3.6; check `npm view vue dist-tags` for whether 3.6 is `latest` or still
|
|
284
|
+
pre-release — treat it as opt-in, not the default.
|
|
284
285
|
- Targets: LCP < 2.5s, CLS < 0.1, INP < 200ms.
|
|
285
286
|
|
|
286
287
|
## Anti-patterns → STOP
|
|
@@ -314,9 +315,8 @@ In a project with a `02-DOCS/` layer (the [`harness`](../harness/SKILL.md) Karpa
|
|
|
314
315
|
`02-DOCS/wiki/stack/vue-nuxt.md` first and stay consistent with it. If it is missing or stale,
|
|
315
316
|
create/update it with this app's real choices — rendering mode per route (`routeRules`), the
|
|
316
317
|
`useFetch`/`useAsyncData` conventions, `useState` vs Pinia, the Nitro preset/deploy target, the
|
|
317
|
-
design-system hookup — bump its `Updated` date, and
|
|
318
|
-
|
|
319
|
-
layer? Skip silently. Technical conventions are *recorded, not gated* — never block the task.
|
|
318
|
+
design-system hookup — bump its `Updated` date, and index it in `02-DOCS/wiki/index.md` (root
|
|
319
|
+
`CLAUDE.md` keeps only a short pointer to that index). No `02-DOCS/` layer? Skip silently. Technical conventions are *recorded, not gated* — never block the task.
|
|
320
320
|
|
|
321
321
|
Nuxt 3 → 4 deltas (`app/` move, `compatibilityVersion`, shared-key data, shallowRef payload,
|
|
322
322
|
renamed APIs) and Vue 3.4 → 3.5 changes are in
|
package/skills/webhooks/SKILL.md
CHANGED
|
@@ -163,10 +163,19 @@ try {
|
|
|
163
163
|
if (e.code === "23505") return res.sendStatus(200); // already seen → ack, skip
|
|
164
164
|
throw e;
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
try {
|
|
167
|
+
await queue.add("process", { id, event });
|
|
168
|
+
} catch (e) {
|
|
169
|
+
// Enqueue failed: release the gate, or the provider's retry is skipped as "seen" and the event is lost.
|
|
170
|
+
await db.query("DELETE FROM seen_events WHERE id = $1", [id]);
|
|
171
|
+
return res.sendStatus(503); // transient → provider retries
|
|
172
|
+
}
|
|
167
173
|
res.sendStatus(200);
|
|
168
174
|
```
|
|
169
175
|
|
|
176
|
+
Where the queue lives in the same database, write the dedupe row and the job in one transaction
|
|
177
|
+
(outbox) instead; then neither can exist without the other.
|
|
178
|
+
|
|
170
179
|
Prefer **insert-then-process** over **process-then-mark**. Marking after the
|
|
171
180
|
work leaves a window where two concurrent deliveries both pass the "have I seen
|
|
172
181
|
it?" check and both run. Let the UNIQUE constraint (or `NX`) be the lock.
|
|
@@ -108,10 +108,10 @@ never a silent cleanup: refuse the silent path and confirm the discard with the
|
|
|
108
108
|
would be lost.
|
|
109
109
|
|
|
110
110
|
**You do not have to remember to clean up.** Once the work lands on the trunk, a `post-merge` hook
|
|
111
|
-
retires the worktree
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
retires the worktree on its own, and its branch when git deletes it safely (`branch -d`; a
|
|
112
|
+
squash-merged branch stays) — it removes only what the reaper already classifies as safe, and
|
|
113
|
+
anything holding unsaved work is refused exactly as it is above. Nothing to run, and nothing to
|
|
114
|
+
remember: the cleanup lives in a hook because an agent asked to remember it skips it.
|
|
115
115
|
|
|
116
116
|
```bash
|
|
117
117
|
# from the repo root, default branch up to date
|
|
@@ -124,7 +124,7 @@ git worktree add -b feat/<slug> .worktrees/<slug> origin/<default-branch>
|
|
|
124
124
|
the folder holding `.rsc.json`. For the repo at that root the worktree is `.worktrees/<slug>`. For a
|
|
125
125
|
project that lives in a folder under it (a workspace with `03-PROJECTS/<p>/`), it is
|
|
126
126
|
`<root>/.worktrees/<p>-<slug>`, and the path is written absolute — a relative one resolves inside
|
|
127
|
-
the project
|
|
127
|
+
the project:
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
130
|
git -C 03-PROJECTS/<p> fetch origin
|
|
@@ -173,7 +173,8 @@ Three things have to hold before a worktree is retired without asking, and each
|
|
|
173
173
|
user's, so it is asked about, never removed silently. Neither → foreign; not touched, not offered.
|
|
174
174
|
- **The branch adds nothing the trunk does not have** — asked about *content*, so a squash-merged
|
|
175
175
|
pull request counts as landed. Its branch is kept even so: git will not delete it safely, and while
|
|
176
|
-
it exists the commits survive a wrong call.
|
|
176
|
+
it exists the commits survive a wrong call. Deleting it is `tidy`'s job, after its content check
|
|
177
|
+
proves the branch landed.
|
|
177
178
|
- **Nothing inside would be lost** — not just "no pending changes": untracked and ignored files count,
|
|
178
179
|
because a worktree that git calls clean can still hold the only copy of a `.env` or a local
|
|
179
180
|
database. Installed dependencies and build output are the one carve-out.
|
|
@@ -186,7 +187,8 @@ exit through that tool's `remove`/`keep`; the reaper is for worktrees git alone
|
|
|
186
187
|
**When the command is unavailable** (no rsc in this project), the manual equivalent is: confirm it is
|
|
187
188
|
a linked worktree (`git rev-parse --git-dir` ≠ `--git-common-dir`), rule out a submodule
|
|
188
189
|
(`git rev-parse --show-superproject-working-tree` must be empty), `cd` to the main working tree, then
|
|
189
|
-
`git worktree remove` and `git worktree prune`. Never `-D` a branch to make the cleanup succeed
|
|
190
|
+
`git worktree remove` and `git worktree prune`. Never `-D` a branch to make the cleanup succeed;
|
|
191
|
+
only `tidy` deletes a branch with `-D`, and only one its content check proved squash-merged.
|
|
190
192
|
|
|
191
193
|
## Model tier — `light` (opt-in routing)
|
|
192
194
|
|
|
@@ -206,7 +208,7 @@ wish for brevity removes the check before risking someone's WIP.
|
|
|
206
208
|
|
|
207
209
|
| Rationalization | Reality / Fix |
|
|
208
210
|
| --- | --- |
|
|
209
|
-
| "I'll just implement on `main`, it's a small change" | Small changes become commits on the wrong branch.
|
|
211
|
+
| "I'll just implement on `main`, it's a small change" | Small changes become commits on the wrong branch. Where the default branch is closed, branch/worktree first — before the first edit. Where it is open, the project already decided. |
|
|
210
212
|
| "There's uncommitted WIP, I'll stash it and switch" | A worktree avoids the stash entirely and can't drop it. Use a worktree; if you must stash, confirm with the user and name the stash. |
|
|
211
213
|
| "I'll branch off local HEAD, fetching is slow" | Stale base = merge conflicts you pay for later. Branch off an up-to-date `origin/<default>` unless the user wants HEAD. |
|
|
212
214
|
| "The worktree's dirty but I'll `remove --force` to clean up" | Force-removing a dirty/unmerged worktree throws away work irreversibly. Resolve or confirm explicitly first; never silent-force. |
|
|
@@ -163,7 +163,7 @@ idea → predicted outlier multiple → why (the mechanism) → judge-by metric
|
|
|
163
163
|
|
|
164
164
|
```text
|
|
165
165
|
Bad: "This one should do well."
|
|
166
|
-
Good: "Predict
|
|
166
|
+
Good: "Predict 3x baseline. Bet: the contrarian title + we own first-hand proof no
|
|
167
167
|
outlier has. Judge by 28-day views vs trailing-10 average AND CTR vs channel
|
|
168
168
|
median. 2026-06-02."
|
|
169
169
|
```
|
package/targets/agents.js
CHANGED
|
@@ -17,15 +17,22 @@ import {
|
|
|
17
17
|
resolveStackAgentNames, validateAgentCatalog,
|
|
18
18
|
} from './agent-catalog.js';
|
|
19
19
|
|
|
20
|
-
// Concrete model per provider per tier
|
|
21
|
-
//
|
|
22
|
-
//
|
|
20
|
+
// Concrete model per provider per tier — EDIT to your account's models; the TIER is the
|
|
21
|
+
// contract, the id is yours to change. `light` is deliberately absent: the developer floor is
|
|
22
|
+
// `balanced`.
|
|
23
23
|
const TIER_MODEL = {
|
|
24
|
-
anthropic: { balanced: 'claude-sonnet-
|
|
24
|
+
anthropic: { balanced: 'claude-sonnet-5-5', heavy: 'claude-opus-5-5' },
|
|
25
25
|
google: { balanced: 'gemini-2.5-flash', heavy: 'gemini-2.5-pro' },
|
|
26
26
|
openai: { balanced: 'gpt-5.1-mini', heavy: 'gpt-5.1' },
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
// The Anthropic ids earlier releases wrote into agent files. Never rendered for a new file: they only
|
|
30
|
+
// let `knownRenderings` recognise a file rsc wrote before the ids moved, so an upgrade replaces it
|
|
31
|
+
// instead of keeping it as the user's.
|
|
32
|
+
const PREVIOUS_TIER_MODEL = {
|
|
33
|
+
anthropic: { balanced: 'claude-sonnet-4-6', heavy: 'claude-opus-4-8' }, // prompt-audit: allow retired-model — recognises agent files written by earlier rsc releases
|
|
34
|
+
};
|
|
35
|
+
|
|
29
36
|
// Per-target agent capability: where the file goes, its format, and how the model value
|
|
30
37
|
// is written for that tool. Targets absent here have no installable file-based agents
|
|
31
38
|
// (Amp/Zed/Windsurf/Cline/Roo/Continue/Aider/Jules/Antigravity) — there the developer
|
|
@@ -33,16 +40,16 @@ const TIER_MODEL = {
|
|
|
33
40
|
const AGENT_TARGETS = {
|
|
34
41
|
claude: { dir: '.claude/agents', ext: '.md', format: 'md', toolsFormat: 'claude', model: (t) => (t === 'heavy' ? 'opus' : 'sonnet') },
|
|
35
42
|
junie: { dir: '.junie/agents', ext: '.md', format: 'md', model: (t) => (t === 'heavy' ? 'opus' : 'sonnet') },
|
|
36
|
-
cursor: { dir: '.cursor/agents', ext: '.md', format: 'md', model: (t) => TIER_MODEL.anthropic[t] },
|
|
43
|
+
cursor: { dir: '.cursor/agents', ext: '.md', format: 'md', model: (t) => TIER_MODEL.anthropic[t], previousModel: (t) => PREVIOUS_TIER_MODEL.anthropic[t] },
|
|
37
44
|
// #298 — OpenCode is the one tool people point at a local model or another provider per session, so
|
|
38
45
|
// its agents INHERIT the session model by default (`model: null` → no `model:` line) and only carry
|
|
39
46
|
// one when the project pins it (`agentModels.opencode` in .rsc.json). And its `tools` map is
|
|
40
47
|
// restrict-only: rsc never grants a tool there, it can only take away what a role never declared,
|
|
41
48
|
// so a stricter project permission policy is never loosened by an rsc agent.
|
|
42
|
-
opencode: { dir: '.opencode/agents', ext: '.md', format: 'md', mode: 'subagent', toolsFormat: 'restrict', model: () => null, legacyModel: (t) => `anthropic/${
|
|
49
|
+
opencode: { dir: '.opencode/agents', ext: '.md', format: 'md', mode: 'subagent', toolsFormat: 'restrict', model: () => null, legacyModel: (t) => `anthropic/${PREVIOUS_TIER_MODEL.anthropic[t]}` },
|
|
43
50
|
gemini: { dir: '.gemini/agents', ext: '.md', format: 'md', model: (t) => TIER_MODEL.google[t] },
|
|
44
|
-
copilot: { dir: '.github/agents', ext: '.agent.md', format: 'md', model: (t) => TIER_MODEL.anthropic[t] },
|
|
45
|
-
kiro: { dir: '.kiro/agents', ext: '.json', format: 'json', model: (t) => (t === 'heavy' ? 'claude-opus-4' : 'claude-sonnet-4') },
|
|
51
|
+
copilot: { dir: '.github/agents', ext: '.agent.md', format: 'md', model: (t) => TIER_MODEL.anthropic[t], previousModel: (t) => PREVIOUS_TIER_MODEL.anthropic[t] },
|
|
52
|
+
kiro: { dir: '.kiro/agents', ext: '.json', format: 'json', model: (t) => (t === 'heavy' ? 'claude-opus-4' : 'claude-sonnet-4') }, // prompt-audit: allow retired-model — Kiro's own model names, not Anthropic API ids; change them when Kiro lists newer ones
|
|
46
53
|
codex: { dir: '.codex/agents', ext: '.toml', format: 'toml', model: (t) => TIER_MODEL.openai[t] },
|
|
47
54
|
};
|
|
48
55
|
|
|
@@ -53,12 +60,14 @@ export function targetHasAgents(target) { return Boolean(AGENT_TARGETS[target]);
|
|
|
53
60
|
// (decided in clarify 2026-08-18: a lens passed as a parameter reintroduces the
|
|
54
61
|
// does-anyone-remember dependency this whole spec exists to remove) — but P5 says length is a cost,
|
|
55
62
|
// so the contract they share is composed, not written three times.
|
|
56
|
-
|
|
57
|
-
1. The task contract — the original request **plus every scope change a human explicitly approved since**. Without the approved changes, a legitimate scope revision reads as a spec gap and you will report a confident false positive.
|
|
63
|
+
const REFUTER_INPUT_LIST = `1. The task contract — the original request **plus every scope change a human explicitly approved since**. Without the approved changes, a legitimate scope revision reads as a spec gap and you will report a confident false positive.
|
|
58
64
|
2. The approved spec.
|
|
59
65
|
3. The exact source state (commit SHA, or a tree hash when git is absent). A verdict attaches to the state you saw, not to the project.
|
|
60
66
|
4. The entry point — the one command that reruns the checks.`;
|
|
61
67
|
|
|
68
|
+
export const REFUTER_FOUR_INPUTS = `**You get exactly four inputs, and nothing else:**
|
|
69
|
+
${REFUTER_INPUT_LIST}`;
|
|
70
|
+
|
|
62
71
|
const REFUTER_CONTRACT = `Your mandate is to **refute readiness**, not confirm it. A reviewer looking for confirmation finds confirmation; the asymmetry is the point.
|
|
63
72
|
|
|
64
73
|
${REFUTER_FOUR_INPUTS}
|
|
@@ -106,7 +115,7 @@ Full discipline lives in the \`implement\` skill.`,
|
|
|
106
115
|
{
|
|
107
116
|
name: 'refuter-correctness',
|
|
108
117
|
desc: 'Adversarial reviewer, correctness lens: attacks a green diff for boundary and error-path defects, and demands that any home-grown gate prove it can both fail and pass. Fresh context, mandate to refute.',
|
|
109
|
-
body: `You are the **correctness** refuter for this project — one of three adversarial lenses ${'`review`'} dispatches at tier 2. What matters is not the number of lenses but their **diversity**:
|
|
118
|
+
body: `You are the **correctness** refuter for this project — one of three adversarial lenses ${'`review`'} dispatches at tier 2. What matters is not the number of lenses but their **diversity**: a lens often finds the defect that another lens was not looking for.
|
|
110
119
|
|
|
111
120
|
${REFUTER_CONTRACT}
|
|
112
121
|
|
|
@@ -115,18 +124,18 @@ ${REFUTER_CONTRACT}
|
|
|
115
124
|
**And the lens this panel was missing:** when the change adds or touches a **gate, checker or guard**, ask it in BOTH directions.
|
|
116
125
|
- Can it fail? Feed it a known-bad input and watch it fail. A gate nobody has seen fail is not a gate.
|
|
117
126
|
- **Can it pass?** Feed it a known-good input and watch it pass. Over-blocking is not the safe side — a gate that fires on correct work gets muted, worked around, or wedges the pipeline that depends on it, and it is *harder* to notice because it arrives dressed as diligence.
|
|
118
|
-
- Watch for a check that matches **text** where it should match **structure**: "the path appears in the string" is not "the write targets that location"
|
|
127
|
+
- Watch for a check that matches **text** where it should match **structure**: "the path appears in the string" is not "the write targets that location".`,
|
|
119
128
|
},
|
|
120
129
|
{
|
|
121
130
|
name: 'refuter-security',
|
|
122
131
|
desc: 'Adversarial reviewer, security and privacy lens: hunts untrusted input reaching a sink, authz gaps, leaked secrets and data escaping where it should not. Fresh context, mandate to refute.',
|
|
123
|
-
body: `You are the **security and privacy** refuter for this project — one of three adversarial lenses ${'`review`'} dispatches at tier 2. Your value is that you are not looking where the others look
|
|
132
|
+
body: `You are the **security and privacy** refuter for this project — one of three adversarial lenses ${'`review`'} dispatches at tier 2. Your value is that you are not looking where the others look.
|
|
124
133
|
|
|
125
134
|
${REFUTER_CONTRACT}
|
|
126
135
|
|
|
127
136
|
**Your lens:** untrusted input reaching a sink (injection, SSRF, path traversal), authorization gaps (authenticated is not authorized), secrets in the diff or in config, and **data leaving where it should not** — a log line, an error message, a file written outside its zone, a payload sent to a third party.
|
|
128
137
|
|
|
129
|
-
**Follow the trail rather than the checklist.** When something looks merely untidy — a file in an odd place, a path that repeats — ask who else cares about that location before dismissing it
|
|
138
|
+
**Follow the trail rather than the checklist.** When something looks merely untidy — a file in an odd place, a path that repeats — ask who else cares about that location before dismissing it.`,
|
|
130
139
|
},
|
|
131
140
|
{
|
|
132
141
|
name: 'refuter-tests',
|
|
@@ -150,9 +159,8 @@ ${REFUTER_CONTRACT}
|
|
|
150
159
|
desc: 'Adversarial verifier of review findings: takes ONE consolidated finding and tries to prove it false against the code. Default stance: the finding is false; only a reproduced or traced failure is CONFIRMED. Fresh context, edits nothing.',
|
|
151
160
|
body: `You are the **finding verifier** for this project. ${'`review`'} hands you **one** finding that survived ${'`rsc review consolidate`'} — a blocker or should-fix some refuter lens reported against a diff. Your job is to **prove it false**. Your starting position is that it is false; the finding has to beat you.
|
|
152
161
|
|
|
153
|
-
**
|
|
154
|
-
|
|
155
|
-
${REFUTER_FOUR_INPUTS}
|
|
162
|
+
**You get five inputs, and nothing else:** the finding (location, claim, failure scenario, evidence), plus the same four the lenses had:
|
|
163
|
+
${REFUTER_INPUT_LIST}
|
|
156
164
|
|
|
157
165
|
**You do NOT get** the refuter's reasoning or the builder's defence. Judge the claim against the code, not against either story.
|
|
158
166
|
|
|
@@ -317,6 +325,7 @@ function knownRenderings(target, cwd, agent) {
|
|
|
317
325
|
out.add(renderAgent(target, spec, resolveModel(target, cwd, tier), agent, 'list'));
|
|
318
326
|
out.add(renderAgent(target, spec, spec.model(tier), agent, 'list'));
|
|
319
327
|
}
|
|
328
|
+
if (spec.previousModel) out.add(renderAgent(target, spec, spec.previousModel(tier), agent));
|
|
320
329
|
if (spec.legacyModel) out.add(renderAgent(target, spec, spec.legacyModel(tier), agent, 'map'));
|
|
321
330
|
}
|
|
322
331
|
return out;
|