Loading...
Loading...
Use when agent instruction files (AGENTS.md, rules/) need analysis, trimming, or restructuring. Orchestrates /imperatives → /policy-algebra → /visualize into a distillation pipeline.
npx skill4agent add camacho/ai-skills distill/distill # full pipeline on default files
/distill ai-workspace/rules/*.md # specific targets
/distill --stage imperatives # run only extraction
/distill --stage compose # run only policy algebra (requires prior extraction)
/distill --stage visualize # run only visualization (requires prior composition) ┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ /imperatives │────▶│/policy-algebra│────▶│ /visualize │
│ extract │ │ compose │ │ render │
└─────────────┘ └──────────────┘ └─────────────┘
│ │ │
JSONL file Starlark block Mermaid diagrams/imperatives/imperativesai-workspace/rules/*.mdAGENTS.mdai-workspace/research/<name>-imperatives.jsonl/policy-algebra<level>[ NOT] <subject> <predicate>[ when <when>]/policy-algebraai-workspace/research/<name>-policy.md/visualize/visualize<name>2026-05-04-distill--name <slug>ai-workspace/research/<name>-imperatives.jsonl<name>-policy.md| Condition | Behavior |
|---|---|
| /imperatives finds zero imperatives | Report and stop. No point composing empty input. |
| /policy-algebra unavailable | Skip Stage 2, warn. Stage 3 can still visualize the JSONL directly. |
| User interrupts between stages | Artifacts from completed stages are preserved. Resume with |