@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
|
@@ -788,7 +788,8 @@ doing anything but dropping files.
|
|
|
788
788
|
### Knowledge Gaps log — format
|
|
789
789
|
|
|
790
790
|
`wiki/gaps.md` accumulates wanted-but-missing topics. Append-only; gaps get
|
|
791
|
-
flagged `[FILLED YYYY-MM-DD]` when addressed
|
|
791
|
+
flagged `[FILLED YYYY-MM-DD]` when addressed. Open gaps are never deleted; the only
|
|
792
|
+
removal is Deep Improve's compaction of `[FILLED]` entries older than 90 days.
|
|
792
793
|
|
|
793
794
|
```
|
|
794
795
|
# Knowledge Gaps
|
package/skills/hiring/SKILL.md
CHANGED
|
@@ -39,8 +39,8 @@ One rule per stage, with the why:
|
|
|
39
39
|
the comparison is meaningless.
|
|
40
40
|
- **Run a structured loop.** Same questions, same rubric, every candidate —
|
|
41
41
|
structured interviews are the single highest-validity selection method
|
|
42
|
-
(~.
|
|
43
|
-
re-analysis ranks them above cognitive-ability tests). Unstructured = lottery.
|
|
42
|
+
(~.42 predictive validity vs ~.19 unstructured in the 2022 Sackett et al.
|
|
43
|
+
re-analysis, which ranks them above cognitive-ability tests). Unstructured = lottery.
|
|
44
44
|
- **Score independently, then calibrate.** Each interviewer submits before the
|
|
45
45
|
group talks. Debrief is calibration, not a re-vote.
|
|
46
46
|
|
|
@@ -141,7 +141,7 @@ would you change?
|
|
|
141
141
|
## The scorecard
|
|
142
142
|
|
|
143
143
|
This is where gut-feel hiring dies. A structured scorecard with behavioral
|
|
144
|
-
anchors lifts interview validity from ~.
|
|
144
|
+
anchors lifts interview validity from ~.19 to ~.42 (Sackett et al. 2022)
|
|
145
145
|
and a 2022 SHRM-cited figure puts bias reduction above 50% versus unstructured
|
|
146
146
|
scoring. Shape it exactly:
|
|
147
147
|
|
package/skills/htmx/SKILL.md
CHANGED
|
@@ -22,9 +22,9 @@ JavaScript, you have stopped doing htmx and started building an SPA — use a di
|
|
|
22
22
|
`change` for inputs)
|
|
23
23
|
|
|
24
24
|
**Versions (verify before pinning).** htmx 2.0.x is current stable (2.0.10 latest 2.x line);
|
|
25
|
-
v1 (1.9.x) is legacy, kept only for IE/old-browser support. htmx
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
v1 (1.9.x) is legacy, kept only for IE/old-browser support. htmx 4.0 is released but npm keeps
|
|
26
|
+
2.x as `latest` (4.x is tagged `next`); v4 changes some defaults (default swap behavior,
|
|
27
|
+
config) — write to v4 only when the project already chose it. Pin to 2.x:
|
|
28
28
|
|
|
29
29
|
```html
|
|
30
30
|
<script src="https://unpkg.com/htmx.org@2.0.10" crossorigin="anonymous"></script>
|
|
@@ -116,7 +116,7 @@ def contacts(request: Request, q: str = ""):
|
|
|
116
116
|
rows = search_contacts(q)
|
|
117
117
|
# htmx asked for just the table body; a browser nav gets the whole page.
|
|
118
118
|
template = "contacts/_rows.html" if request.headers.get("HX-Request") else "contacts/index.html"
|
|
119
|
-
return templates.TemplateResponse(template, {"
|
|
119
|
+
return templates.TemplateResponse(request, template, {"rows": rows, "q": q})
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
```jinja
|
|
@@ -41,7 +41,7 @@ injection.
|
|
|
41
41
|
def contacts(request: Request, q: str = ""):
|
|
42
42
|
rows = search_contacts(q)
|
|
43
43
|
name = "contacts/_rows.html" if request.headers.get("HX-Request") else "contacts/index.html"
|
|
44
|
-
return templates.TemplateResponse(name, {"
|
|
44
|
+
return templates.TemplateResponse(request, name, {"rows": rows, "q": q})
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
Fire a client event from the server:
|
|
@@ -81,7 +81,7 @@ app.get("/contacts", (req, res) => {
|
|
|
81
81
|
});
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
CSRF (
|
|
84
|
+
CSRF (a double-submit cookie or a maintained CSRF middleware; `csurf` is deprecated): expose the token to htmx via `hx-headers`, the
|
|
85
85
|
same pattern as Django — htmx never adds CSRF tokens itself.
|
|
86
86
|
|
|
87
87
|
## Fragment-vs-page rule (all stacks)
|
|
@@ -66,7 +66,7 @@ GREEN → write the least code that makes that test pass. No extra features,
|
|
|
66
66
|
TRIANGULATE → add the smallest edge-case test that proves the behavior is not hard-coded
|
|
67
67
|
(only when config.testing.strict_tdd is true and the task has meaningful edge cases).
|
|
68
68
|
REFACTOR → with the test green, clean up names/duplication/shape. Re-run; still green. Only now.
|
|
69
|
-
COMMIT → commit this task as one logical unit (authorship =
|
|
69
|
+
COMMIT → commit this task as one logical unit (authorship = the human author, the configured git user; no AI attribution; see ship for the rule).
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
The order is load-bearing. **Red before green** is not a suggestion — a test you write *after* the
|
|
@@ -115,7 +115,7 @@ review of the task, this first one included. Round 1 is the task's first review,
|
|
|
115
115
|
| --- | --- |
|
|
116
116
|
| 0 | none — the controls (e) still run |
|
|
117
117
|
| 1 | one fresh-context reviewer; frozen brief in `references/per-task-review.md` |
|
|
118
|
-
| 2 | the three refuters (`refuter-correctness` · `refuter-security` · `refuter-tests`) in parallel,
|
|
118
|
+
| 2 | the three refuters (`refuter-correctness` · `refuter-security` · `refuter-tests`) in parallel, using the dispatch names in `../review/SKILL.md` (Codex pairs each `agent_type` with a unique underscore `task_name`); then `review ledger panel <slug>/<task> --lenses correctness,security,tests` — the push gate checks it. Wait for every reviewer inside the turn; never end the turn to ask whether to continue |
|
|
119
119
|
|
|
120
120
|
Every reviewer gets the **spec**, the **diff as a file** (`scripts/review-package <BASE> <HEAD>`, BASE
|
|
121
121
|
= the task's *recorded* base sha, never `HEAD~1`), the **surrounding code** at that sha (not just the
|
|
@@ -339,7 +339,7 @@ outranks the plan, and the plan outranks your in-the-moment preference.
|
|
|
339
339
|
- **Unresolved `analyze` findings** (contradiction between constitution ↔ spec ↔ plan ↔ tasks) →
|
|
340
340
|
resolve them before any code; they will only get more expensive after the diff exists.
|
|
341
341
|
- **A task forces a constitution violation** → surface it, stop, kick it back to `analyze`/`plan`.
|
|
342
|
-
- **You're on
|
|
342
|
+
- **You're on a closed default branch** → stop before the first commit and ask: this branch, a new one, or unlock (`worktrees`).
|
|
343
343
|
- **A test won't go red** for the right reason (import error, syntax) → stub the module, fix the test.
|
|
344
344
|
- **The combined suite is red after a parallel merge** → do not checkpoint as done; debug with
|
|
345
345
|
`debug` before continuing.
|
|
@@ -349,7 +349,7 @@ outranks the plan, and the plan outranks your in-the-moment preference.
|
|
|
349
349
|
## Checklist (copy per task)
|
|
350
350
|
|
|
351
351
|
```text
|
|
352
|
-
- [ ] a) RED for the right reason → GREEN → REFACTOR; committed as one unit (authorship =
|
|
352
|
+
- [ ] a) RED for the right reason → GREEN → REFACTOR; committed as one unit (authorship = the configured git user, no AI attribution)
|
|
353
353
|
- [ ] b) `rsc risk` on the task diff; tier recorded
|
|
354
354
|
- [ ] c) `review ledger round <slug>/<task>` before each review (≤ 3); by tier, fresh context, no pre-judging
|
|
355
355
|
- [ ] d) `review consolidate` + `finding-verifier`; `review ledger record`; outcomes closed
|
package/skills/init/SKILL.md
CHANGED
|
@@ -173,9 +173,8 @@ means the user starts clean.
|
|
|
173
173
|
### Phase 5 — HANDOFF
|
|
174
174
|
|
|
175
175
|
The profile is set, the discovery recorded, the skills installed. What is missing is the workspace
|
|
176
|
-
itself
|
|
177
|
-
|
|
178
|
-
user has just delegated precisely so they would not have to know what to type.
|
|
176
|
+
itself. The user delegated onboarding so they would not have to know what to type next, so do not
|
|
177
|
+
end with a request to run `harness`.
|
|
179
178
|
|
|
180
179
|
So **invoke `harness` yourself, now**, as the last step of this phase. Say what you are doing in one
|
|
181
180
|
line, then do it:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Register & Profile — the first-contact question and how it persists
|
|
2
2
|
|
|
3
|
-
This file holds the runtime detail behind the SKILL.md section "First contact". It defines: the first-contact question, the register it sets, the exact `02-DOCS` file formats, and the rule every downstream skill follows.
|
|
3
|
+
This file holds the runtime detail behind the SKILL.md section "First contact". It defines: the first-contact question, the register it sets, the exact `02-DOCS` file formats, and the rule every downstream skill follows.
|
|
4
4
|
|
|
5
5
|
## Why this matters
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Recommend Skills — the skill map, sample printouts & the "siempre 3 opciones" pattern
|
|
2
2
|
|
|
3
|
-
Phase 3 detail. Map discovery to individual rsc skills,
|
|
3
|
+
Phase 3 detail. Map discovery to individual rsc skills, propose the exact
|
|
4
4
|
`npx @ericrisco/rsc add` commands, and run the requirements-first 3-option decision pattern
|
|
5
|
-
for any significant choice.
|
|
6
|
-
|
|
5
|
+
for any significant choice. With a terminal, run them yourself after a one-word
|
|
6
|
+
confirm; only without a shell, print them for the user to run.
|
|
7
7
|
|
|
8
8
|
## The skill map
|
|
9
9
|
|
|
@@ -38,7 +38,7 @@ npx @ericrisco/rsc add <skill> [<skill> ...]
|
|
|
38
38
|
|
|
39
39
|
```text
|
|
40
40
|
Based on what you described (a web app with a backend, a Next.js UI, a landing
|
|
41
|
-
page, and you want to ship it securely), install these:
|
|
41
|
+
page, and you want to ship it securely), I'll install these:
|
|
42
42
|
|
|
43
43
|
npx @ericrisco/rsc add harness # the control plane — scaffolds and governs the workspace
|
|
44
44
|
npx @ericrisco/rsc add fastapi postgresdb # the API and the database
|
|
@@ -46,33 +46,33 @@ npx @ericrisco/rsc add nextjs design # the web UI people see
|
|
|
46
46
|
npx @ericrisco/rsc add marketing # the words for your landing page
|
|
47
47
|
npx @ericrisco/rsc add security-audit deployment # ship it safely
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
Say yes and I'll install them, then build the project structure.
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
### Sample printout — non-code harness, running an agency's operations
|
|
53
53
|
|
|
54
54
|
```text
|
|
55
55
|
You're organizing how your agency runs — client emails, contracts, invoicing,
|
|
56
|
-
and you want it all findable. That's a non-code harness; install:
|
|
56
|
+
and you want it all findable. That's a non-code harness; I'll install:
|
|
57
57
|
|
|
58
58
|
npx @ericrisco/rsc add harness # your 01-TOOLS (connections) + 02-DOCS (your second brain)
|
|
59
59
|
npx @ericrisco/rsc add security-audit deployment # connect email, payments, drive — and keep credentials safe
|
|
60
60
|
npx @ericrisco/rsc add marketing # for the proposals, decks and copy you send clients
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
Say yes and I'll install them, then set up the structure that holds it all.
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
### Sample printout — greenfield AI agent
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
You want an AI agent that answers questions over your own documents.
|
|
68
|
+
You want an AI agent that answers questions over your own documents. I'll install:
|
|
69
69
|
|
|
70
70
|
npx @ericrisco/rsc add harness # the control plane
|
|
71
71
|
npx @ericrisco/rsc add building-agents # agent loops, tools, RAG
|
|
72
72
|
npx @ericrisco/rsc add fastapi postgresdb # an API + database to serve it
|
|
73
73
|
npx @ericrisco/rsc add security-audit deployment # ship it safely
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
Say yes and I'll install them and set up the workspace.
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
## The "siempre 3 opciones" decision pattern
|
|
@@ -110,20 +110,21 @@ Your legal lever (source: EU Directive 2011/7/EU on late payment; EC Late Paymen
|
|
|
110
110
|
When the user wants invoices sent by software rather than by hand, use Stripe. SDK is **stripe-node v19.1.0**; invoice status enum is `draft → open → paid | uncollectible | void` (source: Stripe API Reference; context7 /stripe/stripe-node v19.1.0; accessed 2026-06-02).
|
|
111
111
|
|
|
112
112
|
```javascript
|
|
113
|
-
// 1.
|
|
113
|
+
// 1. create the draft invoice, then 2. attach line items to it by id
|
|
114
|
+
const invoice = await stripe.invoices.create({
|
|
115
|
+
customer: customerId,
|
|
116
|
+
collection_method: 'send_invoice', // email the customer (vs charge_automatically)
|
|
117
|
+
days_until_due: 30, // due-date / payment terms
|
|
118
|
+
});
|
|
119
|
+
|
|
114
120
|
await stripe.invoiceItems.create({
|
|
115
121
|
customer: customerId,
|
|
122
|
+
invoice: invoice.id, // without it the item stays pending and the invoice is empty
|
|
116
123
|
amount: 120000, // cents — 12h consulting @ EUR 100/h
|
|
117
124
|
currency: 'eur',
|
|
118
125
|
description: '12h consulting',
|
|
119
126
|
});
|
|
120
127
|
|
|
121
|
-
const invoice = await stripe.invoices.create({
|
|
122
|
-
customer: customerId,
|
|
123
|
-
collection_method: 'send_invoice', // email the customer (vs charge_automatically)
|
|
124
|
-
days_until_due: 30, // due-date / payment terms
|
|
125
|
-
});
|
|
126
|
-
|
|
127
128
|
// 3. finalize assigns the sequential number, 4. send emails it
|
|
128
129
|
await stripe.invoices.finalizeInvoice(invoice.id);
|
|
129
130
|
await stripe.invoices.sendInvoice(invoice.id);
|
package/skills/java/SKILL.md
CHANGED
|
@@ -158,8 +158,9 @@ String describe(PaymentResult r) {
|
|
|
158
158
|
}
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
-
Java 25
|
|
162
|
-
extending exhaustiveness to primitives.
|
|
161
|
+
Java 25 previews **primitive type patterns** in `instanceof` and `switch` (e.g. `case int i`),
|
|
162
|
+
extending exhaustiveness to primitives. It is still a preview feature (JEP 507): it needs
|
|
163
|
+
`--enable-preview`, so keep it out of production code.
|
|
163
164
|
|
|
164
165
|
## Concurrency: virtual threads
|
|
165
166
|
|
|
@@ -55,9 +55,8 @@ Worked examples for each rung are in `references/gardening-playbook.md`.
|
|
|
55
55
|
|
|
56
56
|
- It carries **≥2 unrelated theses** (e.g. "Stripe retries" *and* "our refund SLA").
|
|
57
57
|
- Its `## Overview` cannot be written as **one honest paragraph**.
|
|
58
|
-
- It has grown past readability and the score signal flags it.
|
|
59
58
|
|
|
60
|
-
Why: one article = one thesis keeps scoring, linking, and retrieval meaningful. After a split, fix `> Sources:` and `> Raw:` on both halves and repair `## See Also` so they reference each other. Recipe in the playbook.
|
|
59
|
+
Length alone is a flag to review the article for a second thesis, not a reason to split. Why: one article = one thesis keeps scoring, linking, and retrieval meaningful. After a split, fix `> Sources:` and `> Raw:` on both halves and repair `## See Also` so they reference each other. Recipe in the playbook.
|
|
61
60
|
|
|
62
61
|
**Merge** near-duplicates into the **higher-scored** page; fold the loser's unique content in, then archive the loser to `wiki/<topic>/_archive/<loser>__YYYY-MM-DD.md` and redirect every inbound link to the survivor. Why: never lose history, never keep two competing truths.
|
|
63
62
|
|
|
@@ -81,7 +80,7 @@ Every article earns **≥1 inbound link** or is a conscious leaf you can justify
|
|
|
81
80
|
|
|
82
81
|
- **Conflicts:** you **flag** contradictions and the **human arbitrates**. Once they choose a winner, you may apply the resolution and annotate the loser — but you never auto-pick. Why: silently choosing a side is data corruption.
|
|
83
82
|
- **Stale answers:** mark a page or archived copy with a `> ⚠ Stale — superseded YYYY-MM-DD` note rather than rewriting history.
|
|
84
|
-
- **Compaction is bounded:**
|
|
83
|
+
- **Compaction is bounded:** a filled gap gets a `[FILLED YYYY-MM-DD]` stamp; only `[FILLED]` gaps **older than 90 days** may be removed from `gaps.md`, in Deep Improve, with a single compaction marker prepended to `log.md`. Open gaps are never deleted.
|
|
85
84
|
- **Log every prune** by prepending to `wiki/log.md`.
|
|
86
85
|
|
|
87
86
|
A full worked prune session (stale + superseded + conflict + gap compaction, all logged) is in `references/gardening-playbook.md`.
|
|
@@ -92,7 +91,7 @@ Inherited from `../harness/references/wiki-protocol.md` — do not override them
|
|
|
92
91
|
|
|
93
92
|
1. **Preserve before overwrite.** Never overwrite an article without first copying the old version to `wiki/<topic>/_archive/<article>__YYYY-MM-DD.md`.
|
|
94
93
|
2. **Never auto-resolve a conflict.** Flag it; the human arbitrates.
|
|
95
|
-
3. **The reserved files only grow.** Log every change in `wiki/log.md`, the OKF reserved change-log: new entries are **prepended at the top (newest first)**, ISO 8601 dates. `gaps.md` is the append-only one — new entries go at the bottom. Past entries in either are immutable: a gap gets a `[FILLED YYYY-MM-DD]` stamp, nothing is
|
|
94
|
+
3. **The reserved files only grow.** Log every change in `wiki/log.md`, the OKF reserved change-log: new entries are **prepended at the top (newest first)**, ISO 8601 dates. `gaps.md` is the append-only one — new entries go at the bottom. Past entries in either are immutable: a gap gets a `[FILLED YYYY-MM-DD]` stamp, and nothing is edited out or deleted except the bounded compaction above.
|
|
96
95
|
4. **Never touch an article whose `timestamp` is < 24h ago** without explicit user say-so. Why: it is likely still being worked. (`timestamp` is the OKF last-meaningful-edit field, ISO 8601 — see `../harness/references/wiki-protocol.md` "## Conventions".)
|
|
97
96
|
|
|
98
97
|
## Anti-patterns
|
|
@@ -84,8 +84,8 @@ unresolved conflict annotation, and a pile of old `[FILLED]` gaps.
|
|
|
84
84
|
claim with `> Superseded by [winner](./winner.md) per owner decision YYYY-MM-DD`
|
|
85
85
|
(standard markdown link, never a wikilink) and clear the conflict annotation. Log.
|
|
86
86
|
4. **Gap compaction:** only `[FILLED YYYY-MM-DD]` gaps **older than 90 days** may
|
|
87
|
-
be
|
|
88
|
-
|
|
87
|
+
be removed from `gaps.md`, recorded by a single marker line prepended to `log.md`
|
|
88
|
+
(newest first). Open gaps are never deleted.
|
|
89
89
|
|
|
90
90
|
## `wiki/log.md` entry shapes
|
|
91
91
|
|
|
@@ -117,7 +117,7 @@ Superseded by stripe-webhook-retry-policy.md. Removed from index.md.
|
|
|
117
117
|
Conflict on retry window arbitrated by owner: 3 days wins. Loser claim annotated. conflict_count cleared.
|
|
118
118
|
|
|
119
119
|
## [2026-06-02] prune | compact | gaps.md
|
|
120
|
-
Compacted 4 [FILLED] gaps older than 90 days into this marker. No gap
|
|
120
|
+
Compacted 4 [FILLED] gaps older than 90 days into this marker. No open gap deleted.
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
Keep entries terse and factual: date, op, target paths, one-line why. The log is
|
|
@@ -108,7 +108,7 @@ sealed interface ArticlesUiState {
|
|
|
108
108
|
|
|
109
109
|
@HiltViewModel
|
|
110
110
|
class ArticlesViewModel @Inject constructor(
|
|
111
|
-
repository: ArticleRepository,
|
|
111
|
+
private val repository: ArticleRepository,
|
|
112
112
|
) : ViewModel() {
|
|
113
113
|
val uiState: StateFlow<ArticlesUiState> =
|
|
114
114
|
repository.observeArticles()
|
|
@@ -119,6 +119,10 @@ class ArticlesViewModel @Inject constructor(
|
|
|
119
119
|
started = SharingStarted.WhileSubscribed(5_000),
|
|
120
120
|
initialValue = ArticlesUiState.Loading,
|
|
121
121
|
)
|
|
122
|
+
|
|
123
|
+
fun refresh() {
|
|
124
|
+
viewModelScope.launch { repository.refresh() }
|
|
125
|
+
}
|
|
122
126
|
}
|
|
123
127
|
```
|
|
124
128
|
|
|
@@ -127,9 +131,12 @@ off-screen:
|
|
|
127
131
|
|
|
128
132
|
```kotlin
|
|
129
133
|
@Composable
|
|
130
|
-
fun ArticlesRoute(
|
|
134
|
+
fun ArticlesRoute(
|
|
135
|
+
onOpen: (String) -> Unit,
|
|
136
|
+
viewModel: ArticlesViewModel = hiltViewModel(),
|
|
137
|
+
) {
|
|
131
138
|
val state by viewModel.uiState.collectAsStateWithLifecycle()
|
|
132
|
-
ArticlesScreen(state = state, onRetry = viewModel::refresh)
|
|
139
|
+
ArticlesScreen(state = state, onRetry = viewModel::refresh, onOpen = onOpen)
|
|
133
140
|
}
|
|
134
141
|
```
|
|
135
142
|
|
|
@@ -37,7 +37,6 @@ kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serializa
|
|
|
37
37
|
|
|
38
38
|
[plugins]
|
|
39
39
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
|
40
|
-
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
|
41
40
|
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" } # the Compose compiler plugin
|
|
42
41
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
|
43
42
|
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
|
@@ -53,7 +52,6 @@ tracks the Kotlin version automatically.
|
|
|
53
52
|
```kotlin
|
|
54
53
|
plugins {
|
|
55
54
|
alias(libs.plugins.android.application) apply false
|
|
56
|
-
alias(libs.plugins.kotlin.android) apply false
|
|
57
55
|
alias(libs.plugins.kotlin.compose) apply false
|
|
58
56
|
alias(libs.plugins.kotlin.serialization) apply false
|
|
59
57
|
alias(libs.plugins.ksp) apply false
|
|
@@ -65,8 +63,7 @@ plugins {
|
|
|
65
63
|
|
|
66
64
|
```kotlin
|
|
67
65
|
plugins {
|
|
68
|
-
alias(libs.plugins.android.application)
|
|
69
|
-
alias(libs.plugins.kotlin.android)
|
|
66
|
+
alias(libs.plugins.android.application) // AGP 9 compiles Kotlin itself: no org.jetbrains.kotlin.android
|
|
70
67
|
alias(libs.plugins.kotlin.compose) // Compose compiler — replaces composeOptions
|
|
71
68
|
alias(libs.plugins.kotlin.serialization)
|
|
72
69
|
alias(libs.plugins.ksp) // KSP, never kapt, for Room + Hilt
|
|
@@ -71,7 +71,7 @@ The H1 carries the *what*; the subhead carries the *benefit*; both must stay con
|
|
|
71
71
|
|
|
72
72
|
```text
|
|
73
73
|
Bad — "Reimagine The Future Of Financial Operations" (clever, 6 words, says nothing)
|
|
74
|
-
Good — "Expense reports done in 30 seconds" (clear,
|
|
74
|
+
Good — "Expense reports done in 30 seconds" (clear, 6 words, names the outcome)
|
|
75
75
|
Subhead: For finance teams drowning in receipts — snap, submit, approved.
|
|
76
76
|
```
|
|
77
77
|
|
package/skills/laravel/SKILL.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: laravel
|
|
3
|
-
description: "Use when building or extending a Laravel 11
|
|
3
|
+
description: "Use when building or extending a Laravel 11+ app — Eloquent models, migrations and relationships, routing with controllers and Form Requests, queues and background jobs, framework-native security (validation, mass-assignment, policies, signed URLs, rate limiting), and Pest/PHPUnit feature tests. NOT pure PHP language or toolchain work (that is `php`)."
|
|
4
4
|
tags: [laravel, php, eloquent, queues, pest, artisan]
|
|
5
5
|
recommends: [php, mysql, redis, api-design, security-audit, testing-web]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
# Laravel (11
|
|
9
|
+
# Laravel (11–13 era)
|
|
10
10
|
|
|
11
|
-
Build Laravel the way the framework ships **today** — Laravel
|
|
12
|
-
PHP 8.
|
|
11
|
+
Build Laravel the way the framework ships **today** — Laravel 13 (released 2026-03-17,
|
|
12
|
+
PHP 8.3–8.5), on the slimmed skeleton Laravel 11 introduced. That means **no
|
|
13
13
|
`app/Http/Kernel.php` and no `app/Console/Kernel.php`**: middleware, routing, exception
|
|
14
14
|
handling and providers are all configured in **`bootstrap/app.php`**, and scheduled tasks
|
|
15
15
|
live in **`routes/console.php`**. Generate that structure, not 2019 Laravel.
|
|
@@ -26,18 +26,18 @@ A wrong version assumption generates dead code. Detect the version and skeleton
|
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
composer show laravel/framework # exact installed version
|
|
29
|
-
ls bootstrap/app.php # present -> L11
|
|
29
|
+
ls bootstrap/app.php # present -> L11+ slim skeleton
|
|
30
30
|
ls app/Http/Kernel.php 2>/dev/null # present -> L10 or older (Kernel era)
|
|
31
31
|
php artisan --version # confirms runtime + version
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
If `bootstrap/app.php` exists and `app/Http/Kernel.php` does **not**, you are on L11
|
|
34
|
+
If `bootstrap/app.php` exists and `app/Http/Kernel.php` does **not**, you are on L11+ —
|
|
35
35
|
use the modern idioms below. Then pick your path:
|
|
36
36
|
|
|
37
37
|
| Situation | Do |
|
|
38
38
|
|---|---|
|
|
39
39
|
| Greenfield | `laravel new <app>`, then a starter kit: React (React 19 + TS + Inertia 2 + shadcn/ui), Vue (Vue 3 + Inertia 2 + shadcn-vue), or Livewire (Livewire 3 + Volt + Flux UI). Optional WorkOS AuthKit for auth. |
|
|
40
|
-
| Brownfield L11
|
|
40
|
+
| Brownfield L11+ | Follow the repo's existing conventions; do not "reorganize" into folders it dropped. |
|
|
41
41
|
| Pre-11 (Kernel era) | Migrate to `bootstrap/app.php` deliberately; move Kernel middleware to `withMiddleware()`, schedule to `routes/console.php`. Treat as a project, not an inline tweak. |
|
|
42
42
|
|
|
43
43
|
## The slim structure (where things live now)
|
|
@@ -55,7 +55,7 @@ app/Policies/ # authorization policies
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
```php
|
|
58
|
-
// Bad: hunting for or editing app/Http/Kernel.php to register middleware (L11
|
|
58
|
+
// Bad: hunting for or editing app/Http/Kernel.php to register middleware (L11+ deleted it).
|
|
59
59
|
// Good: bootstrap/app.php
|
|
60
60
|
return Application::configure(basePath: dirname(__DIR__))
|
|
61
61
|
->withRouting(web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php')
|
|
@@ -191,7 +191,7 @@ Bus::batch([new ProcessOrder($a), new ProcessOrder($b)])
|
|
|
191
191
|
| Simple, low volume, no extra infra | `database` driver (a `jobs` table) |
|
|
192
192
|
| High throughput + a dashboard (retries, runtime, failures) | **Redis + Horizon** — Horizon manages the workers and gives you the monitor |
|
|
193
193
|
|
|
194
|
-
Schedule recurring work in `routes/console.php` (the L11
|
|
194
|
+
Schedule recurring work in `routes/console.php` (the L11+ home for the scheduler — there
|
|
195
195
|
is no `app/Console/Kernel.php`):
|
|
196
196
|
|
|
197
197
|
```php
|
|
@@ -269,14 +269,14 @@ over rolling your own.
|
|
|
269
269
|
| Pattern | Why it is bad | Do instead |
|
|
270
270
|
|---|---|---|
|
|
271
271
|
| `protected $guarded = []` on a user-facing model | any request column becomes mass-assignable (`is_admin`, `balance`) | explicit `$fillable` allowlist |
|
|
272
|
-
| Hunting for / re-creating `app/Http/Kernel.php` on L11
|
|
272
|
+
| Hunting for / re-creating `app/Http/Kernel.php` on L11+ | the file was deleted; your middleware never registers | configure in `bootstrap/app.php` `withMiddleware()` |
|
|
273
273
|
| Lazy access inside a loop/Blade (`$post->author` per row) | N+1 — one query per row | eager load with `with()` |
|
|
274
274
|
| Fat controllers / logic in `routes/web.php` | untestable, unreusable, no authz boundary | thin controller + Form Request + service/model |
|
|
275
275
|
| Asserting a queued job's *side effects* in a test | sync driver runs it inline — you test execution, not dispatch | `Queue::fake()` + `Queue::assertPushed()` |
|
|
276
276
|
| `env()` outside `config/*.php` | returns `null` once `config:cache` runs in prod | read via `config()`; `env()` only inside config files |
|
|
277
277
|
| `$tries` unset on a flaky job | one transient failure = permanent failure | set `$tries` + `backoff()` |
|
|
278
278
|
| Committing real secrets in `.env` | leaks credentials into history | `.env` is git-ignored; commit `.env.example` only |
|
|
279
|
-
| Old `$casts = [...]` array (
|
|
279
|
+
| Old `$casts = [...]` array (legacy form, still supported) | misses the L11+ `casts()` method idioms | the `casts(): array` method |
|
|
280
280
|
|
|
281
281
|
## Verify
|
|
282
282
|
|
package/skills/lead-gen/SKILL.md
CHANGED
|
@@ -10,9 +10,9 @@ origin: risco
|
|
|
10
10
|
|
|
11
11
|
*You turn "we sell X to Y" into a deduplicated, scored, compliance-cleared roster of named accounts and people. You define the target, you build the list, you rank it — then you stop. What you produce is a prioritized roster plus the rationale that ranked it; the hand-off is the finish line, not the campaign.*
|
|
12
12
|
|
|
13
|
-
## The pipeline — three phases
|
|
13
|
+
## The pipeline — three phases and a compliance gate
|
|
14
14
|
|
|
15
|
-
Run these in order. Each
|
|
15
|
+
Run these in order. Each phase is a hard stop: do not advance until the prior phase produced its artifact.
|
|
16
16
|
|
|
17
17
|
1. **Define the target** → a falsifiable ICP + persona. *Why: you cannot dedupe or score against a vibe; a vague ICP guarantees reps chase the wrong companies.*
|
|
18
18
|
2. **Build the list** → sourced, deduped, verified rows with provenance. *Why: an unverified or undocumented list is a deliverability and legal liability before a single email goes out.*
|
|
@@ -120,7 +120,7 @@ A list that ships without these fields is not done. Run both checklists; the str
|
|
|
120
120
|
- [ ] A documented **Legitimate Interest Assessment (LIA)** exists.
|
|
121
121
|
- [ ] Every email will carry the data-source disclosure + a privacy-policy link + a one-click opt-out.
|
|
122
122
|
- [ ] Objections will be honored.
|
|
123
|
-
- [ ] **No
|
|
123
|
+
- [ ] **No bought or scraped list emailed as-is** — every row, including rows from a data vendor (Apollo, ZoomInfo), carries documented provenance and falls under the LIA; a list with no provenance confers no lawful basis.
|
|
124
124
|
|
|
125
125
|
**CAN-SPAM (US).** *(ftc.gov CAN-SPAM compliance guide, accessed 2026-06-02.)*
|
|
126
126
|
|
|
@@ -80,7 +80,7 @@ Before publishing as an org, confirm the authed member holds an eligible **page
|
|
|
80
80
|
Current organic endpoint: `POST https://api.linkedin.com/rest/posts`. The legacy `/v2/ugcPosts` and `/v2/shares` are deprecated — migrate to the versioned `/rest/posts`. Pin the version **once**:
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
|
-
LINKEDIN_VERSION=202605 #
|
|
83
|
+
LINKEDIN_VERSION=202605 # supported until 2027-05-15; 202505 is sunset — pinning a sunset version breaks
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
Every versioned call carries **two** headers (omit either and you get 426/400):
|
|
@@ -8,7 +8,7 @@ Linkedin-Version: 202605
|
|
|
8
8
|
X-Restli-Protocol-Version: 2.0.0
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
`202605` is
|
|
11
|
+
`202605` (`li-lms-2026-05`) is a supported version, sunset 2027-05-15; newer monthly versions exist — check the [API migration status](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/migrations#api-migration-status) table before pinning. `202505` is sunset — do not pin it.
|
|
12
12
|
|
|
13
13
|
## Publish payloads — `POST /rest/posts`
|
|
14
14
|
|
|
@@ -61,7 +61,7 @@ Rules, each with its why:
|
|
|
61
61
|
| "Some thoughts on remote work and productivity." | "We went fully remote and our output dropped 30%. The fix wasn't more meetings." |
|
|
62
62
|
| "Happy to announce our new feature is live!" | "It took 4 rewrites and a near-mutiny to ship one button. Worth it." |
|
|
63
63
|
|
|
64
|
-
For the full
|
|
64
|
+
For the full 10-pattern library (number-lead, false-start, contrarian, open-loop, named-stakes), see `references/hooks-and-formats.md`.
|
|
65
65
|
|
|
66
66
|
## The story arc and the character budget
|
|
67
67
|
|
|
@@ -67,7 +67,7 @@ When you do send a note, you do **not** write it here — hand the brief (the ho
|
|
|
67
67
|
|
|
68
68
|
| Account | Realistic weekly cap | Daily target | Health rule |
|
|
69
69
|
| --- | --- | --- | --- |
|
|
70
|
-
| Free | ~100/wk | ~
|
|
70
|
+
| Free | ~100/wk | ~16/weekday, stay under ~80/wk | Pause and warm more if acceptance drops below ~30%. |
|
|
71
71
|
| Premium / Sales Nav | up to ~200/wk | up to ~40/day | Only with strong SSI and acceptance >40%; otherwise treat as free. |
|
|
72
72
|
|
|
73
73
|
Over the cap, requests get throttled or the account flagged. Below ~30% acceptance you are spraying — go back to phase 2 instead of pushing volume, and withdraw stale pending requests before they pile up.
|
|
@@ -123,9 +123,9 @@ Full column spec, the outcome enum, a filled 5-row example, and the weekly-revie
|
|
|
123
123
|
|
|
124
124
|
**Weekly review ritual** (15 min, same day each week). Compute from the ledger:
|
|
125
125
|
|
|
126
|
-
- **Acceptance %** = accepted ÷
|
|
127
|
-
- **Post-accept reply %** = replied ÷ accepted.
|
|
128
|
-
- **Conversations → calls %** = call_booked ÷ conversation.
|
|
126
|
+
- **Acceptance %** = accepted-or-better ÷ all requests sent.
|
|
127
|
+
- **Post-accept reply %** = replied-or-better ÷ accepted-or-better.
|
|
128
|
+
- **Conversations → calls %** = call_booked ÷ (conversation + call_booked).
|
|
129
129
|
- **Touches/week** = rows added this week (is the loop actually running?).
|
|
130
130
|
|
|
131
131
|
If acceptance < ~30%, warm harder (phase 2). If reply < ~10%, your hooks are weak (better brief to cold-outreach). If touches/week is near zero, the loop stopped — that's the real failure.
|
|
@@ -37,7 +37,7 @@ Extract, in this order:
|
|
|
37
37
|
5. **SSI trend** — the 0-100 score's direction over the trailing window.
|
|
38
38
|
6. **Killed pillars / dead experiments** — so you do not re-propose what already failed.
|
|
39
39
|
|
|
40
|
-
If the directory is empty or absent, **bootstrap it** — create `02-DOCS/wiki/linkedin/` with `positioning.md`, `decisions/`, and `what-worked.md`. Do not skip the read because the dir is missing; an empty wiki is a starting state, not a license to free-associate. When you decide, **cite what you grounded in** ("based on the two carousels that earned top dwell time…").
|
|
40
|
+
If the directory is empty or absent, **bootstrap it** — create `02-DOCS/wiki/linkedin/` with `positioning.md`, `pillars.md`, `decisions/`, and `what-worked.md`. Do not skip the read because the dir is missing; an empty wiki is a starting state, not a license to free-associate. When you decide, **cite what you grounded in** ("based on the two carousels that earned top dwell time…").
|
|
41
41
|
|
|
42
42
|
Full file layout and templates: `references/wiki-records.md`.
|
|
43
43
|
|
|
@@ -96,7 +96,7 @@ If any answer is NO, lower the cadence. A held 3/week beats an aspirational 5/we
|
|
|
96
96
|
|
|
97
97
|
## 5. The social-selling rhythm — engage-vs-create and SSI
|
|
98
98
|
|
|
99
|
-
**Engagement outweighs raw posting frequency for inbound.** Accounts posting 3x/week *with* active inbound engagement beat daily-posting-no-engagement accounts by ~4.2x in lead gen. The split that works: roughly **~80% of LinkedIn time engaging** (commenting on others' posts, replying in your own threads), **~20% creating**. "
|
|
99
|
+
**Engagement outweighs raw posting frequency for inbound.** Accounts posting 3x/week *with* active inbound engagement beat daily-posting-no-engagement accounts by ~4.2x in lead gen. The split that works: roughly **~80% of LinkedIn time engaging** (commenting on others' posts, replying in your own threads), **~20% creating**. "12 min creating + 48 min engaging" beats "60 min creating + 0 engaging." Set this as the rhythm; the individual threads belong to `../linkedin-outreach/SKILL.md`.
|
|
100
100
|
|
|
101
101
|
**SSI as a habit system, not a vanity number.** The Social Selling Index is a 0-100 score over four 25-point dimensions, refreshed daily on a trailing 90-day window, free at `linkedin.com/sales/ssi`:
|
|
102
102
|
|
|
@@ -70,7 +70,7 @@ from litellm import Router
|
|
|
70
70
|
router = Router(
|
|
71
71
|
model_list=[
|
|
72
72
|
{"model_name": "smart",
|
|
73
|
-
"litellm_params": {"model": "anthropic/claude-sonnet-
|
|
73
|
+
"litellm_params": {"model": "anthropic/claude-sonnet-5-5", "timeout": 30}},
|
|
74
74
|
{"model_name": "smart-backup",
|
|
75
75
|
"litellm_params": {"model": "openai/gpt-4o", "timeout": 30}},
|
|
76
76
|
],
|
|
@@ -122,7 +122,7 @@ The cheapest, fastest, most reliable call is the one you never made — so cache
|
|
|
122
122
|
|
|
123
123
|
## Cost & latency control
|
|
124
124
|
|
|
125
|
-
- **Model-tier routing, cheap-first.** Run the cheap tier, escalate only on low confidence or detected complexity. Anchor prices (Anthropic, 2026): Haiku
|
|
125
|
+
- **Model-tier routing, cheap-first.** Run the cheap tier, escalate only on low confidence or detected complexity. Anchor prices (Anthropic, checked 2026-11): Haiku 5.5 $0.10/$0.50 per M in/out (prompts up to 100K tokens), Sonnet 5.5 $2/$10, Opus 5.5 $4/$20 — flagship-for-everything is up to 40× the cost for zero quality gain on easy calls.
|
|
126
126
|
- **Budget caps that ABORT, not just log.** Per-request and per-tenant caps that kill a runaway loop. A logged-but-uncapped budget still lets a bug spend $10k overnight.
|
|
127
127
|
- **Token and latency budgets per step**, and stream output for perceived latency on user-facing calls.
|
|
128
128
|
|
|
@@ -10,7 +10,7 @@ from litellm import Router
|
|
|
10
10
|
router = Router(
|
|
11
11
|
model_list=[
|
|
12
12
|
{"model_name": "smart",
|
|
13
|
-
"litellm_params": {"model": "anthropic/claude-sonnet-
|
|
13
|
+
"litellm_params": {"model": "anthropic/claude-sonnet-5-5",
|
|
14
14
|
"api_key": "os.environ/ANTHROPIC_API_KEY",
|
|
15
15
|
"timeout": 30, "order": 1}},
|
|
16
16
|
{"model_name": "smart", # same group, order 2 = first internal fallback
|
|
@@ -18,7 +18,7 @@ router = Router(
|
|
|
18
18
|
"api_key": "os.environ/OPENAI_API_KEY",
|
|
19
19
|
"timeout": 30, "order": 2}},
|
|
20
20
|
{"model_name": "cheap",
|
|
21
|
-
"litellm_params": {"model": "anthropic/claude-haiku-
|
|
21
|
+
"litellm_params": {"model": "anthropic/claude-haiku-5-5",
|
|
22
22
|
"api_key": "os.environ/ANTHROPIC_API_KEY",
|
|
23
23
|
"timeout": 20}},
|
|
24
24
|
{"model_name": "long-ctx",
|
|
@@ -48,7 +48,7 @@ Use `os.environ/VAR` indirection (proxy YAML) or read `os.environ[...]` in SDK.
|
|
|
48
48
|
model_list:
|
|
49
49
|
- model_name: smart
|
|
50
50
|
litellm_params:
|
|
51
|
-
model: anthropic/claude-sonnet-
|
|
51
|
+
model: anthropic/claude-sonnet-5-5
|
|
52
52
|
api_key: os.environ/ANTHROPIC_API_KEY
|
|
53
53
|
timeout: 30
|
|
54
54
|
- model_name: smart-backup
|
|
@@ -78,7 +78,12 @@ shipment = client.shipment.create(
|
|
|
78
78
|
parcel={"length": 9, "width": 6, "height": 3, "weight": 12}, # drives DIM
|
|
79
79
|
)
|
|
80
80
|
# Filter to services that hit the promised delivery date, THEN take the cheapest.
|
|
81
|
-
|
|
81
|
+
on_time = [
|
|
82
|
+
r for r in shipment.rates
|
|
83
|
+
if r.carrier in {"USPS", "UPS", "FedEx"}
|
|
84
|
+
and r.delivery_days is not None and r.delivery_days <= 2 # the 2-day promise
|
|
85
|
+
]
|
|
86
|
+
rate = min(on_time, key=lambda r: float(r.rate))
|
|
82
87
|
bought = client.shipment.buy(shipment.id, rate=rate)
|
|
83
88
|
# `bought.tracker` is now live (pre_transit → ... → delivered).
|
|
84
89
|
```
|
|
@@ -153,7 +153,7 @@ The project's forbidden phrases are enforced, not suggested. Before handing over
|
|
|
153
153
|
published, write it to a scratch file and run `npx @ericrisco/rsc copy check <file>`. On
|
|
154
154
|
`RSC_COPY_VIOLATION`, rewrite and check again. A negation still counts ("this is not X" uses X), so
|
|
155
155
|
say what it is instead. When the person states a new ban, record it in
|
|
156
|
-
`02-DOCS/wiki/brand/voice
|
|
156
|
+
`02-DOCS/wiki/brand/voice.md` under `## Never use`, one phrase per bullet (`word*` also covers
|
|
157
157
|
its derivatives). In Claude Code a Stop hook runs the same check on your final answer.
|
|
158
158
|
|
|
159
159
|
## Anti-patterns
|