Coding & Development✨gemini🤖claude⌨️cursor🌐universal
Generate rules for a specific AI app and topic
Rules and instructions for agentic coding tools like Cursor, Claude CLI, Gemini CLI, Qodo, Cline and more
Quick Start
Install this Skill
npx skills add lirantal/agent-rules<!-- markdownlint-disable --> <p align="center"><h1 align="center"> agent-rules </h1> <p align="center"> Rules and instructions for agentic coding tools like Cursor, GitHub Copilot, Claude CLI and Gemini CLI. </p> <p align="center"> <a href="https://www.npmjs.org/package/agent-rules"><img src="https://badgen.net/npm/v/agent-rules" alt="npm version"/></a> <a href="https://www.npmjs.org/package/agent-rules"><img src="https://badgen.net/npm/license/agent-rules" alt="license"/></a> <a href="https://www.npmjs.org/package/agent-rules"><img src="https://badgen.net/npm/dt/agent-rules" alt="downloads"/></a> <a href="https://github.com/lirantal/agent-rules/actions?workflow=CI"><img src="https://github.com/lirantal/agent-rules/workflows/CI/badge.svg" alt="build"/></a> <a href="https://codecov.io/gh/lirantal/agent-rules"><img src="https://badgen.net/codecov/c/github/lirantal/agent-rules" alt="codecov"/></a> <a href="https://snyk.io/test/github/lirantal/agent-rules"><img src="https://snyk.io/test/github/lirantal/agent-rules/badge.svg" alt="Known Vulnerabilities"/></a> <a href="./SECURITY.md"><img src="https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg" alt="Responsible Disclosure Policy" /></a> </p> <div align="center"> <img src="https://github.com/lirantal/agent-rules/blob/main/.github/agent-rules-1.png?raw=true" alt="agent-rules logo"/> </div> ## Usage ### Interactive Mode ```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 | ✅ | ### Command Line Interface You can also use command line flags to skip the interactive prompts: ```bash # 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 # Include MCP (Model Context Protocol) configuration npx agent-rules --app github-copilot --topics testing --mcp # Include custom commands (prompts) npx agent-rules --app github-copilot --topics secure-code --commands # Combine multiple features npx agent-rules --app github-copilot --topics secure-code --mcp --commands # Use short flags npx agent-rules -a claude-code -t security-vulnerabilities -m -c # Show help npx agent-rules --help # Show version npx agent-rules --version ``` #### Available Options **Flags:** - `-a, --app <app>` - AI app to generate rules for - `-t, --topics <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 number **AI Apps:** - `github-copilot` - GitHub Copilot - `cursor` - Cursor - `claude-code` - Claude Code - `gemini` - Gemini CLI **Topics:** - `secure-code` - Secure coding practices - `security-vulnerabilities` - Security vulnerability scanning and fixes - `testing` - Testing strategy and guidelines ## Features ### 📋 Instructions & Rules Scaffold AI-specific coding instructions and best practices rules into your project: - Security-focused coding practices - Vulnerability detection and remediation - Testing strategies and guidelines ### 🔌 MCP (Model Context Protocol) Configuration 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 configurations Learn more in the [MCP Feature Documentation](./docs/FEATURE-MCP.md). ### ⚡ Custom Commands & Prompts Scaffold reusable commands and prompts for your AI coding assistant: - **GitHub Copilot**: Deploys to `.github/prompts/` as prompt files - Pre-built commands for common workflows (e.g., implementing GitHub issues) - Easily extensible with your own custom commands Learn more in the [Commands Feature Documentation](./docs/FEATURE-COMMANDS.md). ## Rules Current category of rules available: - Secure coding practices, based on Liran Tal's [Node.js Secure Coding](https://www.nodejs-security.com/) - Security vulnerabilities, based on [Snyk.io](https://snyk.io/) - Testing strategy and test code guidelines, built from [Yoni Goldberg's JavaScript Testing](https://github.com/goldbergyoni/javascript-testing-best-practices) and Liran Tal's testing strategy ## Contributing Please consult [CONTRIBUTING](./.github/CONTRIBUTING.md) for guidelines on contributing to this project. ## Author **agent-rules** © [Liran Tal](https://github.com/lirantal), Released under the [Apache-2.0](./LICENSE) License.
Repository
46stars
2forks
Details
Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
🤖claude🌐universal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
🌐universal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
✨gemini🤖claude💬gpt🌐universal
524
34
View
misakanet-failure-memory
Coding & Development📚 A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
🤖claude⌨️cursor🌐universal
424
158
View