security
Use for security review with project-specific framing. Adds memory of prior incidents/threats, project-stack-aware patterns (Salesforce sharing model, etc.). Complementary to built-in /security-review.
What this skill does
# security (SiftCoder-shaped)
**Complementary to** built-in `/security-review`. Built-in is excellent at OWASP top 10 + common patterns. This skill adds:
1. **Stack-aware** — Salesforce orgs need sharing/CRUD/FLS analysis; Node.js needs prototype-pollution/RCE-via-deserialisation; Apex needs SOQL injection variants
2. **Incident memory** — prior security findings captured by `pin-incident` hook fed back as known risk areas
3. **Threat-model-aware** — if the project has documented threats (e.g. PII handling, payment, multi-tenant), targeted assessment
## When to use which
- General OWASP / common vulnerabilities → built-in `/security-review`
- Salesforce-specific (sharing, FLS, CRUD, callouts, secrets) → `/siftcoder:salesforce-security`
- Compliance-shaped → `/comply`
- Project-context-aware security → this skill
## Method
1. **Stack detect.** What language(s), framework(s), domain (web/cli/iot/sf-org)?
2. **Incident memory.** `mem_search { kind: "incident" }`. What's been hit before?
3. **Threat model.**
- If project has a threat doc → load it
- Else infer top 3 threats from stack + domain
4. **Stack-tailored review.** Different rule sets per stack:
- Node/JS: prototype pollution, eval, deserialisation, regex DoS, XSS, CSRF, JWT misuse
- Python: pickle, eval, SQL injection, weak crypto, path traversal
- Apex: SOQL injection (string concat), CRUD/FLS bypass, sharing leaks, XSS via Visualforce
- Generic: secrets in code, weak randomness, time-of-check vs time-of-use
5. **Findings.** Severity (critical / high / medium / low / info). Evidence (file:line). Reproduction (where applicable). Mitigation (specific code change).
## Output shape
```
Stack: <detected>
Threat model: <loaded from project | inferred>
Incident memory: <count> prior incidents in this area
Findings:
[CRITICAL] SOQL injection at src/UserController.cls:42
Evidence: query string built via concatenation
Repro: POST /api/users?filter=' OR Id != null--
Fix: use bind variables (Database.queryWithBinds) or WITH SECURITY_ENFORCED
[HIGH] Secret in repo at config/dev.json:14
Evidence: api_key field with non-empty value
Fix: move to env var; add to .gitignore; rotate key
[MEDIUM] Weak randomness for session id at src/auth/session.ts:23
Evidence: Math.random() used
Fix: crypto.randomUUID() or crypto.randomBytes(16)
Summary:
Critical: 1
High: 1
Medium: 1
Low: 0
Pre-merge required: address critical + high.
```
## Rules
- **Reproduction or evidence is required for critical/high.** Speculation is medium at most.
- **Stack-specific rules apply.** Generic OWASP findings → defer to built-in.
- **Cross-reference incident memory.** "We had a SQLi here in 2024" → flag related code as elevated.
- **Specific fixes.** Not "validate input" — name the validation library, the encoding, the check.
## Anti-patterns
- Generic "use prepared statements" without showing the offending concat
- Flagging every input as potentially-malicious without showing the threat path
- Ignoring stack idioms (Apex `with sharing` is a real thing; Node has no equivalent)
- Long lectures per finding
## When NOT to use
- Greenfield without threat model — built-in suffices
- Compliance review — `/comply`
- Salesforce-only — `/siftcoder:salesforce-security`
## Subagent dispatch
- `Explore` for code paths
- Built-in `/security-review` for the OWASP pass — combine outputs
- `general-purpose` for the synthesis
## Value over built-in /security-review
Built-in is generic. This skill adds: stack-tailoring, incident memory, threat model awareness, and project-specific patterns. Use both — built-in for breadth, this for depth.
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.