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

doc-for-agent

v0.4.0

Published

Multi-agent repository documentation skill package with a CLI adapter for install, init, refresh, and doctor workflows.

Readme

doc-for-agent

English | 简体中文

doc-for-agent 落地页预览

公网 landing URL:发布后补在这里。 当前落地入口文档:docs/landing-page.zh.md

doc-for-agent 是一个面向 CLI coding-agent 用户的统一 CLI。

适用于 Claude Code、Codex、CodeBuddy、Continue、Copilot 等终端优先工作流。

它支持 agenthumandualquad 四种输出。 模式映射:agent 写入 dfa-doc/AGENTS/human 写入 dfa-doc/handbook/dual 同时写入两者,quad 写入 dfa-doc/AGENTS/dfa-doc/AGENTS.zh/dfa-doc/handbook/dfa-doc/handbook.zh/dual 模式会在一次 refresh 流程中同时维护 docs/(human docs)与 AGENTS/(agent docs)。quad 模式建立双语四视图目录契约。 这项四视图能力表达的是结构契约,不等于所有双语内容质量已经完成。 它不是 AGENTS-only 工具:应按文档受众选择输出模式。

产品路径很短:

  1. 安装
  2. init
  3. refresh 把它理解成“两步半”更准确:全局安装让 agent 能看到 skill,repo-local init 启用仓库工作流,refresh 在需要时负责写入或更新文档。 简路径(uipro-cli 风格):
  • npm install -g doc-for-agent@next
  • docagent init --ai codex
  • docagent init --ai claudecode

30 秒开始

先安装一次:

# Node 用户
npm install -g doc-for-agent@next

# Python 用户
pipx install doc-for-agent

在仓库中开始: 步骤 2(repo-local init):在目标仓库启用工作流。 一次性 npx -y doc-for-agent init ... 可在临时场景下合并这两步;如果你要真正写出文档,后一步仍然是执行 refresh

docagent init --ai codex
docagent init --ai claudecode

如需在同一个命令里同时接线当前仓库,添加 --target <repo-root>

如果你需要按步骤的文档入口图,先运行:

docagent quickstart --target <repo-root>

按 Agent 选入口

| 你使用... | 先执行 | | --- | --- | | Claude Code | docagent init --ai claudecode | | Codex | docagent init --ai codex | | CodeBuddy | docagent init --ai codex --target <repo-root> | | Continue | docagent init --ai continue --target <repo-root> | | GitHub Copilot | docagent init --ai copilot --target <repo-root> | | 多个 Agent | docagent init --ai all |

安装矩阵

| 用户类型 | 安装方式 | 起步命令 | | --- | --- | --- | | Node-first(全局) | npm install -g doc-for-agent@next | docagent init --ai all | | Node-first(一次性) | npx -y doc-for-agent | npx -y doc-for-agent init --ai all --target <repo-root> | | Python-first(推荐) | pipx install doc-for-agent | docagent init --ai all | | Python-first(venv/system) | python3 -m pip install doc-for-agent | docagent init --ai all |

Product CLI v1

主流程命令:

docagent init --ai <codex|claudecode|all>
docagent refresh --root <repo-root> --output-mode agent|human|dual|quad
docagent doctor --target <repo-root>

其他主命令:

docagent generate --root <repo-root> --mode refresh --output-mode agent|human|dual
docagent update --target <repo-root>
docagent versions --target <repo-root>
docagent quickstart --target <repo-root>

兼容命令(保留):

docagent install --platform codex --target <repo-root>
docagent all --target <repo-root>

文档

入口文档路径:

  1. Landing Page(英文) / 落地页说明(中文)
  2. Quickstart(英文) / 快速开始(中文)
  3. Platform Guide(英文) / 平台指南(中文)

这条链路用于 dual 文档系统上手:先看产品定位,再跑首轮命令,再选平台入口。

维护文档: