- Codex adapter (
packages/codex-plugin, hint-only: nothing outside a Codex session can run/compact). Its sources are TypeScript that plainnodetype-strips, so they must stay erasable - no parameter properties, no enums. Codex rebuilds a hook's PATH from a shell snapshot and may have nonodeon it, so hooks go throughhooks/run.sh, which is silent when it finds none. Judging is gated to the interactive TUI by the rollout'soriginator. The rollout transcript format is explicitly unstable upstream:src/rollout.tsnever throws and degrades to the strictest floor.scripts/validate.mjschecks the package is loadable exactly as shipped. Snooze/dismiss are a known gap and follow-up: suppressing advice safely needs a reliable current-session identity that Codex gives neither the hook nor the CLI, so the CLI could only mutate the most recently written session record. Windows support is a possible follow-up: this ship is macOS and Linux only because the hooks run through POSIXshand have nocommandWindowsentries.
Codex Adapter
Use when modifying or testing `packages/codex-plugin` or Codex `/compact` behavior.
Codex Adapter by kunchenguid · d0f0c20
npx skillmds@latest add kunchenguid/codex-adapter File contents
---name: codex-adapterdescription: Use when modifying or testing `packages/codex-plugin` or Codex `/compact` behavior.---- Codex adapter (`packages/codex-plugin`, hint-only: nothing outside a Codex session can run `/compact`). Its sources are TypeScript that plain `node` type-strips, so they must stay erasable - no parameter properties, no enums. Codex rebuilds a hook's PATH from a shell snapshot and may have no `node` on it, so hooks go through `hooks/run.sh`, which is silent when it finds none. Judging is gated to the interactive TUI by the rollout's `originator`. The rollout transcript format is explicitly unstable upstream: `src/rollout.ts` never throws and degrades to the strictest floor. `scripts/validate.mjs` checks the package is loadable exactly as shipped. Snooze/dismiss are a known gap and follow-up: suppressing advice safely needs a reliable current-session identity that Codex gives neither the hook nor the CLI, so the CLI could only mutate the most recently written session record. Windows support is a possible follow-up: this ship is macOS and Linux only because the hooks run through POSIX `sh` and have no `commandWindows` entries.
kunchenguid/compact-adviser/tree/main/.agents/skills/codex-adapter commit d0f0c20fa5
Frequently asked questions
Run npx skillmds@latest add kunchenguid/codex-adapter in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use when modifying or testing `packages/codex-plugin` or Codex `/compact` behavior. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
kunchenguid (@kunchenguid) published this skill. Their other Agent Skills are listed on their SkillMD profile.