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

agent-instruction-hygiene

v1.2.0

Published

Audit and rewrite skill descriptions, CLAUDE.md/AGENTS.md, and task prompts that were tuned for older, less capable models and now over-constrain a high-capability one.

Readme

agent-instruction-hygiene is an Agent Skill — not a code tool, but a judgment framework for the instructions you write for an agent: skill descriptions, CLAUDE.md/AGENTS.md, and task prompts. It's plain Markdown, so it works anywhere an agent can read a SKILL.md: Claude Code, Cursor, Codex, or any framework that reads instructions off disk.


Why

Instructions that helped an older, weaker model can actively hurt a current, high-capability one. A skill description that fires on every database-adjacent task, a CLAUDE.md that demands three docs be read before every edit, an "always confirm before proceeding" left over from a more cautious model generation — each of these used to be a safety net. On a model that already reasons well from context, they burn tokens, stall the agent short of the scope it was meant to cover, or both.

This skill gives you six concrete patterns for finding and fixing that — model-agnostic, not tied to any specific vendor or release.

What's here

| File | What it's for | |---|---| | SKILL.md | The skill itself: when to use it, six core patterns, and a short workflow for running an audit | | references/checklist.md | A copyable audit checklist — paste it into a PR description or review note when actually running a pass |

Install

As a Claude Code plugin (recommended for Claude Code — stays up to date with claude plugin update):

claude plugin install kajisho5/agent-instruction-hygiene

For Claude Code, Cursor, or Codex via the bundled installer — not published to npm, so run it straight from GitHub:

npx github:kajisho5/agent-instruction-hygiene                # Claude Code -> ~/.claude/skills/agent-instruction-hygiene
npx github:kajisho5/agent-instruction-hygiene --cursor        # Cursor      -> ~/.cursor/skills/agent-instruction-hygiene
npx github:kajisho5/agent-instruction-hygiene --codex         # Codex       -> ~/.agents/skills/agent-instruction-hygiene
npx github:kajisho5/agent-instruction-hygiene --all           # all three
npx github:kajisho5/agent-instruction-hygiene --project       # this project -> ./.claude/skills/agent-instruction-hygiene
npx github:kajisho5/agent-instruction-hygiene --dir ./skills  # custom parent directory
npx github:kajisho5/agent-instruction-hygiene --uninstall     # remove from the selected targets

Already installed? Re-run the same command to refresh — copies aren't updated automatically.

Once a version has been published to npm (see Releasing below), the shorter form also works, with the same flags:

npx agent-instruction-hygiene

Or copy it in by hand, for any agent that reads a SKILL.md off disk:

git clone https://github.com/kajisho5/agent-instruction-hygiene
cp -r agent-instruction-hygiene/SKILL.md agent-instruction-hygiene/references <your-agent's-skills-directory>/agent-instruction-hygiene/

The six patterns, at a glance

  1. Keep a skill's description to "when to use it," and keep it short. A description exists to narrow the trigger condition, not summarize the workflow.
  2. Progressive disclosure — keep the root file a thin router. Push heavy procedures into supporting files; don't make every invocation pay to read them.
  3. Don't over-script procedures into rigid recipes. State the governing principle and leave step-level judgment to the model.
  4. Make CLAUDE.md/AGENTS.md a signpost, not a mandatory reading list. Map each doc to the situation it's actually needed for.
  5. Pre-authorize safe, routine work. Don't gate a task you already know is safe on a fresh confirmation every time.
  6. Define "done" before the task starts. State explicitly whether the first working pass is the finish line or the starting point.

Full detail, examples, and the audit workflow: SKILL.md.

Releasing

Bump the version field in package.json (and .claude-plugin/plugin.json to match) in a PR and merge it to main. .github/workflows/publish.yml then compares that version against what's currently on npm and, if it's newer, runs npm publish, tags the commit vX.Y.Z, and creates a GitHub Release — no manual npm publish needed.

This needs an NPM_TOKEN repository secret (an npm access token with publish rights on this package): Settings → Secrets and variables → Actions → New repository secret. Without it, the workflow's publish step fails (a tag/release is only created for a successful publish) and the package stays install-only via npx github:kajisho5/agent-instruction-hygiene.

Contributing

See CONTRIBUTING.md — scope, what a good addition looks like, and PR expectations.

License

MIT