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

ai-ops-cli

v0.1.11

Published

CLI for ai-ops scaffolding — manage AI tool rules and presets

Readme

ai-ops-cli

CLI for managing AI tool rules and presets across projects.

Why this exists

ai-ops-cli was created to reduce configuration drift across AI coding tools in a team.

  • Different tools (Claude Code, Codex, Gemini CLI) require different file locations and prompt layouts.
  • Tool conventions evolve over time, so manually maintained setup files become inconsistent quickly.
  • Teams need a single, repeatable way to install and maintain AI rule scaffolding.

This project uses a centralized rule source (SSOT) and scaffolds tool-native files into the current project. For the full product background and architecture intent, see docs/plan.md.

What this library provides

  • Interactive installation flow for supported AI tools (ai-ops init)
  • Managed updates based on installed manifest (ai-ops update)
  • Drift detection against current source hash (ai-ops diff)
  • Safe cleanup of installed managed files + manifest (ai-ops uninstall)
  • Project-local installation and management

What this library does not provide

  • A hosted backend or remote state service
  • Rule authoring workflow inside the CLI itself
  • IDE-specific plugin management

Supported AI tools and installation model

ai-ops-cli currently supports:

  • Claude Code (claude-code)
  • Codex (codex)
  • Gemini CLI (gemini)

Tool-specific installation layout

| Tool | Single project | Monorepo | Why this layout (JIT rationale) | | ----------- | ------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | Claude Code | .claude/rules/<rule-id>.md per rule | Shared rules in .claude/rules/*.md, domain rules in <workspace>/CLAUDE.md | Keeps always-on rules stable while loading domain rules only for matching paths/workspaces. | | Codex | AGENTS.md + AGENTS.override.md | Root AGENTS.md + <workspace>/AGENTS.override.md | Uses root baseline + local override so only relevant workspace context is applied at execution time. | | Gemini CLI | .gemini/GEMINI.md | Root .gemini/GEMINI.md + <workspace>/GEMINI.md | Splits shared defaults and workspace-local context to reduce irrelevant prompt context. |

Gemini CLI can also install optional runtime settings to .gemini/settings.json.

Installation behavior details

  • Rules are split into shared and domain categories and rendered per tool with tool-native file shapes.
  • Existing managed files are replaced safely using ai-ops metadata headers.
  • Existing non-managed files are preserved and receive an ai-ops managed section block instead of full overwrite.
  • update, diff, and uninstall operate from the manifest to keep changes deterministic and idempotent.

Install

npm install -g ai-ops-cli

Usage

# Initialize rules for the current project
ai-ops init

# Check for updates
ai-ops diff

# Apply updates
ai-ops update

# Remove installed managed files and manifest
ai-ops uninstall

Options

ai-ops [command] [options]

Commands:
  init     Initialize AI tool rules for a project
  update   Update installed rules
  diff     Show diff between installed and current rules
  uninstall Remove installed rules and manifest

Options:
  --force          Force update even when no changes detected
  -V, --version    Output the version number
  -h, --help       Display help

License

MIT