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-lint

v1.0.0

Published

The tested, tool-agnostic AGENTS.md linter — validates, scores, and autofixes AGENTS.md files.

Readme

agents-md-lint

The tested, tool-agnostic AGENTS.md linter. It validates, scores (0-100 + letter grade), and safely autofixes AGENTS.md files against verified mid-2026 best practices, and runs anywhere via bunx/npx or as a GitHub Action.

Install / Run

No install needed:

bunx agents-md-lint            # lints ./AGENTS.md
npx agents-md-lint             # same, via npm

Or add it as a dev dependency:

bun add -d agents-md-lint

Usage

agents-md-lint                                  # lint ./AGENTS.md
agents-md-lint "templates/**/AGENTS.md"         # lint a glob
agents-md-lint AGENTS.md --format json          # machine-readable output
agents-md-lint AGENTS.md --fix                  # apply safe autofixes in place
agents-md-lint AGENTS.md --strict               # warnings fail the build
agents-md-lint AGENTS.md --max-warnings 5       # cap allowed warnings
agents-md-lint AGENTS.md --root .               # enable freshness rules
agents-md-lint AGENTS.md --engine agnix         # also merge agnix findings if installed

Flags

| Flag | Description | |------|-------------| | --fix | Apply safe, high-confidence autofixes in place (trailing whitespace, final newline, wrap bare commands). | | --format <text\|json> | Output format. Default text. | | --max-warnings <n> | Fail if warnings exceed n. | | --strict | Treat warnings as errors for the exit code. | | --quiet | Hide info-level findings. | | --root <path> | Repo root; enables freshness rules (referenced paths/scripts, stale markers). | | --engine <builtin\|agnix> | Also merge findings from the agnix binary if it is on PATH. | | --help | Show usage. |

Exit codes: 0 clean; 1 on errors, on warnings under --strict, or when warnings exceed --max-warnings.

Programmatic API

import { lint, lintAll } from "agents-md-lint";

const result = lint(content, { filename: "AGENTS.md", root: process.cwd() });
console.log(result.score, result.grade, result.findings);

const results = lintAll(["AGENTS.md", "packages/api/AGENTS.md"]);

GitHub Action

- uses: Taiizor/agents-md-cookbook@v1
  with:
    path: "AGENTS.md"
    strict: "true"
    max-warnings: "0"
    format: "text"

Rules

Standalone rules run everywhere. Freshness rules run only with --root (repo-context mode).

| Rule ID | Severity | Description | |---------|----------|-------------| | AGM-001 | error | File must be valid CommonMark/GFM Markdown (detects unterminated code fences). | | AMC-FILENAME | error | File must be named exactly AGENTS.md. | | AMC-NONEMPTY | warn | Flags near-empty stubs (under 100 non-whitespace chars). | | AMC-HEADINGS | warn | Requires >= 1 heading and forbids skipped heading levels. | | AGM-002 | warn / info | Recommended sections (Setup, Testing, Project Structure, Code Style, Git Workflow, Boundaries); INFO suggests three-tier Boundaries. | | XP-007 | error | Codex 32768-byte cap (configurable). | | AGM-003 | warn | Windsurf 6000-char per-file cap. | | AMC-LENGTH | warn | Soft >150-line and heavy >300-line budgets. | | AMC-PLATITUDE | warn | Flags vague platitudes ("write clean code", "be helpful", ...). | | AMC-CMD | warn | Requires >= 1 runnable shell command. | | AMC-VERSION | info | Suggests pinning tool/runtime versions when tools are named. | | AMC-DONTS | warn | Flags >20 don'ts or a high don't:do ratio. | | AMC-SECRET | error | Detects inlined secrets (AWS keys, private keys, API tokens). | | AMC-FRONTMATTER | warn | Validates optional v1.1 frontmatter (description, tags); ignores unknown keys. | | AMC-PATH | error (freshness) | Referenced repo paths must exist. | | AMC-SCRIPT | warn (freshness) | Referenced package.json scripts must exist. | | AMC-STALE | info (freshness) | Flags TODO/FIXME markers and stale years. |

Rule IDs in the AGM-/XP- namespaces are reused from the prior-art agnix taxonomy for interoperability; AMC- IDs are specific to this kit.

Scoring

Each file gets a 0-100 score and a letter grade (A >= 90, B >= 80, C >= 70, D >= 60, else F). The score starts at 100, subtracts per-finding penalties, adds points for positive signals (build+test commands, commands early, boundaries + security, "never commit secrets", paired do/don't, 1-3 short examples, version pins, links within budget, ideal 50-150 line length), and subtracts for negative signals (over-length, platitudes, large architecture prose, too many links/examples, auto-generated markers, README duplication).

License

MIT — part of agents-md-cookbook.