src/autoskillit/skills_extended/design-guards/SKILL.md
Investigate a bug pattern audit report and design architectural guards (tests, contracts, structural changes) that provide immunity to each identified pattern. Use when user says "design guards", "design defenses", or wants architectural solutions for bug patterns.
npx skillsauth add talont-org/autoskillit design-guardsInstall 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.
Take a bug pattern audit report and design architectural guards that make each pattern structurally impossible or instantly caught. This is a multi-pattern analysis driven by a pattern report rather than a single bug investigation.
/autoskillit:audit-bugs produces a bug pattern reportPath to a bug pattern audit report (typically under {{AUTOSKILLIT_TEMP}}/audit-bugs/). If not specified, use the most recent {{AUTOSKILLIT_TEMP}}/audit-bugs/bug_pattern_audit_*.md.
NEVER:
{{AUTOSKILLIT_TEMP}}/design-guards/ directoryrun_in_background: true is prohibited)ALWAYS:
{{AUTOSKILLIT_TEMP}}/design-guards/ (create if needed){{AUTOSKILLIT_TEMP}}/design-guards/defense_guards_{YYYY-MM-DD_HHMMSS}.mdRead the input report and extract each pattern:
For each pattern (or group of related patterns), launch subagents to explore:
Current State
Existing Guards
Architectural Solutions
For each pattern, produce:
/autoskillit:audit-defense-standardsPrioritize guards by:
Ensure {{AUTOSKILLIT_TEMP}}/design-guards/ exists (mkdir -p).
Save to: {{AUTOSKILLIT_TEMP}}/design-guards/defense_guards_{YYYY-MM-DD_HHMMSS}.md (relative to the current working directory)
# Defense Guards: {Report Title}
**Date:** {today}
**Source Report:** {path to bug audit report}
**Patterns Addressed:** {count}
## Summary
{Which patterns get guards, expected coverage, recommended standards}
## Guard N: {Pattern Name}
**Addresses Pattern:** {name} ({X} of {Y} historical bugs)
### Current Exposure
{How many latent instances exist in the codebase today}
### Detection Scan
{Runnable grep/search commands}
### Contract Test
{What the test asserts, where it belongs}
### Structural Guard
{Architectural change that prevents by construction}
### Standard Recommendation
{YES/NO - should this become an audit-defense-standards entry?}
{If YES: one-sentence rule statement}
---
## Standards to Add
{List of guards recommended as permanent standards for audit-defense-standards, with rule statements}
Output: guard count, coverage stats, how many standards recommended, and report location.
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?"