pi-customization
Trigger: pi customization, customize pi, configurar pi, personalizar pi, mejorar pi, Pi APIs, Pi settings, Pi extensions. Configure and improve Pi using only official Pi documentation and APIs.
- License 许可
- Apache-2.0
- 所属仓库
- Piioni/Nixie
- 最近更新
- 2026-10-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pi-customization
- license
- Apache-2.0
- metadata
- { "author": "gentleman-programming", "version": "1.0" }
- description
- Trigger: pi customization, customize pi, configurar pi, personalizar pi, mejorar pi, Pi APIs, Pi settings, Pi extensions. Configure and improve Pi using only official Pi documentation and APIs.
03 SKILL.md 正文
Activation Contract
Use this skill when configuring, customizing, extending, auditing, or improving Pi itself: settings, packages, skills, prompt templates, themes, keybindings, providers/models, extensions, SDK integrations, custom tools, commands, TUI components, or subagent runtime configuration.
Do not use it for ordinary project coding, Flutter work, generic agent delegation, or undocumented behavior speculation.
Hard Rules
- Treat official Pi docs as the only source of truth. Read the relevant docs before answering or editing.
- Resolve official docs under
/home/piioni/.local/lib/node_modules/@earendil-works/pi-coding-agent/. - Prefer configuration over custom code when settings, packages, skills, prompts, themes, or keybindings solve the need.
- Use extensions only when Pi must register tools, commands, shortcuts, providers, lifecycle hooks, custom renderers, or TUI interactions.
- When creating a persistent extension, use the maintainable package layout:
extensions/{name}/package.json,tsconfig.json,index.ts, andsrc/index.ts; add focusedsrc/modules when the extension has config, state, tools, commands, or reusable helpers. - Use a single
*.tsextension file only for disposable examples or quick local experiments, not for durable user configuration. - Never invent Pi APIs, settings keys, event names, or extension methods. Verify exact names in docs first.
- Respect scope: global config lives in
~/.pi/agent/; project config lives in.pi/and requires project trust. - After changing Pi resources, tell the user whether
/reloadis enough or a Pi restart is required. - Warn that extensions and skills can execute powerful instructions/code; only use trusted sources.
Decision Gates
| Need | Official surface |
|---|---|
| Change defaults, models, resources, UI toggles | docs/settings.md |
| Add reusable agent behavior | docs/skills.md |
| Add slash prompt workflows | docs/prompt-templates.md |
| Change appearance | docs/themes.md |
| Change keyboard behavior | docs/keybindings.md |
| Install/share resources | docs/packages.md |
| Add model/provider support | docs/models.md, docs/providers.md, docs/custom-provider.md |
| Add tools, commands, hooks, shortcuts, custom UI | docs/extensions.md, docs/tui.md |
| Persistent extension requested | Create package-style extension under extensions/{name}/ with package.json, tsconfig.json, index.ts, src/index.ts; modularize src/ when concerns split naturally |
| Throwaway extension experiment | A single *.ts file is acceptable, but say it is not the maintainable convention |
| Embed/control Pi from code | docs/sdk.md, docs/rpc.md |
| Configure subagents package | load subagents-configuration skill too |
Execution Steps
- Identify the target surface: settings, skill, prompt, theme, keybinding, package, model/provider, extension, SDK/RPC, or subagents.
- Read
docs/index.mdplus every relevant doc from the Decision Gates table. Follow local cross-references when they define the API being used. - Inspect existing global/project files before editing:
~/.pi/agent/settings.json,.pi/settings.json, resource folders, and package-specific config. - Choose the smallest official mechanism that satisfies the request.
- If editing JSON, preserve existing keys and validate syntax.
- If writing an extension, use documented imports from
@earendil-works/pi-coding-agent, keep startup work safe, and prefer/reload-discoverable locations. - For persistent extensions, create the package layout, keep
index.tsas a thin export, place runtime code insrc/index.ts, and splitsrc/only when it improves readability or testability. - If creating or updating a skill, also follow
gentle-ai-skill-creatororgentle-ai-skill-improver. - Verify by reading changed files and, when safe, listing/validating resources with documented Pi commands or runtime tools.
Output Contract
Return:
- Official docs read and APIs/settings verified.
- Files created or modified, with scope: global or project.
- Why the chosen Pi surface was the smallest safe option.
- Validation performed or why it was skipped.
- Required
/reloador restart instruction. - Remaining risks or undocumented gaps.
References
/home/piioni/.local/lib/node_modules/@earendil-works/pi-coding-agent/docs/index.md/home/piioni/.local/lib/node_modules/@earendil-works/pi-coding-agent/docs/settings.md/home/piioni/.local/lib/node_modules/@earendil-works/pi-coding-agent/docs/skills.md/home/piioni/.local/lib/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md/home/piioni/.local/lib/node_modules/@earendil-works/pi-coding-agent/docs/sdk.md
04 同仓库更多 Skills
show-me
Help the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts.
guided-learning
Trigger: explain this, explícamelo, no lo entiendo, profundicemos, enséñame, como junior, learning mode. Teach technical concepts progressively with repository-grounded examples, clear mental models, and concise visual diagrams.
grilling
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
grill-with-docs
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
grill-me
A relentless interview to sharpen a plan or design.
domain-modeling
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md, or recording or editing an ADR.