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

agents-md-doctor

v0.1.0

Published

A small CLI that checks AGENTS.md and CLAUDE.md files for common agent-instruction problems.

Downloads

143

Readme

AGENTS.md Doctor

A small CLI that checks AGENTS.md and CLAUDE.md files for common agent-instruction problems.

It is meant for projects that use coding agents such as Codex, Claude Code, Cursor, GitHub Copilot, or Gemini CLI.

Why

Agent instruction files are becoming part of the normal developer workflow.

They are useful, but they can also become noisy:

  • too long to be useful
  • missing test commands
  • repeating rules that linters already handle
  • pointing to files without explaining when to read them
  • keeping auto-generated setup notes forever
  • giving instructions that seem to conflict

AGENTS.md Doctor gives a quick first pass before those instructions become part of your repository.

Install

Run without installing:

npx agents-md-doctor check .

Or install globally:

npm install -g agents-md-doctor
agents-md-doctor check .

Usage

agents-md-doctor check [path]
agents-md-doctor check [path] --json
agents-md-doctor check [path] --strict

Examples:

agents-md-doctor check .
agents-md-doctor check ../my-project --json
agents-md-doctor check . --strict

Example Output

AGENTS.md Doctor
Project: /path/to/project
File: AGENTS.md

[PASS] Configuration file: AGENTS.md found.
[PASS] Useful commands: The file mentions project commands or package managers.
[PASS] Testing guidance: The file gives the agent a way to verify changes.
[PASS] Context size: The file stays under 200 non-empty lines and 12000 characters.
[PASS] Conflicting instructions: No obvious conflicting instructions found.

Score: 100 / 100

Checks

AGENTS.md Doctor currently checks:

  • whether AGENTS.md or CLAUDE.md exists
  • whether useful setup/build/test commands are included
  • whether testing or verification guidance is included
  • whether the file is likely too large
  • whether obvious instruction conflicts appear
  • whether there are warning signs such as lint leakage, blind references, or generated-file fossilization

The checks are intentionally simple and transparent. This is not an AI code reviewer. It is a small maintenance tool for keeping agent instructions practical.

Japanese

AGENTS.mdCLAUDE.md は、AIコーディングエージェントに「このプロジェクトではどう動いてほしいか」を伝えるための説明書です。

AGENTS.md Doctor は、その説明書が長すぎないか、テスト方法が書かれているか、不要なルールを書きすぎていないかを確認する小さなCLIです。

npx agents-md-doctor check .

License

MIT