@adeildo/pi-skills

中文文档
6.0.0发布于 2026/11/02MITES Module构建来源已验证近 30 天下载 2467

Call the skills you already have from anywhere in a message, several at once. The model reads each one in full, and the chat shows a small chip where you typed it.

原始使用文档
文档目录4 节
  1. What changes
  2. Typing a reference
  3. The system prompt
  4. Notes

@adeildo/pi-skills

npm pi SDK

Pi expands /skill:name only at the start of a message, and only one skill per message. With this package, you call your skills from anywhere in a message, several at once. The model reads each skill in full, and the chat shows a small chip where you typed it.

pi install npm:@adeildo/pi-skills

What changes

This package brings no skills of its own. It changes how you call the skills that pi already loaded, from your skill folders or from packages. Any /skill:name in the text counts:

use /skill:simplify, then go over the docs with /skill:unslop

Before your message, the model gets one block per skill, the same <skill> block that pi writes for /skill:name. Your text reaches the model as you typed it. In the chat, each reference shows as [skill] name on a violet background, like pi's label for a folded skill. The blocks stay folded until you press Ctrl+O, which expands tool output and shows them in full.

A reference counts when it names a skill that pi loaded and comes after a space, the start of a line or an opening bracket. Inside backticks, it stays plain text.

Typing a reference

A / after the start of the message opens a list of your skills, which narrows as you type, like pi's palette does at the start. Picking one writes /skill:name and a space. The list opens on / in the editor of @adeildo/pi-look, which also colors each reference while you type. In any other editor, press Tab after the / to open it.

At the start of the message, / still opens pi's own palette, with the commands and the skills.

The system prompt

Pi writes every skill with its description into the system prompt, which costs every request around a hundred tokens per skill. With this package the prompt says only where your skills are, and the model reads one when you call it or ask it to find one. To give the model the full list again, so it picks a skill on its own, turn on List every skill in the settings, or set skills.list to true.

Notes

  • A message that starts with /skill: goes out with a space before it, so pi does not expand that skill a second time. The chat does not show the space.
  • While the model works, the skills wait in the queue with the message, as a steer or a follow-up.
  • If pi cannot read a skill file, the message goes without that skill, and a warning says why.

adeildo.dev
pi-harness is made by adeildo.dev

版本与发布记录

@adeildo/pi-skills 共发布 23 个版本,首次发布于 2026/10/07;过去 12 个月发布了 23 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
6.0.0latest2026/11/025 天前
5.15.02026/10/2414 天前
5.14.02026/10/2414 天前
5.13.02026/10/2315 天前
5.12.22026/10/2316 天前
5.12.12026/10/2216 天前

关于 @adeildo/pi-skills 的常见问题

@adeildo/pi-skills 是什么?

Call the skills you already have from anywhere in a message, several at once. The model reads each one in full, and the chat shows a small chip where you typed it.

如何安装 @adeildo/pi-skills?

在项目目录运行 npm install @adeildo/pi-skills,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@earendil-works/pi-ai(*)、@earendil-works/pi-tui(*)、@earendil-works/pi-coding-agent(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@adeildo/pi-skills 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/adeildo__pi-skills 是否存在。

@adeildo/pi-skills 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@adeildo/pi-skills 可以商用吗?

@adeildo/pi-skills 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@adeildo/pi-skills 的下载量有多少?

根据 npm 官方下载统计,@adeildo/pi-skills 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,467 次,日均约 82 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adeildo/pi-skills 还在维护吗?

最新版本 6.0.0 发布于 2026/11/02(5 天前);至今共发布 23 个版本,其中过去 12 个月发布了 23 个;首次发布于 2026/10/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。