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

@omni-stove/ai-rules

v2025.11.2

Published

A repository that manages the common foundation for AI rules. Also publishes CLI tool scripts to npm registry. Each repository can obtain the latest version of common rules by executing `@omni-stove/ai-rules` (Node.js).

Downloads

125

Readme

ai-rules

A repository that manages the common foundation for AI rules. Also publishes CLI tool scripts to npm registry. Each repository can obtain the latest version of common rules by executing @omni-stove/ai-rules (Node.js).

Automatic Release

This repository automatically releases a new version of the package to npm registry whenever there are changes to the src directory. This ensures that the latest AI rules are always available for other projects.

Releases are automatically performed under the following conditions:

  • When pushing to the main branch with changes to src/**, index.js, or .github/**
  • When manually executed from the "Actions" tab in GitHub Actions

Versioning uses CalVer (Calendar Versioning), and versions are automatically generated in the format YYYY.MM.RELEASE_COUNT. For example, the first release in March 2025 would be 2025.3.1.

Installation

For Developers (when editing this repository)

If you don't need to adjust the script itself, you can simply edit the documents and commit them

  1. Setup

    npm run setup
  2. The package is now available on npm registry, so no special authentication is required for installation.

Settings Required to Run the CLI Tool

  1. Rename the .env.example file to .env

  2. Edit the .env file to set your GitHub Personal Access Token

    GITHUB_TOKEN=your_github_personal_access_token
  3. To run the CLI tool:

    node index.js

    Or, to run with a specified output destination:

    node index.js --output /path/to/output

Preparation for CLI Users

Add the following to .gitignore

.clinerules
.cursor
.roo
.roomodes
.ai-rules-version.json
.github/copilot-instructions.md
.claude/*
!.claude/commands
CLAUDE.personal.md
.gemini/*
!.gemini/commands
GEMINI.personal.md
.serena/cache

Note for Claude Code users:

  • Copy .claude/CLAUDE.example.md to your project root as CLAUDE.md for your main configuration
  • Copy .claude/CLAUDE.personal.md to your project root as CLAUDE.personal.md for personal settings (this file is git-ignored)
  • The main CLAUDE.md should import personal configuration using @CLAUDE.personal.md

Note for Gemini users:

  • Copy .gemini/GEMINI.example.md to your project root as GEMINI.md for your main configuration
  • Copy .gemini/GEMINI.personal.md to your project root as GEMINI.personal.md for personal settings (this file is git-ignored)
  • The main GEMINI.md should import personal configuration using @GEMINI.personal.md

Claude Code Setup Instructions

For Team Leads (Setting up team configuration)

  1. Run the CLI tool to generate configuration files:

    npm install @omni-stove/ai-rules
    npx @omni-stove/ai-rules
  2. Copy the generated main configuration:

    cp .claude/CLAUDE.example.md CLAUDE.md
  3. Customize CLAUDE.md for your team's needs and commit it to the repository.

For Team Members (Setting up personal configuration)

  1. Ensure the repository has CLAUDE.md in the project root

  2. Create your personal configuration:

    cp .claude/CLAUDE.personal.md CLAUDE.personal.md
  3. Customize CLAUDE.personal.md with your personal preferences (personas, personal settings, etc.). This file is git-ignored and won't be shared.

  4. The main CLAUDE.md automatically imports personal settings via @CLAUDE.personal.md

Gemini Code Setup Instructions

For Team Leads (Setting up team configuration)

  1. Run the CLI tool to generate configuration files:

    npm install @omni-stove/ai-rules
    npx @omni-stove/ai-rules
  2. Copy the generated main configuration:

    cp .gemini/GEMINI.example.md GEMINI.md
  3. Customize GEMINI.md for your team's needs and commit it to the repository.

For Team Members (Setting up personal configuration)

  1. Ensure the repository has GEMINI.md in the project root

  2. Create your personal configuration:

    cp .gemini/GEMINI.personal.md GEMINI.personal.md
  3. Customize GEMINI.personal.md with your personal preferences (personas, personal settings, etc.). This file is git-ignored and won't be shared.

  4. The main GEMINI.md automatically imports personal settings via @GEMINI.personal.md

Node.js Version

Install the package:

npm install @omni-stove/ai-rules

Incorporating CLI execution into postinstall will automatically download the latest rules:

"postinstall": "@omni-stove/ai-rules"

Place the local-ai-rules directory at the root and add repository-specific rules that are not common rules.

.clineignore and .cursorignore should be configured for each repository.

Directory Structure

index.js

A script that converts rules to various formats. Currently supports:

  • .clinerules/*.md (Cline)
  • .cursor/rules/*.mdc (Cursor)
  • .roo/rules/*.md (Roo)
  • .claude/rules/*.md, CLAUDE.example.md, and CLAUDE.personal.md (Claude Code)
  • .gemini/rules/*.md, GEMINI.example.md, and GEMINI.personal.md (Gemini)
  • .github/copilot-instructions.md (GitHub Copilot)

src

Contains index.md, which is the source of all AI rules, and detailed documents on various technical matters are placed under ai-docs.

src/index.md

The source file for all AI rules. This is used as the basis for conversion to various formats.

src/ai-docs

Contains detailed documents on various technical matters. The documents are split to consider the context window size and to load appropriate documents for each task.