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

ruleskit

v1.1.0

Published

Generate .cursorrules, .mdc, or SKILL.md files pre-loaded with performance, design, and linting rules for your stack.

Downloads

34

Readme

ruleskit

License: MIT NPM Version CI Tests Status

Instantly bootstrap tailored AI agent rules (.cursorrules, .mdc, CLAUDE.md, SKILL.md) for your codebase. Ensure that Cursor, Claude Code, Windsurf, and other AI coding assistants adhere strictly to your project's performance, design, and linter standards.

  • 💻 CLI: Zero-config stack detection (npx ruleskit init)
  • 🌐 Web App: Visual rules builder at ruleskit.dev
  • 🩺 Doctor: Automated rules setup verification (npx ruleskit doctor)

⚡ Quick Start

Bootstrap AI rules in your project root with a single, zero-config command:

npx ruleskit init

ruleskit automatically inspects your repository dependencies (e.g. package.json, composer.json, go.mod, etc.) to detect your stack and write the correct files. If stack detection is ambiguous, it will fall back to an interactive prompt.

Manual CLI Overrides

Override the auto-detection by specifying flags:

# Generate Claude Code rules for Next.js
npx ruleskit init --pack frontend --framework nextjs --format claude

# Generate all formats for Laravel Backend with custom extras
npx ruleskit init --pack backend --framework laravel --format all --extras husky,linter

# Write files to a specific directory without lint/hook configs
npx ruleskit init --no-extras --out ./my-project-subdirectory

🩺 System Check: ruleskit doctor

Ensure that your development environment is correctly enforcing your rules. Run the doctor command in your repository root:

npx ruleskit doctor

It performs the following health checks:

  1. Rule Files Existence: Verifies that at least one AI rules file is present.
  2. Git Tracking: Warns if generated rule files are untracked by Git.
  3. Husky Config: Checks if .husky/pre-commit exists, is marked executable, and is configured correctly in Git.
  4. CI Pipeline: Checks if GitHub Actions is configured to run your linter/formatter on PRs.

The doctor output provides a clear checklist with actionable, one-line fixes for any failing item.


📦 Supported Packs & Frameworks

| Pack | Status | Supported Frameworks / Variants | | :--- | :--- | :--- | | Frontend | Stable | React, Next.js, Nuxt (Vue), SvelteKit, Angular, Vanilla | | Backend | Stable | Express.js, NestJS, Fastify, Django (Python), Laravel (PHP), Go, Rust | | DevOps | Coming soon | Docker, Kubernetes, GitHub Actions, Terraform | | Mobile | Coming soon | React Native, Flutter, Swift, Kotlin |


🛠️ Supported Output Formats

| Format | Option Label | Target Tooling / AI Agent | Filename | | :--- | :--- | :--- | :--- | | Cursor | cursorrules | Cursor IDE (Legacy config) | .cursorrules | | Windsurf | mdc | Cursor Rules Folder & Windsurf | .cursor/rules/<pack>.mdc | | Agent Skill | skill | Agent Skill (Compatible agents) | SKILL.md | | Claude Code | claude | Claude Code (Terminal CLI) | CLAUDE.md |


⚙️ CLI Reference

| Flag | Short | Description | Default | | :--- | :--- | :--- | :--- | | --pack | -p | Pack id (e.g. frontend, backend) | Auto-detected | | --framework| -f | Framework variant (e.g. nextjs, laravel) | Auto-detected | | --format | -F | Comma-separated output formats (cursorrules, mdc, skill, claude, or all) | cursorrules | | --extras | -e | Comma-separated config extras | Pack defaults | | --no-extras| — | Skip creating formatting / linting config files | — | | --out | -o | Output directory | . (CWD) | | --help | -h | Show help usage instructions | — | | --version | -v | Show version | — |

Available Extras

  • Frontend Pack: husky, eslint, stylelint, prettier, lighthouse
  • Backend Pack: husky, backend-formatter, linter, ai-prompt

🤝 Contributing (Local Development)

1. Web Application

The frontend dashboard is built using TanStack Start:

# Install dependencies
pnpm install

# Run the local development server
pnpm run dev

# Build for production deployment
pnpm run build

2. CLI Package

The CLI module lives under cli/. During local builds, it pulls the latest rules and templates from the root repository:

cd cli
npm install

# Sync assets and compile the TS codebase to dist/
npm run build

# Run local integration tests
npm test

To test the CLI globally on your machine:

cd cli
npm link
ruleskit init --help

📄 License

This project is licensed under the MIT License.