@yottameta/yotta-skills-plugin 0.19.6 → 0.19.10

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.
@@ -12,7 +12,7 @@
12
12
  "authentication": "ON_INSTALL"
13
13
  },
14
14
  "category": "Developer Tools",
15
- "version": "0.19.6",
15
+ "version": "0.19.10",
16
16
  "description": "YuanGe (元阁) - orchestration routing, inventory, and one-command installer for the YottaMeta skill family (zero dependencies, Node.js only).",
17
17
  "interface": {
18
18
  "displayName": "元阁 yotta-skills",
@@ -12,7 +12,7 @@
12
12
  "authentication": "ON_INSTALL"
13
13
  },
14
14
  "category": "Developer Tools",
15
- "version": "0.19.6",
15
+ "version": "0.19.10",
16
16
  "description": "YuanGe (元阁) - orchestration routing, inventory, and one-command installer for the YottaMeta skill family (zero dependencies, Node.js only).",
17
17
  "interface": {
18
18
  "displayName": "元阁 yotta-skills",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yottameta/yotta-skills-plugin",
3
- "version": "0.19.6",
3
+ "version": "0.19.10",
4
4
  "description": "YuanGe (元阁) — orchestration and routing for the YottaMeta skill family, packaged as a YottaMeta Agent Plugin.",
5
5
  "license": "MIT",
6
6
  "keywords": [
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "yotta-skills",
4
- "version": "0.19.6",
4
+ "version": "0.19.10",
5
5
  "description": "YuanGe (元阁) - orchestration routing, inventory, and one-command installer for the YottaMeta skill family (zero dependencies, Node.js only).",
6
6
  "author": {
7
7
  "name": "YottaMeta",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: yotta-skills
3
- version: 0.19.6
3
+ version: 0.19.10
4
4
  description: 元阁 -- 元阁全家技能的总编排策划 + 编排路由 + 一键安装器 + 技能盘点 + 运行时 hook 适配。路由层:--route / route_request 按需求摘要给出候选组合、调用顺序、角色、置信度、依据、已装/缺失状态与安装命令,只建议不自动安装;非元阁家族已装技能按 frontmatter description 机械匹配作并列候选(标注来源与未扫描状态,只读不自动调用);策划层:按场景给出「该组合哪几个元技能、组合强在哪、怎么组合使用(安装与调用均由用户确认后执行)」;安装层:一条命令把 YottaMeta 已发布的全部 yotta-* 技能装进指定智能体或目录(默认 --pin 锁死清单精确版本);盘点层:--inventory / --reindex 扫描本机已装技能生成/更新注册表,新装技能自动被发现(install/update 后自动 re-index,会话开工只建议跑本地 --reindex;更新检查走手动 --check 或后台 --check --scheduled);运行时适配层:hook capabilities / evaluate / bind / unbind 按宿主能力矩阵执行六个统一事件并留证降级,元信 before_install 已接入安装管线;自包含零依赖,不依赖任何元技能;MCP 按需加载且需用户确认后写入配置(可选:list_installed_skills/describe_skill/reindex/route_request,不常驻,未加载降级 CLI)。支持 --list 清单 / --route 路由 / install / update / update --check(只读检查)/ update --check --scheduled(后台周检)/ update --auto(家族自动更新)/ hook 适配 / --inventory / --reindex / --dry-run 预览 / --pin(默认)/ --range。触发:需要批量安装或更新元阁全家技能、按场景组合多个元技能、路由或判断该用哪些技能、盘点或查看本机已装技能、重扫技能注册表、给某个智能体或目录一次性铺齐 yotta-* 技能、评估宿主 hook 能力、预览安装清单、锁版本安装、或用户说 元阁/装全家/一次装齐/yotta-skills/install-all/更新全家/检查更新/自动更新/hook 适配/该用哪个技能/路由技能/盘点技能/查看已装技能 等。边界(Do NOT trigger):只做「组合策划 + 静态路由建议 + 清单 + 下载 + 落位 + 汇总 + 盘点 + re-index + hook 适配」,不含技能本体、不做技能内容开发、不 -g 污染全局、不自动安装缺失技能、不静默写宿主配置或全局记忆;家族安装先自举或调用元信装前门禁,DO NOT INSTALL 阻断,非元阁家族包不自动安装。
5
5
  license: MIT
6
6
  metadata:
@@ -191,6 +191,7 @@ npx -y @yottameta/yotta-skills hook unbind <binding-id>
191
191
 
192
192
  元阁自带技能扫描核心(零依赖,不依赖任何元技能):扫描各智能体技能目录,解析
193
193
  `SKILL.md` frontmatter,生成/更新本地注册表 `~/.yottaskills/registry.json`,数据不出本机。
194
+ 多 agent 宿主可用 `YOTTA_SKILLS_REGISTRY_FILE` 为每个 agent 指定独立注册表文件。
194
195
  适合「装了哪些技能、各干嘛、从哪来」的快速盘点。
195
196
 
196
197
  ```bash
@@ -301,12 +302,16 @@ npx -y @yottameta/yotta-skills --route "检查代码质量,别糊弄" --json
301
302
  "mcpServers": {
302
303
  "yotta-skills": {
303
304
  "command": "python",
304
- "args": ["<技能目录>/scripts/yotta-skills-mcp.py"]
305
+ "args": ["<技能目录>/scripts/yotta-skills-mcp.py"],
306
+ "env": {
307
+ "YOTTA_SKILLS_REGISTRY_FILE": "<配置目录>/yottaskills/<agentId>/registry.json"
308
+ }
305
309
  }
306
310
  }
307
311
  }
308
312
  ```
309
313
  > `<技能目录>` = 本技能实际安装目录,**不要写死盘符路径**;Windows 用 `python`,Linux/macOS 用 `python3`。
314
+ > 单 agent 环境可不设 `YOTTA_SKILLS_REGISTRY_FILE`;同一宿主内多 agent 共用 MCP 时,应分别配置独立路径,避免注册表状态互相覆盖。
310
315
  3. **提醒用户**:改 `mcpServers` 后多数客户端需**重启 / 重载一次** MCP server 才生效;加载后应看到
311
316
  `list_installed_skills` / `describe_skill` / `reindex` / `route_request` 四个工具。
312
317
  4. **降级兜底(重要)**:若客户端未暴露 MCP 工具 / 用户拒绝改配置 / 无法改配置 / server 未加载,**自动降级 CLI**
@@ -37,7 +37,7 @@ const hookAdapterLib = require('../lib/hook-adapter');
37
37
  const { createInstaller, isSafeTarEntry } = require('../lib/install-pipeline');
38
38
 
39
39
  const PKG_ROOT = path.join(__dirname, '..');
40
- let VERSION = '0.19.6';
40
+ let VERSION = '0.19.10';
41
41
  try { VERSION = require(path.join(PKG_ROOT, 'package.json')).version; } catch (_) { /* keep fallback */ }
42
42
 
43
43
  function loadManifest() {
@@ -1113,7 +1113,7 @@ function printHelp() {
1113
1113
  out(' -v, --version 版本');
1114
1114
  out('');
1115
1115
  out('支持智能体: ' + Object.keys(AGENT_DIRS).join(', '));
1116
- out('依赖: Node.js 18+ / npm / 系统 tar;环境变量 YOTTA_SKILLS_NPM / YOTTA_SKILLS_PYTHON / YOTTA_SKILLS_VERIFY / YOTTA_SKILLS_NPM_FLAGS 可覆盖。');
1116
+ out('依赖: Node.js 18+ / npm / 系统 tar;环境变量 YOTTA_SKILLS_NPM / YOTTA_SKILLS_PYTHON / YOTTA_SKILLS_VERIFY / YOTTA_SKILLS_NPM_FLAGS / YOTTA_SKILLS_REGISTRY_FILE 可覆盖。');
1117
1117
  }
1118
1118
 
1119
1119
 
@@ -1,31 +1,31 @@
1
1
  # 全家技能清单(22 个)
2
2
 
3
3
  > 机器权威源:`skills.json`(随包分发);本文件为人工可读副本,新技能发布后须同步更新
4
- > `skills.json`(登记表为内部台账,不随包分发)。清单更新日期:2026-09-14。
4
+ > `skills.json`(登记表为内部台账,不随包分发)。清单更新日期:2026-09-19。
5
5
 
6
6
  | slug | 中文名 | npm 包 | 清单版本 | 说明 |
7
7
  |---|---|---|---|---|
8
8
  | `yotta-anti-shallow` | 元谨 | `@yottameta/yotta-anti-shallow` | 1.4.0 | 防 AI 敷衍规则引擎(深入分析/根因追溯时激活) |
9
- | `yotta-code-quality` | 元质 | `@yottameta/yotta-code-quality` | 0.4.0 | 结对式代码质量评审(十二类腐化风险 + 0-100 健康分) |
9
+ | `yotta-code-quality` | 元质 | `@yottameta/yotta-code-quality` | 0.4.1 | 结对式代码质量评审(十二类腐化风险 + 0-100 健康分) |
10
10
  | `yotta-workflow` | 元序 | `@yottameta/yotta-workflow` | 0.4.1 | 跨会话/跨项目通用工作流协议(状态就近存) |
11
- | `yotta-memory` | 元忆 | `@yottameta/yotta-memory` | 0.13.2 | 有权限边界的文件式智能体记忆(FACT/PREF/BOUND/COMMIT) |
12
- | `yotta-learn` | 元习 | `@yottameta/yotta-learn` | 0.2.0 | 学习沉淀 CLI:错误/纠正/洞见沉淀为 .learnings/ 条目 |
11
+ | `yotta-memory` | 元忆 | `@yottameta/yotta-memory` | 0.16.0 | 有权限边界的文件式智能体记忆(FACT/PREF/BOUND/COMMIT) |
12
+ | `yotta-learn` | 元习 | `@yottameta/yotta-learn` | 0.2.1 | 学习沉淀 CLI:错误/纠正/洞见沉淀为 .learnings/ 条目 |
13
13
  | `yotta-security-audit` | 元安 | `@yottameta/yotta-security-audit` | 0.2.3 | 安全扫描引擎:13 类检测器 + 系统安全基线 |
14
14
  | `yotta-vetter` | 元审 | `@yottameta/yotta-vetter` | 0.2.3 | 安全审查协议:四阶段 review + SAFE TO INSTALL 判定 |
15
15
  | `yotta-recon` | 元析 | `@yottameta/yotta-recon` | 0.1.6 | 跨智能体网络侦察:零依赖端口/服务/版本指纹探测 |
16
16
  | `yotta-guardian` | 元盾 | `@yottameta/yotta-guardian` | 0.1.3 | 跨智能体危险调用拦截护栏:确定性规则 + 可插拔意图验证 |
17
17
  | `yotta-humanize` | 元真 | `@yottameta/yotta-humanize` | 0.2.0 | 去 AI 味中文写作编辑:检测器引擎 |
18
18
  | `yotta-logs` | 元史 | `@yottameta/yotta-logs` | 0.3.1 | 跨智能体历史会话 / 记忆日志检索 |
19
- | `yotta-security-testing` | 元测 | `@yottameta/yotta-security-testing` | 0.3.0 | 有纪律的 AI 安全测试方法论 + Scope Guard 五道防线 |
19
+ | `yotta-security-testing` | 元测 | `@yottameta/yotta-security-testing` | 0.3.1 | 有纪律的 AI 安全测试方法论 + Scope Guard 五道防线 |
20
20
  | `yotta-agent-hardening` | 元安全 | `@yottameta/yotta-agent-hardening` | 0.2.4 | 防御向 AI 智能体自身安全加固(配置面静态扫描三域) |
21
21
  | `yotta-skill-creator` | 元造 | `@yottameta/yotta-skill-creator` | 0.1.2 | 工坊「造」:端到端造技能脚手架 |
22
- | `yotta-publish-guard` | 元守 | `@yottameta/yotta-publish-guard` | 0.4.1 | 工坊「守」:发布前守门(版本四件对齐 + 三通道查重) |
22
+ | `yotta-publish-guard` | 元守 | `@yottameta/yotta-publish-guard` | 0.4.2 | 工坊「守」:发布前守门(版本四件对齐 + 三通道查重) |
23
23
  | `yotta-logwatch` | 元察 | `@yottameta/yotta-logwatch` | 0.2.8 | 安全日志分析检测引擎(攻击链识别/告警聚合) |
24
24
  | `yotta-intel` | 元情 | `@yottameta/yotta-intel` | 0.2.0 | 威胁情报 IOC 提取与规范化引擎(STIX-lite) |
25
25
  | `yotta-secret` | 元钥 | `@yottameta/yotta-secret` | 0.2.0 | 密钥 / 凭据泄露源头扫描引擎 |
26
- | `yotta-chain` | 元链 | `@yottameta/yotta-chain` | 0.1.2 | 供应链依赖校验引擎 |
27
- | `yotta-triage` | 元鉴 | `@yottameta/yotta-triage` | 0.1.2 | 恶意样本静态初筛引擎(哈希/熵/字符串/PE-ELF) |
28
- | `yotta-prompt` | 元引 | `@yottameta/yotta-prompt` | 0.2.0 | 意图澄清 + 生态入口(常驻注入,map 串联元阁全家) |
26
+ | `yotta-chain` | 元链 | `@yottameta/yotta-chain` | 0.1.4 | 供应链依赖校验引擎 |
27
+ | `yotta-triage` | 元鉴 | `@yottameta/yotta-triage` | 0.1.3 | 恶意样本静态初筛引擎(哈希/熵/字符串/PE-ELF) |
28
+ | `yotta-prompt` | 元引 | `@yottameta/yotta-prompt` | 0.2.2 | 意图澄清 + 生态入口(常驻注入,map 串联元阁全家) |
29
29
  | `yotta-verify` | 元信 | `@yottameta/yotta-verify` | 0.3.1 | 装前安全扫描器 + audited 徽章(prompt injection + 危险模式) |
30
30
 
31
31
  ## 家族分布
@@ -9,7 +9,8 @@ stdio MCP server(JSON-RPC 2.0,换行分隔),把元阁技能扫描核心
9
9
  route_request 按需求摘要给出静态编排路由建议
10
10
 
11
11
  自包含原则:扫描由元阁自带核心(bin/yotta-skills.js --inventory / --reindex)完成,
12
- 不依赖任何元技能;数据只写本机 ~/.yottaskills/registry.json,不出本机。
12
+ 不依赖任何元技能;数据只写本机注册表,默认 ~/.yottaskills/registry.json,
13
+ 可用 YOTTA_SKILLS_REGISTRY_FILE 为每个 agent 指定隔离路径,数据不出本机。
13
14
 
14
15
  运行:python scripts/yotta-skills-mcp.py
15
16
  MCP 客户端配置:
@@ -25,7 +26,7 @@ import subprocess
25
26
  import sys
26
27
  from pathlib import Path
27
28
 
28
- VERSION = "0.19.6"
29
+ VERSION = "0.19.10"
29
30
  TOOL_NAME = "yotta-skills"
30
31
  CN_NAME = "元阁"
31
32
  MCP_PROTOCOL_MODERN = "2026-07-28"
@@ -35,7 +36,13 @@ SERVERS = {TOOL_NAME: {"name": TOOL_NAME, "cn": CN_NAME, "version": VERSION}}
35
36
 
36
37
  _HERE = Path(__file__).resolve().parent
37
38
  BIN_JS = (_HERE.parent / "bin" / "yotta-skills.js").resolve()
38
- REGISTRY_FILE = Path(os.path.expanduser("~/.yottaskills/registry.json"))
39
+
40
+
41
+ def _registry_file():
42
+ override = os.environ.get("YOTTA_SKILLS_REGISTRY_FILE", "").strip()
43
+ if override:
44
+ return Path(override).expanduser().resolve()
45
+ return Path(os.path.expanduser("~/.yottaskills/registry.json"))
39
46
 
40
47
 
41
48
  def _tool_error(message, extra=None):
@@ -74,10 +81,11 @@ def _run_cli(args):
74
81
 
75
82
 
76
83
  def _read_registry():
77
- if not REGISTRY_FILE.is_file():
84
+ registry_file = _registry_file()
85
+ if not registry_file.is_file():
78
86
  return None
79
87
  try:
80
- return json.loads(REGISTRY_FILE.read_text(encoding="utf-8"))
88
+ return json.loads(registry_file.read_text(encoding="utf-8"))
81
89
  except Exception: # noqa: BLE001
82
90
  return None
83
91
 
@@ -90,7 +98,7 @@ def _ensure_registry():
90
98
  _run_cli(["--inventory"])
91
99
  reg = _read_registry()
92
100
  if reg is None:
93
- raise RuntimeError("技能注册表生成失败(~/.yottaskills/registry.json)")
101
+ raise RuntimeError("技能注册表生成失败(%s)" % _registry_file())
94
102
  return reg
95
103
 
96
104
 
@@ -106,7 +114,7 @@ def _tool_list(arguments): # noqa: ARG001
106
114
  skills = _skills_list(registry)
107
115
  payload = {
108
116
  "count": len(skills),
109
- "registry": str(REGISTRY_FILE),
117
+ "registry": str(_registry_file()),
110
118
  "skills": skills,
111
119
  }
112
120
  return {"content": [{"type": "text", "text": json.dumps(payload, ensure_ascii=False, indent=2)}],
@@ -136,7 +144,7 @@ def _tool_reindex(arguments): # noqa: ARG001
136
144
  "count": data.get("count", len(data.get("skills", []))),
137
145
  "changes": data.get("changes"),
138
146
  "errors": data.get("errors"),
139
- "registry": str(REGISTRY_FILE),
147
+ "registry": str(_registry_file()),
140
148
  }
141
149
  return {"content": [{"type": "text", "text": json.dumps(payload, ensure_ascii=False, indent=2)}],
142
150
  "isError": False}
@@ -168,7 +176,7 @@ def mcp_tools():
168
176
  _tool_spec(
169
177
  "list_installed_skills",
170
178
  "盘点本机已装技能:返回技能列表(slug / 版本 / 功能一句话 / 来源)。"
171
- "读本地注册表 ~/.yottaskills/registry.json;未生成则先扫描一次。"
179
+ "读本地注册表(YOTTA_SKILLS_REGISTRY_FILE,默认 ~/.yottaskills/registry.json);未生成则先扫描一次。"
172
180
  "扫描由元阁自带核心完成,不依赖任何其他技能。数据不出本机。",
173
181
  {},
174
182
  [],