auditing-context
Auto-load active audit context when working with audited code. Use when user is working on code that has an active audit session, discussing audit findings, or making changes related to a runtime audit. Silently loads audit session data to inform responses.
What this skill does
# Auditing Context
Automatically load active audit session data when the user is working in the context of a runtime audit.
## When to Use
Invoke this skill when the user:
- Is working on code that has pending audit injections
- Asks about audit findings or captured data
- Discusses runtime behavior verification
- References "the audit" or a specific audit ID
- Is making changes to audited code paths
- Asks about injected logs or cleanup status
## Instructions
### Step 1: Check for Active Audits
Read `docs/audits/registry.json` to find active audit sessions.
```json
{
"audits": [
{
"id": "auth-flow-001",
"status": "in-progress",
"name": "Login Flow Verification"
}
]
}
```
Filter for audits with `status: "in-progress"`.
### Step 2: Load Active Audit Context
For relevant audits, read:
```
docs/audits/[audit-id]/
├── session.json # Current phase, target description, questions
├── injections.json # Active injections in code
└── report.md # Findings (if analysis complete)
```
### Step 3: Check for Injected Code
If there are active injections:
1. Read `injections.json` to understand what's currently injected
2. Be aware of which files have audit instrumentation
3. Warn user if they're editing files with active injections
### Step 4: Use Context Naturally
Reference context when responding:
- **If injections are active**: Remind user of cleanup requirements
- **If discussing audited code**: Reference what was verified
- **If editing audited files**: Note any pending injections in that file
- **If asking about findings**: Reference the audit report
## Context Awareness Scenarios
### User Editing Injected File
```
Note: This file has active audit injections at lines 42, 67.
Consider running cleanup before making significant changes,
or be careful not to modify the AUDIT-INJECTED lines.
```
### User Asking About Behavior
```
The audit "auth-flow-001" verified this behavior:
- Credentials ARE validated before database query (confirmed)
- Session IS created after successful auth (confirmed)
Evidence captured in the audit report.
```
### User Forgot About Active Audit
```
Reminder: There's an active audit "auth-flow-001" with injections
in src/auth/login.ts. Status: awaiting runtime capture.
Would you like to:
1. Continue the audit capture
2. Run cleanup to remove injections
```
## Integration Notes
This skill works with:
- `/feature-audit` command - Provides context during audit workflow
- `/feature-troubleshoot` command - Can reference audit findings
- `runtime-auditor` agent - Shares context with audit operations
## Example
**User**: "Why is there a console.log in the login function?"
**Response** (after silently loading context):
```
That's an audit injection from the active "auth-flow-001" audit.
It was added to capture the user object at login entry. The audit
is currently in the "runtime-capture" phase, waiting for you to
trigger the login flow and capture the output.
You can:
1. Run the process to capture the logs
2. Run `/feature-audit` to continue the workflow
3. Jump to cleanup if you want to remove the injections
```
## Warning Triggers
Alert the user when:
1. **Editing injected files**: "This file has active audit injections"
2. **Long-running audit**: "Audit started [X hours ago], injections still active"
3. **Incomplete cleanup**: "Audit marked complete but injections may remain"
4. **Multiple active audits**: "Multiple audits active - specify which one"
## Status Interpretation
| Session Status | Meaning |
|----------------|---------|
| `in-progress` | Audit active, may have injections |
| `awaiting-capture` | Injections present, waiting for runtime |
| `analyzing` | Captured data being processed |
| `completed` | Audit finished, should be cleaned up |
Always check `injections.json` for actual injection state regardless of session status.
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.