@ericrisco/rsc 4.1.11 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/manifest.json +6 -6
  2. package/package.json +2 -1
  3. package/scripts/lib/prompt-audit.js +110 -0
  4. package/scripts/lib/review-ledger.js +14 -3
  5. package/scripts/prompt-audit.js +48 -0
  6. package/scripts/rsc.js +4 -2
  7. package/skills/ads/SKILL.md +7 -7
  8. package/skills/agent-safety/SKILL.md +1 -1
  9. package/skills/asdd/SKILL.md +2 -2
  10. package/skills/asdd/references/model-routing.md +5 -5
  11. package/skills/astro/SKILL.md +1 -1
  12. package/skills/astro/scripts/verify.sh +1 -1
  13. package/skills/author-skill/SKILL.md +5 -5
  14. package/skills/author-skill/references/eval-authoring.md +6 -7
  15. package/skills/automation-flows/SKILL.md +1 -1
  16. package/skills/building-agents/SKILL.md +17 -12
  17. package/skills/building-agents/references/agent-loops-and-harness.md +3 -2
  18. package/skills/building-agents/references/evals-and-observability.md +7 -5
  19. package/skills/building-agents/references/provider-abstraction.md +31 -30
  20. package/skills/chrome-extension/SKILL.md +1 -1
  21. package/skills/cold-outreach/SKILL.md +1 -1
  22. package/skills/cold-outreach/references/templates.md +7 -3
  23. package/skills/compliance/SKILL.md +8 -8
  24. package/skills/compliance/evals/README.md +1 -1
  25. package/skills/compliance/evals/cases.yaml +2 -2
  26. package/skills/compliance/references/frameworks.md +7 -7
  27. package/skills/content-engine/SKILL.md +1 -1
  28. package/skills/cost-tracking/SKILL.md +29 -21
  29. package/skills/cost-tracking/references/pricing-tables.md +6 -5
  30. package/skills/course-builder/SKILL.md +4 -3
  31. package/skills/course-builder/references/outcomes-and-blooms.md +1 -1
  32. package/skills/course-storytelling/SKILL.md +1 -1
  33. package/skills/course-storytelling/references/concept-landing-recipe.md +1 -1
  34. package/skills/csharp-dotnet/SKILL.md +2 -2
  35. package/skills/data-policy/SKILL.md +1 -1
  36. package/skills/db-migrations/SKILL.md +6 -5
  37. package/skills/deep-learning/SKILL.md +2 -2
  38. package/skills/deployment/SKILL.md +1 -1
  39. package/skills/deployment/references/dockerfiles-by-stack.md +1 -1
  40. package/skills/design/engine/RUN.md +1 -1
  41. package/skills/django/SKILL.md +1 -1
  42. package/skills/docker/SKILL.md +1 -1
  43. package/skills/document-processing/SKILL.md +2 -1
  44. package/skills/electron/SKILL.md +2 -1
  45. package/skills/email-connector/SKILL.md +2 -1
  46. package/skills/email-deliverability/SKILL.md +2 -2
  47. package/skills/embeddings-search/SKILL.md +3 -3
  48. package/skills/error-handling/SKILL.md +4 -2
  49. package/skills/expo/SKILL.md +1 -1
  50. package/skills/fable-operator/SKILL.md +2 -2
  51. package/skills/fal/SKILL.md +1 -1
  52. package/skills/fastapi/SKILL.md +18 -9
  53. package/skills/fastapi/references/database.md +19 -10
  54. package/skills/finance-ops/SKILL.md +1 -1
  55. package/skills/firebase/SKILL.md +1 -1
  56. package/skills/flutter/SKILL.md +1 -1
  57. package/skills/forecasting/SKILL.md +1 -1
  58. package/skills/forecasting/references/accuracy-and-backtesting.md +1 -1
  59. package/skills/forecasting/references/methods-cheatsheet.md +3 -3
  60. package/skills/ftd/SKILL.md +2 -3
  61. package/skills/fundraising/references/funnel-math.md +1 -1
  62. package/skills/gamedev-multiplayer/SKILL.md +2 -2
  63. package/skills/gamedev-multiplayer/references/unity-and-unreal-netcode.md +4 -4
  64. package/skills/gamedev-pathing/SKILL.md +1 -1
  65. package/skills/gamedev-physics/SKILL.md +3 -2
  66. package/skills/gamedev-physics/references/character-controllers.md +1 -1
  67. package/skills/gamedev-shaders/SKILL.md +2 -4
  68. package/skills/gamedev-shipping/SKILL.md +8 -5
  69. package/skills/gamedev-shipping/references/mobile-and-desktop.md +7 -3
  70. package/skills/gcp-essentials/SKILL.md +11 -8
  71. package/skills/gcp-essentials/references/networking-and-sql.md +4 -4
  72. package/skills/gdpr-privacy/references/dpa-and-transfers.md +1 -1
  73. package/skills/git-workflow/SKILL.md +3 -3
  74. package/skills/github-actions/SKILL.md +12 -12
  75. package/skills/github-actions/evals/cases.yaml +1 -1
  76. package/skills/github-actions/references/caching-and-matrix.md +5 -5
  77. package/skills/github-actions/references/oidc-deploys.md +4 -4
  78. package/skills/go/SKILL.md +3 -3
  79. package/skills/google-workspace/SKILL.md +15 -11
  80. package/skills/google-workspace/references/api-recipes.md +2 -2
  81. package/skills/google-workspace/references/auth-setup.md +1 -1
  82. package/skills/harness/SKILL.md +4 -3
  83. package/skills/harness/references/daily-curation-automation.md +1 -1
  84. package/skills/harness/references/providers.yaml +4 -4
  85. package/skills/harness/references/wiki-protocol.md +2 -1
  86. package/skills/hetzner/SKILL.md +13 -12
  87. package/skills/hetzner/references/cloud-init.md +4 -2
  88. package/skills/hetzner/references/plans-and-locations.md +15 -14
  89. package/skills/hiring/SKILL.md +3 -3
  90. package/skills/htmx/SKILL.md +4 -4
  91. package/skills/htmx/references/server-contract.md +2 -2
  92. package/skills/huggingface/SKILL.md +15 -15
  93. package/skills/huggingface/evals/cases.yaml +1 -1
  94. package/skills/huggingface/references/endpoints-and-spaces.md +5 -3
  95. package/skills/huggingface/references/hub-and-cli.md +4 -4
  96. package/skills/huggingface/references/inference-providers.md +1 -1
  97. package/skills/huggingface/scripts/verify.sh +3 -2
  98. package/skills/implement/SKILL.md +3 -3
  99. package/skills/init/SKILL.md +2 -3
  100. package/skills/init/references/accompaniment-and-profile.md +1 -1
  101. package/skills/init/references/recommend-skills.md +9 -9
  102. package/skills/instagram-api/SKILL.md +9 -9
  103. package/skills/instagram-api/evals/cases.yaml +1 -1
  104. package/skills/instagram-api/references/insights-metrics.md +1 -1
  105. package/skills/instagram-api/references/publish-reel.md +8 -7
  106. package/skills/invoicing/SKILL.md +8 -7
  107. package/skills/java/SKILL.md +3 -2
  108. package/skills/knowledge-ops/SKILL.md +3 -4
  109. package/skills/knowledge-ops/references/gardening-playbook.md +3 -3
  110. package/skills/kotlin-android/SKILL.md +10 -3
  111. package/skills/kotlin-android/references/gradle-setup.md +1 -4
  112. package/skills/landing-copy/SKILL.md +1 -1
  113. package/skills/laravel/SKILL.md +11 -11
  114. package/skills/lead-gen/SKILL.md +3 -3
  115. package/skills/linkedin-api/SKILL.md +3 -3
  116. package/skills/linkedin-api/evals/cases.yaml +1 -1
  117. package/skills/linkedin-api/references/api-reference.md +3 -3
  118. package/skills/linkedin-content/SKILL.md +1 -1
  119. package/skills/linkedin-outreach/SKILL.md +4 -4
  120. package/skills/linkedin-strategy/SKILL.md +2 -2
  121. package/skills/llm-pipeline/SKILL.md +2 -2
  122. package/skills/llm-pipeline/references/litellm-router.md +3 -3
  123. package/skills/logistics-ops/SKILL.md +6 -1
  124. package/skills/marketing/SKILL.md +1 -1
  125. package/skills/marketing/references/seo-geo.md +2 -2
  126. package/skills/mongodb/SKILL.md +3 -2
  127. package/skills/mongodb/references/aggregation.md +3 -2
  128. package/skills/mysql/SKILL.md +1 -1
  129. package/skills/mysql/references/mysql-vs-mariadb.md +1 -1
  130. package/skills/n8n/SKILL.md +1 -1
  131. package/skills/nextjs/SKILL.md +1 -1
  132. package/skills/observability/SKILL.md +1 -1
  133. package/skills/observability/references/instrumentation-recipes.md +1 -1
  134. package/skills/ollama/SKILL.md +1 -1
  135. package/skills/open-weights/SKILL.md +3 -4
  136. package/skills/orient/SKILL.md +4 -3
  137. package/skills/parallel/SKILL.md +1 -1
  138. package/skills/planetscale/SKILL.md +3 -3
  139. package/skills/planetscale/references/no-foreign-keys.md +3 -3
  140. package/skills/postgresdb/SKILL.md +4 -4
  141. package/skills/presentations/SKILL.md +1 -1
  142. package/skills/prompt-engineering/SKILL.md +6 -6
  143. package/skills/prompt-engineering/evals/cases.yaml +2 -2
  144. package/skills/prompt-engineering/references/output-contracts.md +18 -23
  145. package/skills/rag/references/pipeline.md +7 -5
  146. package/skills/review/SKILL.md +5 -5
  147. package/skills/roast-me/prompts/compute.md +5 -5
  148. package/skills/roast-me/prompts/roast.md +2 -2
  149. package/skills/sdd-init/SKILL.md +3 -3
  150. package/skills/ship/SKILL.md +7 -9
  151. package/skills/shopify/SKILL.md +6 -6
  152. package/skills/shopify/references/apps-graphql.md +3 -3
  153. package/skills/skill-scout/SKILL.md +1 -1
  154. package/skills/specify/SKILL.md +3 -3
  155. package/skills/specify/references/eliciting-requirements.md +3 -3
  156. package/skills/structured-extraction/SKILL.md +7 -3
  157. package/skills/structured-extraction/references/providers.md +8 -5
  158. package/skills/svelte/SKILL.md +1 -1
  159. package/skills/swift-ios/SKILL.md +4 -4
  160. package/skills/tasks/SKILL.md +1 -1
  161. package/skills/tauri/SKILL.md +4 -3
  162. package/skills/terms-conditions/SKILL.md +2 -2
  163. package/skills/translation-l10n/SKILL.md +2 -1
  164. package/skills/typescript/SKILL.md +67 -19
  165. package/skills/typescript/evals/README.md +3 -3
  166. package/skills/typescript/evals/cases.yaml +4 -1
  167. package/skills/typescript/references/build-and-monorepo.md +82 -26
  168. package/skills/typescript/references/type-system.md +15 -4
  169. package/skills/typescript/scripts/verify.sh +20 -10
  170. package/skills/unslop/SKILL.md +1 -1
  171. package/skills/ux/SKILL.md +1 -1
  172. package/skills/vercel/SKILL.md +3 -2
  173. package/skills/vercel/references/vercel-json.md +8 -5
  174. package/skills/verify/SKILL.md +3 -3
  175. package/skills/vllm/SKILL.md +4 -2
  176. package/skills/vue-nuxt/SKILL.md +5 -5
  177. package/skills/webhooks/SKILL.md +10 -1
  178. package/skills/worktrees/SKILL.md +10 -8
  179. package/skills/youtube-ideation/SKILL.md +1 -1
  180. package/targets/agents.js +26 -17
  181. package/targets/asdd-gate.mjs +9 -1
  182. package/targets/commands.js +7 -7
