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

v1.4.0

Published

A tool for generating reusable, low-token AI agent instruction documents

Readme

agent-docs

License: MIT

A reusable set of low-token AI agent instruction documents ("docs") for AI-enabled IDEs.

Overview

Docs are markdown files containing distilled technical, style, architectural, and philosophical knowledge. They are designed to be:

  • Low token count - Optimized for efficient AI agent consumption
  • Comprehensive - Complete coverage of essential information
  • Reusable - Shareable across projects and teams

Inspired by The Matrix (1999), where Neo says "I know kung fu" after having knowledge uploaded directly into his brain. In that scene, Neo instantly gains complete knowledge and skills without needing to learn through practice - the knowledge is simply "there" when needed. Similarly, agent-docs creates comprehensive documentation "programs" that can be referenced by AI agents, giving them instant, complete knowledge about libraries, frameworks, and tools. Just as Neo could access kung fu knowledge instantly, AI agents can reference these docs to immediately understand APIs, patterns, best practices, and architectural decisions without needing to search or learn incrementally. The docs serve as the "knowledge upload" that makes the AI agent instantly capable with any technology.

Installation

  1. Clone the repository (optional, for local development of agent-docs itself):

    git clone https://github.com/starch-uk/agent-docs.git
    cd agent-docs
    pnpm install
  2. Add to your project:

    You can add agent-docs to your project in several ways:

    • As an npm dependency (recommended): Add agent-docs to your package.json and install with your package manager (e.g. pnpm install, npm install, or yarn add).

      When installed this way, a postinstall script runs in the consuming project:

      • If your project does not already have a docs/ directory, the script will copy this package's docs/ directory to your project's root directory
      • If your project already has a docs/ directory, the script does nothing, and your existing docs layout is left unchanged.
    • As a git submodule:
      git submodule add https://github.com/starch-uk/agent-docs.git

    • As a manual copy (if you want explicit control):

      • Copy the docs/ directory from the agent-docs package to your project root
  3. Configure your IDE agent:

    Update your IDE agent rules (e.g., Cursor's .cursor/rules/ or similar) to reference the linked docs using @filename syntax or relative paths:

    Reference documentation from ./docs/ when needed:
    - @PMD.md for PMD rules and configuration
    - @XPATH31.md for XPath 3.1 syntax
    - @ESLINT.md for ESLint configuration

Documentation

The docs/ directory contains generated documentation files. Each doc follows a structured format optimized for AI agent consumption:

Usage

Creating and Maintaining Docs

To create new documentation files:

  1. Create a new markdown file in the docs/ directory following the naming convention:

    • Uppercase, no spaces, no dots
    • Version numbers become part of the name (e.g., "XPath 3.1" → XPATH31.md)
    • Remove redundant words like "plugin" when they appear between other words (e.g., "prettier-plugin-apex" → PRETTIERAPEX.md)
  2. Follow the structured format optimized for AI agent consumption:

    • Overview section with brief context
    • Core Concepts / Key Features (bulleted lists)
    • Configuration / Setup (tables when possible)
    • Usage / Examples (minimal, essential code only)
    • API Reference (condensed, often in tables)
    • Patterns & Best Practices
    • Important Notes (critical gotchas, limitations)
  3. Apply optimization guidelines:

    • Keep token count low - be terse but precise
    • Use bullet points over prose for scannability
    • Prefer tables for structured data (config options, APIs, properties)
    • Include code snippets only when essential
    • Cross-reference related docs using [Name](FILENAME.md) format
    • Include a document in a prompt or rule with @FILENAME.md

AI Agent Guidance

This repository includes AI Agent Guidance files in .cursor/plans/ that provide structured instructions and workflows for AI coding assistants (like Cursor's Agent). These plan files document processes, best practices, and step-by-step workflows for various tasks, making them accessible to AI agents through the .cursor/plans/ directory structure.

When AI agents need guidance on how to perform specific tasks or follow certain workflows, they can reference these plan files to understand the expected process and provide accurate assistance. Key plan files include:

  • VERSIONING.md - Semantic versioning rules and workflows for documentation files
  • OPTIMISE.md - Strategies and best practices for maintaining low token counts and efficient documentation formats

These plans are used by AI-powered IDEs to optimize docs and maintain consistency across the documentation set.

Contributing

See CONTRIBUTING.md for guidelines on contributing to this project.

License

This project is licensed under the MIT License - see LICENSE.md for details.

Security

For security concerns, please see SECURITY.md.

Support