/edikt:guideline:compile
Generate or regenerate directive sentinel blocks for guidelines.
Reads the ## Rules section of each guideline and produces MUST/NEVER directives with reminders and verification checklist items. Uses the same three-list schema (ADR-008) and hash-based caching as ADR and invariant compilation.
Usage
bash
/edikt:guideline:compile # all guidelines
/edikt:guideline:compile error-handling # single guideline by slug
/edikt:guideline:compile --regenerate # force fresh generationArguments
| Argument | Description |
|---|---|
| (none) | Process all guidelines |
{slug} | Process a single guideline |
--regenerate | Force regeneration regardless of hash match |
--strategy=regenerate | Headless: discard hand-edits, rewrite from body |
--strategy=preserve | Headless: skip files with hand-edits |
How it works
- Reads each guideline's
## Rulessection - Each MUST/NEVER bullet becomes a directive
- Soft language ("should", "prefer", "try to") is rejected with a warning
- Generates
reminders:(pre-action interrupts) andverification:(checklist items) - Writes the sentinel block with hash metadata for caching
yaml
[edikt:directives:start]: #
source_hash: "a3b2..."
directives_hash: "9f8e..."
compiler_version: "0.3.0"
directives:
- "Every HTTP handler MUST return Content-Type: application/json (ref: api-design)"
reminders:
- "Before writing a handler response → MUST set Content-Type (ref: api-design)"
verification:
- "[ ] Every handler sets Content-Type: application/json (ref: api-design)"
manual_directives: []
suppressed_directives: []
[edikt:directives:end]: #Soft language rejection
Guidelines that use hedging language are skipped:
⚠ Skipped soft rule in api-design.md: "Responses should be consistent"
Guidelines should use MUST/NEVER. Either rewrite the rule or omit it.Related commands
/edikt:guideline:new— create a new guideline/edikt:guideline:review— review language quality + directive LLM compliance/edikt:gov:compile— compile all sources into governance.md- Guidelines — what guidelines are and when to use them
- Sentinel Blocks — the technical format