r
rule-gen
Open sourceDeveloper ToolsUpdated Feb 28, 2026
9 starsCompared with 369 other Developer Tools agentsOpen sourceUpdated Feb 2026
MIT license9 GitHub starsChecked Nov 8, 2026
What rule-gen does
rule-gen is a command-line tool (npx rulegen-ai) that generates AI coding rules from a project's actual source code using Google Gemini. It sends the codebase to Gemini and writes rules based on patterns found in that code, in formats for Cursor, Claude Code, AGENTS.md, GitHub Copilot or Windsurf.
Who it's for: Developers who write rule files for AI coding assistants such as Cursor.
Key features
- Output formats for Cursor (.mdc), Claude Code (CLAUDE.md), AGENTS.md, GitHub Copilot and Windsurf
- Scans the project tree, respecting .gitignore and skipping binaries
- Auto-detects Python frameworks, testing tools, linters and type checkers, and Node.js dependencies
- Sends the whole selected codebase to Gemini in one request, without chunking
- Dry-run preview, model choice (default gemini-2.5-flash-lite) and a max-files limit (default 50)
- No dependencies; built with Node.js builtins only
- Open source
- Yes (MIT)
Source: github.com/nedcodes-ok/rule-gen · Checked Nov 8, 2026
Alternatives
See all Developer Tools alternatives to rule-genRelated AI Agents
FAQs
- What is rule-gen?
- rule-gen is a command-line tool (npx rulegen-ai) that generates AI coding rules from a project's actual source code using Google Gemini. It sends the codebase to Gemini and writes rules based on patterns found in that code, in formats for Cursor, Claude Code, AGENTS.md, GitHub Copilot or Windsurf.
- Who is rule-gen for?
- Developers who write rule files for AI coding assistants such as Cursor.
- Is rule-gen open source?
- Yes, under the MIT license.
Rate this agent
Loading...
Your rating:
Reviews
Loading reviews...
Write a review
Ready to try this agent?
rule-gen