Skip to content

skills: decouple the skills extension from core - #27413

Merged
jif-oai merged 2 commits into
mainfrom
jif/external-plugins-6
Jun 11, 2026
Merged

skills: decouple the skills extension from core#27413
jif-oai merged 2 commits into
mainfrom
jif/external-plugins-6

Conversation

@jif-oai

@jif-oai jif-oai commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Why

ext/skills currently depends on codex-core for two host concerns: reading the concrete Config type and borrowing core-owned model-context fragment types. That coupling prevents the extension from being assembled independently above core and leaves context that belongs to the skills feature owned by core.

This stacked PR introduces the host boundary needed for the broader extension migration while intentionally preserving existing skills behavior. It is stacked on #27404.

What changed

  • Adds a small public SkillsExtensionConfig view and makes skills installation generic over the host config type.
  • Requires the host to map its config into that view; app-server supplies the current Config values.
  • Moves the available-skills and selected-skill context fragment implementations into ext/skills, preserving their roles, markers, and rendered bytes.
  • Removes the direct codex-core dependency from codex-skills-extension.
  • Keeps local discovery, invocation, side effects, and the codex-core-skills compatibility types unchanged for later staged PRs.

Behavior

This adds no capability and is intended to have no user-visible or model-visible behavior change. The install API and ownership boundary change internally; emitted skills context remains byte-for-byte compatible.

Validation

  • Updates the skills extension integration coverage to use a host-owned test config.
  • Asserts the complete rendered catalog and selected-skill fragments, including their roles and markers.
  • just bazel-lock-check
  • Rust tests and Clippy were not run locally per request; CI will run them.

@jif-oai
jif-oai marked this pull request as ready for review June 10, 2026 16:30

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

Copy link
Copy Markdown
Contributor

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: 6498d78837

ℹ️ 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 +7 to +9
pub(crate) struct AvailableSkillsInstructions {
skill_lines: Vec<String>,
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Move injected fragments under core/context

These injected context fragments live in ext/skills instead of core/context (extension.rs:120-121 sends the available-skills fragment; extension.rs:212-217 sends the skill-body fragment). That breaks the context-fragment guidance; move/reuse the structs under core/context.

Useful? React with 👍 / 👎.

@jif-oai
jif-oai force-pushed the jif/external-plugins-5 branch from 1191e92 to 68dc3b7 Compare June 11, 2026 10:48
@jif-oai
jif-oai requested a review from a team as a code owner June 11, 2026 10:48
Base automatically changed from jif/external-plugins-5 to main June 11, 2026 10:56
@jif-oai
jif-oai force-pushed the jif/external-plugins-6 branch from 6498d78 to 9ff580b Compare June 11, 2026 11:14
@jif-oai

jif-oai commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

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

Copy link
Copy Markdown
Contributor

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: 9ff580bf7e

ℹ️ 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 thread codex-rs/ext/skills/src/fragments.rs
# Conflicts:
#	codex-rs/ext/skills/src/render.rs
#	codex-rs/ext/skills/tests/skills_extension.rs
@jif-oai
jif-oai merged commit 7c23948 into main Jun 11, 2026
30 checks passed
@jif-oai
jif-oai deleted the jif/external-plugins-6 branch June 11, 2026 12:03
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant