skills/audit-and-fix/SKILL.md
Composite: security audit -> production upgrade -> self-evaluation. Use when user says 'audit', 'check the codebase', 'find and fix issues', or 'is this production-ready'.
npx skillsauth add ShaheerKhawaja/ProductionOS audit-and-fixInstall 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.
Composite skill that chains security-audit, production-upgrade, and self-eval into a single audit-then-remediate pipeline. Each step consumes the previous step's artifacts and gates the next step based on severity.
security-audit -> production-upgrade -> self-eval
| | |
v v v
AUDIT-SECURITY.md UPGRADE.md EVAL-RESULT.md
| Parameter | Values | Default | Description |
|-----------|--------|---------|-------------|
| target | path, ., changed-files | . | What to audit |
| scope | full, changed-files | full | Breadth of analysis |
Invokes: /security-audit with framework=all, scope={scope}
What it does:
Produces: .productionos/AUDIT-SECURITY.md
Gate to Step 2:
--mode=audit (read-only upgrade analysis, no code changes).Invokes: /production-upgrade --mode=audit
What it does:
Produces: .productionos/UPGRADE.md
Gate to Step 3:
Invokes: /self-eval last
What it does:
Produces: .productionos/EVAL-RESULT.md
When security-audit finds CRITICAL severity issues:
STATUS: BLOCKED
REASON: {N} CRITICAL security findings require immediate attention
FINDINGS:
1. {finding_id}: {description} at {file}:{line} — {framework_mapping}
...
RECOMMENDATION: Fix CRITICAL issues manually, then re-run /audit-and-fix
Do NOT attempt automated fixes for CRITICAL security issues. Authentication bypasses, exposed secrets, and RCE vectors require human review.
Final composite report written to .productionos/AUDIT-AND-FIX.md:
# Audit & Fix Report
## Summary
- **Security Posture:** X/10
- **Production Readiness:** X/10
- **Self-Eval Score:** X/10
- **Findings:** N security, M upgrade opportunities
- **Status:** PASS | BLOCKED | NEEDS_ATTENTION
## Security Findings (from Step 1)
{top 10 findings by severity, full list in AUDIT-SECURITY.md}
## Upgrade Opportunities (from Step 2)
{prioritized list with effort estimates}
## Evaluation (from Step 3)
{7-dimension score breakdown}
## Next Actions
1. {highest priority action}
2. {second priority action}
...
/debug instead/ship-safe instead/full-cycle insteadtools
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.