When a team repeatedly asks an agent to review changes against the same checklist and report findings in a consistent format, it can record that procedure as a skill. An Agent Skill is a directory with a SKILL.md file and optional supporting files. In Codex and Claude Code, the description helps match the skill to the task. Invoking it brings in the full instructions, and the agent opens supporting files as needed. Agent Skills specification · Codex Skills · Claude Code Skills

A review skill

Create SKILL.md in review-diff/. The standard requires name and description. Match the name to the directory and describe when the skill applies.

---
name: review-diff
description: Review a Git diff for regressions and cite evidence for each finding.
---

Read references/review-checklist.md.
Inspect the diff, affected callers, and existing tests.
Report the file, observed behavior, and evidence for each finding.

Suppose a patch changes the visibility rule that controls a journal’s RSS feed. In references/review-checklist.md, ask whether the feed still includes published entries and excludes drafts. The client sees the short description before invocation. Once the skill is active, the agent reads the procedure and opens the checklist. This is progressive disclosure. The material enters context when needed. Similarly, scripts/ can hold a local check and assets/ a report template. Whether a script can run depends on the client’s environment and permissions. Agent Skill structure

Locations, invocation and permissions

MechanismCodexClaude Code
Repository skill directory.agents/skills/.claude/skills/
Local user skills~/.agents/skills/~/.claude/skills/
Explicit invocation$review-diff/review-diff
Require manual invocationpolicy.allow_implicit_invocation: false in agents/openai.yamldisable-model-invocation: true in SKILL.md

Claude Code supports allowed-tools to preapprove listed tools for the invoking turn, subject to managed rules. The Agent Skills specification marks allowed-tools as experimental, so check how each client interprets it. In Codex, agents/openai.yaml can carry a display name and description, invocation policy, and tool dependencies. In Claude Code, context: fork runs the skill in a subagent context. The subagent receives the procedure as its prompt, so pass any data it will need explicitly. Custom Codex subagents have their own definitions in .codex/agents/. Codex Skills docs · Claude Code Skills docs · Codex subagents

For a procedure that works across both clients, start with a shared SKILL.md and relative paths to reference files. Keep the site’s visibility rules in its standing project instructions. review-diff tells the agent how to check those rules against a particular patch. Project instruction files for coding agents