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

rulox

v0.1.0

Published

Audit and optimize your CLAUDE.md / AGENTS.md for AI coding agents

Readme

rulox

One source of truth for all your AI coding agents.

Most teams use multiple AI coding tools — Claude Code, Cursor, Copilot, Windsurf. Each has its own context file format. rulox audits your context file, flags contradictions/staleness/vagueness, and can generate an optimized version for each agent.

Install

npx rulox

Usage

npx rulox
npx rulox --file ./CLAUDE.md
npx rulox --no-optimize
npx rulox --write
npx rulox --json
npx rulox --sync

Sync to all agents at once

npx rulox --sync

Files written when syncing:

CLAUDE.md
.cursorrules
.windsurfrules
.github/copilot-instructions.md
AGENTS.md
CONVENTIONS.md
.clinerules

Scoring

  • Length — line count and file size pressure
  • Contradictions — conflicting instructions (always/never, use/don't use)
  • Staleness — hardcoded paths, version pins, temporal references
  • Specificity — concrete commands and examples
  • Redundancy — rules the LLM already knows by default
  • Format Compliance — agent-specific formatting limits

Anti-patterns

rulox names what it finds. Named anti-patterns help prioritize fixes:

  • 👻 Ghost Path — hardcoded file paths that are probably stale
  • 🔮 Obvious Oracle — rules the LLM already knows by default
  • ⚡ Contradiction Trap — directly conflicting rules
  • 📚 Readme Dump — README pasted as context
  • 🗄️ Rule Hoarder — many rules, few removals
  • 📸 Stale Snapshot — pinned versions or old dates
  • 🧱 Wall of Text — extremely long files
  • 🔧 Format Mismatch — markdown in plain formats

Example output

─────────────────────────────────────────
  rulox  v0.1.0
─────────────────────────────────────────

  Analyzing: CLAUDE.md (84 lines)

  SCORES
  ──────
  Length            72/100   ⚠
  Contradictions   100/100   ✓
  Staleness         60/100   ✗
  Specificity       85/100   ✓
  Redundancy        40/100   ✗
  Format Compliance 80/100   ✓

  Overall: 71/100

  ISSUES FOUND
  ────────────
  [staleness]    L23  Hardcoded path "src/utils/helpers.ts" — likely stale
  [redundancy]   L12  "don't break existing tests" — LLM default, remove

  OPTIMIZATION
  ────────────
  Calling Anthropic API to generate optimized version...
  Optimized file: 51 lines (↓ 33 lines, ↓ 39%)

  Diff saved to: CLAUDE.md.diff
  Run with --write to apply changes.

─────────────────────────────────────────

Badges

npm version license