@agimon-ai/po-skill 0.0.0-alpha.21 → 0.0.0-alpha.210

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/LICENSE +21 -149
  2. package/README.md +27 -25
  3. package/dist/apiContracts.cjs.map +1 -1
  4. package/dist/apiContracts.d.mts +2 -2
  5. package/dist/catalog.cjs +31 -8
  6. package/dist/catalog.cjs.map +1 -1
  7. package/dist/catalog.d.mts +5 -0
  8. package/dist/catalog.d.mts.map +1 -1
  9. package/dist/catalog.mjs +31 -8
  10. package/dist/catalog.mjs.map +1 -1
  11. package/dist/extensions/mcp-ui.mjs +7 -5
  12. package/dist/extensions/mcp-ui.mjs.map +1 -1
  13. package/dist/extensions/mcp.cjs +28 -16
  14. package/dist/extensions/mcp.cjs.map +1 -1
  15. package/dist/extensions/mcp.d.mts.map +1 -1
  16. package/dist/extensions/mcp.mjs +28 -16
  17. package/dist/extensions/mcp.mjs.map +1 -1
  18. package/dist/extensions/native.mjs +313 -0
  19. package/dist/extensions/native.mjs.map +1 -0
  20. package/dist/extensions/server.cjs +309 -129
  21. package/dist/extensions/server.cjs.map +1 -1
  22. package/dist/extensions/server.d.mts.map +1 -1
  23. package/dist/extensions/server.mjs +311 -131
  24. package/dist/extensions/server.mjs.map +1 -1
  25. package/dist/extensions/web.mjs +282 -0
  26. package/dist/extensions/web.mjs.map +1 -0
  27. package/dist/index.d.mts +1 -0
  28. package/dist/index.d.mts.map +1 -1
  29. package/dist/po-runtime-identity.json +1 -0
  30. package/dist/skills-Ccvg1Hcz.mjs.map +1 -1
  31. package/dist/skills-ComtgYb1.cjs.map +1 -1
  32. package/llms.txt +3 -2
  33. package/locales/vi.json +17 -0
  34. package/locales/zh-CN.json +17 -0
  35. package/package.json +87 -16
  36. package/src/prompts/codemode-how-to-skills/SKILL.md +15 -0
  37. package/src/prompts/help-how-to-author-skill/SKILL.md +52 -0
  38. package/src/prompts/{po-use-skill → help-how-to-skill}/SKILL.md +3 -1
  39. package/src/prompts/po-author-skill/SKILL.md +0 -37
