C
Codex MCP Skills
作者 @athola
MCP server by athola
创建于 11/24/2025
更新于 21 days ago
README
Repository documentation and setup instructions
Skrills
Skills support engine for Claude Code and Codex CLI. Validates, analyzes, and syncs skills bidirectionally between both CLIs.
Why skrills
- Validate skills for Claude Code (permissive) and Codex CLI (strict frontmatter requirements) with auto-fix capability.
- Analyze skills for token usage, dependencies, and optimization opportunities.
- Sync bidirectionally between Claude Code and Codex CLI: skills, commands, MCP servers, and preferences.
- Byte-for-byte command sync with
--skip-existing-commandsto avoid overwriting local commands; non-UTF-8 commands are preserved. - Full mirror + sync CLI/TUI (
mirror,sync,sync-all,tui) and agent launcher (skrills agent <name>).
Architecture (workspace crates)
crates/server: MCP server runtime and CLI.crates/validate: skill validation for Claude Code and Codex CLI compatibility.crates/analyze: token counting, dependency analysis, and optimization suggestions.crates/sync: bidirectional sync between Claude/Codex (skills, commands, prefs, MCP servers).crates/discovery: skill discovery and ranking.crates/state: persistent store for manifests and mirrors.crates/subagents: shared subagent runtime and backends for Codex/Claude delegation.
Installation
- macOS / Linux:
curl -LsSf https://raw.githubusercontent.com/athola/skrills/HEAD/scripts/install.sh | sh - Windows PowerShell:
powershell -ExecutionPolicy Bypass -NoLogo -NoProfile -Command ^ "Remove-Item alias:curl -ErrorAction SilentlyContinue; iwr https://raw.githubusercontent.com/athola/skrills/HEAD/scripts/install.ps1 -UseBasicParsing | iex" - crates.io:
cargo install skrills - From source:
cargo install --path crates/cli --force
Quickstart
Validate skills for Codex compatibility
skrills validate --target codex
skrills validate --target codex --autofix # Auto-add missing frontmatter
Analyze skill token usage
skrills analyze --min-tokens 1000 --suggestions
Sync all configurations from Claude to Codex
skrills sync-all --from claude --skip-existing-commands
Start MCP server
skrills serve
Launch a mirrored agent spec
skrills agent codex-dev
Validation
Skrills validates skills against two targets:
- Claude Code: Permissive. Accepts any markdown with optional frontmatter.
- Codex CLI: Strict. Requires YAML frontmatter with
name(max 100 chars) anddescription(max 500 chars).
The --autofix flag adds missing frontmatter by deriving values from file path and content.
MCP Tools
When running as an MCP server (skrills serve), the following tools are available:
validate-skills- Validate skills for CLI compatibilityanalyze-skills- Analyze token usage and dependenciessync-skills- Sync skills between Claude and Codexsync-commands- Sync slash commandssync-mcp-servers- Sync MCP configurationssync-preferences- Sync preferencessync-all- Sync everythingsync-status- Preview sync changes (dry run)
CLI guide (selected)
skrills validate [--target claude|codex|both] [--autofix]— validate skills for CLI compatibility.skrills analyze [--min-tokens N] [--suggestions]— analyze token usage and dependencies.skrills sync-all [--from claude|codex] [--skip-existing-commands]— sync all configurations.skrills sync-commands [--from claude|codex] [--dry-run] [--skip-existing-commands]— byte-for-byte command sync.skrills mirror— mirror skills/agents/commands/prefs from Claude to Codex.skrills tui— interactive sync and diagnostics.skrills doctor— verify Codex MCP wiring.skrills agent <name>— launch a mirrored agent spec.
Configuration
SKRILLS_MIRROR_SOURCE— mirror source root (default~/.claude).SKRILLS_CACHE_TTL_MS— discovery cache TTL.SKRILLS_CLIENT— force installer target (codexorclaude).SKRILLS_NO_MIRROR=1— skip post-install mirror on Codex.- Subagents ship on by default: binaries are built with the
subagentsfeature. SKRILLS_SUBAGENTS_DEFAULT_BACKEND— default backend (codexorclaude) when launching subagents.~/.codex/subagents.toml— optional override file for subagent defaults.
Documentation
- mdBook (primary): https://athola.github.io/skrills/
book/src/cli.md— CLI reference.book/src/persistence.md— state, pins, cache, mirrors (byte-safe command sync).book/src/overview.md— discovery priority and architecture.book/src/mcp-token-optimization.md— token-saving patterns.
- Additional docs in
docs/:docs/architecture.md,docs/adr/— architecture decisions and crate structure.docs/FAQ.md,docs/security.md,docs/threat-model.md,docs/semver-policy.md,docs/CHANGELOG.md,docs/process-guidelines.md,docs/dependencies.md,docs/release-artifacts.md,docs/config/.
- Examples and demos:
examples/,crates/subagents/, and TUI walkthroughs.
Development
make fmt lint test --quiet
- Rust toolchain ≥ 1.75 recommended.
- End-to-end MCP tests live under
crates/server/tests/; sample agents incrates/subagents/.
Status & roadmap
- Actively developed; changelogs in
docs/CHANGELOG.mdandbook/src/changelog.md.
Contributing & support
- Security: see
docs/security.mdanddocs/threat-model.md; report issues via standard disclosure channels. - Issues/PRs: include OS,
skrills --version, and logs (use--trace-wirefor MCP). - Follow
docs/process-guidelines.md; update docs/tests with code changes.
License
Star History
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/athola/codex-mcp-skills
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"athola-codex-mcp-skills": {
"command": "git",
"args": [
"clone",
"https://github.com/athola/codex-mcp-skills"
]
}
}
}