@ericrisco/rsc 4.0.4 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/README.md +4 -4
  2. package/manifest.json +78 -84
  3. package/package.json +1 -1
  4. package/scripts/lib/default-skill-floor.js +5 -1
  5. package/scripts/lib/domains.js +1 -1
  6. package/scripts/lib/recommend.js +1 -1
  7. package/scripts/lib/retired-skills.js +4 -0
  8. package/scripts/skill-migration-brief.md +1 -1
  9. package/skills/accessibility/evals/README.md +1 -1
  10. package/skills/accessibility/evals/cases.yaml +1 -1
  11. package/skills/agent-safety/SKILL.md +2 -2
  12. package/skills/agent-safety/evals/README.md +1 -1
  13. package/skills/agent-safety/evals/cases.yaml +1 -1
  14. package/skills/analyze/evals/README.md +1 -1
  15. package/skills/analyze/evals/cases.yaml +2 -2
  16. package/skills/angular/SKILL.md +1 -1
  17. package/skills/api-connector-builder/SKILL.md +1 -1
  18. package/skills/api-design/SKILL.md +3 -3
  19. package/skills/api-design/evals/cases.yaml +1 -1
  20. package/skills/asdd/SKILL.md +3 -1
  21. package/skills/automation-strategy/SKILL.md +1 -1
  22. package/skills/automation-strategy/evals/README.md +1 -1
  23. package/skills/automation-strategy/evals/cases.yaml +2 -2
  24. package/skills/automation-strategy/references/orchestration-and-antipatterns.md +1 -1
  25. package/skills/aws-essentials/SKILL.md +3 -3
  26. package/skills/aws-essentials/evals/cases.yaml +2 -2
  27. package/skills/backups/SKILL.md +2 -2
  28. package/skills/backups/evals/cases.yaml +2 -2
  29. package/skills/bash-scripting/SKILL.md +1 -1
  30. package/skills/building-agents/SKILL.md +2 -2
  31. package/skills/building-agents/evals/cases.yaml +2 -2
  32. package/skills/chrome-extension/SKILL.md +1 -1
  33. package/skills/cloudflare/SKILL.md +1 -1
  34. package/skills/code-review/SKILL.md +2 -2
  35. package/skills/code-review/evals/cases.yaml +2 -2
  36. package/skills/compliance/SKILL.md +3 -3
  37. package/skills/compliance/evals/cases.yaml +1 -1
  38. package/skills/constitution/SKILL.md +2 -2
  39. package/skills/constitution/evals/README.md +2 -2
  40. package/skills/constitution/evals/cases.yaml +2 -2
  41. package/skills/constitution/references/constitution-template.md +1 -1
  42. package/skills/cpp/SKILL.md +2 -2
  43. package/skills/cpp/evals/README.md +1 -1
  44. package/skills/cpp/evals/cases.yaml +2 -2
  45. package/skills/csharp-dotnet/SKILL.md +3 -3
  46. package/skills/csharp-dotnet/evals/cases.yaml +1 -1
  47. package/skills/csharp-dotnet/references/aspnetcore.md +1 -1
  48. package/skills/data-policy/SKILL.md +2 -2
  49. package/skills/data-policy/evals/README.md +1 -1
  50. package/skills/data-policy/evals/cases.yaml +1 -1
  51. package/skills/debug/SKILL.md +1 -1
  52. package/skills/debug/evals/README.md +1 -1
  53. package/skills/decision-challenge/SKILL.md +2 -2
  54. package/skills/decision-challenge/evals/cases.yaml +1 -1
  55. package/skills/deployment/SKILL.md +2 -2
  56. package/skills/deployment/evals/README.md +1 -1
  57. package/skills/deployment/evals/cases.yaml +2 -2
  58. package/skills/django/SKILL.md +2 -2
  59. package/skills/django/evals/README.md +1 -1
  60. package/skills/django/evals/cases.yaml +1 -1
  61. package/skills/django/references/security.md +1 -1
  62. package/skills/docker/SKILL.md +3 -3
  63. package/skills/docker/evals/cases.yaml +1 -1
  64. package/skills/dynamodb/SKILL.md +2 -2
  65. package/skills/electron/SKILL.md +1 -1
  66. package/skills/electron/references/packaging-and-updates.md +1 -1
  67. package/skills/email-connector/SKILL.md +2 -2
  68. package/skills/email-deliverability/SKILL.md +1 -1
  69. package/skills/error-handling/SKILL.md +1 -1
  70. package/skills/expo/SKILL.md +2 -2
  71. package/skills/fastapi/SKILL.md +4 -4
  72. package/skills/fastapi/evals/README.md +2 -2
  73. package/skills/fastapi/evals/cases.yaml +2 -2
  74. package/skills/fastapi/references/security.md +2 -2
  75. package/skills/firebase/SKILL.md +1 -1
  76. package/skills/flutter/SKILL.md +1 -1
  77. package/skills/flutter/evals/cases.yaml +2 -2
  78. package/skills/fly-io/SKILL.md +1 -1
  79. package/skills/gamedev-multiplayer/SKILL.md +1 -1
  80. package/skills/gamedev-multiplayer/evals/README.md +1 -1
  81. package/skills/gamedev-multiplayer/evals/cases.yaml +2 -2
  82. package/skills/gamedev-shipping/SKILL.md +1 -1
  83. package/skills/gcp-essentials/SKILL.md +2 -2
  84. package/skills/gcp-essentials/evals/README.md +1 -1
  85. package/skills/gcp-essentials/evals/cases.yaml +2 -2
  86. package/skills/gdpr-privacy/SKILL.md +2 -2
  87. package/skills/gdpr-privacy/evals/cases.yaml +1 -1
  88. package/skills/github-actions/SKILL.md +2 -2
  89. package/skills/go/SKILL.md +4 -4
  90. package/skills/go/evals/README.md +1 -1
  91. package/skills/go/evals/cases.yaml +2 -2
  92. package/skills/google-workspace/SKILL.md +2 -2
  93. package/skills/hetzner/SKILL.md +1 -1
  94. package/skills/htmx/SKILL.md +4 -4
  95. package/skills/htmx/evals/cases.yaml +2 -2
  96. package/skills/implement/SKILL.md +2 -2
  97. package/skills/init/SKILL.md +2 -2
  98. package/skills/init/evals/cases.yaml +2 -2
  99. package/skills/init/references/discovery.md +1 -1
  100. package/skills/init/references/recommend-skills.md +5 -5
  101. package/skills/java/SKILL.md +3 -3
  102. package/skills/java/evals/README.md +1 -1
  103. package/skills/java/evals/cases.yaml +2 -2
  104. package/skills/laravel/SKILL.md +3 -3
  105. package/skills/laravel/evals/README.md +1 -1
  106. package/skills/laravel/evals/cases.yaml +1 -1
  107. package/skills/marketing/evals/README.md +1 -1
  108. package/skills/marketing/evals/cases.yaml +1 -1
  109. package/skills/mongodb/SKILL.md +2 -2
  110. package/skills/mongodb/evals/README.md +1 -1
  111. package/skills/mongodb/evals/cases.yaml +2 -2
  112. package/skills/nextjs/SKILL.md +3 -3
  113. package/skills/nextjs/evals/cases.yaml +2 -2
  114. package/skills/nextjs/references/security.md +2 -2
  115. package/skills/notion-connector/SKILL.md +3 -3
  116. package/skills/notion-connector/evals/README.md +1 -1
  117. package/skills/notion-connector/evals/cases.yaml +2 -2
  118. package/skills/php/SKILL.md +4 -4
  119. package/skills/php/evals/README.md +1 -1
  120. package/skills/php/evals/cases.yaml +1 -1
  121. package/skills/plan/evals/README.md +1 -1
  122. package/skills/postgresdb/SKILL.md +1 -1
  123. package/skills/postgresdb/evals/README.md +1 -1
  124. package/skills/postgresdb/evals/cases.yaml +2 -2
  125. package/skills/presentations/evals/README.md +1 -1
  126. package/skills/python/SKILL.md +3 -3
  127. package/skills/python/evals/README.md +1 -1
  128. package/skills/python/evals/cases.yaml +2 -2
  129. package/skills/rag/scripts/verify.sh +1 -1
  130. package/skills/review/SKILL.md +2 -2
  131. package/skills/review/evals/cases.yaml +3 -3
  132. package/skills/ruby/SKILL.md +1 -1
  133. package/skills/rust/SKILL.md +2 -2
  134. package/skills/rust/evals/README.md +1 -1
  135. package/skills/rust/evals/cases.yaml +2 -2
  136. package/skills/security-audit/SKILL.md +186 -0
  137. package/skills/security-audit/evals/cases.yaml +95 -0
  138. package/skills/security-audit/references/auditor-safety.md +69 -0
  139. package/skills/security-audit/references/classes/README.md +225 -0
  140. package/skills/security-audit/references/classes/ai-and-llm.md +247 -0
  141. package/skills/security-audit/references/classes/client-side.md +181 -0
  142. package/skills/security-audit/references/classes/cloud-and-deployment.md +167 -0
  143. package/skills/security-audit/references/classes/data-isolation.md +161 -0
  144. package/skills/security-audit/references/classes/desktop-mobile-ipc.md +167 -0
  145. package/skills/security-audit/references/classes/memory-and-binary.md +230 -0
  146. package/skills/security-audit/references/classes/protocols-and-messaging.md +151 -0
  147. package/skills/security-audit/references/classes/resource-exhaustion.md +141 -0
  148. package/skills/security-audit/references/classes/supply-chain.md +147 -0
  149. package/skills/security-audit/references/classes/web-and-auth.md +238 -0
  150. package/skills/security-audit/references/coverage-ledger.md +172 -0
  151. package/skills/security-audit/references/fixes-by-stack.md +972 -0
  152. package/skills/security-audit/references/fixing.md +200 -0
  153. package/skills/security-audit/references/hunting.md +146 -0
  154. package/skills/security-audit/references/isolated-execution.md +85 -0
  155. package/skills/security-audit/references/platforms.md +650 -0
  156. package/skills/security-audit/references/reconnaissance.md +73 -0
  157. package/skills/security-audit/references/resuming.md +55 -0
  158. package/skills/security-audit/references/scanners.md +347 -0
  159. package/skills/{secure-coding → security-audit}/references/secrets-and-supply-chain.md +78 -34
  160. package/skills/security-audit/references/secrets-discipline.md +173 -0
  161. package/skills/{secure-coding → security-audit}/references/threat-modeling.md +80 -32
  162. package/skills/security-audit/references/verification.md +118 -0
  163. package/skills/security-audit/schema/findings.schema.json +178 -0
  164. package/skills/security-audit/scripts/render-report.mjs +311 -0
  165. package/skills/security-audit/scripts/validate-findings.mjs +508 -0
  166. package/skills/skill-scout/scripts/verify.sh +1 -1
  167. package/skills/source-grounded-development/evals/cases.yaml +1 -1
  168. package/skills/specify/evals/README.md +1 -1
  169. package/skills/spring-boot/SKILL.md +3 -3
  170. package/skills/spring-boot/evals/README.md +1 -1
  171. package/skills/spring-boot/evals/cases.yaml +1 -1
  172. package/skills/spring-boot/references/security.md +1 -1
  173. package/skills/stripe/SKILL.md +2 -2
  174. package/skills/suggest/evals/cases.yaml +2 -2
  175. package/skills/supabase/SKILL.md +1 -1
  176. package/skills/tauri/SKILL.md +2 -2
  177. package/skills/testing-go/SKILL.md +1 -1
  178. package/skills/typescript/SKILL.md +2 -2
  179. package/skills/verify/SKILL.md +3 -3
  180. package/skills/verify/evals/README.md +2 -2
  181. package/skills/verify/evals/cases.yaml +2 -2
  182. package/skills/vue-nuxt/SKILL.md +2 -2
  183. package/skills/webhooks/SKILL.md +2 -2
  184. package/skills/wordpress/SKILL.md +2 -2
  185. package/skills/wordpress/evals/README.md +1 -1
  186. package/skills/wordpress/evals/cases.yaml +1 -1
  187. package/skills/worktrees/evals/README.md +1 -1
  188. package/targets/claude.js +23 -1
  189. package/targets/clone-bootstrap.mjs +1 -1
  190. package/targets/commands.js +1 -1
  191. package/skills/secure-coding/SKILL.md +0 -336
  192. package/skills/secure-coding/evals/README.md +0 -68
  193. package/skills/secure-coding/evals/cases.yaml +0 -55
  194. package/skills/secure-coding/references/authn-authz.md +0 -249
  195. package/skills/secure-coding/references/owasp-by-stack.md +0 -574
  196. package/skills/secure-coding/scripts/verify.sh +0 -208
  197. package/skills/security-scan/SKILL.md +0 -219
  198. package/skills/security-scan/evals/README.md +0 -14
  199. package/skills/security-scan/evals/cases.yaml +0 -50
  200. package/skills/security-scan/references/tools.md +0 -97
  201. package/skills/security-scan/references/triage.md +0 -92
  202. package/skills/security-scan/scripts/verify.sh +0 -108
