r/coding_agents • u/Goldziher • 8d ago
ai-rulez v5: generate shared coding-agent configuration and check it in CI
https://github.com/Goldziher/ai-rulezHi 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:
- Keep shared agent instructions and skills in version control.
- Generate native configuration for the coding agents your team uses.
- Validate configuration and check generated files for drift in CI.
Here’s the multi-client workflow. Start with ai-rulez init --source agents in a repo with AGENTS.md. Add shared skills under .agents/skills/ and list the clients you use in .agents/ai-rulez.toml. Run ai-rulez generate when the source changes. In CI, run ai-rulez validate and ai-rulez generate --check. The latter exits 2 on drift.
I maintain the project. The agents source guide has a full example, including nested instructions in monorepos. What instructions do you deliberately keep client-specific when you use multiple coding agents?
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.