@@ -1 +1 @@
1
- {"version":3,"file":"skills-Ccvg1Hcz.mjs","names":[],"sources":["../src/types/skills.ts"],"sourcesContent":["import type { Skill } from '@earendil-works/pi-coding-agent';\n\nexport const SKILLS_COMMAND = 'skills';\nexport const SKILL_INVOCATION_PREFIX = '/skill:';\nexport const SKILL_COMMAND_PREFIX = 'skill:';\n\nexport interface DeferredSkillSnapshot {\n skills: Skill[];\n diagnostics: string[];\n}\n\nexport interface DeferredSkillLoaderOptions {\n cwd: string;\n skillPaths: readonly string[];\n agentDir?: string;\n piModuleUrl?: string;\n schedule?: (load: () => void) => void;\n load?: (options: { cwd: string; agentDir: string; skillPaths: string[]; includeDefaults: boolean }) => {\n skills: Skill[];\n diagnostics: Array<{ path?: string; message: string }>;\n };\n}\n\n/** Skills and the domain whose selection activates them, or always-on when absent. */\nexport interface ServerSkillGroup {\n readonly domain?: string;\n readonly skills: readonly Skill[];\n}\n\nexport interface ServerSkillInventory {\n /** Every skill any selection can reach, so an activated command can still expand. */\n readonly inventory: DeferredSkillSnapshot;\n readonly groups: readonly ServerSkillGroup[];\n readonly mcpGroups: readonly ServerSkillGroup[];\n /**\n * The shared and repository skills this package advertises itself. Domain plugin skills are\n * left out: po-domain already contributes each one, and listing them twice was noise.\n */\n readonly listed: readonly ServerSkillGroup[];\n readonly catalog: string;\n}\n"],"mappings":";AAEA,MAAa,iBAAiB;AAC9B,MAAa,0BAA0B;AACvC,MAAa,uBAAuB"}
1
+ {"version":3,"file":"skills-Ccvg1Hcz.mjs","names":[],"sources":["../src/types/skills.ts"],"sourcesContent":["import type { PoSkillRelation } from '@agimon-ai/po-core/headless';\nimport type { Skill } from '@earendil-works/pi-coding-agent';\n\nexport const SKILLS_COMMAND = 'skills';\nexport const SKILL_INVOCATION_PREFIX = '/skill:';\nexport const SKILL_COMMAND_PREFIX = 'skill:';\n\nexport interface DeferredSkillSnapshot {\n skills: Skill[];\n diagnostics: string[];\n}\n\nexport interface DeferredSkillLoaderOptions {\n cwd: string;\n skillPaths: readonly string[];\n agentDir?: string;\n piModuleUrl?: string;\n schedule?: (load: () => void) => void;\n load?: (options: { cwd: string; agentDir: string; skillPaths: string[]; includeDefaults: boolean }) => {\n skills: Skill[];\n diagnostics: Array<{ path?: string; message: string }>;\n };\n}\n\n/** One loaded skill and its any-of domain gate, or always-on when absent. */\nexport interface ServerSkillGroup {\n readonly domains?: readonly string[];\n /** Plugins whose session-only activation also admits it, beside `domains`. */\n readonly plugins?: readonly string[];\n readonly skills: readonly Skill[];\n}\n\nexport interface ServerSkillInventory {\n /** Every skill any selection can reach, so an activated command can still expand. */\n readonly inventory: DeferredSkillSnapshot;\n readonly groups: readonly ServerSkillGroup[];\n readonly mcpGroups: readonly ServerSkillGroup[];\n readonly catalog: string;\n readonly relations?: Readonly<Record<string, readonly PoSkillRelation[]>>;\n}\n"],"mappings":";AAGA,MAAa,iBAAiB;AAC9B,MAAa,0BAA0B;AACvC,MAAa,uBAAuB"}
@@ -1 +1 @@
1
- {"version":3,"file":"skills-ComtgYb1.cjs","names":[],"sources":["../src/types/skills.ts"],"sourcesContent":["import type { Skill } from '@earendil-works/pi-coding-agent';\n\nexport const SKILLS_COMMAND = 'skills';\nexport const SKILL_INVOCATION_PREFIX = '/skill:';\nexport const SKILL_COMMAND_PREFIX = 'skill:';\n\nexport interface DeferredSkillSnapshot {\n skills: Skill[];\n diagnostics: string[];\n}\n\nexport interface DeferredSkillLoaderOptions {\n cwd: string;\n skillPaths: readonly string[];\n agentDir?: string;\n piModuleUrl?: string;\n schedule?: (load: () => void) => void;\n load?: (options: { cwd: string; agentDir: string; skillPaths: string[]; includeDefaults: boolean }) => {\n skills: Skill[];\n diagnostics: Array<{ path?: string; message: string }>;\n };\n}\n\n/** Skills and the domain whose selection activates them, or always-on when absent. */\nexport interface ServerSkillGroup {\n readonly domain?: string;\n readonly skills: readonly Skill[];\n}\n\nexport interface ServerSkillInventory {\n /** Every skill any selection can reach, so an activated command can still expand. */\n readonly inventory: DeferredSkillSnapshot;\n readonly groups: readonly ServerSkillGroup[];\n readonly mcpGroups: readonly ServerSkillGroup[];\n /**\n * The shared and repository skills this package advertises itself. Domain plugin skills are\n * left out: po-domain already contributes each one, and listing them twice was noise.\n */\n readonly listed: readonly ServerSkillGroup[];\n readonly catalog: string;\n}\n"],"mappings":";AAEA,MAAa,iBAAiB;AAC9B,MAAa,0BAA0B;AACvC,MAAa,uBAAuB"}
1
+ {"version":3,"file":"skills-ComtgYb1.cjs","names":[],"sources":["../src/types/skills.ts"],"sourcesContent":["import type { PoSkillRelation } from '@agimon-ai/po-core/headless';\nimport type { Skill } from '@earendil-works/pi-coding-agent';\n\nexport const SKILLS_COMMAND = 'skills';\nexport const SKILL_INVOCATION_PREFIX = '/skill:';\nexport const SKILL_COMMAND_PREFIX = 'skill:';\n\nexport interface DeferredSkillSnapshot {\n skills: Skill[];\n diagnostics: string[];\n}\n\nexport interface DeferredSkillLoaderOptions {\n cwd: string;\n skillPaths: readonly string[];\n agentDir?: string;\n piModuleUrl?: string;\n schedule?: (load: () => void) => void;\n load?: (options: { cwd: string; agentDir: string; skillPaths: string[]; includeDefaults: boolean }) => {\n skills: Skill[];\n diagnostics: Array<{ path?: string; message: string }>;\n };\n}\n\n/** One loaded skill and its any-of domain gate, or always-on when absent. */\nexport interface ServerSkillGroup {\n readonly domains?: readonly string[];\n /** Plugins whose session-only activation also admits it, beside `domains`. */\n readonly plugins?: readonly string[];\n readonly skills: readonly Skill[];\n}\n\nexport interface ServerSkillInventory {\n /** Every skill any selection can reach, so an activated command can still expand. */\n readonly inventory: DeferredSkillSnapshot;\n readonly groups: readonly ServerSkillGroup[];\n readonly mcpGroups: readonly ServerSkillGroup[];\n readonly catalog: string;\n readonly relations?: Readonly<Record<string, readonly PoSkillRelation[]>>;\n}\n"],"mappings":";AAGA,MAAa,iBAAiB;AAC9B,MAAa,0BAA0B;AACvC,MAAa,uBAAuB"}
package/llms.txt CHANGED
@@ -4,11 +4,12 @@ The session skill catalogue, deferred skill discovery, and the `SPC e s` browser
4
4
 
