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-swe-kit

v0.1.1

Published

Coding agent 工程实践管理工具 — 人机可读的软件工程规范

Readme

agent-swe-kit

Coding agent 工程实践管理工具 — 为 coding agent 和人类生成可读的软件工程规范。

npm version

这是什么

agent-swe-kit 帮你快速在项目中初始化一套人机可读的工程实践文件。这些文件:

  • coding agent 能读懂,知道怎么在你的项目中正确地工作
  • 人也能读懂,用来对齐团队规范、评审代码、管理任务

Agent 使用指南

Agent 应先阅读 docs/usage_for_agents.md,分析项目后生成临时 answers.json,先预览,再等待人类确认:

npx agent-swe-kit init --config answers.json --dry-run

# 人类确认后:
npx agent-swe-kit init --config answers.json

快速开始

# 在你项目的根目录运行
npx agent-swe-kit init

交互式回答 8 组问题后,会在当前目录生成:

AGENTS.md                         # agent 入口:一句话 + 命令 + 按需索引
docs/
  architecture.md                 # 系统架构全景
  usage_for_agents.md             # Agent 使用指南
  agents/
    principles.md                 # 核心工程原则
    tasks.md                      # 任务管理协议
    testing.md                    # 测试策略
    design.md                     # 设计决策指南
    brainstorm.md                 # 方案探索与脑暴
    think-out-of-box.md           # 跳出常规方案的反诘卡片
    adr.md                        # ADR 写作指南
    review.md                     # 代码评审规范
    vcs.md                        # 版本控制与协作(Git / Jujutsu)
  tech_debt_tracker.md            # 技术债务跟踪

用法

交互模式

npx agent-swe-kit init

非交互模式(JSON 配置)

适合 agent 自动调用。answers.json 通常只是临时配置文件,用于跳过交互式问答:

npx agent-swe-kit init --config answers.json

临时配置示例见 self-answers.json

预览模式

npx agent-swe-kit init --config answers.json --dry-run

强制覆盖

npx agent-swe-kit init --force

工作流场景

小明创建新项目

cd my-new-project
npx agent-swe-kit init
# 回答问题 → 生成规范文件 → 提交到 git

已有项目接入

git clone ...
cd project
npx agent-swe-kit init
# 把生成的规范文件提交到仓库

开发

# 安装依赖
bun install

# 开发模式
bun run dev -- init

# 构建
bun run build

# 给本项目自身生成规范(吃自己的狗粮)
bun run dev -- init --config self-answers.json --force

License

MIT