09.04 — CLAUDE.md and CLAUDE.slim.md#
The Holy Book actively publishes the
CLAUDE.mdfiles. This lets an LLM fetch the project’s docs without going through the repo.
The two files#
ai/
├── CLAUDE.md # full version (rules + project layout)
└── CLAUDE.slim.md # short version (rules only)Public URLs#
https://mojo-molotov.github.io/ocarina-holy-book/CLAUDE.md
https://mojo-molotov.github.io/ocarina-holy-book/CLAUDE.slim.mdHoly Book quote (chapter “Using Ocarina with AI”):
Slim when context is heavy; full for onboarding and reviews. Full wins on disagreement.
Slim/Full differences#
| Aspect | CLAUDE.md | CLAUDE.slim.md |
|---|---|---|
| Volume | ~600+ lines | ~150-200 lines |
| Rules | ✅ all | ✅ all |
| Detailed justifications | ✅ | ❌ |
| Past examples (expertise) | ✅ | ❌ |
| Project organization | ✅ | ❌ |
| Technical hierarchy | ✅ | ❌ |
| PR conventions | ✅ | ❌ |
| Expected CI shape | ✅ | ❌ |
Right file at the right time#
Onboarding (first contact with the project) → CLAUDE.md (read all)
Normal run (just apply rules) → CLAUDE.slim.md (save tokens)
PR review → CLAUDE.md (justifications)
Deep audit → CLAUDE.md (everything)CLAUDE.md#
Typical sections (based on ocarina-with-ai-example):
- Project context: repo, framework, SUT.
- Project philosophy: “No tricks or hacks”, “Teach the pattern, not the symptom”.
- Layout: full repo tree.
- Conventions: 12+ concrete rules.
- Hard-won rules: lessons from past failures.
- Test strategy: cycle structure.
- Running tests: CLI commands.
- Reports and screenshots: usage rules.
- Scenario fragments: extraction criteria.
- Data-driven tests: conventions.
- Supplementary conventions.
CLAUDE.slim.md#
Just the rules (no detailed justifications, no examples):
# Slim rules — Ocarina with AI example
- No tricks or hacks. Polling fix > JS click bypass.
- Teach the pattern, not the symptom.
- Security tests: functional and static, never active.
- Use constants: no magic numbers.
- Datasets: human decision; propose, don't execute.
- Empirically verify the SUT before encoding.
- Re-derive each run: no diagnosis inheritance.
- One scenario per file (data-driven exception).
- Top docstring as arrows flow.
- All create_selenium_test() at bottom of file.
- POM selectors at top of class.
- Always WebDriverWait, never raw find_element.
- Implicit wait set by CLI, never patched in POM/test code.
- Gap tests: reframed, not flipped to green.
- Watcher signals: negative only.
- Distributed when resource is shared.
- Mtime, not filename.
- ...Each line = one rule.
Why expose to LLMs#
| Without public exposure | With exposure |
|---|---|
| An LLM has to clone the repo to read the CLAUDE.md | Canonical URL → a single WebFetch |
| No “offline” discovery (a user asking an Ocarina question without the repo) | The LLM can read the docs directly |
| Hard for LLM search engines to index | Naturally indexed |
The user doc vs LLM doc distinction#
| Doc | Audience | Format |
|---|---|---|
Holy Book (/setup, /scenarios-composability, …) | Human | Prose, examples, illustrations |
CLAUDE.md | LLM (+ human) | Dry rules, condensed justifications |
skills/*/SKILL.md | LLM | Operational recipes |
Three audiences, three formats. The Holy Book serves all three — the practical embodiment of “AI is the bridge”.
“Canonical resources” pattern#
URLs are stable:
https://mojo-molotov.github.io/ocarina-holy-book/llms.txt
https://mojo-molotov.github.io/ocarina-holy-book/llms-full.txt
https://mojo-molotov.github.io/ocarina-holy-book/CLAUDE.md
https://mojo-molotov.github.io/ocarina-holy-book/CLAUDE.slim.md
https://mojo-molotov.github.io/ocarina-holy-book/ocarina-ru.pdf
https://mojo-molotov.github.io/ocarina-holy-book/ocarina-en.pdf
https://mojo-molotov.github.io/ocarina-holy-book/ocarina-fr.pdfDocumented in the Holy Book (chapter “Using Ocarina with AI”), at the end:
Exposed resources#
- https://mojo-molotov.github.io/ocarina-holy-book/llms.txt
- https://mojo-molotov.github.io/ocarina-holy-book/llms-full.txt
- https://mojo-molotov.github.io/ocarina-holy-book/CLAUDE.md
- https://mojo-molotov.github.io/ocarina-holy-book/CLAUDE.slim.md
- https://mojo-molotov.github.io/ocarina-holy-book/ocarina-ru.pdf
- https://mojo-molotov.github.io/ocarina-holy-book/ocarina-en.pdf
- https://mojo-molotov.github.io/ocarina-holy-book/ocarina-fr.pdf