Agent skill

Codex Adapter

by kunchenguid in kunchenguid/compact-adviser

A skill your agent uses when modifying or testing packages/codex-plugin or Codex /compact behavior.

MITAuto-check passed

Install Codex Adapter

skills CLI
$ npx skills add kunchenguid/compact-adviser --skill codex-adapter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kunchenguid/compact-adviser codex-adapter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kunchenguid/compact-adviser.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/codex-adapter .claude/skills/codex-adapter && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codex-adapter
GitHub stars
211
Token cost
~305 tokens
SKILL.md length
156 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when modifying or testing packages/codex-plugin or Codex /compact behavior.

  • Testing packages/codex-plugin
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Codex /compact behavior

What it does

Codex Adapter is an agent skill from kunchenguid/compact-adviser. Use when modifying or testing packages/codex-plugin or Codex /compact behavior.

Its SKILL.md is about 310 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: "Work appears completed or recorded. Run /compact to save tokens.". The licence is MIT.

When your agent uses it

  • Testing packages/codex-plugin
  • Codex /compact behavior

Example prompts

  • “/codex-adapter”

What it can do on your machine

Read from SKILL.md and the folder at commit 28be11c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codex Adapter loads about 305 tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 156 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~305

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from kunchenguid/compact-adviser at commit 28be11c, republished under its MIT licence (© kunchenguid). 156 words, ~305 tokens.

Download SKILL.mdSave it as .claude/skills/codex-adapter/SKILL.md (or your agent's skills folder).
name
codex-adapter
description
Use when modifying or testing `packages/codex-plugin` or Codex `/compact` behavior.
user-invocable
false
metadata.internal
true
  • 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, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/codex-adapter of kunchenguid/compact-adviser.

Open the folder on GitHubat commit 28be11c

Compare with similar skills

Codex Adapter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codex Adapter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codex Adapter this skillkunchenguid/compact-adviser211—~305Automated safety check: PassMIT
Strategic Compactaffaan-m/ECC276k1 repos~2.1kAutomated safety check: PassMIT
Create Agent Adapterpaperclipai/paperclip99k—~8kAutomated safety check: PassMIT
Add Packageremix-run/remix33k—~2kAutomated safety check: PassMIT
Agent Adaptive Coordinatorruvnet/ruflo74k2 repos~4kAutomated safety check: PassMIT
Add New Packageremotion-dev/remotion63k—~777Automated safety check: NotesCustom licence

Similar skills

  • Strategic Compact

    affaan-m/ECC

    Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

    276k GitHub starsUsed in 1 repo~2.1k tokens
    Agent WorkflowsAuto-check passed
  • Create Agent Adapter

    paperclipai/paperclip

    Create or modify Paperclip agent adapters across server, UI, and CLI surfaces.

    99k GitHub stars~8k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Add Package

    remix-run/remix

    Create or align a package in the Remix monorepo to match existing package conventions.

    33k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Agent skill for adaptive-coordinator - invoke with $agent-adaptive-coordinator

    74k GitHub starsUsed in 2 repos~4k tokens
    Auto-check passed
  • Add New Package

    remotion-dev/remotion

    Official

    Add a new package to the Remotion monorepo, including package scaffolding, monorepo registration, documentation, build scripts, and release checklist updates.

    63k GitHub stars~777 tokensUpdated today
    Media & CreativeAuto-check: notes
  • Strategic Compact

    affaan-m/ECC

    任意の自動コンパクションではなく、タスクフェーズを通じてコンテキストを保持するための論理的な間隔での手動コンパクションを提案します。

    276k GitHub starsUsed in 2 repos~434 tokens
    Auto-check passed

More from kunchenguid/compact-adviser

  • Compact Adviser

    kunchenguid/compact-adviser

    Read or change compact-adviser settings for Codex - the mode (hint or off), the minimum context before a checkpoint is judged, the context budget, TypeSafe request logging, and the TypeSafe API key.

    211 GitHub stars~510 tokensUpdated today
    Auto-check passed
  • Judge Evaluation

    kunchenguid/compact-adviser

    A skill your agent uses when changing or evaluating judge prompts, scoring thresholds, usage floors, or judgment eval corpora.

    211 GitHub stars~187 tokensUpdated today
    Auto-check passed

Questions about Codex Adapter

What does Codex Adapter do?

A skill your agent uses when modifying or testing packages/codex-plugin or Codex /compact behavior. Codex Adapter is an agent skill from kunchenguid/compact-adviser. Use when modifying or testing packages/codex-plugin or Codex /compact behavior.

When should I use Codex Adapter?

Codex Adapter fits situations like: testing packages/codex-plugin; Codex /compact behavior.

How do I install Codex Adapter in Claude Code?

Run `npx skills add kunchenguid/compact-adviser --skill codex-adapter -a claude-code`. Or copy the skill folder (.agents/skills/codex-adapter in kunchenguid/compact-adviser) into .claude/skills/codex-adapter in your project. Claude Code loads it when a task matches its description.

How do I install Codex Adapter in Codex?

Run `npx skills add kunchenguid/compact-adviser --skill codex-adapter -a codex`. Or copy the skill folder (.agents/skills/codex-adapter in kunchenguid/compact-adviser) into .agents/skills/codex-adapter in your project. Codex loads it when a task matches its description.

Can I use Codex Adapter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kunchenguid/compact-adviser --skill codex-adapter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codex-adapter, .gemini/skills/codex-adapter, .github/skills/codex-adapter and .opencode/skills/codex-adapter in your project.

What does Codex Adapter need to run?

SKILL.md names no scripts, command-line tools or credentials: Codex Adapter is instructions for the agent only.

Does Codex Adapter access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Codex Adapter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codex Adapter use?

Codex Adapter is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codex Adapter use?

About 305 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codex Adapter?

Skills that share tags, products or a category with Codex Adapter: Strategic Compact (affaan-m/ECC, 276k stars), Create Agent Adapter (paperclipai/paperclip, 99k stars), Add Package (remix-run/remix, 33k stars) and Agent Adaptive Coordinator (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codex Adapter?

kunchenguid (a GitHub user) maintains it in kunchenguid/compact-adviser, which has 211 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 9, 2026.

Source: kunchenguid/compact-adviser on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.