@ericrisco/rsc 4.0.5 → 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.
- package/README.md +4 -4
- package/manifest.json +78 -84
- package/package.json +1 -1
- package/scripts/lib/default-skill-floor.js +5 -1
- package/scripts/lib/domains.js +1 -1
- package/scripts/lib/recommend.js +1 -1
- package/scripts/lib/retired-skills.js +4 -0
- package/scripts/skill-migration-brief.md +1 -1
- package/skills/accessibility/evals/README.md +1 -1
- package/skills/accessibility/evals/cases.yaml +1 -1
- package/skills/agent-safety/SKILL.md +2 -2
- package/skills/agent-safety/evals/README.md +1 -1
- package/skills/agent-safety/evals/cases.yaml +1 -1
- package/skills/analyze/evals/README.md +1 -1
- package/skills/analyze/evals/cases.yaml +2 -2
- package/skills/angular/SKILL.md +1 -1
- package/skills/api-connector-builder/SKILL.md +1 -1
- package/skills/api-design/SKILL.md +3 -3
- package/skills/api-design/evals/cases.yaml +1 -1
- package/skills/automation-strategy/SKILL.md +1 -1
- package/skills/automation-strategy/evals/README.md +1 -1
- package/skills/automation-strategy/evals/cases.yaml +2 -2
- package/skills/automation-strategy/references/orchestration-and-antipatterns.md +1 -1
- package/skills/aws-essentials/SKILL.md +3 -3
- package/skills/aws-essentials/evals/cases.yaml +2 -2
- package/skills/backups/SKILL.md +2 -2
- package/skills/backups/evals/cases.yaml +2 -2
- package/skills/bash-scripting/SKILL.md +1 -1
- package/skills/building-agents/SKILL.md +2 -2
- package/skills/building-agents/evals/cases.yaml +2 -2
- package/skills/chrome-extension/SKILL.md +1 -1
- package/skills/cloudflare/SKILL.md +1 -1
- package/skills/code-review/SKILL.md +2 -2
- package/skills/code-review/evals/cases.yaml +2 -2
- package/skills/compliance/SKILL.md +3 -3
- package/skills/compliance/evals/cases.yaml +1 -1
- package/skills/constitution/SKILL.md +2 -2
- package/skills/constitution/evals/README.md +2 -2
- package/skills/constitution/evals/cases.yaml +2 -2
- package/skills/constitution/references/constitution-template.md +1 -1
- package/skills/cpp/SKILL.md +2 -2
- package/skills/cpp/evals/README.md +1 -1
- package/skills/cpp/evals/cases.yaml +2 -2
- package/skills/csharp-dotnet/SKILL.md +3 -3
- package/skills/csharp-dotnet/evals/cases.yaml +1 -1
- package/skills/csharp-dotnet/references/aspnetcore.md +1 -1
- package/skills/data-policy/SKILL.md +2 -2
- package/skills/data-policy/evals/README.md +1 -1
- package/skills/data-policy/evals/cases.yaml +1 -1
- package/skills/debug/SKILL.md +1 -1
- package/skills/debug/evals/README.md +1 -1
- package/skills/decision-challenge/SKILL.md +2 -2
- package/skills/decision-challenge/evals/cases.yaml +1 -1
- package/skills/deployment/SKILL.md +2 -2
- package/skills/deployment/evals/README.md +1 -1
- package/skills/deployment/evals/cases.yaml +2 -2
- package/skills/django/SKILL.md +2 -2
- package/skills/django/evals/README.md +1 -1
- package/skills/django/evals/cases.yaml +1 -1
- package/skills/django/references/security.md +1 -1
- package/skills/docker/SKILL.md +3 -3
- package/skills/docker/evals/cases.yaml +1 -1
- package/skills/dynamodb/SKILL.md +2 -2
- package/skills/electron/SKILL.md +1 -1
- package/skills/electron/references/packaging-and-updates.md +1 -1
- package/skills/email-connector/SKILL.md +2 -2
- package/skills/email-deliverability/SKILL.md +1 -1
- package/skills/error-handling/SKILL.md +1 -1
- package/skills/expo/SKILL.md +2 -2
- package/skills/fastapi/SKILL.md +4 -4
- package/skills/fastapi/evals/README.md +2 -2
- package/skills/fastapi/evals/cases.yaml +2 -2
- package/skills/fastapi/references/security.md +2 -2
- package/skills/firebase/SKILL.md +1 -1
- package/skills/flutter/SKILL.md +1 -1
- package/skills/flutter/evals/cases.yaml +2 -2
- package/skills/fly-io/SKILL.md +1 -1
- package/skills/gamedev-multiplayer/SKILL.md +1 -1
- package/skills/gamedev-multiplayer/evals/README.md +1 -1
- package/skills/gamedev-multiplayer/evals/cases.yaml +2 -2
- package/skills/gamedev-shipping/SKILL.md +1 -1
- package/skills/gcp-essentials/SKILL.md +2 -2
- package/skills/gcp-essentials/evals/README.md +1 -1
- package/skills/gcp-essentials/evals/cases.yaml +2 -2
- package/skills/gdpr-privacy/SKILL.md +2 -2
- package/skills/gdpr-privacy/evals/cases.yaml +1 -1
- package/skills/github-actions/SKILL.md +2 -2
- package/skills/go/SKILL.md +4 -4
- package/skills/go/evals/README.md +1 -1
- package/skills/go/evals/cases.yaml +2 -2
- package/skills/google-workspace/SKILL.md +2 -2
- package/skills/hetzner/SKILL.md +1 -1
- package/skills/htmx/SKILL.md +4 -4
- package/skills/htmx/evals/cases.yaml +2 -2
- package/skills/implement/SKILL.md +1 -1
- package/skills/init/SKILL.md +2 -2
- package/skills/init/evals/cases.yaml +2 -2
- package/skills/init/references/discovery.md +1 -1
- package/skills/init/references/recommend-skills.md +5 -5
- package/skills/java/SKILL.md +3 -3
- package/skills/java/evals/README.md +1 -1
- package/skills/java/evals/cases.yaml +2 -2
- package/skills/laravel/SKILL.md +3 -3
- package/skills/laravel/evals/README.md +1 -1
- package/skills/laravel/evals/cases.yaml +1 -1
- package/skills/marketing/evals/README.md +1 -1
- package/skills/marketing/evals/cases.yaml +1 -1
- package/skills/mongodb/SKILL.md +2 -2
- package/skills/mongodb/evals/README.md +1 -1
- package/skills/mongodb/evals/cases.yaml +2 -2
- package/skills/nextjs/SKILL.md +3 -3
- package/skills/nextjs/evals/cases.yaml +2 -2
- package/skills/nextjs/references/security.md +2 -2
- package/skills/notion-connector/SKILL.md +3 -3
- package/skills/notion-connector/evals/README.md +1 -1
- package/skills/notion-connector/evals/cases.yaml +2 -2
- package/skills/php/SKILL.md +4 -4
- package/skills/php/evals/README.md +1 -1
- package/skills/php/evals/cases.yaml +1 -1
- package/skills/plan/evals/README.md +1 -1
- package/skills/postgresdb/SKILL.md +1 -1
- package/skills/postgresdb/evals/README.md +1 -1
- package/skills/postgresdb/evals/cases.yaml +2 -2
- package/skills/presentations/evals/README.md +1 -1
- package/skills/python/SKILL.md +3 -3
- package/skills/python/evals/README.md +1 -1
- package/skills/python/evals/cases.yaml +2 -2
- package/skills/rag/scripts/verify.sh +1 -1
- package/skills/review/SKILL.md +2 -2
- package/skills/review/evals/cases.yaml +3 -3
- package/skills/ruby/SKILL.md +1 -1
- package/skills/rust/SKILL.md +2 -2
- package/skills/rust/evals/README.md +1 -1
- package/skills/rust/evals/cases.yaml +2 -2
- package/skills/security-audit/SKILL.md +186 -0
- package/skills/security-audit/evals/cases.yaml +95 -0
- package/skills/security-audit/references/auditor-safety.md +69 -0
- package/skills/security-audit/references/classes/README.md +225 -0
- package/skills/security-audit/references/classes/ai-and-llm.md +247 -0
- package/skills/security-audit/references/classes/client-side.md +181 -0
- package/skills/security-audit/references/classes/cloud-and-deployment.md +167 -0
- package/skills/security-audit/references/classes/data-isolation.md +161 -0
- package/skills/security-audit/references/classes/desktop-mobile-ipc.md +167 -0
- package/skills/security-audit/references/classes/memory-and-binary.md +230 -0
- package/skills/security-audit/references/classes/protocols-and-messaging.md +151 -0
- package/skills/security-audit/references/classes/resource-exhaustion.md +141 -0
- package/skills/security-audit/references/classes/supply-chain.md +147 -0
- package/skills/security-audit/references/classes/web-and-auth.md +238 -0
- package/skills/security-audit/references/coverage-ledger.md +172 -0
- package/skills/security-audit/references/fixes-by-stack.md +972 -0
- package/skills/security-audit/references/fixing.md +200 -0
- package/skills/security-audit/references/hunting.md +146 -0
- package/skills/security-audit/references/isolated-execution.md +85 -0
- package/skills/security-audit/references/platforms.md +650 -0
- package/skills/security-audit/references/reconnaissance.md +73 -0
- package/skills/security-audit/references/resuming.md +55 -0
- package/skills/security-audit/references/scanners.md +347 -0
- package/skills/{secure-coding → security-audit}/references/secrets-and-supply-chain.md +78 -34
- package/skills/security-audit/references/secrets-discipline.md +173 -0
- package/skills/{secure-coding → security-audit}/references/threat-modeling.md +80 -32
- package/skills/security-audit/references/verification.md +118 -0
- package/skills/security-audit/schema/findings.schema.json +178 -0
- package/skills/security-audit/scripts/render-report.mjs +311 -0
- package/skills/security-audit/scripts/validate-findings.mjs +508 -0
- package/skills/skill-scout/scripts/verify.sh +1 -1
- package/skills/source-grounded-development/evals/cases.yaml +1 -1
- package/skills/specify/evals/README.md +1 -1
- package/skills/spring-boot/SKILL.md +3 -3
- package/skills/spring-boot/evals/README.md +1 -1
- package/skills/spring-boot/evals/cases.yaml +1 -1
- package/skills/spring-boot/references/security.md +1 -1
- package/skills/stripe/SKILL.md +2 -2
- package/skills/suggest/evals/cases.yaml +2 -2
- package/skills/supabase/SKILL.md +1 -1
- package/skills/tauri/SKILL.md +2 -2
- package/skills/testing-go/SKILL.md +1 -1
- package/skills/typescript/SKILL.md +2 -2
- package/skills/verify/SKILL.md +3 -3
- package/skills/verify/evals/README.md +2 -2
- package/skills/verify/evals/cases.yaml +2 -2
- package/skills/vue-nuxt/SKILL.md +2 -2
- package/skills/webhooks/SKILL.md +2 -2
- package/skills/wordpress/SKILL.md +2 -2
- package/skills/wordpress/evals/README.md +1 -1
- package/skills/wordpress/evals/cases.yaml +1 -1
- package/skills/worktrees/evals/README.md +1 -1
- package/targets/clone-bootstrap.mjs +1 -1
- package/targets/commands.js +1 -1
- package/skills/secure-coding/SKILL.md +0 -336
- package/skills/secure-coding/evals/README.md +0 -68
- package/skills/secure-coding/evals/cases.yaml +0 -55
- package/skills/secure-coding/references/authn-authz.md +0 -249
- package/skills/secure-coding/references/owasp-by-stack.md +0 -574
- package/skills/secure-coding/scripts/verify.sh +0 -208
- package/skills/security-scan/SKILL.md +0 -219
- package/skills/security-scan/evals/README.md +0 -14
- package/skills/security-scan/evals/cases.yaml +0 -50
- package/skills/security-scan/references/tools.md +0 -97
- package/skills/security-scan/references/triage.md +0 -92
- package/skills/security-scan/scripts/verify.sh +0 -108
|
@@ -140,7 +140,7 @@ A skill's `description` is in context for everyone who installs it, so migrate b
|
|
|
140
140
|
1. `minimal` profile — in every rsc install.
|
|
141
141
|
2. `core` profile — the default install (the SDD chain plus the control plane).
|
|
142
142
|
3. High-install stack skills — `nextjs`, `react`, `fastapi`, `postgresdb`, `design`, `typescript`,
|
|
143
|
-
`python`, `go`, `flutter`, `
|
|
143
|
+
`python`, `go`, `flutter`, `security-audit`, `deployment`.
|
|
144
144
|
4. Everything else.
|
|
145
145
|
|
|
146
146
|
If a run is cut short, this ordering means the part that was finished is the part that everyone pays for.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# Evals — accessibility
|
|
2
2
|
|
|
3
|
-
These cases are graded by eye, not by an auto-runner. Read `cases.yaml` against the live `SKILL.md` description and decide: every `should_trigger` prompt should clearly select **accessibility** (note that several are deliberately non-obvious — a focus-trap complaint, a tap-target-size question, and a Catalan/Spanish phrasing — so the description's `Triggers:` list has to cover them), while each `should_not_trigger` prompt should route to the named sibling instead (`performance`, `testing-web`, `e2e-testing`, `design`, `
|
|
3
|
+
These cases are graded by eye, not by an auto-runner. Read `cases.yaml` against the live `SKILL.md` description and decide: every `should_trigger` prompt should clearly select **accessibility** (note that several are deliberately non-obvious — a focus-trap complaint, a tap-target-size question, and a Catalan/Spanish phrasing — so the description's `Triggers:` list has to cover them), while each `should_not_trigger` prompt should route to the named sibling instead (`performance`, `testing-web`, `e2e-testing`, `design`, `security-audit`) and not pull this skill in. For the `capability` case, prompt the agent with the scenario and read its output for each `must_include` point — it passes only if the rewrite replaces the div with a native `<button>`, gives the control an accessible name, makes it keyboard-operable with a visible focus ring, flags that contrast needs a real browser, wires in an automated check (jest-axe or @axe-core/playwright with the `wcag22aa` tag), and explicitly says automation only covers ~57% while naming a manual check. There is no scoring script; this is a judgement pass over the skill's text and the agent's response.
|
|
@@ -30,7 +30,7 @@ should_not_trigger:
|
|
|
30
30
|
route_to: design
|
|
31
31
|
why: Visual intent and design tokens; this skill checks the contrast/target-size outcome, not the aesthetic.
|
|
32
32
|
- prompt: "Sanitize this user input to prevent XSS."
|
|
33
|
-
route_to:
|
|
33
|
+
route_to: security-audit
|
|
34
34
|
why: Security hardening, unrelated to accessibility conformance.
|
|
35
35
|
|
|
36
36
|
capability:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: agent-safety
|
|
3
3
|
description: "Use when bounding an LLM agent that already runs — scoping its task domain, gating tools to least privilege, defending against prompt injection in untrusted web/email/RAG text, requiring human approval on irreversible actions, capping runtime and cost, or triaging what it already did. NOT building the loop, tools, or RAG (that is `building-agents`)."
|
|
4
4
|
tags: [agent-security, guardrails, prompt-injection, least-privilege, owasp-agentic]
|
|
5
|
-
recommends: [building-agents,
|
|
5
|
+
recommends: [building-agents, security-audit, agent-eval]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ origin: risco
|
|
|
11
11
|
You are the security review for an agent's **agency**, not for its code. The loop works,
|
|
12
12
|
tools are wired, memory persists — your job is to make that autonomy *bounded*. If you
|
|
13
13
|
want to review ordinary endpoints, auth, or secrets handling, that is
|
|
14
|
-
`../
|
|
14
|
+
`../security-audit/SKILL.md` — this skill is the *Agentic* Top 10, the risks that exist only
|
|
15
15
|
because a model has tools and autonomy. If the loop or tools do not exist yet, that is
|
|
16
16
|
`../building-agents/SKILL.md`. You arrive *after* both.
|
|
17
17
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
These cases are the trigger contract and capability rubric for the `agent-safety` skill.
|
|
4
4
|
`should_trigger` and `should_not_trigger` assert that the description routes correctly —
|
|
5
5
|
each negative names the real sibling it should route to instead (building-agents,
|
|
6
|
-
|
|
6
|
+
security-audit, agent-eval, prompt-engineering, cost-tracking). Run them through the repo's
|
|
7
7
|
eval harness if one is wired up, or read them directly as the routing spec when reviewing
|
|
8
8
|
the description. The `capability` block is not a pass/fail script: it is a rubric a human or
|
|
9
9
|
an LLM-as-judge scores a sample guardrail design against — the design must cover every
|
|
@@ -19,7 +19,7 @@ should_not_trigger:
|
|
|
19
19
|
route_to: building-agents
|
|
20
20
|
why: Construction of the agent (loop/tools), not constraining one that already runs.
|
|
21
21
|
- prompt: "Is this Express auth endpoint vulnerable to broken access control?"
|
|
22
|
-
route_to:
|
|
22
|
+
route_to: security-audit
|
|
23
23
|
why: Plain web/app OWASP on an endpoint; no model, tools, or autonomy involved.
|
|
24
24
|
- prompt: "Measure whether my agent answers correctly with a golden set."
|
|
25
25
|
route_to: agent-eval
|
|
@@ -26,7 +26,7 @@ and never on a near-miss.
|
|
|
26
26
|
|
|
27
27
|
1. Configure an agent with the **full catalog of skill descriptions** available
|
|
28
28
|
for routing (analyze + harness, init, the stack skills fastapi/nextjs/go/
|
|
29
|
-
flutter/postgresdb,
|
|
29
|
+
flutter/postgresdb, security-audit, deployment, design, marketing,
|
|
30
30
|
presentations, course-storytelling, building-agents) so routing competes
|
|
31
31
|
realistically. When the other rsc-sdd phase skills (clarify, plan, tasks,
|
|
32
32
|
implement, verify, review, debug) are added to the repo, include them too —
|
|
@@ -34,7 +34,7 @@ should_trigger:
|
|
|
34
34
|
# rather than the SDD planning artifacts.
|
|
35
35
|
should_not_trigger:
|
|
36
36
|
- prompt: "The login test is failing with a 500 and I can't tell why — help me find the root cause."
|
|
37
|
-
route_to: "
|
|
37
|
+
route_to: "security-audit"
|
|
38
38
|
why: "A failing test / runtime fault is root-cause debugging on code, not a planning-artifact cross-check; analyze never opens source files. (Routes to the nearest existing repo skill for the auth fault.)"
|
|
39
39
|
|
|
40
40
|
- prompt: "Run the lint, type-check and test suite and tell me if the FastAPI service is ready to ship."
|
|
@@ -46,7 +46,7 @@ should_not_trigger:
|
|
|
46
46
|
why: "Authoring the plan/architecture is plan-phase work delegated to the stack skill; analyze checks an existing plan, it does not write one."
|
|
47
47
|
|
|
48
48
|
- prompt: "Review this pull request diff for correctness bugs and cleanups."
|
|
49
|
-
route_to: "
|
|
49
|
+
route_to: "security-audit"
|
|
50
50
|
why: "Adversarial review of a code diff is code review, not a constitution/spec/plan/tasks consistency report on planning artifacts."
|
|
51
51
|
|
|
52
52
|
- prompt: "Audit my workspace and set up 01-TOOLS and 02-DOCS with a Knowledge map."
|
package/skills/angular/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: angular
|
|
3
3
|
description: "Use when building, refactoring, or debugging Angular (v20/21+): standalone components, signals, zoneless change detection, @if/@for/@defer control flow, inject() DI, resource()/httpResource(), RxJS interop, NgRx SignalStore, ng CLI. NOT React (that is react), NOT Next.js (that is nextjs), NOT a TypeScript language question (that is typescript)."
|
|
4
4
|
tags: [angular, frontend, web, signals, typescript, spa]
|
|
5
|
-
recommends: [typescript, testing-web,
|
|
5
|
+
recommends: [typescript, testing-web, security-audit]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: api-connector-builder
|
|
3
3
|
description: "Use when writing a client for someone else's REST or GraphQL API: auth flow choice and token refresh, pagination to exhaustion, retry-with-jitter on transient failures only, rate-limit-aware throttling. NOT inbound callbacks (that is `webhooks`), NOT chaining services (that is `automation-flows`), NOT designing your own API (that is `api-design`)."
|
|
4
4
|
tags: [api, rest, graphql, oauth, pagination, retries, rate-limiting, http-client, connector]
|
|
5
|
-
recommends: [webhooks, automation-flows, api-design, data-scraper,
|
|
5
|
+
recommends: [webhooks, automation-flows, api-design, data-scraper, security-audit, error-handling, structured-extraction]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: api-design
|
|
3
|
-
description: "Use when settling the contract of an API you expose, before implementation: resources/URLs, REST vs GraphQL, versioning, one RFC 9457 error envelope, pagination, idempotency — emitted as OpenAPI 3.1. NOT implementing the endpoints (that is `fastapi`/`nestjs`/`go`/`nodejs`), NOT auth hardening (that is `
|
|
3
|
+
description: "Use when settling the contract of an API you expose, before implementation: resources/URLs, REST vs GraphQL, versioning, one RFC 9457 error envelope, pagination, idempotency — emitted as OpenAPI 3.1. NOT implementing the endpoints (that is `fastapi`/`nestjs`/`go`/`nodejs`), NOT auth hardening (that is `security-audit`), NOT consuming a third-party API (that is `api-connector-builder`)."
|
|
4
4
|
tags: [api-design, rest, graphql, openapi, versioning, pagination, http, rfc9457, contract-design]
|
|
5
|
-
recommends: [fastapi, nestjs, go, nodejs,
|
|
5
|
+
recommends: [fastapi, nestjs, go, nodejs, security-audit, webhooks, api-connector-builder, code-review]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -176,7 +176,7 @@ Hand off to the builder:
|
|
|
176
176
|
- Node generally → [`../nodejs/SKILL.md`](../nodejs/SKILL.md)
|
|
177
177
|
|
|
178
178
|
Adjacent concerns you do **not** own:
|
|
179
|
-
- Auth hardening, OWASP, CORS/CSP threat-modeling → [`../
|
|
179
|
+
- Auth hardening, OWASP, CORS/CSP threat-modeling → [`../security-audit/SKILL.md`](../security-audit/SKILL.md) (you only place 401/403/scopes in the contract)
|
|
180
180
|
- Receiving inbound webhooks (HMAC verify, replay, dedupe) → [`../webhooks/SKILL.md`](../webhooks/SKILL.md)
|
|
181
181
|
- Building an outbound client to a third-party API → [`../api-connector-builder/SKILL.md`](../api-connector-builder/SKILL.md)
|
|
182
182
|
- Reviewing handler code (not the design) → [`../code-review/SKILL.md`](../code-review/SKILL.md)
|
|
@@ -21,7 +21,7 @@ should_not_trigger:
|
|
|
21
21
|
route_to: fastapi
|
|
22
22
|
why: build-time framework implementation, not contract design.
|
|
23
23
|
- prompt: "Threat-model this endpoint and check the CORS and CSP config for OWASP issues"
|
|
24
|
-
route_to:
|
|
24
|
+
route_to: security-audit
|
|
25
25
|
why: security/hardening lens, not the API shape.
|
|
26
26
|
- prompt: "Verify the incoming Stripe webhook signature and dedupe replayed events"
|
|
27
27
|
route_to: webhooks
|
|
@@ -94,7 +94,7 @@ These are the guarantees every automation must meet regardless of platform. This
|
|
|
94
94
|
- **Error paths, retries & backoff.** Every automation has a defined destination for failure. Retry **transient** errors (timeouts, 429/5xx) with backoff and a cap; do **not** retry **permanent** errors (400/validation) — route them out. A flow with no error path isn't finished.
|
|
95
95
|
- **Dead-letter.** After retries are exhausted, the failed item lands in a durable place a human can inspect and replay — a queue, a table, an "incomplete executions" store. Dropped-on-the-floor failures are invisible data loss.
|
|
96
96
|
- **Observability & alerting.** Emit success/failure counts; put a **heartbeat on scheduled jobs and alert on silence** (a cron that stops firing is the failure you never hear about). Route alerts to a named owner, not a dead inbox.
|
|
97
|
-
- **Secrets handling.** Credentials in the platform's credential store / a vault, referenced by name — never pasted inline where an export leaks them. Least privilege, and a rotation plan. Engineering detail → `../
|
|
97
|
+
- **Secrets handling.** Credentials in the platform's credential store / a vault, referenced by name — never pasted inline where an export leaks them. Least privilege, and a rotation plan. Engineering detail → `../security-audit/SKILL.md`.
|
|
98
98
|
- **Versioning & environments.** Separate **dev/staging from prod**; export before you edit; keep a rollback. Changes to a live automation are production changes and deserve the same care.
|
|
99
99
|
- **Avoid fan-out storms.** Cap concurrency, batch, and rate-limit. Watch for **echo loops** (flow A writes a record that triggers flow B that triggers flow A) and for a single event fanning out into thousands of downstream calls that trip rate limits or blow the bill.
|
|
100
100
|
|
|
@@ -5,7 +5,7 @@ automate (with the stability trap), four-way platform selection, ROI / build-vs-
|
|
|
5
5
|
"our automations keep breaking", ecosystem-fit selection, and TCO/over-automation post-mortems, with
|
|
6
6
|
Spanish phrasing. `should_not_trigger` lists adjacent prompts routed to the sibling that owns them —
|
|
7
7
|
concrete builds/artifacts → automation-flows, driving a live platform → the n8n/make skills, code
|
|
8
|
-
clients → api-connector-builder, webhook receipt → webhooks, secrets engineering →
|
|
8
|
+
clients → api-connector-builder, webhook receipt → webhooks, secrets engineering → security-audit.
|
|
9
9
|
`capability` is one end-to-end strategy scenario whose `must_include` rubric checks the §1 gate,
|
|
10
10
|
human-in-the-loop on the irreversible step, maintenance-inclusive payback, billing-unit + ecosystem
|
|
11
11
|
platform routing, the honest Zapier/Power-Automate API-creation limits, the orchestration guarantees,
|
|
@@ -33,8 +33,8 @@ should_not_trigger:
|
|
|
33
33
|
route_to: automation-flows
|
|
34
34
|
why: A specific flow to build on a named platform — design goes to automation-flows, operation to the make skill; not a strategy question.
|
|
35
35
|
- prompt: "How do I rotate and store the API keys my flow uses securely in code?"
|
|
36
|
-
route_to:
|
|
37
|
-
why: Secrets-engineering implementation detail; §4 sets the policy but
|
|
36
|
+
route_to: security-audit
|
|
37
|
+
why: Secrets-engineering implementation detail; §4 sets the policy but security-audit owns the how.
|
|
38
38
|
|
|
39
39
|
capability:
|
|
40
40
|
- scenario: "A 30-person Microsoft 365 company asks: 'We do a manual monthly vendor-payment run — pull approved invoices, pay them, notify finance. Should we automate it, on what platform, and how do we not screw it up?' Produce the strategy recommendation."
|
|
@@ -58,7 +58,7 @@ loss; you find out when a customer does.
|
|
|
58
58
|
pasted inline in a node/step where an export or a screenshot leaks them.
|
|
59
59
|
- **Least privilege** — scope each token to what the automation actually needs.
|
|
60
60
|
- **Rotation plan** — tokens expire; a rotation nobody owns becomes a 2 a.m. outage. Engineering
|
|
61
|
-
detail lives in `../../
|
|
61
|
+
detail lives in `../../security-audit/SKILL.md`.
|
|
62
62
|
|
|
63
63
|
### 6. Versioning & environments
|
|
64
64
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: aws-essentials
|
|
3
|
-
description: "Use when standing up the core AWS surface a small product needs: hardening a fresh account, a private S3 bucket, encrypted RDS Postgres, ECS Fargate vs EC2, CloudFront + OAC, or scoping an IAM policy to least privilege. NOT the CI pipeline that ships the container (that is `deployment`), NOT app-code access-control review (that is `
|
|
3
|
+
description: "Use when standing up the core AWS surface a small product needs: hardening a fresh account, a private S3 bucket, encrypted RDS Postgres, ECS Fargate vs EC2, CloudFront + OAC, or scoping an IAM policy to least privilege. NOT the CI pipeline that ships the container (that is `deployment`), NOT app-code access-control review (that is `security-audit`)."
|
|
4
4
|
tags: [aws, cloud, iam, s3, infrastructure]
|
|
5
|
-
recommends: [deployment,
|
|
5
|
+
recommends: [deployment, security-audit, dynamodb, postgresdb]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -50,7 +50,7 @@ Two principal types. **IAM users** = long-lived humans/keys; avoid them for work
|
|
|
50
50
|
= an identity something *assumes* to get temporary credentials — this is what ECS tasks, Lambda,
|
|
51
51
|
CI, and federated humans use. Default to roles: a temporary credential beats a long-lived `AKIA…`
|
|
52
52
|
key that lives forever in a `.env`. (IAM governs who may call AWS APIs; access control *inside*
|
|
53
|
-
your app code is `../
|
|
53
|
+
your app code is `../security-audit/SKILL.md`.)
|
|
54
54
|
|
|
55
55
|
A policy is a JSON document. The four parts that matter:
|
|
56
56
|
|
|
@@ -4,7 +4,7 @@ should_trigger:
|
|
|
4
4
|
- prompt: "Set up an S3 bucket for user profile uploads on AWS"
|
|
5
5
|
why: Core S3 provisioning — the bucket-defaults + presigned-URL path this skill owns.
|
|
6
6
|
- prompt: "This IAM role has AdministratorAccess, tighten it to least privilege"
|
|
7
|
-
why: Cloud IAM scoping. Non-obvious that this is aws-essentials and not
|
|
7
|
+
why: Cloud IAM scoping. Non-obvious that this is aws-essentials and not security-audit — it is the cloud-identity surface, not app-code access control.
|
|
8
8
|
- prompt: "Spin up an encrypted Postgres on RDS with Multi-AZ"
|
|
9
9
|
why: RDS provisioning, including the encrypt-at-create gotcha this skill warns about.
|
|
10
10
|
- prompt: "monta CloudFront delante del meu bucket S3 privat"
|
|
@@ -21,7 +21,7 @@ should_not_trigger:
|
|
|
21
21
|
route_to: deployment
|
|
22
22
|
why: Containerization + CI pipeline (incl. OIDC to ECR), not infra provisioning. This skill ends where the container starts shipping.
|
|
23
23
|
- prompt: "Review this login handler for broken access control"
|
|
24
|
-
route_to:
|
|
24
|
+
route_to: security-audit
|
|
25
25
|
why: App-code OWASP review, not cloud IAM least-privilege.
|
|
26
26
|
- prompt: "Model a single-table DynamoDB schema for my app"
|
|
27
27
|
route_to: dynamodb
|
package/skills/backups/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: backups
|
|
3
3
|
description: "Use when designing or auditing a backup-and-restore program that must survive a real disaster: setting defensible RPO/RTO targets, laying out 3-2-1-1-0 copies that are offsite and immutable, wiring point-in-time recovery, and proving restores work on a schedule. NOT tuning Postgres internals or writing the archive_command (that is `postgresdb`)."
|
|
4
4
|
tags: [backups, disaster-recovery, pitr, rpo-rto, restore]
|
|
5
|
-
recommends: [postgresdb,
|
|
5
|
+
recommends: [postgresdb, security-audit, monitoring]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ One question decides whether you have backups or a hope: **if you restored right
|
|
|
14
14
|
|
|
15
15
|
If the answer is "we have a nightly job and it hasn't errored," you do not have backups. You have a job. A backup you have never restored is an untested assertion about the future. This skill exists to turn that assertion into evidence: pick the numbers, lay out the copies so ransomware can't reach them, and run a *real* restore on a schedule so the answer becomes "yes, we restored it last Tuesday in 41 minutes."
|
|
16
16
|
|
|
17
|
-
This is the cross-engine **strategy + verification** skill. Engine-specific SQL knobs (the actual `archive_command`, VACUUM, schema migrations) belong to `../postgresdb/SKILL.md`. Encryption-key management as a general security control belongs to `../
|
|
17
|
+
This is the cross-engine **strategy + verification** skill. Engine-specific SQL knobs (the actual `archive_command`, VACUUM, schema migrations) belong to `../postgresdb/SKILL.md`. Encryption-key management as a general security control belongs to `../security-audit/SKILL.md`.
|
|
18
18
|
|
|
19
19
|
## 1. Decide RPO and RTO first — numbers, not adjectives
|
|
20
20
|
|
|
@@ -25,8 +25,8 @@ should_not_trigger:
|
|
|
25
25
|
route_to: monitoring
|
|
26
26
|
why: "The skill decides WHAT to alert on; wiring the actual alerting/dashboards/paging is monitoring's domain."
|
|
27
27
|
- prompt: "Rotate the KMS key we use for encryption at rest and manage key access."
|
|
28
|
-
route_to:
|
|
29
|
-
why: "Key management as a general security control belongs to
|
|
28
|
+
route_to: security-audit
|
|
29
|
+
why: "Key management as a general security control belongs to security-audit, not backup strategy."
|
|
30
30
|
- prompt: "Set up cross-region read replicas to reduce read latency for European users."
|
|
31
31
|
route_to: postgresdb
|
|
32
32
|
why: "Replication for performance/availability topology is a database concern; a replica is explicitly not a backup."
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: bash-scripting
|
|
3
3
|
description: "Use when writing or hardening a shell script that must survive another machine — a CI step, install script, cron job, git hook, devcontainer entrypoint: strict-mode leaks, quoting/word-splitting, arrays, trap cleanup, bash-vs-POSIX portability, ShellCheck findings. NOT CI workflow structure, runners, caching or matrix (that is `github-actions`)."
|
|
4
4
|
tags: [bash, shell, shellcheck, posix, scripting]
|
|
5
|
-
recommends: [github-actions, error-handling, docker,
|
|
5
|
+
recommends: [github-actions, error-handling, docker, security-audit]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: building-agents
|
|
3
3
|
description: "Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is `postgresdb`) or service deployment (that is `deployment`)."
|
|
4
4
|
tags: [agents, llm, mcp, rag, evals, ai]
|
|
5
|
-
recommends: [
|
|
5
|
+
recommends: [security-audit, deployment]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -382,5 +382,5 @@ In a project with a `02-DOCS/` layer ([`harness`](../harness/SKILL.md)), read `0
|
|
|
382
382
|
|
|
383
383
|
## See also
|
|
384
384
|
|
|
385
|
-
- Stacks the examples target: [`fastapi`](../fastapi/SKILL.md), [`nextjs`](../nextjs/SKILL.md), [`go`](../go/SKILL.md), [`postgresdb`](../postgresdb/SKILL.md), [`flutter`](../flutter/SKILL.md). Harden with [`
|
|
385
|
+
- Stacks the examples target: [`fastapi`](../fastapi/SKILL.md), [`nextjs`](../nextjs/SKILL.md), [`go`](../go/SKILL.md), [`postgresdb`](../postgresdb/SKILL.md), [`flutter`](../flutter/SKILL.md). Harden with [`security-audit`](../security-audit/SKILL.md), ship with [`deployment`](../deployment/SKILL.md).
|
|
386
386
|
- External (no sibling here; use if your environment provides them): `claude-api` for Anthropic-SDK-only tuning, `deep-research` for the research-harness fan-out / verify pattern.
|
|
@@ -33,8 +33,8 @@ should_not_trigger:
|
|
|
33
33
|
route_to: "deployment"
|
|
34
34
|
why: "Shipping/CI/containerization of the service is deployment; the skill itself points to deployment for that concern."
|
|
35
35
|
- prompt: "Audit our auth handler for injection and secret-leak vulnerabilities — it's a normal REST endpoint, not an agent."
|
|
36
|
-
route_to: "
|
|
37
|
-
why: "A security-only review of a non-agent endpoint is
|
|
36
|
+
route_to: "security-audit"
|
|
37
|
+
why: "A security-only review of a non-agent endpoint is security-audit, not LLM agent architecture."
|
|
38
38
|
- prompt: "Bootstrap the 01-TOOLS and 02-DOCS workspace layout for this repo and generate the root CLAUDE.md."
|
|
39
39
|
route_to: "harness"
|
|
40
40
|
why: "Workspace scaffolding (the 01-TOOLS/02-DOCS layout) is explicitly delegated to harness."
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: chrome-extension
|
|
3
3
|
description: "Use when building or shipping a Manifest V3 browser extension and hitting its quirks — service worker dying and losing state, permission warnings, a Chrome Web Store rejection, content-script/worker/popup messaging, or an MV2-to-V3 migration. NOT a generic web app (that is `nextjs`), NOT a desktop shell (that is `electron`)."
|
|
4
4
|
tags: [chrome-extension, manifest-v3, browser-extension, service-worker, chrome-web-store]
|
|
5
|
-
recommends: [nextjs, react, gdpr-privacy,
|
|
5
|
+
recommends: [nextjs, react, gdpr-privacy, security-audit, vercel]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: cloudflare
|
|
3
3
|
description: "Use when working on Cloudflare's edge platform — wrangler.jsonc bindings, choosing between D1/KV/R2/Durable Objects/Queues, deploying a Worker or SPA via Static Assets, or designing around a Workers runtime limit. NOT generic CI/release (that is `deployment`), NOT Next.js framework wiring (that is `nextjs`), NOT DNS records (that is `domains-dns`)."
|
|
4
4
|
tags: [cloudflare, workers, edge, r2, d1, kv, queues, wrangler, serverless]
|
|
5
|
-
recommends: [deployment, nextjs, domains-dns, postgresdb, redis,
|
|
5
|
+
recommends: [deployment, nextjs, domains-dns, postgresdb, redis, security-audit]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: code-review
|
|
3
3
|
description: "Use to judge a concrete diff, branch, or GitHub PR on its own merits with no rsc-SDD spec/plan chain to key off — the spec-less giving pass behind /code-review: only findings you can defend, one verdict, read-only unless --comment or --fix. NOT the SDD gate keyed to 02-DOCS/wiki/sdd/ that also processes incoming review comments (that is `review`)."
|
|
4
4
|
tags: [code-review, pr-review, quality, correctness]
|
|
5
|
-
recommends: [review,
|
|
5
|
+
recommends: [review, security-audit, verify]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -43,7 +43,7 @@ Run these in order. Passes 1–5 are correctness/safety and are blocking-eligibl
|
|
|
43
43
|
| 5 | Tests as evidence | Do the tests prove the change? | Tests assert nothing, test the mock, miss the new branch, were deleted to go green |
|
|
44
44
|
| 6 | Reuse / simplification / efficiency | Could existing code do this? | Reimplemented helper, copy-paste divergence, N+1, needless allocation in a hot loop |
|
|
45
45
|
|
|
46
|
-
Pass 4 is a **boundary** pass — trace untrusted input to its sink and flag the reachable ones. For a real STRIDE/OWASP threat model with exploitability ranking and vulnerable→fixed diffs, hand off to `../
|
|
46
|
+
Pass 4 is a **boundary** pass — trace untrusted input to its sink and flag the reachable ones. For a real STRIDE/OWASP threat model with exploitability ranking and vulnerable→fixed diffs, hand off to `../security-audit/SKILL.md`.
|
|
47
47
|
|
|
48
48
|
Adjacent jobs, delegated by name: running the lint/type/test gates until they are green is `../verify/SKILL.md` (this skill judges whether green is *correct*); root-causing one confirmed failure is `../debug/SKILL.md`; cross-checking spec/plan/tasks *before* code exists is `../analyze/SKILL.md`.
|
|
49
49
|
|
|
@@ -24,8 +24,8 @@ should_not_trigger:
|
|
|
24
24
|
route_to: verify
|
|
25
25
|
why: Running the gates to prove green is the verify phase; code-review judges whether green is correct.
|
|
26
26
|
- prompt: "threat-model this upload endpoint for OWASP issues with fixed diffs"
|
|
27
|
-
route_to:
|
|
28
|
-
why: A deep STRIDE/OWASP exploitability pass with vulnerable→fixed diffs is
|
|
27
|
+
route_to: security-audit
|
|
28
|
+
why: A deep STRIDE/OWASP exploitability pass with vulnerable→fixed diffs is security-audit; code-review does only a boundary pass.
|
|
29
29
|
- prompt: "this test is flaky, find the root cause"
|
|
30
30
|
route_to: debug
|
|
31
31
|
why: Root-causing one confirmed failure is debug; code-review surveys a change for latent defects.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: compliance
|
|
3
|
-
description: "Use when scoping which regulatory frameworks bind a business — SOC 2, ISO 27001, HIPAA, PCI DSS, EU AI Act, DORA, NIS2 — building a control register with owners and evidence, or standing up the cadence that keeps it audit-ready. NOT drafting privacy-policy/ROPA/DPA or ToS text (that is gdpr-privacy, terms-conditions), NOT hardening code (that is
|
|
3
|
+
description: "Use when scoping which regulatory frameworks bind a business — SOC 2, ISO 27001, HIPAA, PCI DSS, EU AI Act, DORA, NIS2 — building a control register with owners and evidence, or standing up the cadence that keeps it audit-ready. NOT drafting privacy-policy/ROPA/DPA or ToS text (that is gdpr-privacy, terms-conditions), NOT hardening code (that is security-audit)."
|
|
4
4
|
tags: [compliance, soc2, iso27001, audit-readiness, controls, governance]
|
|
5
|
-
recommends: [gdpr-privacy, terms-conditions, data-policy, contracts,
|
|
5
|
+
recommends: [gdpr-privacy, terms-conditions, data-policy, contracts, security-audit]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -29,7 +29,7 @@ here.
|
|
|
29
29
|
- Internal retention/classification policy *text* → `../data-policy/SKILL.md`.
|
|
30
30
|
- Commercial contract / MSA / DPA clause drafting → `../contracts/SKILL.md`.
|
|
31
31
|
- Hardening the code (authn, secrets, injection, headers) →
|
|
32
|
-
`../
|
|
32
|
+
`../security-audit/SKILL.md`.
|
|
33
33
|
|
|
34
34
|
## Step 1 — Scope to the frameworks that actually bind
|
|
35
35
|
|
|
@@ -24,7 +24,7 @@ should_not_trigger:
|
|
|
24
24
|
route_to: terms-conditions
|
|
25
25
|
why: A one-to-many published legal document, not a control register or cadence.
|
|
26
26
|
- prompt: "Fix the SQL injection and harden the auth on our API endpoints."
|
|
27
|
-
route_to:
|
|
27
|
+
route_to: security-audit
|
|
28
28
|
why: Code-level hardening (the evidence source), not the program-level control mapping.
|
|
29
29
|
- prompt: "Review this vendor MSA and DPA before we sign it."
|
|
30
30
|
route_to: contracts
|
|
@@ -13,7 +13,7 @@ origin: risco
|
|
|
13
13
|
|
|
14
14
|
A constitution is small, durable, and enforceable. It is **not** a wiki of everything you know about the project (that is what `02-DOCS/wiki/` already is, run by the `harness`). It is the short list of principles that, if violated, mean the work is wrong regardless of whether it runs. If a rule here cannot be checked or pointed at later, it does not belong here — move it to the stack wiki and link it.
|
|
15
15
|
|
|
16
|
-
Not this phase: *what to build* → `../specify/SKILL.md`; the technical approach for one feature → `../plan/SKILL.md`; setting up `01-TOOLS/` + `02-DOCS/` or capturing general project knowledge → `harness`; concrete stack mechanics (*how* to configure Ruff, pytest, Tailwind tokens) → the relevant stack skill (`../fastapi/SKILL.md`, `../nextjs/SKILL.md`, `../go/SKILL.md`, `../postgresdb/SKILL.md`, `../flutter/SKILL.md`, `../design/SKILL.md`, `../
|
|
16
|
+
Not this phase: *what to build* → `../specify/SKILL.md`; the technical approach for one feature → `../plan/SKILL.md`; setting up `01-TOOLS/` + `02-DOCS/` or capturing general project knowledge → `harness`; concrete stack mechanics (*how* to configure Ruff, pytest, Tailwind tokens) → the relevant stack skill (`../fastapi/SKILL.md`, `../nextjs/SKILL.md`, `../go/SKILL.md`, `../postgresdb/SKILL.md`, `../flutter/SKILL.md`, `../design/SKILL.md`, `../security-audit/SKILL.md`). The constitution *names* the bar; the stack skill *enforces* it.
|
|
17
17
|
|
|
18
18
|
## Model tier — `heavy` (opt-in routing)
|
|
19
19
|
|
|
@@ -50,7 +50,7 @@ Every principle in the constitution is one numbered, testable statement. A vague
|
|
|
50
50
|
```text
|
|
51
51
|
Weak — "We care about security."
|
|
52
52
|
Strong — "4. No secret is ever committed; secrets load from 01-TOOLS/<provider>/.env
|
|
53
|
-
(gitignored). Enforced by
|
|
53
|
+
(gitignored). Enforced by security-audit + a pre-commit secret scan."
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
## The interview (requirements-first, batched)
|
|
@@ -11,7 +11,7 @@ skills loaded) plus a human spot-check.
|
|
|
11
11
|
|
|
12
12
|
- `should_trigger` — prompts that MUST load `constitution`.
|
|
13
13
|
- `should_not_trigger` — near-misses that must route elsewhere (`route_to` names
|
|
14
|
-
a real sibling in this repo: `harness`, `init`, `fastapi`, `
|
|
14
|
+
a real sibling in this repo: `harness`, `init`, `fastapi`, `security-audit`,
|
|
15
15
|
`design`).
|
|
16
16
|
- `capability` — a scenario with a `must_include` rubric to grade with vs without.
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@ Goal: the skill fires when it should and never on a near-miss.
|
|
|
21
21
|
|
|
22
22
|
1. Configure an agent with the **full catalog of skill descriptions** available
|
|
23
23
|
for routing (constitution + its rsc-sdd phase siblings once they exist, plus
|
|
24
|
-
harness, init, fastapi, nextjs, go, postgresdb, flutter, design,
|
|
24
|
+
harness, init, fastapi, nextjs, go, postgresdb, flutter, design, security-audit,
|
|
25
25
|
deployment, marketing, presentations, course-storytelling, building-agents) so
|
|
26
26
|
routing competes realistically.
|
|
27
27
|
2. For each `should_trigger` prompt: feed it cold, record whether `constitution`
|
|
@@ -48,8 +48,8 @@ should_not_trigger:
|
|
|
48
48
|
why: "The constitution NAMES the coverage bar; the concrete lint/test config is a stack mechanic owned by fastapi — the skill explicitly defers this."
|
|
49
49
|
|
|
50
50
|
- prompt: "Add input validation and proper authz to our login endpoint so it can't be abused."
|
|
51
|
-
route_to: "
|
|
52
|
-
why: "Implementing the security baseline is
|
|
51
|
+
route_to: "security-audit"
|
|
52
|
+
why: "Implementing the security baseline is security-audit; the constitution only ratifies the principle (e.g. 'authn/z baseline met') and links the enforcer."
|
|
53
53
|
|
|
54
54
|
- prompt: "Pick the type scale, color tokens, and spacing system for our app's design language."
|
|
55
55
|
route_to: "design"
|
|
@@ -52,7 +52,7 @@ version: v1.0.0
|
|
|
52
52
|
## 5. Security & privacy floor
|
|
53
53
|
|
|
54
54
|
12. No secret is ever committed. Secrets load from `01-TOOLS/<provider>/.env` (gitignored).
|
|
55
|
-
Baseline: `
|
|
55
|
+
Baseline: `security-audit`.
|
|
56
56
|
13. <authn/z baseline, data residency, dependency policy> as applicable.
|
|
57
57
|
|
|
58
58
|
## 6. UX / accessibility floor (if there is a UI)
|
package/skills/cpp/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: cpp
|
|
3
3
|
description: "Use when writing, reviewing, modernizing, building, or debugging C++ - RAII and resource lifetime, smart-pointer ownership, move semantics and the Rule of Zero/Five, target-based CMake with FetchContent, and killing undefined behavior with ASan/UBSan/TSan plus clang-tidy. NOT borrow-checker / Result-Option / cargo memory safety (that is rust)."
|
|
4
4
|
tags: [cpp, c++, modern-cpp, raii, cmake]
|
|
5
|
-
recommends: [rust,
|
|
5
|
+
recommends: [rust, security-audit, deployment]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@ behind confirmed compiler support. Compiler matrix:
|
|
|
26
26
|
Delegate: borrow-checker, `Result`/`Option`, cargo, ownership-via-compiler ->
|
|
27
27
|
[`rust`](../rust/SKILL.md) — C++ buys safety with discipline (RAII + smart pointers +
|
|
28
28
|
sanitizers); do not conflate the mechanisms. Language-agnostic threat modeling, authz,
|
|
29
|
-
OWASP-class review -> [`
|
|
29
|
+
OWASP-class review -> [`security-audit`](../security-audit/SKILL.md); the C++-specific
|
|
30
30
|
memory/UB controls (bounds, lifetime, integer overflow, format-string, sanitizers) stay
|
|
31
31
|
**here**. Containerizing and shipping the binary -> [`deployment`](../deployment/SKILL.md);
|
|
32
32
|
this skill stops at the CMake build + a sanitizer-CI note.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
These cases are run by the rsc skill-eval harness (a Claude agent with the full skill catalog
|
|
4
4
|
loaded), or read manually. They measure two things: **triggering** — that the `cpp` skill's
|
|
5
5
|
description fires on each `should_trigger` prompt and stays quiet on the `should_not_trigger`
|
|
6
|
-
near-misses, routing each of those to the named real sibling (`rust`, `
|
|
6
|
+
near-misses, routing each of those to the named real sibling (`rust`, `security-audit`,
|
|
7
7
|
`deployment`, `go`, `harness`) instead; and **capability** — that, with `SKILL.md` and its
|
|
8
8
|
references loaded, a graded model's generated C++ satisfies the `capability.must_include` rubric
|
|
9
9
|
(RAII over raw resources, smart-pointer ownership, no `new`/`delete`, target-based CMake with
|
|
@@ -21,8 +21,8 @@ should_not_trigger:
|
|
|
21
21
|
route_to: "rust"
|
|
22
22
|
why: "Borrow checker + Result/Option is Rust's compiler-enforced ownership, a different mechanism than C++ RAII discipline."
|
|
23
23
|
- prompt: "Do a threat model and authz review of my service's permission boundaries and OWASP exposure."
|
|
24
|
-
route_to: "
|
|
25
|
-
why: "Language-agnostic threat modeling and authz/abuse review is delegated to
|
|
24
|
+
route_to: "security-audit"
|
|
25
|
+
why: "Language-agnostic threat modeling and authz/abuse review is delegated to security-audit; only C++-specific memory/UB controls stay here."
|
|
26
26
|
- prompt: "Write a multi-stage Dockerfile and GitHub Actions CI to build and ship my compiled binary."
|
|
27
27
|
route_to: "deployment"
|
|
28
28
|
why: "Containerizing and shipping the binary is delegated to deployment; this skill stops at the CMake build plus a sanitizer-CI note."
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: csharp-dotnet
|
|
3
3
|
description: "Use when writing, reviewing, testing, or shipping C# / .NET code — ASP.NET Core APIs (minimal APIs vs controllers), EF Core data access, async correctness, solution layout in .cs/.csproj/.sln. NOT a Java/Spring backend (that is spring-boot), NOT a Node/TypeScript backend (that is nestjs), NOT framework-neutral REST naming (that is api-design)."
|
|
4
4
|
tags: [csharp, dotnet, aspnetcore, efcore, async]
|
|
5
|
-
recommends: [postgresdb,
|
|
5
|
+
recommends: [postgresdb, security-audit, deployment]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@ which TFM it requires.
|
|
|
26
26
|
|---|---|
|
|
27
27
|
| Java / Spring Boot backend | `spring-boot` |
|
|
28
28
|
| Node / NestJS TypeScript backend | `nestjs` |
|
|
29
|
-
| Language-agnostic threat modeling, OWASP authz/abuse review | `../
|
|
29
|
+
| Language-agnostic threat modeling, OWASP authz/abuse review | `../security-audit/SKILL.md` |
|
|
30
30
|
| Raw Postgres schema/index/query tuning | `../postgresdb/SKILL.md` |
|
|
31
31
|
| Framework-neutral REST resource taxonomy | `api-design` |
|
|
32
32
|
| Dockerfile / CI pipeline / deploy target | `../deployment/SKILL.md` |
|
|
@@ -230,7 +230,7 @@ and raw-SQL safety in full are in **references/efcore.md**. Schema/index tuning
|
|
|
230
230
|
## .NET security controls
|
|
231
231
|
|
|
232
232
|
Keep only the .NET-specific controls here; threat modeling and OWASP review go to
|
|
233
|
-
`../
|
|
233
|
+
`../security-audit/SKILL.md`.
|
|
234
234
|
|
|
235
235
|
- **Parameterized data access** — EF LINQ / parameterized `FromSql` / ADO.NET
|
|
236
236
|
`SqlParameter`. Never concatenate user input into SQL. Why: SQL injection.
|
|
@@ -21,7 +21,7 @@ should_not_trigger:
|
|
|
21
21
|
route_to: spring-boot
|
|
22
22
|
why: JVM/Java backend — explicitly delegated; this skill is the .NET counterpart only.
|
|
23
23
|
- prompt: "Threat-model my multi-tenant authorization boundaries against OWASP."
|
|
24
|
-
route_to:
|
|
24
|
+
route_to: security-audit
|
|
25
25
|
why: Framework-neutral threat modeling; this skill keeps only the concrete .NET controls.
|
|
26
26
|
- prompt: "Tune this slow Postgres query and design the right indexes."
|
|
27
27
|
route_to: postgresdb
|
|
@@ -96,4 +96,4 @@ Use `IOptionsSnapshot<T>` in scoped services when values can change at runtime;
|
|
|
96
96
|
|
|
97
97
|
## Auth defaults
|
|
98
98
|
|
|
99
|
-
ASP.NET Core 10 is secure-by-default. Still: configure authentication then authorization in the right middleware order, prefer policy-based authorization (`RequireAuthorization("policy")`) over scattered role checks, enforce HTTPS redirection + HSTS in production, and keep token/cookie protection on the Data Protection key ring (persisted and shared across instances). Threat modeling beyond these knobs is `
|
|
99
|
+
ASP.NET Core 10 is secure-by-default. Still: configure authentication then authorization in the right middleware order, prefer policy-based authorization (`RequireAuthorization("policy")`) over scattered role checks, enforce HTTPS redirection + HSTS in production, and keep token/cookie protection on the Data Protection key ring (persisted and shared across instances). Threat modeling beyond these knobs is `security-audit`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: data-policy
|
|
3
3
|
description: "Use when building internal data-governance machinery: a retention schedule (period, lawful basis, expiry action, system where deletion runs), an Art. 6 lawful-basis register, an Art. 30 ROPA, or a consent capture/withdrawal model. NOT the public privacy notice or DSAR handling (that is `gdpr-privacy`), NOT SOC 2 posture (that is `compliance`)."
|
|
4
4
|
tags: [data-governance, retention, gdpr, ropa, consent, lawful-basis, privacy, data-minimization]
|
|
5
|
-
recommends: [gdpr-privacy, compliance, contracts,
|
|
5
|
+
recommends: [gdpr-privacy, compliance, contracts, security-audit, db-migrations, postgresdb]
|
|
6
6
|
origin: risco
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -136,7 +136,7 @@ For cross-border transfers, name the mechanism in the ROPA row (e.g. SCCs) and p
|
|
|
136
136
|
|
|
137
137
|
Retention periods are jurisdiction- and sector-specific, so a period you assert as final is legal advice you are not qualified to give — that is why this line has no exceptions. **You produce governance drafts, not legal sign-off.** Every policy you emit ends with a statement that a qualified DPO or privacy counsel must validate the schedule and lawful-basis register before adoption, and that this is not legal advice. You never assert a period is universally lawful.
|
|
138
138
|
|
|
139
|
-
Hand off the edges: public-facing privacy notice + data-subject access/erasure (DSAR) handling -> `../gdpr-privacy/SKILL.md`; audit posture, SOC 2 / ISO 27001, control mapping -> `../compliance/SKILL.md`; a negotiated DPA's contractual clauses or a two-party data contract -> `../contracts/SKILL.md`; encryption, access hardening, threat controls on the systems -> `../
|
|
139
|
+
Hand off the edges: public-facing privacy notice + data-subject access/erasure (DSAR) handling -> `../gdpr-privacy/SKILL.md`; audit posture, SOC 2 / ISO 27001, control mapping -> `../compliance/SKILL.md`; a negotiated DPA's contractual clauses or a two-party data contract -> `../contracts/SKILL.md`; encryption, access hardening, threat controls on the systems -> `../security-audit/SKILL.md`; the actual deletion mechanics in the database -> `../db-migrations/SKILL.md` / `../postgresdb/SKILL.md`.
|
|
140
140
|
|
|
141
141
|
## Anti-patterns
|
|
142
142
|
|
|
@@ -6,7 +6,7 @@ intuition — does the description fire on the right prompts (including the
|
|
|
6
6
|
non-obvious "fix retention in backups" and the Spanish phrasing) and defer to the
|
|
7
7
|
named sibling on near-misses like a public privacy notice (`gdpr-privacy`), DPA
|
|
8
8
|
clauses (`contracts`), SOC 2 readiness (`compliance`), encryption
|
|
9
|
-
(`
|
|
9
|
+
(`security-audit`), or TTL migrations (`db-migrations`). The `capability` case is
|
|
10
10
|
graded by generating a real retention schedule for the scenario and checking it
|
|
11
11
|
against the `must_include` rubric by hand. To run: paste a prompt to the skill,
|
|
12
12
|
read the output, and confirm the rubric items are present. The `scripts/verify.sh`
|
|
@@ -27,7 +27,7 @@ should_not_trigger:
|
|
|
27
27
|
route_to: compliance
|
|
28
28
|
why: "Audit posture / framework control mapping, not data-lifecycle rules."
|
|
29
29
|
- prompt: "Encrypt the PII at rest and harden the database access."
|
|
30
|
-
route_to:
|
|
30
|
+
route_to: security-audit
|
|
31
31
|
why: "Security controls on the systems, not the governance policy they enforce."
|
|
32
32
|
- prompt: "Write the TTL migration to actually drop the old partitions."
|
|
33
33
|
route_to: db-migrations
|
package/skills/debug/SKILL.md
CHANGED
|
@@ -115,7 +115,7 @@ that gate, not this skill, is what licenses the word "done".
|
|
|
115
115
|
| Next.js / React | `../nextjs/references/testing.md` | Vitest `--no-isolate`/`.only`, Playwright trace viewer, RSC vs client boundary errors, hydration mismatches |
|
|
116
116
|
| Flutter / Dart | `../flutter/references/testing.md` | `flutter test --plain-name`, widget pump/settle timing, DevTools, golden diffs |
|
|
117
117
|
| Postgres / data layer | `../postgresdb/SKILL.md` | `EXPLAIN ANALYZE`, isolation-level/locking races, constraint violations, migration-order bugs |
|
|
118
|
-
| Security-shaped failure | `../
|
|
118
|
+
| Security-shaped failure | `../security-audit/SKILL.md` | auth/authz edge cases, injection, secret/leak paths surfacing as "weird" failures |
|
|
119
119
|
|
|
120
120
|
If the failure spans two stacks (a Next.js call into a FastAPI endpoint), reproduce at the boundary
|
|
121
121
|
first — isolate which side actually fails before you open either stack's debugger.
|