Rules and instructions for agentic coding tools like Cursor, GitHub Copilot, Claude CLI and Gemini CLI.
npx agent-rulesThis will start an interactive session where you can select the AI app and topics.
| AI App | Supported |
|---|---|
| GitHub Copilot | ✅ |
| Cursor | ✅ |
| Claude CLI | ✅ |
| Gemini CLI | ✅ |
You can also use command line flags to skip the interactive prompts:
# Generate rules for a specific AI app and topic
npx agent-rules --app cursor --topics secure-code
# Generate rules for multiple topics
npx agent-rules --app github-copilot --topics secure-code --topics testing
# Use short flags
npx agent-rules -a claude-code -t security-vulnerabilities
# Show help
npx agent-rules --help
# Show version
npx agent-rules --versionAI Apps:
github-copilot- GitHub Copilotcursor- Cursorclaude-code- Claude Codegemini- Gemini CLI
Topics:
secure-code- Secure coding practicessecurity-vulnerabilities- Security vulnerability scanning and fixestesting- Testing strategy and guidelines
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.