r/PiCodingAgent • • 10d ago

Use-case Pi use case: generating a repo-local prompt from shared agent configuration

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:

  • Keep reusable prompts and skills with the repository.
  • Generate native files for the clients your team uses.

I maintain ai-rulez. I tested this with v5.13.2 in a scratch Git repository:

  1. Run ai-rulez init pi-demo --yes --skip-content, then set presets = ["pi"] in .ai-rulez/config.toml.
  2. Run ai-rulez add command review-docs --description "Review documentation examples" --content "Check the examples against the CLI help.".
  3. Run ai-rulez generate and look for .pi/prompts/review-docs.md. Run ai-rulez generate --check to check for drift.

Pi gets a prompt file for this command. If your repo also uses another client, add its preset and generate both native outputs from the same source. The preset matrix lists what the Pi target writes.

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.

0 Upvotes

0 comments sorted by