AI Assets
Use this skill when building or maintaining the Codex half of this repository. Treat every asset as live prompt surface and preserve semantic parity with .claude/ without copying Claude-only runtime primitives directly.
1. Determine Scope
Identify:
- Operation:
create | modify | validate | analyze
- Asset type:
agents-md | skill | role | rule | operation | template | checklist
- Target path or asset name
If the request is ambiguous, resolve it from repository context before asking the user.
2. Gather Context
Read only what is required for the target:
- The target asset, if it exists
- Root
AGENTS.md
- Relevant files under
.codex/
- Relevant files under
.agents/skills/
- The matching Claude source under
.claude/ when parity is in scope
framework-summary.md for the Codex package layout and primitive mapping
context-engineering when the asset affects prompt layering, routing, memory, RAG, or orchestration
3. Build a Dependency Map
Map outgoing and incoming references.
Check for:
- References to
AGENTS.md
- References to
.agents/skills/<name>/
- References to
.codex/roles/, .codex/rules/, .codex/operations/, .codex/templates/, or .codex/checklists/
- Missing files
- Orphaned assets
- Duplicate or stale aliases
- Claude-only concepts that were not translated into Codex-native form
For analyze, stop after presenting the dependency map.
4. Choose the Right Codex Primitive
Use the smallest Codex-native asset that matches the job:
- Repository or directory policy ->
AGENTS.md
- Reusable workflow or knowledge ->
.agents/skills/<name>/SKILL.md
- Reference role ->
.codex/roles/<name>.md
- Executable role behavior layer ->
.codex/rules/role-overlays/<name>.md
- Guardrail or package standard ->
.codex/rules/<name>.md
- Hook/settings translation ->
.codex/operations/*.md
- Reusable scaffold ->
.codex/templates/*.md
- Manual validation aid ->
.codex/checklists/*.md or companion markdown inside a skill
Do not recreate Claude-specific primitives such as agent files, hook configs, or settings.json inside the Codex package.
5. Authoring Rules
AGENTS.md
- Put hard constraints first
- Keep project facts concrete and current
- Keep root guidance global and scoped guidance local
- Make role overlay activation visible when a skill declares
codex-roles
SKILL.md
- Required frontmatter:
name, description
- Optional fields:
context, user-invocable, argument-hint, codex-roles
description should trigger the right workflow, not every vaguely related task
codex-roles must resolve to both .codex/roles/ and .codex/rules/role-overlays/
- Move bulky examples and checklists into companion files
Roles and Overlays
.codex/roles/ is the detailed reference layer
.codex/rules/role-overlays/ is the concise execution layer
- Do not describe overlays as hidden agents
- Keep overlays imperative, short, and testable
Rules, Operations, Templates, Checklists
- Keep policy separate from examples
- Keep hook intent visible in documentation instead of implying hidden automation
- Prefer reusable structures over repo-specific examples
- Remove machine-specific paths and project-specific commands
6. Prompt Engineering Review
Review the asset as live Codex context:
- What behavior does it shape?
- What failure mode does it prevent or enable?
- Is the instruction hierarchy clear?
- Is critical information front-loaded?
- Is the token cost justified?
- Does it stay Codex-native while preserving Claude-source intent?
Use review-checklist.md for the final pass.
7. Validate
Run these checks on every create or modify operation:
- Asset uses Codex-native concepts only
- References resolve
codex-roles values resolve to both role and overlay files
- No machine-specific paths unless intentionally local documentation
- No secrets or credentials
- English only
SKILL.md stays concise enough for progressive disclosure
- No stale Claude aliases or duplicate guardrails remain
- Parity-impacting changes update
review/parity-matrix.md
8. Finalize
Report:
- What changed
- Dependency status
- Validation result
- Remaining follow-up items
1---2name: ai-skills3description: Create, modify, validate, and analyze Codex-native AI assets such as AGENTS.md files, shared skills, roles, rules, operations, templates, and checklists.4---56# AI Assets78Use this skill when building or maintaining the Codex half of this repository. Treat every asset as live prompt surface and preserve semantic parity with `.claude/` without copying Claude-only runtime primitives directly.910## 1. Determine Scope1112Identify:1314- Operation: `create` | `modify` | `validate` | `analyze`15- Asset type: `agents-md` | `skill` | `role` | `rule` | `operation` | `template` | `checklist`16- Target path or asset name1718If the request is ambiguous, resolve it from repository context before asking the user.1920## 2. Gather Context2122Read only what is required for the target:23241. The target asset, if it exists252. Root `AGENTS.md`263. Relevant files under `.codex/`274. Relevant files under `.agents/skills/`285. The matching Claude source under `.claude/` when parity is in scope296. `framework-summary.md` for the Codex package layout and primitive mapping307. `context-engineering` when the asset affects prompt layering, routing, memory, RAG, or orchestration3132## 3. Build a Dependency Map3334Map outgoing and incoming references.3536Check for:3738- References to `AGENTS.md`39- References to `.agents/skills/<name>/`40- References to `.codex/roles/`, `.codex/rules/`, `.codex/operations/`, `.codex/templates/`, or `.codex/checklists/`41- Missing files42- Orphaned assets43- Duplicate or stale aliases44- Claude-only concepts that were not translated into Codex-native form4546For `analyze`, stop after presenting the dependency map.4748## 4. Choose the Right Codex Primitive4950Use the smallest Codex-native asset that matches the job:5152- Repository or directory policy -> `AGENTS.md`53- Reusable workflow or knowledge -> `.agents/skills/<name>/SKILL.md`54- Reference role -> `.codex/roles/<name>.md`55- Executable role behavior layer -> `.codex/rules/role-overlays/<name>.md`56- Guardrail or package standard -> `.codex/rules/<name>.md`57- Hook/settings translation -> `.codex/operations/*.md`58- Reusable scaffold -> `.codex/templates/*.md`59- Manual validation aid -> `.codex/checklists/*.md` or companion markdown inside a skill6061Do not recreate Claude-specific primitives such as agent files, hook configs, or `settings.json` inside the Codex package.6263## 5. Authoring Rules6465### `AGENTS.md`6667- Put hard constraints first68- Keep project facts concrete and current69- Keep root guidance global and scoped guidance local70- Make role overlay activation visible when a skill declares `codex-roles`7172### `SKILL.md`7374- Required frontmatter: `name`, `description`75- Optional fields: `context`, `user-invocable`, `argument-hint`, `codex-roles`76- `description` should trigger the right workflow, not every vaguely related task77- `codex-roles` must resolve to both `.codex/roles/` and `.codex/rules/role-overlays/`78- Move bulky examples and checklists into companion files7980### Roles and Overlays8182- `.codex/roles/` is the detailed reference layer83- `.codex/rules/role-overlays/` is the concise execution layer84- Do not describe overlays as hidden agents85- Keep overlays imperative, short, and testable8687### Rules, Operations, Templates, Checklists8889- Keep policy separate from examples90- Keep hook intent visible in documentation instead of implying hidden automation91- Prefer reusable structures over repo-specific examples92- Remove machine-specific paths and project-specific commands9394## 6. Prompt Engineering Review9596Review the asset as live Codex context:97981. What behavior does it shape?992. What failure mode does it prevent or enable?1003. Is the instruction hierarchy clear?1014. Is critical information front-loaded?1025. Is the token cost justified?1036. Does it stay Codex-native while preserving Claude-source intent?104105Use `review-checklist.md` for the final pass.106107## 7. Validate108109Run these checks on every create or modify operation:110111- Asset uses Codex-native concepts only112- References resolve113- `codex-roles` values resolve to both role and overlay files114- No machine-specific paths unless intentionally local documentation115- No secrets or credentials116- English only117- `SKILL.md` stays concise enough for progressive disclosure118- No stale Claude aliases or duplicate guardrails remain119- Parity-impacting changes update `review/parity-matrix.md`120121## 8. Finalize122123Report:124125- What changed126- Dependency status127- Validation result128- Remaining follow-up items