/** * pi-skills-mention — Codex-style `$skill-name` mentions for pi. * * Adds two things to pi: * * 1. **Runtime skill loading.** Any `$skill-name` written anywhere in a * prompt (not just at the start) loads that skill's full instructions * before the agent runs. You can mention many skills in one message, mix * them with ordinary text, and re-mention in later turns: * * $code-review 与 $humanize 帮我审查今天下午改的 auth 模块,并把结论润色成人话。 * * The prompt itself is **never rewritten**: pi stores and displays exactly * what you typed (with the `$skill` mentions), so `/fuck`-style recovery, * rewind and re-editing always work on your original text. The skill * contents are injected as a separate custom message right before the * agent starts, and the TUI renders a compact "loaded skills" line for it * (`ctrl+o` expands the full contents). * * 2. **TUI autocompletion.** Type `$` in the input editor and a live list of * mentionable skills appears, filtered as you type — Codex's `$` feel. * * Escape hatch: `$$name` stays a literal `$name` (never loaded). */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function (pi: ExtensionAPI): void;