- Docs
- Guides
- Cross-cutting
- How-to
- How to install a user-scope pack into Codex
How to install a user-scope pack into Codex
Install a user-scope-capable catalogue pack into Codex's shared skills directory and track it for upgrades.
Use this when: You use Codex and want to install a user-scope-capable pack from the catalogue into ~/.agents/skills/.
Prerequisites: Codex CLI installed and agentbundle CLI on your PATH; see Prerequisites.
Result: A user-scope pack installed at ~/.agents/skills/ and tracked in ~/.agentbundle/state.toml.
This guide covers landing a user-scope-capable pack from the catalogue into Codex’s home tree at ~/.agents/skills/.
Prerequisites
Section titled “Prerequisites”- Codex CLI installed. The resolver probes for either
~/.codex/(Codex CLI’s config home) or~/.agents/skills/(the skills root the projection writes to). Having either is enough — if you haven’t populated~/.codex/yet, the first install will create~/.agents/skills/itself. - The agentbundle CLI installed (see from-clone or the README’s zipapp route).
Install
Section titled “Install”agentbundle install --pack figma --scope user <catalogue>The resolver picks Codex automatically when:
- The pack’s
[pack.install] allowed-adaptersincludescodex(the install refuses if the pack you chose doesn’t). - Only
~/.codex/or~/.agents/skills/is present (multi-IDE machines tie-break on declared order; pass--adapter codexto override).
On success:
installed: figma @ user via codexWhere the pack lands
Section titled “Where the pack lands”~/.agents/skills/figma-figma/SKILL.md~/.agents/skills/figma-figma/scripts/cli.py~/.agentbundle/credentials.env (created on first credentialed-skill run)~/.agentbundle/state.tomlCodex’s skills root is ~/.agents/skills/ regardless of where the Codex CLI’s own config lives. The asymmetry — probe at ~/.codex/, write to ~/.agents/skills/ — is intentional: it matches Codex CLI’s documented behaviour and is encoded in the [adapter.codex.scope] table of the bundled adapter contract (v0.6+).
Interaction with ~/.codex/plugins/
Section titled “Interaction with ~/.codex/plugins/”~/.codex/plugins/ is Codex CLI’s marketplace install route. This guide covers the agentbundle install CLI route, which writes ~/.agents/skills/ directly. The two surfaces don’t share state — Codex’s plugin manager doesn’t see agentbundle-installed packs, and vice versa. A sibling RFC (not yet opened) would add codex-plugins parity; until then, pick one route per pack and stick with it.
Upgrade
Section titled “Upgrade”agentbundle upgrade --pack figma <catalogue>Upgrade reuses the recorded adapter from state; cross-adapter migration requires uninstall + reinstall.
Uninstall
Section titled “Uninstall”agentbundle uninstall --pack figma --scope user