codex-learning
Skill69 starsChanged 8 months agoApache-2.0View on GitHub
Codex CLI learning and optimization guide. Teaches configuration, AGENTS.md setup, MCP servers, skills management, and best practices. Start learning with "learn codex" or "setup codex". Triggers: learn codex, codex setup, AGENTS.md, MCP, skills, configuration, 코덱스 배우기, 설정 방법, コーデックス学習, 学习Codex, aprender codex, apprendre codex, Codex lernen, imparare codex Do NOT use for: bkit-specific PDCA workflow (use $pdca).
- Installs packages
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 64
Create AGENTS.md at your project root:
- Distinctive: line 204
Ask for one thing at a time for complex tasks
- Distinctive: line 207
Keep AGENTS.md up to date
- Very specific: line 208
Use .codex/ for project-specific config
- Distinctive: line 210
Use MCP for tool integration
- Very specific: line 213
Use o4-mini for fast tasks, o3 for complex reasoning
- Distinctive: line 215
Use skills to provide context instead of repeating instructions
- Distinctive: line 216
Keep AGENTS.md concise (under 2000 words)
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex Learning Skill
Learn to configure and optimize OpenAI Codex CLI for maximum productivity.
Actions
| Action | Description | Example |
learn | Start learning guide | $codex-learning learn |
setup | Configuration walkthrough | $codex-learning setup |
tips | Best practices and tips | $codex-learning tips |
What is Codex CLI?
Codex CLI is OpenAI's command-line coding agent that:
- Reads and writes files in your project
- Executes shell commands
- Uses tools via MCP (Model Context Protocol)
- Follows instructions from AGENTS.md files
- Invokes skills for specialized tasks
Quick Start
1. Installation
npm install -g @openai/codex2. Configuration
# Create config directory
mkdir -p ~/.codex
# Create config.toml
cat > ~/.codex/config.toml << 'CONFIG'
model = "o4-mini"
approval_mode = "suggest"
[history]
persistence = "save_all"
save_to = "$HOME/.codex/history"
[sandbox]
network_access = true
CONFIG3. Project Setup
Create AGENTS.md at your project root:
# Project Agent Instructions
## Project Overview
Brief description of this project.
## Tech Stack
- Frontend: Next.js 14, TypeScript, Tailwind CSS
- Backend: bkend.ai BaaS
- Level: Dynamic
## Conventions
- Use TypeScript strict mode
- Follow ESLint + Prettier rules
- Commit messages: conventional commits format
## File Structure
[Describe your project structure]
## Important Notes
[Project-specific instructions for the AI]AGENTS.md Guide
Location Hierarchy
project/
├── AGENTS.md # Root (applies to entire project)
├── src/
│ ├── AGENTS.md # Applies to src/ and subdirectories
│ ├── components/
│ │ └── AGENTS.md # Applies to components/
│ └── lib/
│ └── AGENTS.md # Applies to lib/Child AGENTS.md files inherit from parent and can add/override instructions.
Best Practices for AGENTS.md
- Be specific: "Use TypeScript strict mode" not "write good code"
- Include conventions: Naming rules, file structure, patterns
- List tech stack: Framework versions, key dependencies
- Define boundaries: What the AI should and should not do
- Keep it updated: Review and update as project evolves
MCP Server Configuration
What is MCP?
Model Context Protocol allows Codex to connect to external tools and data sources.
Configure MCP Servers
// ~/.codex/mcp.json
{
"servers": {
"bkit-codex": {
"command": "npx",
"args": ["bkit-codex-mcp"],
"description": "bkit development pipeline tools"
}
}
}Project-level MCP
// .codex/mcp.json (in project root)
{
"servers": {
"project-tools": {
"command": "node",
"args": ["./tools/mcp-server.js"]
}
}
}Skills System
What are Skills?
Skills are reusable instruction sets that Codex loads when triggered by keywords in your prompt.
Skill Structure
.agents/skills/
├── my-skill/
│ ├── SKILL.md # Instructions (YAML frontmatter + body)
│ └── agents/
│ └── openai.yaml # Codex-specific configSKILL.md Format
---
name: my-skill
description: |
Brief description of what this skill does.
Triggers: keyword1, keyword2, keyword3
Do NOT use for: things this skill should not handle.
---
# Skill Body
Instructions for the AI when this skill is activated.openai.yaml Format
interface:
brand_color: "#3B82F6"
policy:
allow_implicit_invocation: trueApproval Modes
| Mode | Description | Best For |
suggest | Shows changes, asks before applying | Learning, careful work |
auto-edit | Auto-applies file edits, asks for commands | Experienced users |
full-auto | Auto-applies everything | Trusted workflows |
Best Practices
Effective Prompts
- Be specific about what you want
- Reference file paths explicitly
- Mention the framework/language
- Ask for one thing at a time for complex tasks
Project Organization
- Keep AGENTS.md up to date
- Use .codex/ for project-specific config
- Store skills in .agents/skills/
- Use MCP for tool integration
Performance Tips
- Use
o4-minifor fast tasks,o3for complex reasoning - Break large tasks into smaller steps
- Use skills to provide context instead of repeating instructions
- Keep AGENTS.md concise (under 2000 words)
Codex CLI Reference
See references/codex-guide.md for complete command reference and advanced configuration.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bkend-authSkill
- bkend-cookbookSkill
- bkend-dataSkill
- bkend-quickstartSkill
- bkend-storageSkill
- bkit-rulesSkill
- bkit-templatesSkill
- code-reviewSkill
- desktop-appSkill
- development-pipelineSkill
- dynamicSkill
- enterpriseSkill
- mobile-appSkill
- pdcaSkill
- phase-1-schemaSkill
- phase-2-conventionSkill
- phase-3-mockupSkill
- phase-4-apiSkill
- phase-5-design-systemSkill
- phase-6-ui-integrationSkill
- phase-7-seo-securitySkill
- phase-8-reviewSkill
- phase-9-deploymentSkill
- plan-plusSkill
- starterSkill
- zero-script-qaSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

