@lumyne/portable-skill-creator 0.0.0-stage → 0.2.2
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.
- package/INSTALL.md +16 -0
- package/LICENSE +9 -0
- package/README.md +40 -2
- package/UPDATE.md +27 -0
- package/bin/portable-skill-creator.mjs +55 -0
- package/capabilities.json +474 -0
- package/lib/core.mjs +218 -0
- package/package.json +45 -4
- package/scripts/check.mjs +19 -0
- package/scripts/sync-version.mjs +13 -0
- package/skills/portable-skill-creator/SKILL.md +219 -0
- package/skills/portable-skill-creator/adapters/codex.json +45 -0
- package/skills/portable-skill-creator/adapters/generic.json +70 -0
- package/skills/portable-skill-creator/adapters/sealseek.json +39 -0
- package/skills/portable-skill-creator/agents/openai.yaml +4 -0
- package/skills/portable-skill-creator/assets/node-ledger/ledger.py +271 -0
- package/skills/portable-skill-creator/assets/node-ledger/result.example.json +10 -0
- package/skills/portable-skill-creator/assets/node-ledger/workflow.example.json +37 -0
- package/skills/portable-skill-creator/assets/node-ledger/workflow.schema.json +82 -0
- package/skills/portable-skill-creator/capabilities.json +131 -0
- package/skills/portable-skill-creator/references/SCHEMA.md +14 -0
- package/skills/portable-skill-creator/references/capability-contract-protocol.md +74 -0
- package/skills/portable-skill-creator/references/capability-contract.schema.json +32 -0
- package/skills/portable-skill-creator/references/index.md +18 -0
- package/skills/portable-skill-creator/references/knowledge-compiled-skill-method.md +256 -0
- package/skills/portable-skill-creator/references/log.md +37 -0
- package/skills/portable-skill-creator/references/planning-artifact.md +49 -0
- package/skills/portable-skill-creator/references/platform-adapters.md +56 -0
- package/skills/portable-skill-creator/references/portability-policy.md +84 -0
- package/skills/portable-skill-creator/references/queries/create-or-update-skill.md +15 -0
- package/skills/portable-skill-creator/references/queries/design-node-observability.md +7 -0
- package/skills/portable-skill-creator/references/queries/port-skill-between-agents.md +9 -0
- package/skills/portable-skill-creator/references/queries/review-capability-gaps.md +5 -0
- package/skills/portable-skill-creator/references/queries/run-clean-regression.md +5 -0
- package/skills/portable-skill-creator/references/source-manifest.md +37 -0
- package/skills/portable-skill-creator/references/topics/business-flow-and-strategy-sources.md +37 -0
- package/skills/portable-skill-creator/references/topics/capability-abstraction.md +9 -0
- package/skills/portable-skill-creator/references/topics/modular-flow-and-strategy.md +11 -0
- package/skills/portable-skill-creator/references/topics/node-debugging-and-reruns.md +12 -0
- package/skills/portable-skill-creator/references/topics/node-run-ledger.md +49 -0
- package/skills/portable-skill-creator/references/topics/planning-and-confirmation.md +31 -0
- package/skills/portable-skill-creator/references/topics/skill-worldview.md +19 -0
- package/skills/portable-skill-creator/references/topics/standard-answer-and-regression.md +13 -0
- package/skills/portable-skill-creator/references/unified-skill-design-protocol.md +285 -0
- package/skills/portable-skill-creator/scripts/inspect_adapter_gaps.py +69 -0
- package/skills/portable-skill-creator/scripts/render-plan.mjs +295 -0
- package/skills/portable-skill-creator/scripts/sync-plan.mjs +129 -0
- package/skills/portable-skill-creator/scripts/validate_capability_contract.py +204 -0
- package/skills/portable-skill-creator/scripts/validate_knowledge_layer.py +217 -0
- package/skills/portable-skill-creator/scripts/validate_portability.py +196 -0
- package/skills/portable-skill-creator/skill-manifest.json +5 -0
package/INSTALL.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# 安装合同
|
|
2
|
+
|
|
3
|
+
用户入口:
|
|
4
|
+
|
|
5
|
+
> 请安装 @lumyne/portable-skill-creator。
|
|
6
|
+
|
|
7
|
+
当前 Agent 执行以下交接。npm 安装成功只完成引导包,完整安装还包括所选 Skill 与宿主发现。
|
|
8
|
+
|
|
9
|
+
1. 识别当前宿主的命令、文件操作能力及自己的实际 Skill 发现目录;解析出绝对、精确的目标 Skill 目录和合法 Agent 标识。缺失目录信息时请求该信息,不选取其他宿主目录。
|
|
10
|
+
2. 安装 npm 包并读取 `capabilities --json` 和 `skill source --json`。如 npm 禁用了脚本,仍执行相同流程。
|
|
11
|
+
3. 预检目标。从旧 `@petercjl/portable-skill-creator` 迁移时使用[显式迁移流程](UPDATE.md#从旧-npm-scope-迁移)。其他非本包托管目录保持原样。托管文件的本地改动需先核对和保留。
|
|
12
|
+
4. 按合同调用 `skill install --agent <agent> --target <absolute exact directory> --json`。完整复制 Skill、脚本、知识资源与 `.runtime` 中独立运行入口。所选目录外的其他 Agent 不参与同步。
|
|
13
|
+
5. 使用返回的目标专属入口核对 `version --json`、`doctor --json`、`skill status`。确认包、Skill 自述版本和回执一致,哈希 verified/current,物理资源与运行入口齐全。Node.js 22+、Python 3.10+ 为外部运行时;可用 `--python` 或 `PORTABLE_SKILL_PYTHON` 指定已验证的宿主管理 Python。
|
|
14
|
+
6. 当前 Agent 通过自己的目录/目录注册机制加载完整 SKILL.md;按精确逻辑名解析基础 `skill-creator` 并读取全部指令,确认发现有效。需要重开会话时明确报告 host discovery pending,不将 CLI 回执当作原生发现证据。
|
|
15
|
+
|
|
16
|
+
包命令只负责确定性资源管理与校验;创作判断、授权和实际产物验收由 Skill 与当前 Agent 承接。缺少宿主能力或基础 Skill 时返回明确依赖错误。
|
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 petercjl
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @lumyne/portable-skill-creator
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
面向具备所需能力的任意 Agent,创建、更新、审查和迁移可维护的 Skill。包含创作主线、按需读取的知识层、能力合同与确定性校验器。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
把下面的提示词发送给当前使用的 Agent:
|
|
8
|
+
|
|
9
|
+
> 请安装 @lumyne/portable-skill-creator。
|
|
10
|
+
|
|
11
|
+
当前 Agent 识别自己的 Skill 目录,完成包管理安装、资源同步与发现检查。所需环境为 Node.js 22+、Python 3.10+、文件与命令执行能力,以及宿主提供的基础 `skill-creator`。安装不授予其他服务权限。
|
|
12
|
+
|
|
13
|
+
## 更新
|
|
14
|
+
|
|
15
|
+
> 请更新 @lumyne/portable-skill-creator。
|
|
16
|
+
|
|
17
|
+
从旧版迁移时,发送「请把我当前 Agent 的 portable-skill-creator 从 @petercjl 迁移到 @lumyne」。迁移会校验旧安装并保留备份。详见 [更新合同](UPDATE.md#从旧-npm-scope-迁移)。
|
|
18
|
+
|
|
19
|
+
## 使用
|
|
20
|
+
|
|
21
|
+
> 请用 portable-skill-creator,把我提供的流程制作成可复用的 Skill。
|
|
22
|
+
|
|
23
|
+
也可提出审查、优化或迁移需求,并附上目标 Skill。每次新建或修改 Skill 都先交付文字规划和离线 HTML,把业务流程和逐步策略一一对应,等用户确认这版方案后再实施。自然语言、已有资料和可选脑图均可作为输入。
|
|
24
|
+
|
|
25
|
+
交付后,Skill 自带唯一的规划台账 `planning/index.html`,同页的「历史记录」汇总创建和每次修改。规划原稿、生成脚本和恢复快照随 Skill 一起交付。
|
|
26
|
+
|
|
27
|
+
生成的 Skill 按用户熟悉的业务流程图展示运行台账,保留业务节点、顺序和分支;节点直接呈现状态、简短结果与产物入口,展开后查看策略、证据、历史和技术明细。策略更新时在相同业务图中标明受影响节点及沿用结果。台账记录包括:输入与策略依据、输出文件、结论、验收和历史轮次。可以查询某个节点的真实结果,追溯其上游证据,并规划受影响节点的局部重跑。文件型工作流提供独立的 Python 台账生成模板,目标 Skill 负责业务判断和执行授权。
|
|
28
|
+
|
|
29
|
+
> 请检查这个 Skill 中“用户需求”节点的输出、结论和依据,并说明需要重跑哪些节点。
|
|
30
|
+
|
|
31
|
+
普通任务入口会限时检查稳定版更新,每日缓存;更新提示由 Agent 展示,实际安装需要明确授权。
|
|
32
|
+
|
|
33
|
+
完整安装与恢复流程见 [INSTALL.md](INSTALL.md) 和 [UPDATE.md](UPDATE.md)。包提供物理独立的资源与运行入口;只操作当前 Agent 选定的目录。
|
|
34
|
+
|
|
35
|
+
## 兼容性与验证
|
|
36
|
+
|
|
37
|
+
调用资格取决于能力合同。基础 Skill Creator 由当前宿主动态提供;本包不复制它。通用安装接口支持合法 Agent 标识和显式目标目录。macOS 本机与跨平台 CI 证据分别记录在仓库 `docs/verification.md`;SealSeek 原生映射仍待验证,其他宿主需自行完成能力映射与发现检查。包级测试不等于所有宿主已验证。
|
|
38
|
+
|
|
39
|
+
## 开发者入口
|
|
40
|
+
|
|
41
|
+
运行 `portable-skill-creator capabilities --json` 读取版本化命令合同,`skill source --json` 获取规范资源路径。自动更新检测可用 `PORTABLE_SKILL_UPDATE_CHECK=0` 关闭;它不会自动安装。源码是本独立包的唯一维护来源。历史工作环境套件中的副本由其所有者另行迁移。
|
package/UPDATE.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# 更新合同
|
|
2
|
+
|
|
3
|
+
用户入口:
|
|
4
|
+
|
|
5
|
+
> 请更新 @lumyne/portable-skill-creator。
|
|
6
|
+
|
|
7
|
+
当前 Agent 先从本次明确选定的 Skill 目录读取托管回执,核对 `skill status`,并确认目标、所有权与本地改动。完整匹配的当前回执可用于只读验证,宿主发现独立核对。
|
|
8
|
+
|
|
9
|
+
授权更新后,使用所选目标的 `.runtime/bin/portable-skill-creator.mjs` 入口,按 `capabilities --json` 中的合同调用 `update install`,携带合法 Agent、绝对精确目标和 `--yes`。在任何包替换前解析目标,保护编辑,创建完整恢复快照。查询稳定 latest,获取精确版本,校验包身份后同步所选目标。版本相同仍修复缺失文件、旧回执或旧 Skill;当前一致时保持只读 no-op。用户自己的 UI 元数据与非托管文件被保留。
|
|
10
|
+
|
|
11
|
+
返回的目标专属运行入口代表已激活的新版本。全局 npm 包是引导入口,后续业务和更新使用目标自有入口,不依赖引导包继续存在。若希望更新全局引导包,当前 Agent在上述预检后安装相同精确版本,再复核所选目标。
|
|
12
|
+
|
|
13
|
+
注册/刷新由当前宿主完成。核对 CLI、Skill manifest、回执版本与哈希后,再加载新 Skill;其他 Agent 保持各自安装。
|
|
14
|
+
|
|
15
|
+
## 恢复
|
|
16
|
+
|
|
17
|
+
### 从旧 npm scope 迁移
|
|
18
|
+
|
|
19
|
+
> 请把我当前 Agent 的 portable-skill-creator 从 @petercjl 迁移到 @lumyne。
|
|
20
|
+
|
|
21
|
+
由当前 Agent 安装新包的精确版本,核对目标目录中的旧包回执及 Agent 标识。用新包入口执行 `skill migrate --from-package @petercjl/portable-skill-creator --agent <原回执中的 Agent> --target <原 Skill 目录> --json`。命令验证原有归属和本地改动,将完整恢复副本保存到宿主发现目录之外,再替换相同目标。检查 `migratedFrom`、备份和目标自有入口的当前回执。旧包的自动更新仍查询原 scope,迁移由新包显式执行。未迁移的其他宿主继续按原配置使用。
|
|
22
|
+
|
|
23
|
+
### 常规更新恢复
|
|
24
|
+
|
|
25
|
+
离线、超时或无效注册表响应保留现有安装。更新获取后同步失败时,错误回执给出 transaction 与 candidateEntry;读取 transaction/operation.json 和实际目标状态,复用该候选入口执行 `skill update`,避免再次获取。完整原始快照位于 transaction/before 或安装回执的 backup/skill。迁移失败、编辑冲突和锁竞争保持未完成状态,先检查证据再恢复。恢复备份或删除锁前核实所有权与运行任务。回滚时保留当前目录的新备份,再以验证过的旧快照恢复,并复核状态。
|
|
26
|
+
|
|
27
|
+
检测策略为建议更新、稳定 latest、每日缓存和 1.5 秒网络超时;缓存可通过 `--state-dir` 放在宿主管理位置。`update status` 公开策略,`PORTABLE_SKILL_UPDATE_CHECK=0` 关闭检测。当前版本未提供自动安装模式。
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {readFileSync} from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import * as c from '../lib/core.mjs';
|
|
5
|
+
|
|
6
|
+
const contracts={
|
|
7
|
+
'version':[], 'capabilities':[], 'help':[], 'install-notice':[],
|
|
8
|
+
'doctor':['python'], 'prepare':['python','state-dir'],
|
|
9
|
+
'validate':['path','profile','mode','python','state-dir'],
|
|
10
|
+
'skill source':['name'], 'skill status':['agent','target'],
|
|
11
|
+
'skill install':['agent','target'], 'skill update':['agent','target'], 'skill migrate':['agent','target','from-package'],
|
|
12
|
+
'update check':['state-dir'], 'update status':['state-dir'],
|
|
13
|
+
'update install':['agent','target','yes','state-dir']
|
|
14
|
+
};
|
|
15
|
+
try {
|
|
16
|
+
const args=process.argv.slice(2);let words=[],o={};
|
|
17
|
+
while(args.length) {
|
|
18
|
+
const a=args.shift();
|
|
19
|
+
if(a==='--version') words.push('version');
|
|
20
|
+
else if(a.startsWith('--')) {
|
|
21
|
+
const k=a.slice(2);
|
|
22
|
+
if(Object.hasOwn(o,k)) c.fail('INVALID_ARGUMENT','Duplicate option: '+a);
|
|
23
|
+
if(['json','yes','help'].includes(k)) o[k]=true;
|
|
24
|
+
else {if(!args.length||args[0].startsWith('--')) c.fail('INVALID_ARGUMENT','Missing option value: '+a);o[k]=args.shift();}
|
|
25
|
+
} else words.push(a);
|
|
26
|
+
}
|
|
27
|
+
let cmd=words.join(' ')||'help';if(cmd==='--version') cmd='version';
|
|
28
|
+
if(!Object.hasOwn(contracts,cmd)) c.fail('INVALID_ARGUMENT','Unknown command: '+cmd);
|
|
29
|
+
for(const k of Object.keys(o)) if(!['json','help',...contracts[cmd]].includes(k)) c.fail('INVALID_ARGUMENT','Unsupported option --'+k);
|
|
30
|
+
o.stateDir=o['state-dir'];
|
|
31
|
+
const manifest=JSON.parse(readFileSync(path.join(c.root,'capabilities.json')));
|
|
32
|
+
let result;
|
|
33
|
+
if(cmd==='help'||o.help) result={...manifest,commands:manifest.commandContracts,options:manifest.commandContracts[cmd]?.options??{},guidance:'The current Agent resolves its exact Skill directory and passes --agent <valid-name> --target <absolute-directory>. See INSTALL.md and UPDATE.md.'};
|
|
34
|
+
else if(cmd==='install-notice') result={ok:true,partial:true,message:'CLI bootstrap installed. The current Agent must read INSTALL.md, resolve skill source, synchronize its own explicit Skill target and verify discovery. npm success alone is incomplete.'};
|
|
35
|
+
else if(cmd==='version') result={ok:true,package:c.pkg.name,version:c.pkg.version};
|
|
36
|
+
else if(cmd==='capabilities') result=manifest;
|
|
37
|
+
else if(cmd==='skill source') {
|
|
38
|
+
if(o.name&&o.name!==c.name) c.fail('SKILL_NOT_FOUND','Unknown logical Skill');
|
|
39
|
+
result={...manifest,ok:true,name:c.name,package:c.pkg.name,version:c.pkg.version,path:c.source,complete:true,skills:[{ok:true,name:c.name,package:c.pkg.name,version:c.pkg.version,path:c.source}]};
|
|
40
|
+
} else if(cmd==='skill status') result=c.status(o);
|
|
41
|
+
else if(cmd==='skill migrate') {
|
|
42
|
+
if(!o['from-package']) c.fail('INVALID_ARGUMENT','Supply the declared --from-package for scope migration');
|
|
43
|
+
result=c.install(o);
|
|
44
|
+
}
|
|
45
|
+
else if(cmd==='skill install'||cmd==='skill update') result=c.install(o);
|
|
46
|
+
else if(cmd==='doctor') result=c.doctor(o);
|
|
47
|
+
else if(cmd==='prepare'||cmd==='validate') {
|
|
48
|
+
const update=await c.checkUpdate(o,true);
|
|
49
|
+
result={...(cmd==='prepare'?c.doctor(o):c.validate(o)),update};
|
|
50
|
+
} else if(cmd==='update check') result=await c.checkUpdate(o);
|
|
51
|
+
else if(cmd==='update status') result={ok:true,automaticDetection:process.env.PORTABLE_SKILL_UPDATE_CHECK!=='0',automaticInstall:false,channel:'latest',ttlHours:24,timeoutMs:1500,disable:'PORTABLE_SKILL_UPDATE_CHECK=0'};
|
|
52
|
+
else if(cmd==='update install') result=await c.update(o);
|
|
53
|
+
process.stdout.write(o.json||cmd!=='version'?JSON.stringify(result,null,2)+'\n':c.pkg.version+'\n');
|
|
54
|
+
if(result.ok===false) process.exitCode=1;
|
|
55
|
+
} catch(e) {process.stderr.write(JSON.stringify({ok:false,error:{code:e.code??'INTERNAL_ERROR',message:e.message,...e.details}},null,2)+'\n');process.exitCode=1;}
|
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ok": true,
|
|
3
|
+
"schemaVersion": 1,
|
|
4
|
+
"package": "@lumyne/portable-skill-creator",
|
|
5
|
+
"version": "0.2.2",
|
|
6
|
+
"skills": [
|
|
7
|
+
"portable-skill-creator"
|
|
8
|
+
],
|
|
9
|
+
"agentEligibility": "capability-based",
|
|
10
|
+
"requiredCapabilities": [
|
|
11
|
+
"filesystem.read-write",
|
|
12
|
+
"command.execute",
|
|
13
|
+
"agent.skill.base-creator.resolve"
|
|
14
|
+
],
|
|
15
|
+
"runtime": {
|
|
16
|
+
"node": ">=22",
|
|
17
|
+
"python": ">=3.10",
|
|
18
|
+
"pythonPackages": []
|
|
19
|
+
},
|
|
20
|
+
"adapters": {
|
|
21
|
+
"generic": {
|
|
22
|
+
"status": "implemented",
|
|
23
|
+
"destination": "caller-resolved explicit exact directory"
|
|
24
|
+
},
|
|
25
|
+
"codex": {
|
|
26
|
+
"status": "implemented"
|
|
27
|
+
},
|
|
28
|
+
"sealseek": {
|
|
29
|
+
"status": "unresolved"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"commandContracts": {
|
|
33
|
+
"version": {
|
|
34
|
+
"options": {
|
|
35
|
+
"--json": {
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"--help": {
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"sideEffects": "none"
|
|
43
|
+
},
|
|
44
|
+
"capabilities": {
|
|
45
|
+
"options": {
|
|
46
|
+
"--json": {
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
49
|
+
"--help": {
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"sideEffects": "none"
|
|
54
|
+
},
|
|
55
|
+
"help": {
|
|
56
|
+
"options": {
|
|
57
|
+
"--json": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"--help": {
|
|
61
|
+
"type": "boolean"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"sideEffects": "none"
|
|
65
|
+
},
|
|
66
|
+
"install-notice": {
|
|
67
|
+
"options": {
|
|
68
|
+
"--json": {
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
"--help": {
|
|
72
|
+
"type": "boolean"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"sideEffects": "none"
|
|
76
|
+
},
|
|
77
|
+
"doctor": {
|
|
78
|
+
"options": {
|
|
79
|
+
"--json": {
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
},
|
|
82
|
+
"--help": {
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
"--python": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"sideEffects": "none"
|
|
90
|
+
},
|
|
91
|
+
"prepare": {
|
|
92
|
+
"options": {
|
|
93
|
+
"--json": {
|
|
94
|
+
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
"--help": {
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
},
|
|
99
|
+
"--python": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"--state-dir": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"sideEffects": "local-write"
|
|
107
|
+
},
|
|
108
|
+
"validate": {
|
|
109
|
+
"options": {
|
|
110
|
+
"--json": {
|
|
111
|
+
"type": "boolean"
|
|
112
|
+
},
|
|
113
|
+
"--help": {
|
|
114
|
+
"type": "boolean"
|
|
115
|
+
},
|
|
116
|
+
"--path": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"--profile": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"--mode": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"--python": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
},
|
|
128
|
+
"--state-dir": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"sideEffects": "local-write"
|
|
133
|
+
},
|
|
134
|
+
"skill source": {
|
|
135
|
+
"options": {
|
|
136
|
+
"--json": {
|
|
137
|
+
"type": "boolean"
|
|
138
|
+
},
|
|
139
|
+
"--help": {
|
|
140
|
+
"type": "boolean"
|
|
141
|
+
},
|
|
142
|
+
"--name": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"sideEffects": "none"
|
|
147
|
+
},
|
|
148
|
+
"skill status": {
|
|
149
|
+
"options": {
|
|
150
|
+
"--json": {
|
|
151
|
+
"type": "boolean"
|
|
152
|
+
},
|
|
153
|
+
"--help": {
|
|
154
|
+
"type": "boolean"
|
|
155
|
+
},
|
|
156
|
+
"--agent": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"--target": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"sideEffects": "none"
|
|
164
|
+
},
|
|
165
|
+
"skill install": {
|
|
166
|
+
"options": {
|
|
167
|
+
"--json": {
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
170
|
+
"--help": {
|
|
171
|
+
"type": "boolean"
|
|
172
|
+
},
|
|
173
|
+
"--agent": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"--target": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"sideEffects": "local-write"
|
|
181
|
+
},
|
|
182
|
+
"skill update": {
|
|
183
|
+
"options": {
|
|
184
|
+
"--json": {
|
|
185
|
+
"type": "boolean"
|
|
186
|
+
},
|
|
187
|
+
"--help": {
|
|
188
|
+
"type": "boolean"
|
|
189
|
+
},
|
|
190
|
+
"--agent": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"--target": {
|
|
194
|
+
"type": "string"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"sideEffects": "local-write"
|
|
198
|
+
},
|
|
199
|
+
"update check": {
|
|
200
|
+
"options": {
|
|
201
|
+
"--json": {
|
|
202
|
+
"type": "boolean"
|
|
203
|
+
},
|
|
204
|
+
"--help": {
|
|
205
|
+
"type": "boolean"
|
|
206
|
+
},
|
|
207
|
+
"--state-dir": {
|
|
208
|
+
"type": "string"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"sideEffects": "local-write"
|
|
212
|
+
},
|
|
213
|
+
"update status": {
|
|
214
|
+
"options": {
|
|
215
|
+
"--json": {
|
|
216
|
+
"type": "boolean"
|
|
217
|
+
},
|
|
218
|
+
"--help": {
|
|
219
|
+
"type": "boolean"
|
|
220
|
+
},
|
|
221
|
+
"--state-dir": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"sideEffects": "none"
|
|
226
|
+
},
|
|
227
|
+
"update install": {
|
|
228
|
+
"options": {
|
|
229
|
+
"--json": {
|
|
230
|
+
"type": "boolean"
|
|
231
|
+
},
|
|
232
|
+
"--help": {
|
|
233
|
+
"type": "boolean"
|
|
234
|
+
},
|
|
235
|
+
"--agent": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
},
|
|
238
|
+
"--target": {
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
241
|
+
"--yes": {
|
|
242
|
+
"type": "boolean"
|
|
243
|
+
},
|
|
244
|
+
"--state-dir": {
|
|
245
|
+
"type": "string"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"sideEffects": "package-and-skill-update"
|
|
249
|
+
},
|
|
250
|
+
"skill migrate": {
|
|
251
|
+
"options": {
|
|
252
|
+
"--json": {
|
|
253
|
+
"type": "boolean"
|
|
254
|
+
},
|
|
255
|
+
"--help": {
|
|
256
|
+
"type": "boolean"
|
|
257
|
+
},
|
|
258
|
+
"--agent": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"--target": {
|
|
262
|
+
"type": "string"
|
|
263
|
+
},
|
|
264
|
+
"--from-package": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"enum": [
|
|
267
|
+
"@petercjl/portable-skill-creator"
|
|
268
|
+
],
|
|
269
|
+
"required": true
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"sideEffects": "local-write"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"maintenanceContract": {
|
|
276
|
+
"schemaVersion": 1,
|
|
277
|
+
"source": {
|
|
278
|
+
"name": {
|
|
279
|
+
"field": "name",
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"package": {
|
|
283
|
+
"field": "package",
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"version": {
|
|
287
|
+
"field": "version",
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"path": {
|
|
291
|
+
"field": "path",
|
|
292
|
+
"type": "string"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"status": {
|
|
296
|
+
"name": {
|
|
297
|
+
"field": "name",
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
"package": {
|
|
301
|
+
"field": "package",
|
|
302
|
+
"type": "string"
|
|
303
|
+
},
|
|
304
|
+
"version": {
|
|
305
|
+
"field": "version",
|
|
306
|
+
"type": "string"
|
|
307
|
+
},
|
|
308
|
+
"target": {
|
|
309
|
+
"field": "target",
|
|
310
|
+
"type": "string"
|
|
311
|
+
},
|
|
312
|
+
"installed": {
|
|
313
|
+
"field": "installed",
|
|
314
|
+
"type": "boolean"
|
|
315
|
+
},
|
|
316
|
+
"managed": {
|
|
317
|
+
"field": "managed",
|
|
318
|
+
"type": "boolean"
|
|
319
|
+
},
|
|
320
|
+
"current": {
|
|
321
|
+
"field": "current",
|
|
322
|
+
"type": "boolean"
|
|
323
|
+
},
|
|
324
|
+
"edited": {
|
|
325
|
+
"field": "edited",
|
|
326
|
+
"type": "string[]"
|
|
327
|
+
},
|
|
328
|
+
"verification": {
|
|
329
|
+
"field": "verification",
|
|
330
|
+
"type": "object"
|
|
331
|
+
},
|
|
332
|
+
"recovery": {
|
|
333
|
+
"field": "recovery",
|
|
334
|
+
"type": "object"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"targetOptions": {
|
|
338
|
+
"--target": {
|
|
339
|
+
"kind": "skill-directory"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"agentEligibility": "valid-name-with-generic-fallback",
|
|
343
|
+
"hostDiscoveryAuthority": "host"
|
|
344
|
+
},
|
|
345
|
+
"discoveryContract": {
|
|
346
|
+
"schemaVersion": 1,
|
|
347
|
+
"entryPoints": [
|
|
348
|
+
{
|
|
349
|
+
"argv": [
|
|
350
|
+
"capabilities",
|
|
351
|
+
"--json"
|
|
352
|
+
],
|
|
353
|
+
"result": "manifest"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"commandsField": "commandContracts",
|
|
357
|
+
"version": {
|
|
358
|
+
"command": "version",
|
|
359
|
+
"argv": [
|
|
360
|
+
"version",
|
|
361
|
+
"--json"
|
|
362
|
+
],
|
|
363
|
+
"fields": {
|
|
364
|
+
"package": {
|
|
365
|
+
"field": "package",
|
|
366
|
+
"type": "string"
|
|
367
|
+
},
|
|
368
|
+
"version": {
|
|
369
|
+
"field": "version",
|
|
370
|
+
"type": "string"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"skillCollection": {
|
|
375
|
+
"namesField": "skills",
|
|
376
|
+
"default": "portable-skill-creator",
|
|
377
|
+
"selector": {
|
|
378
|
+
"option": "--name",
|
|
379
|
+
"type": "string"
|
|
380
|
+
},
|
|
381
|
+
"enumeration": {
|
|
382
|
+
"argv": [
|
|
383
|
+
"skill",
|
|
384
|
+
"source",
|
|
385
|
+
"--json"
|
|
386
|
+
],
|
|
387
|
+
"itemsField": "skills",
|
|
388
|
+
"completeField": "complete"
|
|
389
|
+
},
|
|
390
|
+
"namedSource": [
|
|
391
|
+
"skill",
|
|
392
|
+
"source",
|
|
393
|
+
"--name",
|
|
394
|
+
"{skill}",
|
|
395
|
+
"--json"
|
|
396
|
+
]
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"installationLifecycle": {
|
|
400
|
+
"skillRequired": true,
|
|
401
|
+
"updateRequiresSkillSync": true,
|
|
402
|
+
"required_components": [
|
|
403
|
+
"cli",
|
|
404
|
+
"skill"
|
|
405
|
+
],
|
|
406
|
+
"installGuide": "INSTALL.md",
|
|
407
|
+
"updateGuide": "UPDATE.md",
|
|
408
|
+
"source": [
|
|
409
|
+
"skill",
|
|
410
|
+
"source",
|
|
411
|
+
"--json"
|
|
412
|
+
],
|
|
413
|
+
"install": "skill install --agent {agent} --target {target} --json",
|
|
414
|
+
"update": "update install --agent {agent} --target {target} --yes --json",
|
|
415
|
+
"verification": "skill status --agent {agent} --target {target} --json",
|
|
416
|
+
"hostDiscoveryAuthority": "host",
|
|
417
|
+
"physicalIsolation": true,
|
|
418
|
+
"runtimeEntry": "{target}/.runtime/bin/portable-skill-creator.mjs",
|
|
419
|
+
"agentNeutral": true,
|
|
420
|
+
"targetRequired": true,
|
|
421
|
+
"hostRegistrationRequired": true,
|
|
422
|
+
"installationMode": "copy",
|
|
423
|
+
"sharedLinksAllowed": false,
|
|
424
|
+
"isolatedRuntimeRequired": true,
|
|
425
|
+
"scopeMigration": {
|
|
426
|
+
"fromPackage": "@petercjl/portable-skill-creator",
|
|
427
|
+
"command": "skill migrate --from-package @petercjl/portable-skill-creator --agent {agent} --target {target} --json",
|
|
428
|
+
"preservesBackup": true
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"automaticUpdates": {
|
|
432
|
+
"trigger": "ordinary task entry prepare and validate",
|
|
433
|
+
"channel": "latest",
|
|
434
|
+
"ttlHours": 24,
|
|
435
|
+
"timeoutMs": 1500,
|
|
436
|
+
"optOut": "PORTABLE_SKILL_UPDATE_CHECK=0",
|
|
437
|
+
"automaticInstall": false,
|
|
438
|
+
"policy": "advisory-only; explicit install authorization required",
|
|
439
|
+
"enabledByDefault": true,
|
|
440
|
+
"intervalHours": 24,
|
|
441
|
+
"configuration": "update status --json; optional explicit --state-dir",
|
|
442
|
+
"disable": "PORTABLE_SKILL_UPDATE_CHECK=0",
|
|
443
|
+
"recovery": "offline backoff keeps installed state; malformed cache is preserved",
|
|
444
|
+
"defaultMode": "notify"
|
|
445
|
+
},
|
|
446
|
+
"historicalUpdater": {
|
|
447
|
+
"status": "explicit-scope-migration",
|
|
448
|
+
"previousPublishedVersions": [
|
|
449
|
+
"0.1.0",
|
|
450
|
+
"0.2.0",
|
|
451
|
+
"0.2.1"
|
|
452
|
+
],
|
|
453
|
+
"previousPackage": "@petercjl/portable-skill-creator",
|
|
454
|
+
"automaticScopeSwitch": false,
|
|
455
|
+
"handoff": "Install the new package explicitly, then use its skill migrate command for the original managed target."
|
|
456
|
+
},
|
|
457
|
+
"generationAssets": {
|
|
458
|
+
"nodeLedger": {
|
|
459
|
+
"path": "skills/portable-skill-creator/assets/node-ledger",
|
|
460
|
+
"runtime": "Python >=3.10 standard library",
|
|
461
|
+
"scope": "target-owned file-based DAG runs",
|
|
462
|
+
"operations": [
|
|
463
|
+
"init",
|
|
464
|
+
"start",
|
|
465
|
+
"finish",
|
|
466
|
+
"inspect",
|
|
467
|
+
"plan",
|
|
468
|
+
"invalidate",
|
|
469
|
+
"revise"
|
|
470
|
+
],
|
|
471
|
+
"schemaVersion": 1
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|