5
5
  ## How to author
6
6
 
7
- - [Author Po skills](./src/prompts/po-author-skill/SKILL.md): Create, distribute, and register runtime skills or activation-gated Help prompts.
7
+ - [Author Po skills](./src/prompts/help-how-to-author-skill/SKILL.md): Create, distribute, and register runtime skills or activation-gated Help prompts.
8
8
 
9
9
  ## How to use
10
10
 
11
- - [Use Po skills](./src/prompts/po-use-skill/SKILL.md): Browse the catalog, invoke deferred skills, and diagnose missing or shadowed skills.
11
+ - [Use Po skills](./src/prompts/help-how-to-skill/SKILL.md): Browse the catalog, invoke deferred skills, and diagnose missing or shadowed skills.
12
+ - [Reach skills beyond the active set](./src/prompts/codemode-how-to-skills/SKILL.md): Search and read skills of unselected domains through the `skills` code-mode namespace.
12
13
 
13
14
  ## Package reference
14
15
 
@@ -0,0 +1,17 @@
1
+ {
2
+ "skill.guides.howDoIUseASkill": "Làm sao để dùng kỹ năng?",
3
+ "skill.guides.sendSkillsToListDiscoveredSkillsUseSkillNameFollowedByYourRequestToInvokeASkillByItsExactNameOrAskPoToFindASuitableSkill": "Gửi /skills để liệt kê các kỹ năng đã tìm thấy. Dùng /skill:name kèm yêu cầu để gọi kỹ năng theo đúng tên, hoặc nhờ Po tìm kỹ năng phù hợp.",
4
+ "skill.guides.skills": "Kỹ năng",
5
+ "skill.guides.skillsAreInstructionsPoLoadsWhenNeededForATaskTheyComeFromPluginsSharedClaudeSkillsAndRepositoryPoSkillsFolders": "Kỹ năng là hướng dẫn Po tải khi cần cho một tác vụ. Chúng đến từ plugin, thư mục dùng chung .claude/skills và thư mục .po/skills trong kho mã.",
6
+ "skill.guides.whatAreSkills": "Kỹ năng là gì?",
7
+ "skill.mcp.loadSkill": "Tải kỹ năng",
8
+ "skill.mcp.query": "Truy vấn",
9
+ "skill.mcp.searchSkills": "Tìm kỹ năng",
10
+ "skill.mcp.skill": "Kỹ năng",
11
+ "skill.notification.catalog": "Kỹ năng Po",
12
+ "skill.ui.allSkills": "tất cả kỹ năng",
13
+ "skill.ui.moreLines": "thêm {count} dòng",
14
+ "skill.ui.noSkillsMatch": "Không có kỹ năng phù hợp.",
15
+ "skill.ui.running": "đang chạy",
16
+ "skill.ui.showMore": "Hiện thêm"
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "skill.guides.howDoIUseASkill": "如何使用技能?",
3
+ "skill.guides.sendSkillsToListDiscoveredSkillsUseSkillNameFollowedByYourRequestToInvokeASkillByItsExactNameOrAskPoToFindASuitableSkill": "发送 /skills 列出已发现的技能。使用 /skill:name 并附上请求,按准确名称调用技能,或请 Po 寻找合适的技能。",
4
+ "skill.guides.skills": "技能",
5
+ "skill.guides.skillsAreInstructionsPoLoadsWhenNeededForATaskTheyComeFromPluginsSharedClaudeSkillsAndRepositoryPoSkillsFolders": "技能是 Po 在任务需要时加载的指令。它们来自插件、共享的 .claude/skills 和仓库的 .po/skills 文件夹。",
6
+ "skill.guides.whatAreSkills": "什么是技能?",
7
+ "skill.mcp.loadSkill": "加载技能",
8
+ "skill.mcp.query": "查询",
9
+ "skill.mcp.searchSkills": "搜索技能",
10
+ "skill.mcp.skill": "技能",
11
+ "skill.notification.catalog": "Po 技能",
12
+ "skill.ui.allSkills": "所有技能",
13
+ "skill.ui.moreLines": "还有 {count} 行",
14
+ "skill.ui.noSkillsMatch": "没有匹配的技能。",
15
+ "skill.ui.running": "运行中",
16
+ "skill.ui.showMore": "显示更多"
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-skill",
3
- "version": "0.0.0-alpha.21",
3
+ "version": "0.0.0-alpha.210",
4
4
  "description": "Session skill catalogue, deferred skill discovery, and the skill browser for Po.",
5
5
  "keywords": [
6
6
  "agent-skills",
@@ -18,7 +18,7 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/AgiFlow/po/issues"
20
20
  },
21
- "license": "BUSL-1.1",
21
+ "license": "MIT",
22
22
  "author": "Vuong Ngo",
23
23
  "repository": {
24
24
  "type": "git",
@@ -31,7 +31,8 @@
31
31
  "README.md",
32
32
  "src/prompts",
33
33
  "LICENSE",
34
- "package.json"
34
+ "package.json",
35
+ "locales"
35
36
  ],
36
37
  "type": "module",
37
38
  "main": "./dist/index.cjs",
@@ -54,45 +55,69 @@
54
55
  "import": "./dist/catalog.mjs",
55
56
  "require": "./dist/catalog.cjs"
56
57
  },
