| name | enforce |
| description | Make security mandatory through automation. Branch protection, pre-commit hooks, status checks, policy-as-code, and SLSA provenance for SOC 2 compliance. |
Enforce
When to Use This Skill
This section covers the enforcement mechanisms that make security policies mandatory, auditable, and impossible to ignore.
These controls pass SOC 2, ISO 27001, and PCI-DSS audits by shifting security left and making compliance automatic.
Implementation
See Implementation Roadmap for phased rollout:
- Phase 1: Branch protection (1 week)
- Phase 2: Status checks (2 weeks)
- Phase 3: Pre-commit hooks (1 week)
- Phase 4: Policy-as-code (4 weeks)
- Phase 5: SLSA provenance (2 weeks)
Total timeline: 10 weeks for complete enforcement stack.
Comparison
Understanding the distinction:
Litmus test: Can this be bypassed?
- If yes → Belongs in Enforce (make it mandatory)
- If no → Belongs in Secure (it's a finding/fix tool)
Examples
See examples.md for code examples.
Full Reference
See reference.md for complete documentation.
Related Patterns
References