| name | guardrails |
| description | Run pre-flight checklists before writing code and post-implementation self-review after writing code. Use at the start of implementation to verify readiness, and after writing code but before verification to catch architectural violations, missing observability, and security oversights early. |
Agent Guardrails Skill
Purpose
Structured checklists that ensure the agent considers all applicable rules before and after writing code. Catches issues that would otherwise only surface during verification.
When to Invoke
- Pre-Flight: At the start of implementation, before writing any code
- Self-Review: After writing code but before verification phases
Pre-Flight Checklist
Run through this checklist before writing any code:
If any item cannot be checked, stop and resolve before proceeding.
Post-Implementation Self-Review
Run through this checklist after writing code, before verification:
Security
Testability
Observability
Error Handling
Testing
Consistency
Language-Specific Self-Review
After completing the universal checklist above, load the relevant language-specific checklist:
| Language | Checklist |
|---|
| Go | languages/go.md |
| TypeScript | languages/typescript.md (placeholder — create when needed) |
| Flutter/Dart | languages/flutter.md (placeholder — create when needed) |
| Rust | languages/rust.md (placeholder — create when needed) |
Only load the file for languages you are actively writing. If the file doesn't exist yet, skip — but flag its absence so it can be created.
Rule Compliance
This skill enforces:
- All mandates (always-on rules in
.claude/rules/)
- Architectural Patterns @.claude/rules/architectural-pattern.md
- Testing Strategy @.claude/rules/testing-strategy.md
- Rule Priority @.claude/rules/rule-priority.md