@martmull v2.0 ;) --------- Co-authored-by: martmull <martmull@hotmail.fr> Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
1.8 KiB
Contributing
For maintainers of the plugin itself. Agents using the plugin → see AGENTS.md.
Gate
npx nx run twenty-codex-plugin:validate
npx nx run twenty-codex-plugin:test
Both must pass before merge. No new runtime deps in scripts/ — validators use Node built-ins only.
Adding a skill
- Create
skills/<name>/SKILL.md(frontmatter:name,descriptiononly) andskills/<name>/agents/openai.yaml(display_name,short_description≤ 64,default_promptmentioning$<name>). - Add a
## When To Usesection with 4–6 user-language triggers and "do not use this skill for X" callouts referencing siblings. - Add the name to
EXPECTED_CANONICAL_SKILLSinscripts/validators/skills.js.
Adding a reference
- Place under
references/<area>/<name>.md. Link from the SKILL.md that needs it. - Add the path to
REQUIRED_REFERENCESinscripts/validators/references.js. - If the file participates in a cross-doc contract, update
scripts/validators/cross-doc-contracts.jsin the same commit.
Bumping the version
Move all three together: package.json, .codex-plugin/plugin.json, templates/marketplace.example.json. Then move [Unreleased] in CHANGELOG.md under a new [X.Y.Z] - YYYY-MM-DD heading.
SemVer: patch for copy/validation fixes, minor for new references/rules/skill sections, major for renaming a canonical skill or breaking the frontmatter/agents.yaml shape.
Editing validators
New assertion = new function in the right scripts/validators/*.js module + a call from scripts/validate.js + at least one passing and one failing fixture in scripts/__tests__/validate.spec.js.
PRs
One concern per PR. Title prefix: feat|fix|docs|chore(codex-plugin):. Mention the CHECKLIST.md rows touched.