Skip to content

Standardize LLM rules across code editors #367

@PawanKolhe

Description

@PawanKolhe

Came across this comment for standardizing LLM rules across different code editors.

There is this tool that I'm using that should solve this problem: https://github.com/intellectronica/ruler

  • It allows you to maintain one “source of truth” (or set of Markdown rule files) for instructions/guidelines that all your AI-agents (e.g., GitHub Copilot, Claude Code, and others) should follow.
  • It supports nested project structures (for example different sub-folders with their own .ruler/ rules) for context-specific instructions.
  • Supports MCP Configuration as well.
  • List of supported agents

Basically:

  1. There will be .ruler/ directory with all Markdown rule files
  2. ruler apply command will output per-agent files. We can optionally have this run on pre-commit hook incase devs forget to run this command.
  3. Will automatically add the output files directories to .gitignore so that they are not committed to source control as these are artifacts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions