Skip to content

fix: move top-level version into metadata for Codex skill validation - #806

Open
huangzigen666 wants to merge 1 commit into
xiaolai:mainfrom
huangzigen666:fix/codex-metadata-version
Open

fix: move top-level version into metadata for Codex skill validation#806
huangzigen666 wants to merge 1 commit into
xiaolai:mainfrom
huangzigen666:fix/codex-metadata-version

Conversation

@huangzigen666

Copy link
Copy Markdown

Codex CLI's SKILL.md frontmatter validation rejects a bare top-level version: field, so the 17 skills under codex/skills/ fail validation on load.

This moves version: under metadata:, matching the structure Codex expects. Frontmatter restructure only — no content changes, and every metadata.version value is identical to the original top-level one.

Claude Code is unaffected either way: version is in its accepted frontmatter field set, so the marketplace build needs no change.

Verification

All 17 skills load in Codex CLI 0.146.0 — confirmed via codex debug prompt-input, which renders the model-visible skill list without making an API call. All 17 appear with their nlpm: namespace and correct file paths.

Body content is untouched: the code samples inside writing-skills/SKILL.md that demonstrate frontmatter still show version: at the top level, since those are illustrative, not parsed.

🤖 Generated with Claude Code

Codex's SKILL.md frontmatter validation rejects a bare top-level
`version:` field. Move it under `metadata:` across all 17 Codex skills,
matching the structure Codex expects.

Reapplies the local fix from 7e26c45b1 on top of upstream v1.2.4.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8d62e35ba1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +4 to +5
metadata:
version: 0.2.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Bump the release version for the shipped skill changes

When this fix is published, all plugin and marketplace manifests still advertise version 1.2.4, so consumers or registries that treat a published version as immutable can retain the invalid pre-fix skill files instead of receiving these corrected copies. Update the relevant plugin.json and marketplace.json versions with this change.

AGENTS.md reference: AGENTS.md:L110-L115

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant