Codex CLI Skills
    codex cli
    skills
    directory

    Where Are Codex CLI Skills Stored?

    Codex CLI stores skills at ~/.codex/skills/ for personal and .codex/skills/ for project-level. Path reference and cross-agent compatibility.

    April 23, 20264 min read
    Share:

    A skill is a set of instructions packaged as a SKILL.md file that an AI agent reads to learn a new workflow. Codex CLI stores skills in a directory structure that mirrors Claude Code and OpenClaw.

    Quick Answer: Codex CLI stores personal skills at ~/.codex/skills/ and project skills at .codex/skills/ relative to your repo root. Both directories are scanned at session startup. The same SKILL.md files work across Codex CLI, Claude Code, OpenClaw, and other compatible agents.

    Where does Codex CLI store personal skills?

    Personal skills live at ~/.codex/skills/. Every skill you put here is available across all your projects.

    ~/.codex/skills/
    ├── code-reviewer/
    │   └── SKILL.md
    ├── git-commit-writer/
    │   └── SKILL.md
    └── env-doctor/
        ├── SKILL.md
        └── references/
            └── common-issues.md
    

    On macOS, the full path expands to /Users/yourname/.codex/skills/. On Linux, it's /home/yourname/.codex/skills/. On Windows via WSL, it's /home/yourname/.codex/skills/ inside your WSL distribution.

    Where does Codex CLI store project skills?

    Project skills live at .codex/skills/ inside a specific repository. These are shared with anyone who clones the repo.

    your-project/
    ├── .codex/
    │   └── skills/
    │       └── team-code-review/
    │           └── SKILL.md
    ├── src/
    └── package.json
    

    Teams use project skills to standardize workflows. Commit a code review skill to the project, and every developer on the team gets it automatically when they clone.

    How does Codex CLI differ from Claude Code and OpenClaw?

    The directory structure is the same pattern, just with a different prefix:

    AgentPersonal skillsProject skills
    Codex CLI~/.codex/skills/.codex/skills/
    Claude Code~/.claude/skills/.claude/skills/
    OpenClaw~/.openclaw/skills/.openclaw/skills/
    CursorN/A.cursor/skills/

    Codex CLI also uses an openai.yaml file alongside SKILL.md for additional metadata (UI hints, MCP tool dependencies). This file is optional and Codex-specific, other agents ignore it.

    How do I use an Agensi skill in Codex CLI?

    Connect your AI agent to Agensi through MCP, then ask it to use the skill on your task. Approve any required purchase. Your agent loads the latest approved version through get_skill on each use. Never write any part of the skill to disk; your licence does not allow you to save, copy or export it.

    What are the most common installation mistakes?

    Wrong directory name. It's .codex/skills/, not .openai/skills/ or .codex-cli/skills/.

    Double-nested folders. After unzipping, check that the path is ~/.codex/skills/skill-name/SKILL.md, not ~/.codex/skills/skill-name/skill-name/SKILL.md.

    Confusing personal and project paths. Personal skills use ~/ (home directory). Project skills use a relative path from the repo root. Don't mix them up, putting a personal skill at .codex/skills/ in a project makes it project-scoped.

    Can I use the same skills across agents?

    Yes. SKILL.md is a cross-agent standard. Copy the same skill folder between ~/.codex/skills/, ~/.claude/skills/, and ~/.openclaw/skills/ and it works in all three agents without modification.

    The only Codex-specific file is openai.yaml, which other agents simply ignore. The SKILL.md file itself is fully portable.

    For a complete path reference across all agents, read Where Are Claude Skills Stored?.


    Find and install security-scanned skills for Codex CLI, Claude Code, OpenClaw, and more on Agensi.

    Frequently Asked Questions

    Codex CLI stores personal skills in the directory `~/.codex/skills/`, making them available across all projects for a user. This path expands to `/Users/yourname/.codex/skills/` on macOS and `/home/yourname/.codex/skills/` on Linux.

    Codex CLI stores project-specific skills in the `.codex/skills/` directory relative to the repository's root. These skills are designed to be shared with anyone who clones the repository, enabling standardized workflows for teams.

    Yes, SKILL.md files are a cross-agent standard and are compatible across Codex CLI, Claude Code, and OpenClaw. You can copy the same skill folder between their respective skill directories.

    Connect your AI agent to Agensi through MCP. Ask it to use the skill and approve any required purchase. Instructions load on each use. Never write any part of the skill to disk.

    The primary difference in skill storage between agents like Codex CLI, Claude Code, and OpenClaw is the prefix in their respective directories. For example, Codex CLI uses `.codex/skills/`, while Claude Code uses `.claude/skills/`.

    Common mistakes include using the wrong directory name (e.g., `.openai/skills/` instead of `.codex/skills/`), creating double-nested folders, or confusing personal skill paths with project skill paths.

    The `openai.yaml` file is an optional, Codex-specific file that accompanies SKILL.md and provides additional metadata like UI hints and MCP tool dependencies. Other agents will ignore this file.