Rules and instructions for agentic coding tools like Cursor, Claude CLI, Gemini CLI, Qodo, Cline and more
npm install agent-rules
Rules and instructions for agentic coding tools like Cursor, GitHub Copilot, Claude CLI and Gemini CLI.

``bash`
npx agent-rules
This will start an interactive session where you can select the AI app and topics.
#### Supported AI Apps
| AI App | Supported |
|--------|-----------|
| GitHub Copilot | ✅ |
| Cursor | ✅ |
| Claude CLI | ✅ |
| Gemini CLI | ✅ |
You can also use command line flags to skip the interactive prompts:
`bashGenerate rules for a specific AI app and topic
npx agent-rules --app cursor --topics secure-code
#### Available Options
Flags:
-
-a, --app - AI app to generate rules for
- -t, --topics - Topics to generate rules for (can be specified multiple times)
- -m, --mcp - Include MCP (Model Context Protocol) server configuration
- -c, --commands - Include custom commands/prompts
- -h, --help - Show help message
- -v, --version - Show version numberAI Apps:
-
github-copilot - GitHub Copilot
- cursor - Cursor
- claude-code - Claude Code
- gemini - Gemini CLITopics:
-
secure-code - Secure coding practices
- security-vulnerabilities - Security vulnerability scanning and fixes
- testing - Testing strategy and guidelinesFeatures
$3
Scaffold AI-specific coding instructions and best practices rules into your project:
- Security-focused coding practices
- Vulnerability detection and remediation
- Testing strategies and guidelines
$3
Automatically configure MCP servers for enhanced agentic coding capabilities:
- GitHub Copilot: Configures
.vscode/mcp.json
- Gemini CLI: Configures .gemini/settings.json
- Non-destructive merging with existing configurationsLearn more in the MCP Feature Documentation.
$3
Scaffold reusable commands and prompts for your AI coding assistant:
- GitHub Copilot: Deploys to
.github/prompts/` as prompt filesLearn more in the Commands Feature Documentation.
Current category of rules available:
- Secure coding practices, based on Liran Tal's Node.js Secure Coding
- Security vulnerabilities, based on Snyk.io
- Testing strategy and test code guidelines, built from Yoni Goldberg's JavaScript Testing and Liran Tal's testing strategy
Please consult CONTRIBUTING for guidelines on contributing to this project.
agent-rules © Liran Tal, Released under the Apache-2.0 License.