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

codet-pi-init

v1.0.3

Published

Pi Coding Agent 扩展:/init 在任意编码项目生成 AGENTS.md(AI 编程助手规范),可分发、无 Pi 也可用 CLI

Readme

codet-pi-init

给 Pi Coding Agent 加一个 /init 命令:扫描任意编码项目,生成 AI 编程助手规范文件 AGENTS.md,让 AI 严格遵循项目约定,减少无效沟通。

Pi-native 形态/init 主体是 Skill(skills/pi-init/SKILL.md),由模型用 bash/read/write 扫描项目并写 AGENTS.md——逻辑活在文本资产里。一个薄扩展把 /init 桥接到 /skill:pi-init(因为 Pi 的 Skill 命令固定是 /skill: 前缀)。/init --template 用模板占位符确定性生成,不调模型,作离线兜底。

安装

# 本地路径(开发中)
pi install ./codet-pi-init

# npm(发布后)
pi install npm:codet-pi-init

# 作为 CLI 使用(无需 Pi)
npm install -g codet-pi-init

使用 Skill 路径需在 settings.json"enableSkillCommands": true(Pi 的 Skill 命令需开启)。

使用

在 Pi 中

cd my-project
pi
/init                   # 走 Skill:模型扫描项目并生成 AGENTS.md
/init --template        # 用模板打底,再让模型完善 AGENTS.md
/init --template my.md  # 用自定义模板
/init --force           # 覆盖已存在
/init-check             # 检查已有规范文件质量

作为 CLI(无需 Pi)

codet-pi-init            # 生成 AGENTS.md(确定性,用内置模板)
codet-pi-init --template my.md   # 用自定义模板
codet-pi-init --check    # 质量检查
codet-pi-init --print    # 打印不写文件

自定义模板

--template 支持 {{占位符}},由扫描结果填充。内置模板见 templates/agents-md.tpl,复制一份改文本即可,不需要改代码

可用占位符:{{PROJECT_NAME}} {{LANGUAGE}} {{FRAMEWORK}} {{PACKAGE_MANAGER}} {{INSTALL_CMD}} {{TECH_SUMMARY}} {{STRUCTURE}} {{SCRIPTS_TABLE}} {{CONFIGS}} {{GITIGNORE}} {{NEVER_RULES}} {{DATE}}

参数

| 参数 | 缩写 | 说明 | |---------------|------|-----------------------------------| | --force | -f | 强制覆盖已存在文件 | | --output | -o | 自定义输出文件名 | | --files | -F | 输出文件列表(默认 AGENTS.md) | | --template | | 用模板打底再让模型完善;可跟自定义路径| | --dry-run | -d | 只输出 LLM 提示词,不写文件 |

许可

MIT License