Turn prose instructions into machine-checkable rules across five categories and emit a rule report a reviewer can score.
docs/agent-rules.mdwith one rule per heading, each carrying slug, category, description, and acheckfield- A demo agent run that intentionally violates two rules
- Parser that loads
agent-rules.mdinto a dataclass rule_checker.pystyle functions, one percheckreferencedrule_report.jsonwith pass/fail per rule and an aggregate severity
python3 code/main.pyexits zero- Output prints the parsed rule set, the run trace, and pass/fail per rule
rule_report.jsoncatches the two intentional violations
- Wiring the checker into CI. The lesson exits at a written report.
- Framework guardrails (OpenAI SDK, LangGraph interrupts). The rule set is the human-readable contract those implement.
docs/en.md- full lessoncode/main.py- reference implementationoutputs/skill-rule-set-builder.md- extracted skill