codex-skills
Skill1 starsChanged 4 months agoMITView on GitHub
Scaffolds, generates, and extracts new AI Codex skills and domain editions. Creates standardized 6-file language editions, project-specific custom workflow skills, and workspace-extracted skills inside skills/codex/.
In this repository24 other files it gives its agents.
- codex-architectureSkill
- codex-brainSkill
- ai-codex-c-cppSkill
- ai-codex-csharp-dotnetSkill
- codex-debugSkill
- codex-deepSkill
- codex-elixirSkill
- codex-flutter-dartSkill
- codex-goalSkill
- ai-codex-goSkill
- ai-codex-java-kotlinSkill
- ai-codex-phpSkill
- codex-plansSkill
- ai-codex-pythonSkill
- codex-reviewSkill
- ai-codex-rustSkill
- codex-solidity-web3Skill
- codex-sql-databaseSkill
- codex-startSkill
- ai-codex-swiftSkill
- codex-testSkill
- ai-codex-typescript-reactSkill
- ai-codex-ui-ux-designSkill
- codex-zigSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 54
Use when adding a new major programming language, technical domain, or platform.
- Distinctive: line 93
Use when creating a focused workflow skill for a specific task (e.g., database migrations, Stripe integration, Kubernetes deploys).
- Distinctive: line 134
Use when reverse-engineering a skill directly from the active workspace:
- Distinctive: line 148
Use when installing a community skill or edition from a remote Git repository or registry:
- Very specific: line 163
Every skill generated by codex-skills must pass the following audit:
- Very specific: line 177
Run python scripts/validate.py and present the validation confirmation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