@@ -449,12 +449,20 @@ export function branchCheck(
449
449
  reviewedStill(repo, sha, trunk, sello, cfg, tip || 'HEAD'),
450
450
  );
451
451
  if (best >= required) return null;
452
+ // A child repo keeps its evidence in the workspace; the panel must name the child's commit.
453
+ // Forward slashes, and single quotes around anything unusual: the line is meant to be pasted
454
+ // into a shell, and a directory named after a branch may hold `$()`, `;` or a backtick.
455
+ const at = relative(evidence, repo).split('\\').join('/');
456
+ const repoFlag =
457
+ evidence === repo
458
+ ? ''
459
+ : ` --repo ${/^[\w./-]+$/.test(at) ? at : `'${at.replace(/'/g, "'\\''")}'`}`;
452
460
  return (
453
461
  `Branch "${branch}" is risk tier 2 and its spec passes, but no review panel of ${required} lens(es) is recorded for it` +
454
462
  `${best ? ` (largest still valid: ${best})` : ''}. Tier 2 is reviewed by the full panel, not by one reviewer, and a panel covers ` +
455
463
  'the commit it was recorded on: code committed after it needs the panel again (the record is self-attested, like the sello). ' +
456
464
  `Recover: run the ${required} fresh-context refuters (correctness, security, tests) on the branch, then record it — ` +
457
- `\`npx @ericrisco/rsc review ledger panel ${slugs[0]}/closing --lenses correctness,security,tests\` — and push again. ` +
465
+ `\`npx @ericrisco/rsc review ledger panel ${slugs[0]}/closing --lenses correctness,security,tests${repoFlag}\` (run from ${evidence === repo ? 'the repository' : 'the workspace root'}) — and push again. ` +
458
466
  'To turn this gate off for the project: create `.rsc/.no-asdd-gate`.'
459
467
  );
