Codex CLI Skills
    codex cli
    install
    skills

    How to Install Skills in Codex CLI

    Install SKILL.md skills in Codex CLI from Agensi, GitHub, or project repos. Cross-compatible with Claude Code and OpenClaw.

    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, OpenAI's command-line coding agent, supports the SKILL.md format alongside its own openai.yaml metadata file.

    Quick Answer: Connect your MCP-compatible agent to Agensi, choose a skill and ask the agent to use it on your task. Approve any required purchase. The latest approved instructions load 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.

    Once the directory exists, the Codex CLI skills marketplace lists every skill Codex can load, so you can install one and test the setup immediately.

    What do I need before installing skills?

    Make sure Codex CLI is installed and working:

    codex --version
    

    Create the skills directory if it doesn't exist:

    mkdir -p ~/.codex/skills
    

    Using Agensi skills

    Connect your MCP-compatible agent to Agensi, choose a skill and ask the agent to use it on your task. Approve any required purchase. The latest approved instructions load 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.

    How do I install skills from GitHub?

    # Clone the repo
    git clone https://github.com/username/my-skill.git
    
    # Copy the skill folder
    cp -r my-skill ~/.codex/skills/
    
    # Verify
    cat ~/.codex/skills/my-skill/SKILL.md | head -10
    

    Always check the SKILL.md before installing GitHub-sourced skills. Agensi marketplace skills are security-scanned; GitHub skills are not.

    How do I add project-level skills?

    For team-shared skills, put them in .codex/skills/ in your project root:

    mkdir -p .codex/skills
    cp -r ~/.codex/skills/team-review .codex/skills/
    git add .codex/skills/
    git commit -m "add team code review skill"
    

    Everyone who clones the repo gets the skill automatically.

    What about the openai.yaml file?

    Codex CLI supports an optional openai.yaml file alongside SKILL.md. This file adds Codex-specific metadata like UI hints and MCP tool dependencies. It's not part of the SKILL.md standard and other agents ignore it.

    You don't need openai.yaml for skills to work in Codex CLI. The SKILL.md file alone is sufficient. The yaml file just adds optional Codex-specific features.

    Path and invocation reference

    WhatValue
    Personal skills~/.codex/skills/
    Project skills.codex/skills/ (repo root)
    Required file<skill-name>/SKILL.md
    Optional Codex metadata<skill-name>/openai.yaml
    Create the directorymkdir -p ~/.codex/skills
    Install from a zipunzip skill-name.zip -d ~/.codex/skills/
    Reuse a Claude Code skillcp -r ~/.claude/skills/code-reviewer ~/.codex/skills/
    Explicit invocation$code-reviewer review the changes in this PR
    Browse installed skills/skills in the Codex CLI

    Codex CLI supports both automatic activation (when your request matches the skill's description) and explicit invocation with the $ prefix. The /skills selector lists everything it found at startup, which is the quickest way to confirm an install landed in the right place.

    Can I use Claude Code and OpenClaw skills in Codex CLI?

    Yes. SKILL.md is a cross-agent standard. Copy any skill from another agent's directory and it works:

    # From Claude Code
    cp -r ~/.claude/skills/code-reviewer ~/.codex/skills/
    
    # From OpenClaw
    cp -r ~/.openclaw/skills/test-generator ~/.codex/skills/
    

    No modification needed. The core SKILL.md instructions are fully portable across all compatible agents.

    For the full path reference, read Where Are Codex CLI Skills Stored?.


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

    Frequently Asked Questions

    A skill is a set of instructions packaged as a SKILL.md file that an AI agent, like Codex CLI, reads to learn a new workflow. Codex CLI uses this format along with an optional openai.yaml metadata file.

    Before installing skills, ensure Codex CLI is installed and operational. You also need to create the `~/.codex/skills/` directory if it does not already exist.

    To install a skill from Agensi, download it, then unzip the downloaded file into your `~/.codex/skills/` directory. The skill will automatically load when a new Codex CLI session is started and your request matches its description.

    To install skills from GitHub, clone the repository and then copy the skill folder into your `~/.codex/skills/` directory. Always review the SKILL.md for security before using GitHub-sourced skills.

    Project-level skills can be added by creating a `.codex/skills/` directory in your project root and copying the skill there. This allows team members who clone the repository to automatically get the skill.

    No, the openai.yaml file is optional and not required for skills to function in Codex CLI. It provides Codex-specific metadata like UI hints, but the SKILL.md file alone is sufficient.

    Yes, skills from Claude Code and OpenClaw that use the SKILL.md format are fully portable and can be copied directly into Codex CLI's skills directory without modification. This is because SKILL.md is a cross-agent standard.