58
+ "./extensions/native": {
59
+ "import": "./dist/extensions/native.mjs"
60
+ },
57
61
  "./extensions/server": {
58
62
  "types": "./dist/extensions/server.d.mts",
59
63
  "import": "./dist/extensions/server.mjs",
60
64
  "require": "./dist/extensions/server.cjs"
61
65
  },
66
+ "./extensions/web": {
67
+ "import": "./dist/extensions/web.mjs"
68
+ },
69
+ "./locales/vi.json": "./locales/vi.json",
70
+ "./locales/zh-CN.json": "./locales/zh-CN.json",
62
71
  "./package.json": "./package.json"
63
72
  },
64
73
  "publishConfig": {
65
74
  "access": "public"
66
75
  },
67
76
  "dependencies": {
68
- "@agimon-ai/po-config": "0.0.0-alpha.21",
69
- "@agimon-ai/po-core": "0.0.0-alpha.21",
70
- "@agimon-ai/po-domain": "0.0.0-alpha.21",
71
- "@agimon-ai/po-telemetry": "0.0.0-alpha.21",
72
- "@agimon-ai/po-web-components": "0.0.0-alpha.21",
77
+ "@agimon-ai/po-config": "0.0.0-alpha.210",
78
+ "@agimon-ai/po-core": "0.0.0-alpha.210",
79
+ "@agimon-ai/po-domain": "0.0.0-alpha.210",
80
+ "@agimon-ai/po-web-components": "0.0.0-alpha.210",
73
81
  "@deepseek-ai/cordis": "4.0.5",
74
- "gpt-tokenizer": "4.0.0",
75
- "typebox": "1.3.37"
82
+ "gpt-tokenizer": "4.1.0",
83
+ "typebox": "1.4.2"
76
84
  },
