This tutorial shows how to use Skrills to validate, analyze, and synchronize your skills between Claude Code and Codex CLI.
Skrills provides bidirectional synchronization with validation and analysis for skills that work on both Claude Code and Codex.
Key Commands:
skrills validate- Check skills for compatibility issuesskrills analyze- Review token usage and optimization opportunitiesskrills sync-status- See differences between platformsskrills sync- Copy skills from Claude Code to Codexskrills metrics- View aggregate statistics
First, see what skills you have in your Claude Code skills directory:
ls ~/.claude/skillsSkills can also be discovered from ~/.claude/plugins/cache/ if you have Claude Code plugins installed.
Validate skills for compatibility:
skrills validateThis checks that skills work on both platforms:
- Claude Code: Permissive validation (frontmatter optional)
- Codex: Strict validation (requires
name:anddescription:frontmatter)
Use --errors-only to show only skills with validation issues.
Analyze skills for optimization opportunities:
skrills analyze --suggestionsThis shows:
- Token count per skill
- Size distribution (small, medium, large)
- Quality scores
- Suggestions for reducing context bloat
Use --min-tokens to filter for skills that need optimization attention.
Get aggregate statistics about your skills:
skrills metricsShows:
- Total number of skills
- Skills by source (codex, claude, cache, etc.)
- Quality distribution
- Token statistics
- Dependency information
See what's different between Claude Code and Codex:
skrills sync-statusDisplays:
- Skills pending sync
- Configuration differences (MCP servers, preferences)
- Slash commands that need syncing
Copy skills from Claude Code to Codex:
skrills syncThe sync command:
- Converts frontmatter to Codex-compatible format
- Preserves skill content and metadata
- Creates the
~/.codex/skills/directory if needed - Enables experimental skills feature in Codex config
After syncing, verify with:
find ~/.codex/skills -name 'SKILL.md'- Use
--dry-runwith any sync command to preview changes - Run
skrills validate --autofix --backupto automatically fix issues - Use
skrills tuifor interactive sync management - Check
skrills doctorto diagnose MCP configuration issues - Set
SKRILLS_INCLUDE_CLAUDE=1to include Claude plugin cache in discovery
- Rust toolchain (for building from source)
- Claude Code and/or Codex CLI installed
- Skills in
~/.claude/skills/,~/.claude/plugins/cache/, or~/.codex/skills/
