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

@buresmi7/agent-doc-rules-skill

v0.11.1

Published

Agent Skill for concise AGENTS.md, README, and repository documentation rules

Downloads

640

Readme

Agent Doc Rules Skill

agent-doc-rules is an Agent Skill for repository documentation and agent context architecture.

Use it when a project needs to decide what belongs in human documentation, what belongs in always-loaded agent instructions, and what should become a task-specific skill for agents.

What It Does

  • Keeps AGENTS.md short, local, and useful for agent routing.
  • Shapes README.md as a human entry point, not a full manual.
  • Separates long-lived docs from task-specific agent workflows.
  • Reviews repository docs for false, contradictory, unsupported, stale, or misleading claims.
  • Reviews agent-facing docs for data leaks, prompt-injection language, validation bypasses, and backdoor-style guidance.
  • Applies plain-English writing rules to repository documentation.
  • Keeps prompts, task narration, and tool traces out of durable documentation without dropping supported project facts and decisions.
  • Uses progressive disclosure so detailed rules live in references, not in the always-loaded skill entry point.

Install

Install from npm into the current Codex project:

npx @buresmi7/agent-doc-rules-skill

Replace an existing project install:

npx @buresmi7/agent-doc-rules-skill install --force

The npm installer copies only the skill artifact into .agents/skills/agent-doc-rules/. It does not copy this monorepo's E2E fixtures, support scripts, generated maintainer skills, or root docs.

Install optional documentation validation tools:

pnpm add -D @buresmi7/agent-doc-rules-docs-validator @buresmi7/agent-doc-rules-docs-duplicates

Recommended scripts:

{
  "scripts": {
    "docs:markdown": "agent-doc-rules-docs markdown",
    "docs:wording": "agent-doc-rules-docs wording",
    "docs:security": "agent-doc-rules-docs security",
    "docs:style": "agent-doc-rules-docs-duplicates style",
    "docs:links": "agent-doc-rules-docs links",
    "docs:duplicates": "agent-doc-rules-docs-duplicates check",
    "docs:check": "agent-doc-rules-docs check && agent-doc-rules-docs-duplicates style && agent-doc-rules-docs-duplicates check"
  }
}

Usage

Ask the agent to use the skill by name.

Main examples:

Use $agent-doc-rules to create a concise root AGENTS.md for this repository.
Use $agent-doc-rules to review this README for stale commands and duplicated rules.
Use $agent-doc-rules to review these docs for factual accuracy, contradictions,
and unsupported claims.
Use $agent-doc-rules to decide whether this note belongs in README.md,
AGENTS.md, docs/, or a task-specific skill.
Use $agent-doc-rules to add a project-specific documentation overlay.

Common tasks:

  • create or repair AGENTS.md,
  • write or review a README,
  • decide whether information belongs in docs, AGENTS.md, or a skill,
  • add a project-specific documentation overlay,
  • review agent-facing docs for security risks,
  • review docs for factual accuracy, plain English, and duplicated rules.

Adoption And Tools

  • Adoption Guide shows the smallest setup for consuming repositories.
  • Tool Map maps common documentation tasks to the right skill reference or CLI.
  • Config Reference documents agent-doc-rules.config.json.
  • Recipes gives before-and-after patterns based on the E2E scenarios.

Feature Guide

Agent Instructions

Create or repair AGENTS.md files so agents get a brief project orientation, short routing rules, local constraints, nested instruction pointers, and verification commands. The detailed rules live in references/agents-rules.md, with review checks in references/agents-rubric.md.

README Shaping

Keep README files useful as human entry points. The skill trims runbooks, removes stale commands, and links to deeper docs instead of copying detail into the README. See references/readme-rules.md and references/readme-rubric.md.

Documentation Placement

Decide whether a fact belongs in README.md, docs/, AGENTS.md, a skill, or a skill reference. The compact rule set is references/documentation-architecture.md; the fuller guide is docs/context-placement.md.

Decision Records

Record lasting accepted trade-offs, rule exceptions, and user-approved shortcuts. Future maintainers should find the reason near the affected work. The rule lives in references/decision-records.md, and the starter format lives in assets/templates/decision-record.md.

Documentation Repair

Move bloated, stale, duplicated, or inbox-style documentation into the right canonical home. The audit workflow lives in references/doc-audit.md.

Factual Documentation Review

Check documentation claims against project evidence before editing. If a requested change conflicts with local manifests, source files, configs, tests, or canonical docs, the skill tells the agent to report the conflict instead of writing unsupported text. See references/factual-review.md.

Documentation Security Review

Review agent-facing docs as instructions that can influence future edits. The security checklist covers data exfiltration, remote execution, credential handling, prompt-injection language, validation bypasses, backdoor-style guidance, remote tracking assets, and encoded payloads. See references/security-review.md.

Plain-English Cleanup

Rewrite repository documentation in direct, specific language. The skill cuts padding, avoids generic AI phrasing, and keeps the reader's task first. See references/writing-style.md.

Validation Tools

Use the optional CLIs to check Markdown, deterministic prose wording, deterministic security patterns, AI sentence style, local links, and likely duplicate documentation passages. Duplicate review supports docs.duplicates.ignorePairs for narrow, documented overlaps such as E2E criteria repeating the rule under test. The validation guidance lives in references/validation.md.

Starter Templates

Start new agent instruction files from the templates in assets/templates/ instead of copying unrelated project rules.

Adoption Docs

Use the product docs when rolling the skill into another repository:

Context Placement

Context placement decides the durable home for each project fact.

Use:

  • README.md for human orientation and first useful commands,
  • docs/ for long-lived explanations, how-to guides, references, and runbooks,
  • docs/decisions/ or an existing decision log for lasting accepted trade-offs that are linked from affected surfaces,
  • AGENTS.md for short always-loaded agent routing and local invariants,
  • .agents/skills/<name>/ for repeated task workflows that agents should load only when relevant,
  • references/ inside a skill for detailed rules loaded on demand,
  • assets/ inside a skill for templates and reusable output material.

See Context Placement for the full model.

Influences

See Influences And Attribution for attribution, design influences, and duplicate-review provenance.

Development

From the monorepo root:

corepack pnpm install
corepack pnpm run skills:sync
corepack pnpm run test:install
corepack pnpm test

Run agent E2E tests only when an agent runner is configured:

corepack pnpm run test:agent