460
468
  }
@@ -44,24 +44,24 @@ const FIXED_COMMANDS = Object.freeze([
44
44
  {
45
45
  name: 'checkpoint', kind: 'capability', backing: 'sello',
46
46
  description: 'Freeze the current candidate for review and seal it only after the required lenses approve.',
47
- body: `Use the sello backing for this checkpoint: {{ARGS}}\nRun \`npx @ericrisco/rsc sello freeze\`, complete the required review, then run \`sello approve\` only with the observed lenses. Do not treat freeze as approval.`,
47
+ body: `Checkpoint: {{ARGS}}\nRun \`npx @ericrisco/rsc sello freeze\`, complete the required review, then run \`sello approve\` only with the observed lenses. Do not treat freeze as approval.`,
48
48
  },
49
49
  skillCommand('harness-audit', 'harness'),
50
50
  skillCommand('security-audit', 'security-audit'),
51
51
  {
52
- name: 'learn', kind: 'memory', backing: 'memory:learn',
52
+ name: 'learn', kind: 'memory', backing: 'rsc memory learn',
53
53
  description: 'Propose one local lesson; saving still requires individual explicit approval.',
54
- body: `Invoke memory:learn for exactly one proposed lesson: {{ARGS}}\nAfter individual explicit approval, run \`npx @ericrisco/rsc memory learn\` with its text, evidence, scope, confidence and \`--approve\`. Without that approval, write nothing.`,
54
+ body: `For exactly one proposed lesson: {{ARGS}}\nAfter individual explicit approval, run \`npx @ericrisco/rsc memory learn\` with its text, evidence, scope, confidence and \`--approve\`. Without that approval, write nothing.`,
55
55
  },
56
56
  {
57
- name: 'save-session', kind: 'memory', backing: 'memory:save',
57
+ name: 'save-session', kind: 'memory', backing: 'rsc memory save',
58
58
  description: 'Force a local deterministic session checkpoint.',
59
- body: `Invoke memory:save with the current local session identifiers: {{ARGS}}\nRun \`npx @ericrisco/rsc memory save --session <id>\`. Persist only allowed git and SDD ledger metadata; never include conversation or file content.`,
59
+ body: `With the current local session identifiers: {{ARGS}}\nRun \`npx @ericrisco/rsc memory save --session <id>\`. Persist only allowed git and SDD ledger metadata; never include conversation or file content.`,
60
60
  },
61
61
  {
62
- name: 'resume-session', kind: 'memory', backing: 'memory:resume',
62
+ name: 'resume-session', kind: 'memory', backing: 'rsc memory resume',
63
63
  description: 'Read the bounded local continuation record for this branch and worktree.',
64
- body: `Invoke memory:resume for the current branch and worktree: {{ARGS}}\nRun \`npx @ericrisco/rsc memory resume\`. Label a nearby branch result as nearby; never merge it silently into the exact continuation.`,
64
+ body: `For the current branch and worktree: {{ARGS}}\nRun \`npx @ericrisco/rsc memory resume\`. Label a nearby branch result as nearby; never merge it silently into the exact continuation.`,
65
65
  },
66
66
  ]);
67
67