Skip to content

docs: hoist mx::api doctrine into a skill - #335

Merged
webern merged 3 commits into
mainfrom
claude/mx-api-doctrine-skill-8ccnf3
Jul 12, 2026
Merged

docs: hoist mx::api doctrine into a skill#335
webern merged 3 commits into
mainfrom
claude/mx-api-doctrine-skill-8ccnf3

Conversation

@webern

@webern webern commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Human Summary

I asked Fable, while I still have access to it, to improve Agent performance with better instructions putting them in places more likely to be read and incorporating some of my latest pet-peeves.

Summary

Agents were not reading docs/ai/design/api-design-principles.md, and several recurring review
themes were written down nowhere. This PR moves the doctrine to where agents actually look and
captures the missing rules, without growing AGENTS.md (it shrinks by 8 lines).

  • New mx-api-doctrine skill whose description says it MUST be read before designing or changing
    anything in the api layer. It contains the seven design principles (moved verbatim from the
    deleted doc) plus the previously unwritten doctrine:
  • AGENTS.md digest replaced with a pointer to the skill; the add-feature skill and the Copilot
    api-headers review instructions repointed and extended with the same rules.
  • Deleted the mx-architecture skill: generic architect boilerplate that wasn't helping. Its few
    mx-specific facts live elsewhere (gen design in gen/DESIGN.md; the error-handling stance is now
    concrete doctrine in the new skill).

Net -33 lines repo-wide.

Testing

  • No dangling references: grep for api-design-principles and mx-architecture is clean
  • Docs/skills only; no C++ or build changes, so no test suites apply

References

Move docs/ai/design/api-design-principles.md into a new mx-api-doctrine
skill whose description tells agents they MUST read it before touching
mx::api. Add the missing doctrine: no UB reachable from the interface,
no exceptions (never for failed preconditions), Result quarantined to
the DocumentManager boundary, the choice-type pattern (TimeChoice /
MarkDataChoice), and comment rules (write for users authoring notation,
never from the round-trip harness's perspective).

Replace the AGENTS.md digest with a pointer (net -8 lines), repoint the
add-feature skill and Copilot review instructions, and delete the
mx-architecture skill.
@webern webern added non-breaking fixes or implementation that do not require breaking changes ai Issues opened by, or through, a coding agent. labels Jul 12, 2026 — with Claude
Comment thread .claude/skills/mx-api-doctrine/SKILL.md Outdated
Comment thread .claude/skills/mx-api-doctrine/SKILL.md Outdated
@webern webern changed the title docs: hoist the mx::api doctrine into a must-read skill docs: hoist mx::api doctrine into a skill Jul 12, 2026
@webern
webern merged commit ea66db8 into main Jul 12, 2026
@webern
webern deleted the claude/mx-api-doctrine-skill-8ccnf3 branch July 12, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai Issues opened by, or through, a coding agent. non-breaking fixes or implementation that do not require breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant