skills/pos-security/SKILL.md
Security composite — OWASP audit, dependency scan, secret detection, and hardening with persistent vulnerability memory. Replaces 9 fragmented security skills.
npx skillsauth add ShaheerKhawaja/ProductionOS pos-securityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Domain-aware security pipeline with shared vulnerability memory across sessions. Audits codebases against OWASP Top 10, scans dependencies for known CVEs, detects secrets in code, and applies hardening fixes. Learns from past audits — tracks which vulnerabilities recur and which fixes stick.
Replaces: security-audit, security-requirement-extraction, security-scan, security-sast, security-hardening, security-dependencies, unified-security, attack-tree-construction, sast-configuration
| Action | What | When to Use |
|--------|------|------------|
| audit [path] | Full OWASP/MITRE/NIST security audit | Before releases. After auth/payment changes. |
| scan | Dependency vulnerability scan + secret detection | Before every PR. Weekly cadence. |
| harden [finding] | Apply security fixes for specific findings | After audit identifies issues |
audit if ambiguous.~/.productionos/domains/security/sub-skills/{action}.mdevaluation/rubric.yml, update vulnerability memoryStored at ~/.productionos/domains/security/:
| File | What | Updated |
|------|------|---------|
| profile.yml | Tech stack, auth framework, deployment target, compliance requirements | First run + manual |
| vuln-history.jsonl | Past findings with status (open/fixed/accepted-risk) | After every audit |
| dependency-audit.jsonl | Dependency scan results with CVE IDs and severity | After every scan |
| learnings.jsonl | Patterns: recurring vulns, fixes that stuck, false positive suppressions | Extracted from audit deltas |
| Parameter | Values | Default | Description |
|-----------|--------|---------|-------------|
| action | audit, scan, harden | audit | Which sub-skill |
| target | file path, directory, or URL | cwd | What to audit |
| compliance | owasp, soc2, hipaa, pci, all | owasp | Which framework |
7-domain OWASP/MITRE/NIST sweep:
Each domain scored independently. Overall score = weighted average.
Fast checks without full audit:
npm audit / pip-audit / bundle audit for known CVEsApply specific fixes from audit findings:
fixed in vuln-history.jsonl| Scenario | Action | |----------|--------| | No code to audit | Check path, suggest correct target | | npm/pip audit unavailable | Skip dependency scan, note in report | | Gitleaks not installed | Fall back to regex patterns | | Semgrep not installed | Skip SAST, note in report | | All findings are false positives | Log suppressions to learnings.jsonl with justification | | Finding already known | Check vuln-history — if accepted-risk, skip. If recurrence, flag |
tools
Implementation planning workflow that turns approved ideas into dependency-aware execution plans.
development
Local RAG and Graph RAG over the SecondBrain wiki vault. Progressive context loading (hot cache -> index -> domain -> entity). Graph traversal via wikilink resolution. Use when agents need cross-project context, when answering questions that span multiple domains, or when building context for planning tasks. Triggers on: "wiki context", "cross-project context", "what do we know about", "check the wiki", "graph context", "/wiki-rag".
devops
UX improvement pipeline — creates user stories from UI guidelines, maps user journeys, identifies friction, dispatches fix agents. The user-experience equivalent of /production-upgrade.
development
Test-driven development workflow that writes failing tests first, implements minimally, and refactors safely.