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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@render-lab/ai-rules

v0.1.0

Published

Install agent rules and skills from any GitHub repo.

Readme

ai-rules

Experimental. This project is in early development. Commands, config format, and APIs may change between releases.

Install agent rules and skills from any GitHub repo. One CLI for every AI coding agent.

npx @render-lab/ai-rules init

Supported agents

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • OpenCode
  • Cline
  • Roo Code
  • Amp
  • Gemini CLI

How it works

GitHub is the registry. Any public repo with a rules/, skills/, or linters/ directory is a valid rule set. ai-rules fetches content from the GitHub API, merges rules into your agent's rules file, and tracks what you've installed.

Rules are wrapped in comment markers so they can be updated or removed without touching the rest of your rules file:

<!-- ai-rules: owner/repo -->
## Security
- Never hardcode secrets
<!-- /ai-rules: owner/repo -->

Skills (SKILL.md packages) are copied into your agent's skill directory. Linter configs are copied to the project root.

Getting started

Install globally

npm install -g @render-lab/ai-rules

After installing globally, the command is just ai-rules:

ai-rules init

Or run with npx

npx @render-lab/ai-rules init

Initialize your project

ai-rules init

This detects your AI coding agent, creates a rules file, and sets up .ai-rules.json to track installed content. You can also pick from a curated catalog of popular rule sets during init.

Popular rule sets

Install any of these with ai-rules add rule <repo>:

| Repo | Description | |---|---| | renderinc/opinionated-vibe-coding | Agent rules for disciplined AI-assisted development | | lirantal/agent-rules | Curated collection of agent rules for secure, quality code | | anthropics/claude-code-best-practices | Official best practices for Claude Code from Anthropic | | PatrickJS/awesome-cursorrules | Community-curated Cursor rules for various frameworks | | pontusab/cursor.directory | Cursor rules for your framework and language |

Popular skills

Install any of these with ai-rules add skill <repo>:

| Repo | Skills | Description | |---|---|---| | render-oss/skills | render-deploy, render-debug, render-monitor, render-migrate-from-heroku, render-workflows | Deploy, debug, and monitor apps on Render | | renderinc/opinionated-vibe-coding | ovc-audit, ovc-scorecard, ovc-security-review, ovc-dry-check, ovc-dependency-check, ovc-setup | Codebase audits, scorecards, and security reviews |

Run ai-rules add skill <repo> --list to see all available skills in a repo before installing.

Commands

ai-rules init

Detect your agent and create a rules file. If multiple agents are installed, choose which ones to set up.

ai-rules add rule [repo]

Add rules from a GitHub repo in owner/repo format. Without an argument, shows a curated catalog to pick from.

ai-rules add rule renderinc/opinionated-vibe-coding
ai-rules add rule https://github.com/lirantal/agent-rules

ai-rules add skill <source>

Add skills from a GitHub repo. Skills are SKILL.md packages with optional reference files.

ai-rules add skill render-oss/skills
ai-rules add skill render-oss/skills --skill render-deploy
ai-rules add skill render-oss/skills --list
ai-rules add skill render-oss/skills --global

Options:

  • -s, --skill <name> — Install a specific skill by name
  • -a, --agent <agent> — Target a specific agent
  • -g, --global — Install to the global skill directory
  • -l, --list — List available skills without installing
  • --copy — Copy files instead of symlinking

ai-rules remove rule [repo]

Remove an installed rule set. Without an argument, shows a picker.

ai-rules remove skill [name]

Remove an installed skill and its files. Without an argument, shows a picker.

ai-rules update [repo]

Update installed rules and skills to the latest version. Pass a repo slug to update a specific one, or omit to update all.

ai-rules update
ai-rules update renderinc/opinionated-vibe-coding

ai-rules list

List all installed rule sets and skills with their source, version, and install date.

ai-rules doctor

Diagnose your setup. Checks for a valid config file, detected agent, rules file, installed agents on the system, marker integrity, skill directory existence, and GitHub token status.

Publishing a rule set

To make your repo installable with ai-rules, add one or more of these directories:

my-rules/
├── rules/           # Agent rules files
│   ├── CLAUDE.md
│   ├── .cursorrules
│   └── .windsurfrules
├── skills/          # SKILL.md packages
│   └── my-skill/
│       ├── SKILL.md
│       └── references/
│           └── guide.md
├── linters/         # Linter configs
│   └── biome.json
└── ai-rules.json    # Optional manifest

The optional ai-rules.json manifest provides metadata:

{
  "name": "My Rules",
  "description": "A set of rules for disciplined development",
  "tags": ["security", "best-practices"]
}

Configuration

ai-rules stores its state in .ai-rules.json at the project root. This file tracks the detected agent, rules file path, installed rule sets (with commit SHAs), and installed skills.

Requirements

  • Node.js 20 or later

License

MIT