用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/IgorWarzocha/howaboua-pi-stuff --skill extension-design命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Chrome CDP inspection/control: rendered pages, authenticated tabs, navigation, interaction, DOM/accessibility state, network, screenshots. Use when browser-rendered evidence or existing browser state matters.
Read after general prompt-caching guidance when investigating or changing this repo's Codex cache, continuation, prewarm, replay, or compaction.
Read when auditing tool and Notebook failures across stored Pi sessions or checking recovery since this repo's previous audit.
正在显示 SKILL.md
| name | extension-design |
| description | Read before creating or refining a coding-agent extension. |
| last-changed | 2026-08-23 |
Start from the experience the user wants, not from extension machinery. Before implementation, identify:
Choose between direct CLI use, a script, skill, user-invoked slash command, human UI, agent tool, or extension integration. Confirm that shape with the user before writing code.
Prefer the smallest missing piece. If a CLI already owns the capability but is awkward to use from the harness, wrap it thinly rather than rebuilding it. Custom extension behaviour is earned by integration needs such as UI, state, hooks, events, or tool registration.
Do not register an agent tool merely because an extension can. A permanent tool must earn its model cost through repeated natural use or a capability the agent cannot otherwise reach. For rare or explicitly requested workflows, prefer a user-invoked command, script, or CLI, with a skill only when the agent needs invocation guidance.
Inspect the user's setup and conventions before designing around an abstract ideal. Reuse its existing navigation, settings, command, and tool patterns. Add engineering machinery only for risks and requirements present in this workflow. Do not turn a personal convenience into an enterprise subsystem because testing, permissions, retries, compatibility layers, or configurability sound generically respectable.
Treat the human interface and agent toolkit as separate products. Either may exist without the other, and they should not be mirrored by default.
Load an applicable tool-design skill before adding or changing an agent-facing tool.
The README should explain the outcome, installation, first action, and material boundaries. Settings and actions belong in the product. If ordinary use requires reading a manual or memorizing a command family, redesign the interface before polishing documentation.
Measure an equivalent first turn with and without the extension while keeping the model, prompt, context, and harness version fixed. Inspect schemas, descriptions, injected instructions, startup messages, and tool results. Remove facts the model already knows, choices the host can infer, and interfaces agents rarely use.
Optimize task success before token count. A compact but unclear surface is not an improvement.
Run the local candidate in isolation before changing the live setup. The easiest arrangement is a visible sibling pane in tmux or Herdr so the user can compare it with the main session. Consult the harness help and herdr --skill rather than carrying pane mechanics here. For Pi, a disposable PI_CODING_AGENT_DIR with pi -nc -ns -ne -e <candidate> is a useful starting point.
Once the isolated shape satisfies the user, enable it with their complete setup. Check only relevant integration risks, including collisions, displaced capabilities, startup overhead, prompt caching, and removal behaviour. Let the user perform their normal workflow and decide whether the extension improves it or merely adds management.
Remove commands, settings, modes, integrations, and documentation that survive only because they sound useful. Popularity proves demand, not interface quality. The extension is successful when the user prefers their real harness with it and it disappears into the workflow after setup.