SkillAgentSearch skills...

agent-rules

Rules and instructions for agentic coding tools like Cursor, Claude CLI, Gemini CLI, Qodo, Cline and more

Install / Use

npx skills add lirantal/agent-rules

Installs into whichever agent you are using.

About this skill
📐

.cursorrules

Cursor IDE rules (legacy)

Quality Score

78/100

Category

Automation

Supported Platforms

Cursor
GitHub Copilot
Cline
Gemini CLI

Our assessment of agent-rules

agent-rules scores 78/100 on our quality scale, 2570th of 2,863 Automation skills we index.

Its .cursorrules is 4.7 KB long, well organised into 21 sections with 2 code examples: a solid amount of guidance for an agent.

It has 65 GitHub stars, a meaningful sign that others use it.

Substance
26/30
Structure
18/20
Description
12/15
Adoption
8/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 2 days ago, so agent-rules is actively maintained.
  • Our last check on 2026-10-21 found the source still online.
  • It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

agent-rules compared with similar skills

All 4 of these similar skills score higher than agent-rules; compare them before choosing.

SkillScoreStarsUpdatedFormat
agent-rules (this skill)by lirantal78652d ago.cursorrules
Agent-Reachby Panniantong100109.2ktodayCLAUDE.md
Scraplingby D4Vinci10097.9ktodayMCP Server
rufloby ruvnet10081.0ktodayMCP Server
openclawby thedotmack100107.6k5d agoSKILL.md

Frequently asked questions

How do I install agent-rules?
Run npx skills add lirantal/agent-rules. The install tabs above show the steps for each supported agent.
Which AI agents does agent-rules work with?
It is written for Cursor, GitHub Copilot, Cline and Gemini CLI, as a .cursorrules file. Other agents that read the same format can often use it too.
Is agent-rules safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is agent-rules still maintained?
The repository was last updated 2 days ago, so agent-rules is actively maintained.
<!-- markdownlint-disable --> <p align="center"><h1 align="center"> agent-rules </h1> </p> <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.com/package/agent-rules"><img src="https://badgen.net/npm/v/agent-rules" alt="npm version"/></a> <a href="https://www.npmjs.com/package/agent-rules"><img src="https://badgen.net/npm/license/agent-rules" alt="license"/></a> <a href="https://www.npmjs.com/package/agent-rules"><img src="https://badgen.net/npm/dt/agent-rules" alt="downloads"/></a> <a href="https://github.com/lirantal/agent-rules/actions/workflows/ci.yml"><img src="https://github.com/lirantal/agent-rules/actions/workflows/ci.yml/badge.svg?branch=main" 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="./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://raw.githubusercontent.com/lirantal/agent-rules/refs/heads/main/.github/agent-rules-1.png" alt="agent-rules logo"/> </div>

Usage

Interactive Mode

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:

# 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.

⚡ 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.

Rules

Current category of rules available:

Documentation

Contributing

Please consult CONTRIBUTING for guidelines on contributing to this project.

Author

agent-rules © Liran Tal, Released under the Apache-2.0 License.

Related Skills

View on GitHub
GitHub Stars65
CategoryAutomation
Updated2d ago
Forks5

Languages

TypeScript

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions
agent-rules — .cursorrules: Install & Safety Check | SkillAgent