What you will see
By the end, you will have seen the full authoring loop:- A real project directory with
sources/,tests/, andguidance/ - Claude Code using Aethis MCP to create and generate a ruleset
- Field discovery before generation, with a human review checkpoint
- Test cases drafted by Claude and reviewed by you
- Guidance hints stored as files and sent to the API
- A generate/test loop until all tests pass
- A published ruleset that returns deterministic decisions
sources/, or ask Claude Code to fetch source material from the web and save it there. This tutorial uses two small local files so every step is easy to inspect.
Before you start
You need:aethis-cliinstalled- Aethis MCP installed in Claude Code
- An Aethis API key with authoring access
1. Create the project directory
Use the CLI to create a file-based authoring project:sources/contains the rules or policy texttests/scenarios.yamlcontains expected decisionsguidance/hints.yamlcontains subject-matter guidance for generation.aethis/stores local tool state such as project IDs
2. Add two source files
Createsources/age-rule.md:
sources/school-type-rule.md:
3. Add initial guidance
Openguidance/hints.yaml and replace the placeholder with:
4. Ask Claude Code to inspect the project
In Claude Code, ask:
If Claude proposes different names or extra fields, correct them before generation.
5. Review the tests
Ask Claude to write the tests intotests/scenarios.yaml. The reviewed file should look like this:
6. Create the MCP project and discover fields
After you approve the tests, ask Claude:7. Generate and test
When the field discovery looks right, ask:8. Publish
Only publish after the test gate is green:9. Run two decisions
Ask Claude:not_eligible, with school_type_check not satisfied.
10. Export guidance back to files
During a conversation, Claude may add guidance directly through MCP. Export active guidance back into the project so it remains reviewable and version-controlled:guidance/hints.yaml as the human-reviewed record of the SME guidance that shaped generation.
The pattern
For a first authoring session, keep the loop this small:1
Put source text in files
Start with one small section. Do not begin with a whole Act, handbook, or policy manual.
2
Review fields and tests
Let Claude draft them, but approve them yourself. Boundary tests matter more than volume.
3
Review guidance
Keep guidance specific and scoped. Export MCP-added guidance back to
guidance/hints.yaml before review.4
Generate, publish, decide
Publish only after the test gate is green, then call
aethis_decide against the published ruleset.