Generate Rules
Description
An intelligent, zero-dependency Node.js CLI tool that automatically inspects any codebase and generates tailored, high-standard guidelines (AGENTS.md and GEMINI.md) for AI coding agents such as Antigravity, Gemini Code Assist, Cursor, GitHub Copilot, Claude Code, and OpenAI Codex.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Universal Intelligent AI Agent Rules Generator (`generate-rules`)
An intelligent, zero-dependency Node.js CLI tool that automatically inspects any codebase and generates tailored, high-standard guidelines (`AGENTS.md` and `GEMINI.md`) for AI coding agents such as Antigravity, Gemini Code Assist, Cursor, GitHub Copilot, Claude Code, and OpenAI Codex.
Key Features
- Deep Codebase Inspection: Automatically detects languages, runtimes, frameworks, state management libraries, ORMs, UI design systems, bundlers, and testing suites.
- Annotated Directory Mapping: Generates clean visual tree representations of the project structure with architectural annotations.
- Tailored Coding Standards: Emits framework-specific best practices, including Electron process separation and IPC security, Next.js Server/Client component boundaries, Three.js/R3F memory lifecycles, and strict TypeScript, Python, or Rust conventions.
- Zero-Vulnerability Security Guidelines: Injects context isolation, sandboxing rules, IPC validation, environment variable safety, and Row-Level Security (RLS) enforcement based on active dependencies.
- Conventional Commits Specification: Embeds standard commit conventions and scopes directly into the generated agent prompt.
- Dynamic Verification Runbook: Builds repository-specific QA checklists (
npm run lint,npx tsc --noEmit,npm run build,npm test) tailored to availablepackage.jsonscripts and tools. - Custom Template Support: Allows overriding the default output structure using local
templates/AGENTS.template.mdandtemplates/GEMINI.template.mdfiles. - Automated
.gitignoreProtection: Automatically adds generated agent rule files and templates to.gitignore. - Zero External Dependencies: Implemented in pure native Node.js (ES Modules,
node:fs,node:path,node:url).
Supported Ecosystem and Technologies
[`generate-rules.mjs`](file:///d:/Pramuditha/Dev%20projects/generate-rules/
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI