rules
Inject conditional rule packs (tests, migration, security, docs, perf) based on task signals.
Purpose
Use this skill to activate task-specific guardrails without bloating the default prompt.
Trigger
- Task touches sensitive surfaces (auth, migrations, contracts)
- Change type requires mandatory checks (tests/docs/perf)
- Team wants explicit policy activation before coding
Workflow
- Detect triggers from request text and file-scope hints.
- Activate matching rule packs only.
- Explain what each active rule enforces.
- Recommend next command with the active rule set.
Rule Packs
tests-requiredmigration-safetysecurity-reviewdocs-syncperf-watch
Output Template
## Trigger Detection
| Trigger | Matched | Evidence |
| --- | --- | --- |
## Active Rules
1. ...
## Enforced Behavior
- ...
## Next Command
- ...