[scope] Audit scope
Optional file glob, directory, or `full`. Omit to scan the current project root. Keep it bounded to the relevant trust boundary unless a full-project review is intended.
/ak:security src/auth/ Quick Ref / Command
Engineer Kit
/ak:security
Threat-model a scope with STRIDE and OWASP, optional red-team personas, severity-ranked findings, credential masking, and iterative fixes when authorized.
Resolve scope
Run red-team loop when requested
Sweep STRIDE
Map OWASP
Rule 01
Threat categories are systematic, not vibes
Rule 02
Red-team mode reasons as attackers from four distinct personas
Rule 03
Confirmed Critical and High findings drive fix priority
Rule 04
Credential hygiene applies across every mode and persona
Core lanes from input to output, aligned with the command's real execution path.
Start
Input, scope, route
Work
Agent / skill execution
Verify
Gate, review, validation
Close
Report, handoff, artifact
How to invoke the skill: syntax, positional arguments, shared options, then each subcommand with its own syntax and outcome.
Syntax
/ak:security [scope] [--secrets-only] [--deps-only] [--fix] [--red-team] [--iterations N][scope] Audit scope
Optional file glob, directory, or `full`. Omit to scan the current project root. Keep it bounded to the relevant trust boundary unless a full-project review is intended.
/ak:security src/auth/ --secrets-only Secrets only
Limit the pass to hardcoded credentials, API keys, private keys, and similar secret patterns with local context checks.
/ak:security --secrets-only --deps-only Dependencies only
Limit the pass to supported package-audit tooling for the detected Node.js or Python project. Unavailable tooling is reported as unavailable, not clean.
/ak:security --deps-only --fix Fix findings
Authorize local targeted fixes after the audit. Each successful iteration runs a guard and creates a local commit; it does not authorize push, PR, merge, release, or deployment.
/ak:security src/ --fix --iterations 15 --red-team Red-team discovery
Add attacker-persona discovery before the final STRIDE and OWASP sweep: external adversary, supply-chain, insider, and infrastructure perspectives.
/ak:security full --red-team --iterations N Iteration cap
Cap red-team discovery or fix iterations for the selected mode. `N` is user-chosen; no default numeric cap is documented.
/ak:security src/ --red-team --iterations 20 default Audit only
--red-team Persona discovery
--fix Audit + fix
--iterations N Bounded loop
Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.
/ak:security src/api/**/*.ts /ak:securityfull--red-team
/ak:securitysrc/--red-team--iterations20
/ak:securitysrc/--fix--iterations15
/ak:security--secrets-only
/ak:security--deps-only
Security audit report
Pattern
Chat report with severity table; optional security-audit-results.tsv during red-team loops Files scanned, severity counts, STRIDE/OWASP categories, file-line evidence, impact, and fix recommendations.