[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71T47W6WBJ6CHCVXDNN4RAA":3,"skill-same:01M71T47W6WBJ6CHCVXDNN4RAA":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M71T47W6WBJ6CHCVXDNN4RAA","pi-package",null,"Pi package development best practices and patterns. Use when planning, editing, implementing, or reviewing pi package code — structuring a new package, writing extensions, registering tools, commands, events, skills, prompt templates, or themes. Also use when the user asks about package architecture, conventions, or \"how should I implement\" a pi package feature. Do not use for general TypeScript development unrelated to pi packages, or for running tests (use pi-test skill if it exists).","S1M0N38\u002Fpi-package-template","S1M0N38","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F22257750?v=4","01M71T423QR9E0532E9AY8VGB4","01M71T424FQ6J25Z3V21MEK6KZ",5,"MIT","https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-package\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"pi","package","pi package","Tools","patterns","package development","commands","typescript","how","unrelated","packages","Test Skill","architecture","code","when","writing","themes","new","implementing","new package","2026-11-10 13:02:02",false,"---\nname: pi-package\ndescription: >\n  Pi package development best practices and patterns. Use when planning, editing,\n  implementing, or reviewing pi package code — structuring a new package, writing\n  extensions, registering tools, commands, events, skills, prompt templates, or themes.\n  Also use when the user asks about package architecture, conventions, or \"how should\n  I implement\" a pi package feature. Do not use for general TypeScript development\n  unrelated to pi packages, or for running tests (use pi-test skill if it exists).\n---\n\n# Pi Package Development\n\nThis skill provides patterns and best practices for building pi packages.\nRead the reference files below on demand based on the current task.\n\n## Official Pi Documentation\n\nFor the complete and authoritative API reference, read pi's installed docs.\nLocate them with:\n\n```bash\n# Find the docs directory\nnpm root -g  # → \u003Cdir>\u002F@earendil-works\u002Fpi-coding-agent\u002Fdocs\u002F\n```\n\nKey documents (relative to that directory):\n\n| Doc | Contents |\n|-----|----------|\n| `extensions.md` | Full extension API: events, tools, commands, providers, rendering |\n| `tui.md` | TUI component API for custom UI |\n| `skills.md` | Skill authoring and the Agent Skills standard |\n| `themes.md` | Theme format and all color tokens |\n| `keybindings.md` | Keybinding IDs and shortcut registration |\n| `packages.md` | Package distribution and manifest |\n| `session-format.md` | SessionManager API and entry types |\n| `compaction.md` | Custom compaction handlers |\n| `custom-provider.md` | Advanced provider topics, OAuth, custom streaming |\n| `models.md` | Model configuration |\n| `rpc.md` | RPC mode and extension UI protocol |\n\nWhen in doubt about an API, read the official doc first — it is the source of truth.\n\n## Reference Files\n\nRead these on demand based on the task. Do NOT load all at once.\nEach file has a table of contents at the top for navigation.\n\n### `references\u002FEXTENSIONS.md`\nComplete patterns for every extension capability.\n\n1. Extension Structure & Factory\n2. Custom Tools (registration, rendering, state, truncation)\n3. Slash Commands (registration, autocomplete, argument handling)\n4. Event Handlers (lifecycle, session, agent, tool, input events)\n5. User Interaction (dialogs, notifications, status, widgets)\n6. Custom UI Components (TUI, overlay, custom editor)\n7. State Management (session persistence, reconstruction)\n8. Custom Rendering (tool call\u002Fresult, message renderers)\n9. Remote Execution (SSH, tool operations)\n10. Providers (custom models, OAuth)\n11. Anti-Patterns\n\n### `references\u002FSCHEMAS.md`\nTypebox schema patterns for tool parameters.\n\n1. Quick Start (minimum schemas every tool needs)\n2. Primitive Types\n3. String Enums (Google-compatible)\n4. Object & Nested Schemas\n5. Arrays & Tuples\n6. Optional Fields & Defaults\n7. Description Best Practices\n8. Reusable Sub-schemas\n9. Empty Parameters\n10. Common Parameter Patterns (paths, file patterns, modes)\n\n### `references\u002FTHEMES.md`\nTheme creation reference with all 51 color tokens.\n\n1. Theme Structure (vars, colors, schema)\n2. Color Tokens Reference (core UI, backgrounds, markdown, diffs, syntax, thinking)\n3. Color Values (hex, 256-color, variables, default)\n4. Theme Creation Workflow\n5. Testing Themes\n\n### `references\u002FSKILLS.md`\nSkill authoring patterns for the Agent Skills standard.\n\n1. Skill Structure (SKILL.md, references, scripts, assets)\n2. Frontmatter (name, description, allowed-tools, disable-model-invocation)\n3. Progressive Disclosure Pattern\n4. Skill Naming & Triggering\n5. Reference File Organization\n6. Skills in Packages\n\n### `references\u002FPROMPTS.md`\nPrompt template authoring.\n\n1. Prompt Template Format (frontmatter, content)\n2. Template Variables\n3. Prompt Placement & Discovery\n\n## Working with existing packages\n\nWhen modifying an existing package:\n\n1. Read the existing code first — match the project's conventions\n2. Check `AGENTS.md` for project-specific rules\n3. Read `package.json` to understand the `pi` manifest and dependencies\n4. Look at existing extensions\u002Fskills to match patterns\n\n## File locations in this project\n\n- Extension source: `extensions\u002Findex.ts`\n- Skills: `skills\u002F`\n- Prompt templates: `prompts\u002F`\n- Themes: `themes\u002F`\n- Package manifest: `package.json`\n","# Pi Package Development\n\nThis skill provides patterns and best practices for building pi packages.\nRead the reference files below on demand based on the current task.\n\n## Official Pi Documentation\n\nFor the complete and authoritative API reference, read pi's installed docs.\nLocate them with:\n\n```bash\n# Find the docs directory\nnpm root -g  # → \u003Cdir>\u002F@earendil-works\u002Fpi-coding-agent\u002Fdocs\u002F\n```\n\nKey documents (relative to that directory):\n\n| Doc | Contents |\n|-----|----------|\n| `extensions.md` | Full extension API: events, tools, commands, providers, rendering |\n| `tui.md` | TUI component API for custom UI |\n| `skills.md` | Skill authoring and the Agent Skills standard |\n| `themes.md` | Theme format and all color tokens |\n| `keybindings.md` | Keybinding IDs and shortcut registration |\n| `packages.md` | Package distribution and manifest |\n| `session-format.md` | SessionManager API and entry types |\n| `compaction.md` | Custom compaction handlers |\n| `custom-provider.md` | Advanced provider topics, OAuth, custom streaming |\n| `models.md` | Model configuration |\n| `rpc.md` | RPC mode and extension UI protocol |\n\nWhen in doubt about an API, read the official doc first — it is the source of truth.\n\n## Reference Files\n\nRead these on demand based on the task. Do NOT load all at once.\nEach file has a table of contents at the top for navigation.\n\n### `references\u002FEXTENSIONS.md`\nComplete patterns for every extension capability.\n\n1. Extension Structure & Factory\n2. Custom Tools (registration, rendering, state, truncation)\n3. Slash Commands (registration, autocomplete, argument handling)\n4. Event Handlers (lifecycle, session, agent, tool, input events)\n5. User Interaction (dialogs, notifications, status, widgets)\n6. Custom UI Components (TUI, overlay, custom editor)\n7. State Management (session persistence, reconstruction)\n8. Custom Rendering (tool call\u002Fresult, message renderers)\n9. Remote Execution (SSH, tool operations)\n10. Providers (custom models, OAuth)\n11. Anti-Patterns\n\n### `references\u002FSCHEMAS.md`\nTypebox schema patterns for tool parameters.\n\n1. Quick Start (minimum schemas every tool needs)\n2. Primitive Types\n3. String Enums (Google-compatible)\n4. Object & Nested Schemas\n5. Arrays & Tuples\n6. Optional Fields & Defaults\n7. Description Best Practices\n8. Reusable Sub-schemas\n9. Empty Parameters\n10. Common Parameter Patterns (paths, file patterns, modes)\n\n### `references\u002FTHEMES.md`\nTheme creation reference with all 51 color tokens.\n\n1. Theme Structure (vars, colors, schema)\n2. Color Tokens Reference (core UI, backgrounds, markdown, diffs, syntax, thinking)\n3. Color Values (hex, 256-color, variables, default)\n4. Theme Creation Workflow\n5. Testing Themes\n\n### `references\u002FSKILLS.md`\nSkill authoring patterns for the Agent Skills standard.\n\n1. Skill Structure (SKILL.md, references, scripts, assets)\n2. Frontmatter (name, description, allowed-tools, disable-model-invocation)\n3. Progressive Disclosure Pattern\n4. Skill Naming & Triggering\n5. Reference File Organization\n6. Skills in Packages\n\n### `references\u002FPROMPTS.md`\nPrompt template authoring.\n\n1. Prompt Template Format (frontmatter, content)\n2. Template Variables\n3. Prompt Placement & Discovery\n\n## Working with existing packages\n\nWhen modifying an existing package:\n\n1. Read the existing code first — match the project's conventions\n2. Check `AGENTS.md` for project-specific rules\n3. Read `package.json` to understand the `pi` manifest and dependencies\n4. Look at existing extensions\u002Fskills to match patterns\n\n## File locations in this project\n\n- Extension source: `extensions\u002Findex.ts`\n- Skills: `skills\u002F`\n- Prompt templates: `prompts\u002F`\n- Themes: `themes\u002F`\n- Package manifest: `package.json`\n",{"name":5,"description":7},"main","1c72dfcbc0ce688b9782df0daccac475b5172909",".agents\u002Fskills\u002Fpi-package",1,"https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fpi-package-template","https:\u002F\u002Fgithub.com\u002FS1M0N38","2026-05-17 01:15:28",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add S1M0N38\u002Fpi-package-template --skill pi-package",{"tool":57,"command":58},"bunx","bunx skills add S1M0N38\u002Fpi-package-template --skill pi-package",{"tool":60,"command":61},"pnpm","pnpm dlx skills add S1M0N38\u002Fpi-package-template --skill pi-package","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-package\u002FSKILL.md",true,[65,71,75,79,83],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002FEXTENSIONS.md","REFERENCE","参考文档",21744,"https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-package\u002Freferences\u002FEXTENSIONS.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002FPROMPTS.md",2420,"https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-package\u002Freferences\u002FPROMPTS.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002FSCHEMAS.md",5945,"https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-package\u002Freferences\u002FSCHEMAS.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002FSKILLS.md",4401,"https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-package\u002Freferences\u002FSKILLS.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002FTHEMES.md",4849,"https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-package\u002Freferences\u002FTHEMES.md",[88,94,120],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":38},"01M71T4HTVPG5AD3YG4PNC0X67","hello","https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002Fskills\u002Fhello\u002FSKILL.md",[],[90],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":38},"01M71T4BSCKGFZ12068A05WKM0","pi-test","Test pi package TUI components using pilotty for PTY-based terminal automation. Use when the user wants to test, verify, or validate TUI components built with pi-tui in their pi package — interactive selectors, overlays, dialogs, custom editors, status indicators, or any ctx.ui.custom() output. Also use when the user says \"test the TUI\", \"verify the UI renders\", \"check my component\", \"run pilotty\", \"test my extension's UI\", or asks about TUI testing strategies for pi packages. Do not use for unit testing non-TUI code, linting, type checking, or testing tools that only return text without rendering a TUI.","https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-test\u002FSKILL.md",[],[18,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119],"test","pi test","tui testing","unit","overlays","testing","components","text","strategies","component","run","terminal","read","write","rendering","edit","status","unit testing","ui",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":38},"01M71T43H0P1MAADJWNSHSH2DY","pi-init","Initialize a pi package project after cloning from pi-package-template. Run once at the start of development to verify the development environment is set up correctly. Use when the user says \"init\", \"setup\", \"initialize\", \"check environment\", \"pi-init\", or asks to verify their pi package development setup. Also use when the user says they just cloned the template or wants to start developing a pi package. Do not use for general pi package development tasks (use pi-package) or for running tests.","https:\u002F\u002Fgithub.com\u002FS1M0N38\u002Fpi-package-template\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpi-init\u002FSKILL.md",[],[18,127,128,129,130,131,132,133,134,135,136,137,138,139,19,140,32,20,141,142],"init","pi init","general","do","initialize","development","for","project","just","environment","up","running","tests","use","SET","development environment"]