src/autoskillit/skills_extended/audit-defense-standards/SKILL.md
Audit the codebase against defense standards derived from historical bug patterns. Standards accumulate over time as new patterns are discovered via audit-bugs and design-guards. Use when user says "audit defenses", "audit defense standards", "check defenses", or "defense audit".
npx skillsauth add talont-org/autoskillit audit-defense-standardsInstall 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.
Audit the codebase against defense standards derived from historical bug pattern analysis. Each standard represents an architectural lesson learned from real bugs - a guard that prevents an entire class of bugs, not just one instance.
Standards are added here when /autoskillit:design-guards recommends them and the user approves.
NEVER:
run_in_background: true is prohibited)ALWAYS:
{{AUTOSKILLIT_TEMP}}/audit-defense-standards/ (create if needed){{AUTOSKILLIT_TEMP}}/audit-defense-standards/defense_audit_{YYYY-MM-DD_HHMMSS}.mdThis skill requires project-specific defense standards. Define them in this section following the format below.
The following examples show common patterns applicable to many codebases. Replace these with project-specific standards derived from your bug pattern analysis.
Rule: Data crossing component boundaries must pass through typed accessors or validation. No raw dict.get() or unvalidated external input at boundary crossings.
Audit Strategy:
Dict[str, Any] or unvalidated strings.pop() on function parameters)Severity: HIGH
Rule: When error/failure data passes through transformations or wrappers, the error message/context must be explicitly preserved. Broad exception handlers must not swallow programmer errors.
Audit Strategy:
except Exception and except BaseException handlers; verify each is narrowed or justifiedSeverity: HIGH
Rule: Domain objects must be validated at construction time, not only at persistence boundaries. Direct constructors must not bypass validators.
Audit Strategy:
Severity: HIGH
Defense standards come from the /autoskillit:design-guards pipeline:
/autoskillit:audit-bugs identifies recurring patterns/autoskillit:design-guards investigates solutions and recommends standardsStandard format:
### DS-N: {Short Name}
**Rule:** {One-sentence rule statement}
**Audit Strategy:**
{Concrete steps subagents should take to check compliance}
**Severity:** {CRITICAL / HIGH / MEDIUM / LOW}
Before first use: Replace the example standards above with your project's actual defense standards, or keep them as a starting point and add project-specific ones as they're discovered.
{{AUTOSKILLIT_TEMP}}/audit-defense-standards/ exists (mkdir -p){{AUTOSKILLIT_TEMP}}/audit-defense-standards/defense_audit_{YYYY-MM-DD_HHMMSS}.md (relative to the current working directory)# Defense Standards Audit
**Date:** {today}
**Standards Checked:** {count}
## Summary
| Standard | Violations | Severity |
|----------|-----------|----------|
| DS-1: Typed Boundaries | X | HIGH |
| DS-2: Error Context | X | HIGH |
| ... | ... | ... |
## DS-N: {Standard Name}
### Violations
- {file}:{line} - {description of violation}
### Compliant Patterns Found
{Brief note on good patterns found, if any}
CRITICAL: Violations that can cause silent data corruption or unrecoverable state HIGH: Violations that cause crashes, validation bypass, or error masking MEDIUM: Violations that cause incorrect behavior in edge cases LOW: Violations that affect code quality but not correctness
development
Generate YAML recipes for .autoskillit/recipes/. Use when user says "make script skill", "generate script", "script a workflow", "write a script", "create a script", "new recipe", "write a pipeline", or when loaded by other skills for script formatting.
data-ai
Create Uncertainty Representation visualization planning spec showing error bar definitions, distribution-aware alternatives, and multi-seed variance protocols. Statistical lens answering "How is uncertainty honestly represented?"
data-ai
Create Temporal Dynamics visualization planning spec showing axis scaling (linear vs log), smoothing disclosure, epoch/step alignment, run aggregation (mean + variance bands), early-stopping markers, and wall-clock vs step-count x-axis. Temporal lens answering "Are training dynamics shown clearly and honestly?"
data-ai
Create Narrative Story Arc visualization planning spec showing visual consistency across the report (same color = same model everywhere), logical figure progression, redundant figure detection, and narrative dependency between figures. Narrative lens answering "Do the figures tell a coherent story across the report?"