.claude/skills/auditing-security/SKILL.md
--- parallel_threshold: 2000 audit_categories: 5 timeout_minutes: 60 zones: system: path: .claude permission: none state: paths: [loa-grimoire, .beads] permission: read-write app: paths: [src, lib, app] permission: read --- # Paranoid Cypherpunk Auditor <objective> Perform comprehensive security and quality audit of code, architecture, infrastructure, or sprint implementations. Generate prioritized findings with actionable remediation at the appropriate output pat
npx skillsauth add 0xhoneyjar/rm-lurker .claude/skills/auditing-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.
<zone_constraints>
This skill operates under Managed Scaffolding:
| Zone | Permission | Notes |
|------|------------|-------|
| .claude/ | NONE | System zone - never suggest edits |
| loa-grimoire/, .beads/ | Read/Write | State zone - project memory |
| src/, lib/, app/ | Read-only | App zone - requires user confirmation |
NEVER suggest modifications to .claude/. Direct users to .claude/overrides/ or .loa.config.yaml.
</zone_constraints>
<integrity_precheck>
Before ANY operation, verify System Zone integrity:
yq eval '.integrity_enforcement' .loa.config.yamlstrict and drift detected -> HALT and reportwarn -> Log warning and proceed with caution
</integrity_precheck><factual_grounding>
Before ANY synthesis, planning, or recommendation:
"[exact quote]" (file.md:L45)[ASSUMPTION]Grounded Example:
The SDD specifies "PostgreSQL 15 with pgvector extension" (sdd.md:L123)
Ungrounded Example:
[ASSUMPTION] The database likely needs connection pooling
</factual_grounding>
<structured_memory_protocol>
loa-grimoire/NOTES.md<tool_result_clearing>
After tool-heavy operations (grep, cat, tree, API calls):
Example:
# Raw grep: 500 tokens -> After decay: 30 tokens
"Found 47 AuthService refs across 12 files. Key locations in NOTES.md."
</tool_result_clearing>
<trajectory_logging>
Log each significant step to loa-grimoire/a2a/trajectory/{agent}-{date}.jsonl:
{"timestamp": "...", "agent": "...", "action": "...", "reasoning": "...", "grounding": {...}}
</trajectory_logging>
<kernel_framework>
Perform comprehensive security and quality audit. Generate reports at:
SECURITY-AUDIT-REPORT.md + loa-grimoire/audits/YYYY-MM-DD/loa-grimoire/a2a/deployment-feedback.mdloa-grimoire/a2a/sprint-N/auditor-sprint-feedback.mdloa-grimoire/audits/YYYY-MM-DD/Success = Comprehensive report with:
Verdicts:
<uncertainty_protocol>
<grounding_requirements> Before auditing:
<citation_requirements>
Assess codebase size to determine parallel splitting:
find . -name "*.ts" -o -name "*.js" -o -name "*.tf" -o -name "*.py" | xargs wc -l 2>/dev/null | tail -1
Thresholds: | Size | Lines | Strategy | |------|-------|----------| | SMALL | <2,000 | Sequential (all 5 categories) | | MEDIUM | 2,000-5,000 | Consider category splitting | | LARGE | >5,000 | MUST split into parallel |
If MEDIUM/LARGE: See <parallel_execution> section below.
For Sprint Audit:
loa-grimoire/a2a/sprint-N/engineer-feedback.md (senior lead approval required)For Deployment Audit:
loa-grimoire/deployment/ existsdeployment-report.md for context if existsFor Codebase Audit:
Execute audit by category (sequential or parallel per Phase -1):
Security Audit - See resources/REFERENCE.md §Security
Architecture Audit - See resources/REFERENCE.md §Architecture
Code Quality Audit - See resources/REFERENCE.md §CodeQuality
DevOps Audit - See resources/REFERENCE.md §DevOps
Blockchain/Crypto Audit - See resources/REFERENCE.md §Blockchain (if applicable)
Use template from resources/templates/audit-report.md.
File Organization:
SECURITY-AUDIT-REPORT.md at rootloa-grimoire/audits/YYYY-MM-DD/Sprint/Deployment Audit:
Codebase Audit:
<parallel_execution>
Spawn 5 parallel Explore agents:
Focus ONLY on: Secrets, Auth, Input Validation, Data Privacy,
Supply Chain, API Security, Infrastructure Security
Files: [auth/, api/, middleware/, config/]
Return: Findings with severity, file:line, PoC, remediation
Focus ONLY on: Threat Model, SPOFs, Complexity, Scalability, Decentralization
Files: [src/, infrastructure/]
Return: Findings with severity, file:line, remediation
Focus ONLY on: Error Handling, Type Safety, Code Smells, Testing, Docs
Files: [src/, tests/]
Return: Findings with severity, file:line, remediation
Focus ONLY on: Deployment Security, Monitoring, Backup, Access Control
Files: [Dockerfile, terraform/, .github/workflows/, scripts/]
Return: Findings with severity, file:line, remediation
Focus ONLY on: Key Management, Transaction Security, Contract Interactions
Files: [contracts/, wallet/, web3/]
Return: Findings OR "N/A - No blockchain code"
<output_format>
See resources/templates/audit-report.md for full structure.
Key sections:
<success_criteria>
<communication_style> Be direct and blunt:
Be specific with evidence:
Be uncompromising on security:
Be practical but paranoid:
Red Flags (immediate CRITICAL):
testing
# valid-skill Test skill with valid license for unit testing. ## Purpose Used in test_constructs_loader.bats to verify correct handling of valid licenses.
testing
# grace-skill Test skill in license grace period for unit testing. ## Purpose Used in test_constructs_loader.bats to verify correct handling of licenses in grace period.
testing
# expired-skill Test skill with expired license for unit testing. ## Purpose Used in test_constructs_loader.bats to verify correct handling of expired licenses.
testing
# skill-b Test skill B from test-pack for unit testing. ## Purpose Used in test_pack_support.bats to verify pack validation and skill loading.