77
85
  "devDependencies": {
78
- "@agimon-ai/po-build": "0.0.0-alpha.21",
79
- "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.21",
86
+ "@agimon-ai/po-build": "0.0.0-alpha.210",
87
+ "@agimon-ai/po-native-components": "0.0.0-alpha.210",
88
+ "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.210",
80
89
  "@deepseek-ai/cordis": "4.0.5",
81
- "@earendil-works/pi-coding-agent": "1.3.0",
90
+ "@earendil-works/pi-coding-agent": "1.6.1",
82
91
  "@types/node": "26.6.5",
83
92
  "@types/react": "19.3.0",
84
93
  "@vitest/coverage-v8": "5.0.4",
85
- "react": "19.3.0",
94
+ "react": "19.3.1",
95
+ "react-dom": "19.3.1",
96
+ "react-native": "0.88.1",
97
+ "react-native-unistyles": "3.7.0",
98
+ "react-native-web": "0.21.4",
86
99
  "tsdown": "0.23.1",
87
100
  "typescript": "7.0.2",
88
101
  "vitest": "5.0.4"
89
102
  },
90
103
  "peerDependencies": {
91
- "@earendil-works/pi-coding-agent": "1.3.0"
104
+ "@agimon-ai/po-native-components": "0.0.0-alpha.210",
105
+ "@earendil-works/pi-coding-agent": "1.6.1",
106
+ "react-native": "0.88.1",
107
+ "react-native-unistyles": "^3.5.3"
92
108
  },
93
109
  "peerDependenciesMeta": {
110
+ "@agimon-ai/po-native-components": {
111
+ "optional": true
112
+ },
94
113
  "@earendil-works/pi-coding-agent": {
95
114
  "optional": true
115
+ },
116
+ "react-native": {
117
+ "optional": true
118
+ },
119
+ "react-native-unistyles": {
120
+ "optional": true
96
121
  }
97
122
  },
98
123
  "engines": {
@@ -113,6 +138,27 @@
113
138
  ]
114
139
  }
115
140
  },
141
+ "poNative": {
142
+ "pluginId": "skill",
143
+ "brain": {
144
+ "version": 1,
145
+ "slots": [],
146
+ "fills": [
147
+ {
148
+ "id": "Skills",
149
+ "slot": "help.guides",
150
+ "scope": "session",
151
+ "placement": "verified"
152
+ }
153
+ ],
154
+ "diagnostics": []
155
+ },
156
+ "channels": [],
157
+ "client": "./dist/extensions/native.mjs",
158
+ "scopes": [
159
+ "session"
160
+ ]
161
+ },
116
162
  "poServer": {
117
163
  "entry": "./generated/server.ts",
118
164
  "dist": "./dist/extensions/server.mjs",
@@ -122,13 +168,38 @@
122
168
  "contracts": {
123
169
  "entry": "./src/exports/apiContracts.ts",
124
170
  "dist": "./dist/apiContracts.mjs"
171
+ },
172
+ "brain": {
173
+ "version": 1,
174
+ "provides": {}
125
175
  }
126
176
  },