@@ -1,92 +0,0 @@
1
- # Triage — ranking, dedupe, severity, report schema
2
-
3
- The value of this skill lives here: scanner output is high-noise, and the job is
4
- turning four overlapping logs into one ranked, gate-able report.
5
-
6
- ## Exploitability ranking rubric
7
-
8
- Score each finding on three axes, then sort. Count of findings is irrelevant —
9
- one reachable RCE outranks fifty theoretical lib advisories.
10
-
11
- | Axis | High | Low |
12
- |---|---|---|
13
- | **Reachable** | the vulnerable code/dep is actually called (govulncheck-confirmed, in the import graph) | present but unused / behind a disabled flag |
14
- | **Exposed** | on an untrusted path (HTTP handler, CLI arg, file upload, deserialization) | internal-only, dev-only, test fixture |
15
- | **Sink sensitivity** | auth, money, PII, RCE, secret material | logging, cosmetic, info-leak of non-sensitive data |
16
-
17
- - **Critical:** reachable **+** exposed **+** sensitive sink. Or any **verified
18
- live secret** (TruffleHog confirmed) — those are critical by definition.
19
- - **High:** two of three axes high, or a reachable CVE with a public exploit.
20
- - **Medium:** one axis high; present-but-not-clearly-reachable CVEs.
21
- - **Low / informational:** theoretical, unreachable, or test-only.
22
-
23
- Report criticals first with the concrete remediation (rotate / bump to fixed
24
- version / parameterize), then summarize the rest. Do not emit a flat list.
25
-
26
- ## Cross-tool dedupe
27
-
28
- Tools overlap: osv-scanner and Trivy both flag the same CVE; gitleaks and
29
- TruffleHog both flag the same key.
30
-
31
- - **Dedupe key:** `(class, normalized-id, path, line)`.
32
- - `normalized-id`: CVE/GHSA for SCA; rule id for SAST; secret fingerprint
33
- (provider + redacted last-4 + location) for secrets.
34
- - **Keep the richest record** when two tools collide: prefer the one carrying
35
- **verification** (TruffleHog `verified: true`) or **reachability**
36
- (govulncheck), and merge the `tool` field into a list of contributors.
37
-
38
- ## Severity normalization
39
-
40
- SARIF `level` (`error`/`warning`/`note`/`none`) and tool-native severities
41
- disagree. Map everything to one scale before ranking or gating:
42
-
43
- | Source signal | Normalized |
44
- |---|---|
45
- | SARIF `error` / CVSS ≥ 9.0 / verified secret | `critical` |
46
- | SARIF `error` / CVSS 7.0–8.9 / Semgrep `ERROR` | `high` |
47
- | SARIF `warning` / CVSS 4.0–6.9 / Semgrep `WARNING` | `medium` |
48
- | SARIF `note` / CVSS < 4.0 / `INFO` | `low` |
49
-
50
- Where a tool gives both CVSS and a label, take the **higher** of the two.
51
-
52
- ## Suppression discipline
53
-
54
- A suppression is a per-finding record, not a silent ignore-file. Each one carries
55
- `who`, `why`, and `expiry` so it surfaces again instead of hiding the next bug.
56
- Use the tool-native suppression (osv-scanner.toml `ignoreUntil`, `.trivyignore`,
57
- gitleaks allowlist, `// nosemgrep`) and set `status: "suppressed"` in the report.
58
-
59
- ## Report schema — `security-scan-report.json`
60
-
61
- This is the contract `scripts/verify.sh` gates on.
62
-
63
- ```json
64
- {
65
- "schemaVersion": "1.0",
66
- "scannedAt": "<ISO-8601 UTC>",
67
- "target": "<path or repo>",
68
- "tools": [{ "name": "<tool>", "version": "<pinned>" }],
69
- "summary": {
70
- "critical": 0, "high": 0, "medium": 0, "low": 0, "suppressed": 0
71
- },
72
- "findings": [
73
- {
74
- "class": "sast | sca | secrets | misconfig",
75
- "ruleId": "<CVE / GHSA / rule-id / secret-fingerprint>",
76
- "path": "<file>",
77
- "line": 0,
78
- "severity": "critical | high | medium | low",
79
- "status": "open | suppressed | fixed",
80
- "tool": "<tool name>",
81
- "exploitability": "reachable | exposed | theoretical",
82
- "title": "<short human description>"
83
- }
84
- ]
85
- }
86
- ```
87
-
88
- - `summary` counts must agree with `findings` (verify.sh tolerates an empty
89
- `findings` array as a clean pass).
90
- - **Gate:** any `findings[]` with `status: "open"` and `severity: "critical"`
91
- → fail. Strict mode also fails on `open` + `high`. `suppressed`/`fixed` never
92
- fail. An empty/clean report exits `0`.
@@ -1,108 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- # ============================================================================
5
- # NAME
6
- # verify.sh — security-scan gate over security-scan-report.json
7
- #
8
- # USAGE
9
- # ./verify.sh [path/to/security-scan-report.json]
10
- # Defaults to ./security-scan-report.json in the current directory.
11
- #
12
- # WHAT IT DOES (read-only — never writes, never auto-fixes, never runs scanners)
13
- # 1. Locates the report. If it is ABSENT, exits 0 with a notice — the gate is
14
- # vacuously clean (nothing scanned yet is not a failure).
15
- # 2. Parses it as JSON (requires jq).
16
- # 3. Validates the schema: schemaVersion, summary object, findings array, and
17
- # that each finding carries class/ruleId/path/severity/status.
18
- # 4. Enforces the gate: any finding with status "open" at severity "critical"
19
- # fails (exit 1). With STRICT=1, "open" + "high" also fails.
20
- #
21
- # An empty/clean report (no open criticals, or an empty findings array)
22
- # exits 0 — no false failure.
23
- #
24
- # ENV TOGGLES
25
- # STRICT=1 Also fail on open HIGH findings (default: criticals only).
26
- # NO_COLOR=1 Disable ANSI color.
27
- #
28
- # EXIT CODES
29
- # 0 Clean: report missing, empty, or no open critical (/high under STRICT).
30
- # 1 At least one open critical (or open high under STRICT).
31
- # 2 Usage / schema / tooling error (jq missing, malformed JSON, bad schema).
32
- # ============================================================================
33
-
34
- REPORT="${1:-./security-scan-report.json}"
35
- STRICT="${STRICT:-0}"
36
-
37
- if [ -n "${NO_COLOR:-}" ]; then
38
- RED=""; YEL=""; GRN=""; RST=""
39
- else
40
- RED=$'\033[31m'; YEL=$'\033[33m'; GRN=$'\033[32m'; RST=$'\033[0m'
41
- fi
42
-
43
- note() { printf '%s\n' "$*" >&2; }
44
-
45
- # --- 1. report absent => vacuously clean -----------------------------------
46
- if [ ! -e "$REPORT" ]; then
47
- note "${YEL}notice:${RST} no report at '$REPORT' — nothing to gate. Clean."
48
- exit 0
49
- fi
50
-
51
- # --- tooling ---------------------------------------------------------------
52
- if ! command -v jq >/dev/null 2>&1; then
53
- note "${RED}error:${RST} jq is required to validate the report."
54
- exit 2
55
- fi
56
-
57
- # --- 2. valid JSON ---------------------------------------------------------
58
- if ! jq -e . "$REPORT" >/dev/null 2>&1; then
59
- note "${RED}error:${RST} '$REPORT' is not valid JSON."
60
- exit 2
61
- fi
62
-
63
- # --- 3. schema -------------------------------------------------------------
64
- schema_ok=$(jq -e '
65
- (has("schemaVersion"))
66
- and (has("summary") and (.summary | type == "object"))
67
- and (has("findings") and (.findings | type == "array"))
68
- and (
69
- .findings
70
- | all(
71
- (has("class")) and (has("ruleId")) and (has("path"))
72
- and (has("severity")) and (has("status"))
73
- )
74
- )
75
- ' "$REPORT" 2>/dev/null || echo "false")
76
-
77
- if [ "$schema_ok" != "true" ]; then
78
- note "${RED}error:${RST} '$REPORT' does not conform to the schema"
79
- note " (need schemaVersion, summary{}, findings[] with"
80
- note " class/ruleId/path/severity/status on every finding)."
81
- exit 2
82
- fi
83
-
84
- # --- 4. gate ---------------------------------------------------------------
85
- open_crit=$(jq '[.findings[] | select(.status == "open" and .severity == "critical")] | length' "$REPORT")
86
- open_high=$(jq '[.findings[] | select(.status == "open" and .severity == "high")] | length' "$REPORT")
87
- total=$(jq '.findings | length' "$REPORT")
88
- suppressed=$(jq '[.findings[] | select(.status == "suppressed")] | length' "$REPORT")
89
-
90
- note "Report: $REPORT (findings: ${total}, suppressed: ${suppressed}, open-critical: ${open_crit}, open-high: ${open_high})"
91
-
92
- fail=0
93
- if [ "$open_crit" -gt 0 ]; then
94
- note "${RED}FAIL:${RST} ${open_crit} open CRITICAL finding(s) — resolve or suppress with justification before merge."
95
- jq -r '.findings[] | select(.status=="open" and .severity=="critical") | " - [\(.class)] \(.ruleId) \(.path) \(.title // "")"' "$REPORT" >&2
96
- fail=1
97
- fi
98
- if [ "$STRICT" = "1" ] && [ "$open_high" -gt 0 ]; then
99
- note "${RED}FAIL (STRICT):${RST} ${open_high} open HIGH finding(s)."
100
- jq -r '.findings[] | select(.status=="open" and .severity=="high") | " - [\(.class)] \(.ruleId) \(.path) \(.title // "")"' "$REPORT" >&2
101
- fail=1
102
- fi
103
-
104
- if [ "$fail" -eq 0 ]; then
105
- note "${GRN}PASS:${RST} no open critical$([ "$STRICT" = "1" ] && echo "/high") findings."
106
- exit 0
107
- fi
108
- exit 1