Contributing
@maestria/codex is generated from the canonical directives in
packages/core/agent-directives/. The package adapts those directives to Codex’s namespaced skill
format; it does not duplicate methodology content by hand.
Package structure
Section titled “Package structure”packages/codex/├── .codex-plugin/plugin.json # Hand-authored plugin manifest├── skills/ # Generated SKILL.md projections├── sync.config.ts # Codex-specific transforms and frontmatter├── tests/plugin.test.ts # Manifest and generated-file contracts├── INSTALL.md├── README.md└── CHANGELOG.mdThe repository’s Codex marketplace is generated by the Maestria CLI at install time because Codex marketplaces use local plugin source paths. The staging directory contains the published npm package and is not a second canonical source.
Canonical source workflow
Section titled “Canonical source workflow”- Edit
packages/core/agent-directives/, never generated files underpackages/codex/skills/. - Run
scripts/sync-allfrom the repository root. - Run
scripts/check-syncto verify every platform projection. - Run the package tests and the workspace checks.
scripts/sync-allscripts/check-syncpnpm --filter @maestria/codex testProjection rules
Section titled “Projection rules”The Codex sync config:
- maps the 7 specialist directives to
skills/<name>/SKILL.md; - namespaces specialist references as
$maestria:<name>; - packages workflow modes as skills because the verified Codex projection surface is
skills/; - states read-only roles as advisory rather than claiming tool enforcement;
- keeps hooks, MCP, model configuration, and
AGENTS.mdwriting out of scope.
Validation
Section titled “Validation”Run the Codex plugin-creator validator against the package and inspect the generated skill files:
python3 /path/to/plugin-creator/scripts/validate_plugin.py packages/codexpnpm --filter @maestria/codex testSupport remains provisional until the pinned Codex CLI behavior and the marketplace/plugin install flow have been reverified.