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-engineering-foundation

v0.3.0

Published

面向 Agent 工程治理的项目规则、Specflow、领域 Skill、确定性 Validator 与采用骨架

Readme

Agent 工程治理骨架

agent-engineering-foundation 为不同 Harness Agent 提供可复用的项目规则、Specflow、领域 Skill、确定性 Validator 和采用骨架。

本仓只补充宿主缺少的项目语义和工程门禁,不重新实现 Agent Host 已有的 Skill/Plugin 安装、权限、Sandbox、Hook、MCP、会话恢复或通用代码探索能力,也不绑定某一家公司的研发平台。

| 本仓直接提供 | 采用方负责补齐 | | --- | --- | | Starter、Knowledge 与 Specflow 骨架、领域 Skill、确定性检查、发布白名单和 Adapter 契约 | Agent Host 原生运行能力、项目专属知识、构建/测试/Lint、真实 Provider、观测和审批发布策略 |

快速开始

使用公开 CLI

需要 Node.js 20+。采用项目固定使用明确版本,不依赖可变的 latest

npm exec --yes [email protected] -- agent-foundation --version
npm exec --yes [email protected] -- \
  agent-foundation init plan --target /path/to/existing-project

面向 Coding Agent 的完整接入决策树、安全边界、授权点和成功标准见 Install.md。对既有项目先运行只读 init plan,审阅待新增、复用和冲突文件;Harness 不自动合并同路径的未知内容。

Skill 发布白名单与默认安装建议相互独立。首次接入时,Agent 先运行 agent-foundation skill recommend,向用户说明条件性必需理由、接入期和可选能力,并询问 corefullcore + 可选项。用户确认后才使用 --profile 与可重复的 --include-skill 运行只读 Plan;另行取得写入授权后,以相同选择 Apply。首次 Apply 未显式选择 Profile 会失败关闭。

已经完成 Distribution 接入的消费项目会安装一个共享 Update Guard。任一受管 Skill 触发后、执行领域步骤前先运行该 Guard:24 小时 TTL 内只读本地状态,过期才查询 npm latest;发现更高稳定版本时用精确版本 CLI 复用安全 Upgrade,成功后重读当前 Skill。普通触发只增加一次本地 Node.js 启动;过期远端检查通常增加约 1 秒,实际更新通常增加数秒。Registry 或升级失败时保留旧版并继续。

Foundation 源码仓属于生产者模式,只使用严格 .agents/skills -> ../skills Source Link,不安装 Guard、不查询 npm,也不自更新。手工升级仍可用于诊断、审核和自动更新的回退:

npm exec --yes [email protected] -- \
  agent-foundation upgrade plan --target /path/to/adopted-project
npm exec --yes [email protected] -- \
  agent-foundation upgrade apply --target /path/to/adopted-project

示例中的 0.3.0 应替换为维护者批准的目标版本。显式 upgrade plan/apply 本身不查询 latest;只有消费者共享 Guard 以 24 小时 TTL 查询稳定版本。Plan 只读,Apply 复用 Distribution 的用户修改保护并在写入后 Verify。

从源码开发

需要 Node.js 20+;仓库自身无运行时依赖。

npm test
npm run check
node packages/harness/bin/agent-foundation.mjs skill list
node packages/harness/bin/agent-foundation.mjs skill recommend
node packages/harness/bin/agent-foundation.mjs init plan --target /path/to/existing-project
node packages/harness/bin/agent-foundation.mjs init --target /path/to/project
node packages/harness/bin/agent-foundation.mjs doctor --target /path/to/project
node packages/harness/bin/agent-foundation.mjs context resolve --target /path/to/project --task-type "新增或修改 Skill" --paths skills/example

完整命令、写入边界和模块职责见 Harness 使用说明

仓库分层

| 目录 | 职责 | | --- | --- | | specs/ | 当前研发事项的范围、方案、任务和验证证据 | | knowledge/ | 跨任务稳定的事实、设计原因、契约和刷新条件 | | docs/ | 能力导航、结构说明、成熟度投影和发布检查 | | frameworks/ | 通用问题模型、不变量、Schema 和窄参考实现 | | skills/ | Agent 可直接执行的能力编排及其 References、Assets 和 Evals | | templates/ | 不属于单一 Skill 的可复制资产 | | blueprints/ | 项目接入、扩展点和生产化缺口 | | starter/ | 可复制的最小项目接入骨架 | | packages/ | Harness 与共享确定性实现 | | adapters/ | Host、版本控制和其他外部系统隔离层 | | distribution/ | Skill 发布白名单和内容摘要版本 |

目录只在存在真实产物时创建。详细边界和采用路径见目标仓库设计

当前能力边界

当前参考实现覆盖:项目初始化与 Doctor、项目级兼容 Skill 安装及版本升级、发布内容校验、Specflow 与 Knowledge 检查、最小上下文解析、Knowledge Projection、本地 Git Merge Candidate、Change Gate、仓库扫描,以及多组确定性契约校验。

真实 Browser、Design、Coverage、Tracking 和企业研发平台 Adapter,以及完整 Agent Runtime、跨仓库事务仍由采用方或后续实现补齐。本仓提供只接受干净 Commit 的不可变包构建器,以及从版本 Tag 向 npmjs.org 发布固定 tarball并生成 Provenance 的手动 Workflow;不创建 GitHub Release。能力成熟度、证据和缺口的唯一投影见交付形态与成熟度

自举治理

本仓使用自身能力管理演进:

  • AGENTS.md 定义 Agent 工作入口和全仓不变量;
  • skills/ 是唯一 Skill 源码;本仓 .agents/skills 使用严格仓内 Source Link,采用项目仍通过 Distribution 消费不可变副本;
  • specs/*/meta.yaml 是当前事项状态、关系和影响范围的唯一事实来源;
  • knowledge/registry.yamlknowledge/code-entry-map.yaml 路由长期知识;
  • Commit、Push、事项终态和外部发布分别需要对应授权。

文档入口

语言与许可

中文是仓库内容和协作沟通的首要语言。代码标识符、命令、文件格式字段和通行技术术语可以保留英文;核心内容不要求中文读者依赖英文材料理解。

Copyright 2026 ChenziSC。本仓内容采用 Apache License 2.0。首次公开发布前按照公开发布检查清单完成权属确认、行为评估和最终扫描。