r/AgentSkills • u/Goldziher • 11d ago
Guide One SKILL.md source for Claude Code and Codex, with a runnable example
Hi people,
I'm glad to announce ai-rulez v5. It's a CLI and MCP for managing the instructions, skills, and settings that coding agents use in a repository. It's available through Homebrew, Scoop, npm, PyPI, and Go (see the installation instructions for details). The tool covers the following parts of AI Governance:
- Author one skill and generate it into the native layout for each client.
- Compare the generated files and check for drift in CI.
I maintain ai-rulez. Here is a small example tested with v5.13.2. In a scratch Git repo, run ai-rulez init skill-demo --yes --skip-content. Set presets = ["claude", "codex"] in .ai-rulez/config.toml. Create .ai-rulez/skills/docs-check/SKILL.md with this content:
Run ai-rulez generate, then ai-rulez generate --check. Look for .claude/skills/docs-check/SKILL.md and .agents/skills/docs-check/SKILL.md. In the default layout, Claude Code gets a native copy and Codex reads the shared .agents copy. If you update the skill, edit the source and regenerate. The skills guide also shows how to include reference files.
I'm happy to hear any comments. If you find the tool useful, star it. It really does help. And of course, I'd love to see people use it and get involved with the project.