177
+ "poWeb": {
178
+ "pluginId": "skill",
179
+ "brain": {
180
+ "version": 1,
181
+ "slots": [],
182
+ "fills": [
183
+ {
184
+ "id": "Skills",
185
+ "slot": "help.guides",
186
+ "scope": "session",
187
+ "placement": "verified"
188
+ }
189
+ ],
190
+ "diagnostics": []
191
+ },
192
+ "channels": [],
193
+ "client": "./dist/extensions/web.mjs",
194
+ "scopes": [
195
+ "session"
196
+ ]
197
+ },
127
198
  "scripts": {
128
199
  "build": "tsdown && pnpm build:mcp",
129
200
  "build:mcp": "tsdown --config tsdown.mcp.config.ts",
130
201
  "test": "vitest --run",
131
- "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.mcp.json",
202
+ "typecheck": "tsrs --noEmit && tsrs --noEmit -p tsconfig.web.json && tsrs --noEmit -p tsconfig.native.json && tsrs --noEmit -p tsconfig.mcp.json",
132
203
  "lint": "oxlint . && oxfmt . --check",
133
204
  "fixcode": "oxlint . --fix && oxfmt ."
134
205
  }
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: codemode-how-to-skills
3
+ description: 'Search and load any skill by name through the skills namespace: the listed ones, the rest of the active catalog, and skills of unselected domains. Use before a task that a skill may cover.'
4
+ ---
5
+
6
+ # Find and read skills
7
+
8
+ In code mode `skills.search` and `skills.load` replace the `search_skills` and `load_skill` tools. The prompt lists only pinned guides, so search for the rest. The person picks domains to keep the prompt small; search also reaches skills of domains they did not select, without asking them to switch.
9
+
10
+ - Load a listed skill with `skills.load({ name })` when its description matches the task.
11
+ - `skills.search({ query })` returns active skills first, then skills of domains in `domains.yaml` that this session has not selected. `active: false` marks the second kind. Use short, specific words; omit `query` only when you need the whole list.
12
+ - `skills.load({ name })` takes an exact name from search and returns the full SKILL.md text. Never pass a path.
13
+ - Reading a skill enables nothing. Its instructions may name tools, MCP servers or agents its plugin provides; those stay unavailable until the plugin is active. When the task needs them, ask to turn the plugin on with `plugins.enable` (see `codemode-how-to-plugins`) rather than improvising a substitute.
14
+ - Relative links in a loaded skill resolve against that skill's own folder. Read them with the file tools when you need them.
15
+ - Skills of plugins the person disabled never appear. Do not try to work around that.
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: help-how-to-author-skill
3
+ description: Author and distribute Po agent skills. Use when creating a SKILL.md, adding supporting references or scripts, configuring a discovered skill source, or publishing activation-gated Help prompts from a Po package.
4
+ ---
5
+
6
+ # Author Po skills
7
+
8
+ Create one focused skill per directory. Name the directory with lowercase letters, digits, and hyphens, and give it a required `SKILL.md`:
9
+
10
+ ```markdown
11
+ ---
12
+ name: repository-review
13
+ description: Review repository changes when the user asks for implementation-risk and regression analysis.
14
+ ---
15
+
16
+ # Repository review
17
+
18
+ Put the essential workflow and non-obvious constraints here.
19
+ ```
20
+
21
+ The frontmatter `name` must match the directory. Make the description specific enough for automatic routing. Keep the entrypoint concise, and put substantial conditional details in linked `references/`. Add `scripts/`, `assets/`, or `agents/` only when the skill actually uses them.
22
+
23
+ To relate a skill to another, use one of three explicit forms. Prose and backticked names are never parsed.
24
+
25
+ - Frontmatter, when the agent should read the target first or the link matters:
26
+
27
+ ```yaml
28
+ relations:
29
+ - kind: requires # or references
30
+ skill: codemode-how-to-lint
31
+ ```
32
+
33
+ - A literal Markdown link to another skill's file, such as `[lint](../codemode-how-to-lint/SKILL.md)`, recorded as `references`.
34
+ - `@skill:<name>` in the body, for example `@skill:codemode-how-to-lint`, when the skill cannot know where the other is installed. Also recorded as `references`.
35
+
36
+ The same rules apply to repository, plugin and Po package skills: Po parses the text it already read for the session. Relations declared in code come first and the file adds to them; a `requires` hides a link to the same skill. Brain shows every relation and reports malformed frontmatter or a target this session does not have. A relation never loads the target or grants access: the agent loads it with `load_skill` only when it needs it.
37
+
38
+ ## Choose the distribution path
39
+
40
+ - For discovered plugin skills, ship `skills/<name>/SKILL.md` and configure the plugin and optional skill subset in `domains.yaml`. po-skill registers each loaded skill once with an any-of gate for its admitting domains. Shared `.claude/skills` follow domains that keep shared skills; repository `.po/skills` are unconditional. Do not register discovered plugin skills again from the package.
41
+ - For guidance that should appear only while Po Help is active, put it at `src/prompts/<name>/SKILL.md`, publish `src/prompts`, link it from the package's H1-led `llms.txt`, and register a Help descriptor through `PO_HELP_SERVICE`.
42
+ - For repository content selected by domains, place the skill in the plugin or shared skill source configured by `domains.yaml`; do not hard-code that directory into the Skill package.
43
+
44
+ Pi Help descriptors carry only `name` and `description`. The Help service resolves the owning package from the contribution's exact package `source` and `moduleUrl`, then wraps its `llms.txt`. Keep every index link inside the published package.
45
+
46
+ On the server host, contribute the same Help skill through a named `resource/*.server.ts` route with `when: PO_HELP_WHEN` from `@agimon-ai/po-core/help`. Include its useful description and an absolute `path` resolved with `packageResourcePath(import.meta.url, ...)`; a reader alone does not make the skill discoverable in the agent prompt. Keep ordinary runtime skills under their existing conditions.
47
+
48
+ Package-owned Help tools use ordinary named tool routes, not documentation descriptors. Server tools use the existing Help condition and execution guards. Pi tools also need `createPiHelpToolGate(packageName, toolNames)`: install its services and onStart in the owning root, then authorize each invocation with `gate.assertActive`. Portable `when` metadata alone does not enforce the Pi gate. The Help README and the Distribution package's `diagnose_setup` route show the complete server pattern. Bound diagnostics to the current session, omit secrets, and use existing approval mechanisms for repairs.
49
+
50
+ ## Verification
51
+
52
+ Validate the skill frontmatter, ensure every relative reference resolves, and test the packed package rather than relying on checkout-only files. For discovered skills, cover domain swaps, shared-skill opt-outs, and duplicate source admission. Pi globally name-deduplicates, so a plugin can shadow a same-name shared fallback even when its domain is off. Test the actual prompt and tool surface before activation, while active, and after deactivation; stale calls must be rejected without removing ordinary capabilities. Use `/skills` or `SPC e s` in an interactive session to confirm the expected owner and invocation name. Do not add remote MCP exposure merely because a local Help contribution exists.
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: po-use-skill
2
+ name: help-how-to-skill
3
3
  description: Use Po's skill catalog and deferred discovery. Use when browsing available skills, invoking /skill:name, understanding Help and extension-owned skill groups, or diagnosing why a skill is absent or shadowed.
