Skip to content

Make Codex integration skill-first - #49

Closed
Kostarev Kirill (Kirchberg) wants to merge 2 commits into
microsoft:mainfrom
Kirchberg:codex/codex-skill-first-upstream
Closed

Kostarev Kirill (Kirchberg) wants to merge 2 commits into
microsoft:mainfrom
Kirchberg:codex/codex-skill-first-upstream

Conversation

@Kirchberg

@Kirchberg Kostarev Kirill (Kirchberg) commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

  • Stop installing the deprecated Codex custom prompt at ~/.codex/prompts/sleep.md.
  • Move any legacy ~/.codex/prompts/sleep.md from previous installs aside with a .skillopt-legacy*.bak suffix.
  • Make the Codex skill the primary entrypoint by moving the launch commands, workflow steps, and safety rules into plugins/codex/skills/skillopt-sleep/SKILL.md.
  • Update Codex docs, install output, and load-test notes to describe the skill-first flow instead of /sleep.

Why:

  • Codex custom prompts are deprecated; reusable workflows should live in skills.
  • The previous Codex integration split the launch flow between a custom prompt and a smaller skill. This makes the skill self-contained and removes the stale slash-command entrypoint.

Verification:

  • bash -n plugins/codex/install.sh
  • HOME=$(mktemp -d) bash plugins/codex/install.sh, then verified ~/.agents/skills/skillopt-sleep/SKILL.md exists and ~/.codex/prompts/sleep.md does not
  • Created a legacy ~/.codex/prompts/sleep.md in a temp HOME, ran install.sh, and verified it moved to sleep.md.skillopt-legacy*.bak
  • /Users/kirchberg/src/SkillOpt/.venv/bin/python -m pytest tests

This PR addresses #45 by making the Codex integration skill-first

I kept this separate from #48 so the Codex UX fix can be reviewed independently from the Codex Desktop transcript harvester

Zisu Huang (Huangzisu) pushed a commit that referenced this pull request Jun 15, 2026
@Yif-Yang

Copy link
Copy Markdown
Contributor

Merged manually after rebasing onto main. All 6 conflicts resolved (docs/scripts only, no code logic changes). 99 tests pass. Thank you Kostarev Kirill (@Kirchberg)!

Yifan Yang (Yif-Yang) added a commit to Yif-Yang/SkillOpt that referenced this pull request Jun 15, 2026
…g branch

Pulls microsoft/main after the merged community PRs: OpenClaw plugin shell
(microsoft#59), Codex Desktop transcript harvesting + skill-first integration (microsoft#48/microsoft#49),
shared-default reflect refactor (microsoft#44), and benchmark-guide doc fixes (microsoft#43).

Conflict resolution: shared plugin/docs/engine files (README, plugins/codex/*,
backend.py, docs/sleep/*) taken from upstream — upstream already contains my
pushed plugin (86bad36) plus the community additions, so this loses nothing of
mine. .gitignore unioned. Codex prompt files removed to follow upstream's
skill-first design. My local-only work (blog/, docs/sleep experiments, v2
research harnesses) is untouched; engine fixes (sample_id dream diversity,
guarded imports, retry) preserved. 104/104 tests pass.

Co-Authored-By: Claude Opus 4 <[email protected]>
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.

2 participants