npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

agent-rules

v1.4.2

Published

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

Readme

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:

Contributing

Please consult CONTRIBUTING for guidelines on contributing to this project.

Author

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