4
4
  ---
5
5
 
@@ -7,6 +7,8 @@ description: Use Po's skill catalog and deferred discovery. Use when browsing av
7
7
 
8
8
  Open the skill browser with `/skills` or `SPC e s`. The catalog groups normal session skills, package Help skills, plugin skills, and extension-contributed directories by owner.
9
9
 
10
+ For agent tool calls, use `load_skill` with the exact name. With at most 20 active skills, its description lists the names and descriptions. Above 20, use `search_skills` to find skills by name or description, then load the chosen name. Search returns metadata only, not skill instructions or paths. Where code mode binds live objects, both tools are replaced by `skills.search` and `skills.load` (see `codemode-how-to-skills`), and the prompt lists only pinned guides.
11
+
10
12
  Invoke a skill with `/skill:<name>`. Po expands deferred skills before Pi handles the input, so a skill can be invokable even when its full body was not placed in the initial prompt. Help skills appear only while Help mode is active.
11
13
 
12
14
  When a skill is missing:
@@ -1,37 +0,0 @@
1
- ---
2
- name: po-author-skill
3
- description: Author and distribute Po agent skills. Use when creating a SKILL.md, adding supporting references or scripts, contributing a runtime skill directory through Cordis, or publishing activation-gated Help prompts from a Po package.
4
- ---
5
-
6
- # Author Po skills
7
-
8
- Create one focused skill per directory. Name the directory with lowercase letters, digits, and hyphens, and give it a required `SKILL.md`:
9
-
10
- ```markdown
11
- ---
12
- name: repository-review
13
- description: Review repository changes when the user asks for implementation-risk and regression analysis.
14
- ---
15
-
16
- # Repository review
17
-
18
- Put the essential workflow and non-obvious constraints here.
19
- ```
20
-
21
- The frontmatter `name` must match the directory. Make the description specific enough for automatic routing. Keep the entrypoint concise, and put substantial conditional details in linked `references/`. Add `scripts/`, `assets/`, or `agents/` only when the skill actually uses them.
22
-
23
- ## Choose the distribution path
24
-
25
- - For a normal Pi skill that should be discoverable whenever its owning extension is active, ship the skill under a package-owned runtime directory such as `skills/<name>/SKILL.md`. Register that directory through `PO_SKILL_SOURCES_SERVICE` inside an owning `cordis.inject(...)`, and return the contribution disposer.
26
- - For guidance that should appear only while Po Help is active, put it at `src/prompts/<name>/SKILL.md`, publish `src/prompts`, link it from the package's H1-led `llms.txt`, and register a Help descriptor through `PO_HELP_SERVICE`.
27
- - For repository content selected by domains, place the skill in the plugin or shared skill source configured by `domains.yaml`; do not hard-code that directory into the Skill package.
28
-
29
- Pi Help descriptors carry only `name` and `description`. The Help service resolves the owning package from the contribution's exact package `source` and `moduleUrl`, then wraps its `llms.txt`. Keep every index link inside the published package.
30
-
31
- On the server host, contribute the same Help skill through a named `resource/*.server.ts` route with `when: PO_HELP_WHEN` from `@agimon-ai/po-core/help`. Include its useful description and an absolute `path` resolved with `packageResourcePath(import.meta.url, ...)`; a reader alone does not make the skill discoverable in the agent prompt. Keep ordinary runtime skills under their existing conditions.
32
-
33
- Package-owned Help tools use ordinary named tool routes, not documentation descriptors. Server tools use the existing Help condition and execution guards. Pi tools also need `createPiHelpToolGate(packageName, toolNames)`: install its services and onStart in the owning root, then authorize each invocation with `gate.assertActive`. Portable `when` metadata alone does not enforce the Pi gate. The Help README and Log package's `diagnose_agent` contribution show the complete pattern. Bound diagnostics to the current session, omit secrets, and use existing approval mechanisms for repairs.
34
-
35
- ## Verification
36
-
37
- Validate the skill frontmatter, ensure every relative reference resolves, and test the packed package rather than relying on checkout-only files. For Cordis contributions, cover late provider arrival, provider replacement, withdrawal, and package shutdown. Test the actual prompt and tool surface before activation, while active, and after deactivation; stale calls must be rejected without removing ordinary capabilities. Use `/skills` or `SPC e s` in an interactive session to confirm the expected owner and invocation name. Do not add remote MCP exposure merely because a local Help contribution exists.