Codex Skills — Skill Creator & Scaffolding Engine
The skill generation and authoring engine of AI Codex. Scaffolds new 6-file domain editions, creates custom workspace task skills, and extracts internal codebase patterns into reusable AI skills in
skills/codex/.
Overview
codex-skills allows developers and teams to extend AI Codex by generating new skills tailored to their languages, frameworks, internal SDKs, or project workflows. It ensures all generated skills adhere to the universal AI Codex standard: strict YAML frontmatter, deterministic execution workflows, clean 6-file modular architectures, and structured output artifact conventions in codex-drive/.
When to Trigger
- User runs
/codex-skills(e.g.,/codex-skills edition elixir,/codex-skills custom stripe-billing,/codex-skills extract internal-sdk) - Creating a new programming language or domain edition for the AI Codex library
- Packaging repetitive workspace workflows, deployment processes, or database migrations into an agent skill
- Distilling internal team guidelines, private SDK rules, and architectural standards into a bespoke AI skill
The 3 Generation Modes
/codex-skills
│
┌──────────────────────────┼──────────────────────────┐
▼ ▼ ▼
┌────────────────┐ ┌────────────────┐ ┌────────────────┐
│ 1. FULL CODEX │ │ 2. CUSTOM TASK │ │ 3. WORKSPACE │
│ EDITION │ │ WORKFLOW │ │ EXTRACTOR │
│ (6 Files + │ │ (Standalone │ │ (Reverse-eng │
│ SKILL.md) │ │ SKILL.md) │ │ from repo) │
└───────┬────────┘ └───────┬────────┘ └───────┬────────┘
│ │ │
▼ ▼ ▼
┌──────────────────────────────────────────────────────────────────────┐
│ Target Directory: skills/codex/<skill-name>/ │
└──────────────────────────────────────────────────────────────────────┘
Mode 1: Full 6-File Codex Edition (/codex-skills edition <name>)
Use when adding a new major programming language, technical domain, or platform.
Generated File Hierarchy in skills/codex/<name>/:
| File | Standard Contents & Structure |
|---|---|
SKILL.md |
YAML frontmatter (name, description), overview, 6-file index, recommended combinations, key capabilities. |
01-core-identity.md |
Senior Architect persona, core values, thinking style (7 steps), absolute principles (ALWAYS / NEVER). |
02-languages-standards.md |
Target versions, strict language idioms, non-negotiable standards table, memory/concurrency rules, anti-patterns. |
03-first-principles.md |
Mental models, runtime/hardware mechanics, type-driven design, state machines, architectural trade-off matrix. |
04-domains-knowledge.md |
Ecosystem deep-dives, major frameworks, design patterns, code snippets with complete types. |
05-research-method.md |
Invention/prototyping loop, diagnostic/profiling tools, testing pyramid, production readiness checklist. |
06-response-style.md |
Peer-level tone, response anatomy (4 sections), code snippet rules, code review template, canonical reference map. |
Automatic Manifest Registration:
codex-skills automatically registers the new edition in codex.json under "editions":
{
"id": "<name>",
"name": "<Display Name> Edition",
"description": "<Concise description>",
"directory": "skills/codex/<name>",
"icon": "",
"tags": ["tag1", "tag2"],
"files": [
{ "file": "01-core-identity.md", "purpose": "Identity, values, and thinking style", "required": true },
{ "file": "02-languages-standards.md", "purpose": "Language standards and code quality" },
{ "file": "03-first-principles.md", "purpose": "Mental models and runtime mechanics" },
{ "file": "04-domains-knowledge.md", "purpose": "Frameworks and ecosystem patterns" },
{ "file": "05-research-method.md", "purpose": "Prototyping, profiling, and production checklist" },
{ "file": "06-response-style.md", "purpose": "Communication format and references" }
]
}
Mode 2: Custom Workspace Task Skill (/codex-skills custom <name>)
Use when creating a focused workflow skill for a specific task (e.g., database migrations, Stripe integration, Kubernetes deploys).
Generated skills/codex/<name>/SKILL.md Template:
---
name: [skill-name]
description: >
[Clear, actionable description of what this skill does and when to trigger it.]
---
# [Skill Title] — [Subtitle]
> [High-level one-line summary of the skill's purpose.]
---
## Overview
[Detailed explanation of the workflow, problem it solves, and target tools/systems]
## When to Trigger
- User runs `/[skill-name]` (e.g., `/[skill-name] <args>`)
- [List specific trigger conditions or context]
## Execution Workflow
1. **Phase 1: Input Validation & Context Discovery**
2. **Phase 2: Core Task Execution & Transformations**
3. **Phase 3: Automated Verification & Testing**
4. **Phase 4: Artifact Generation in codex-drive/**
## Output Artifact Conventions
- Writes results to: `codex-drive/walkthroughs/YYYY-MM-DD-[name].walkthrough.md` or `codex-drive/specs/`
## Response Protocol
- Summary of actions taken, verified outputs, and next steps.
Mode 3: Workspace Skill Extractor (/codex-skills extract <name>)
Use when reverse-engineering a skill directly from the active workspace:
- Scan Workspace: Scans internal packages, configuration conventions, naming patterns, base classes, and test utilities.
- Extract Guidelines:
- Internal API contracts and authentication headers.
- Project-specific error handling patterns.
- Database conventions and migration rules.
- Common gotchas and anti-patterns.
- Synthesize Skill: Generates a tailored
skills/codex/<name>/SKILL.mdthat teaches any AI assistant how to write code according to the repository's exact internal standards.
Mode 4: Community Marketplace Installation (/codex-skills install <source>)
Use when installing a community skill or edition from a remote Git repository or registry:
/codex-skills install github.com/org/custom-edition
- Clones or fetches skill files into
skills/codex/<name>/. - Validates frontmatter and file structure against AI Codex specifications.
- Registers the new skill entry into
codex.json. - Runs
python scripts/validate.pyto confirm workspace integrity.
Quality Checklist for Generated Skills
Every skill generated by codex-skills must pass the following audit:
- Valid YAML frontmatter (
---header and footer withnameanddescription). - No empty files or placeholder comments.
- Clear step-by-step execution workflow diagrams.
- Output artifacts strictly routed to
codex-drive/(plans/,specs/,walkthroughs/,brains/) withYYYY-MM-DDtimestamps. - Verified with
python scripts/validate.py(zero validation errors).
Response Protocol
When codex-skills completes:
- Provide clickable links to the newly created skill folder and files in
skills/codex/<name>/. - Display the newly registered entry in
codex.json. - Run
python scripts/validate.pyand present the validation confirmation.