@yottameta/yotta-skills 0.2.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # 更新日志
2
2
 
3
+ ## v0.2.1 (2026-08-31)
4
+
5
+ MCP 配置说明补全(按需加载口径)。
6
+
7
+ - SKILL.md「技能盘点」节补「MCP:按需加载(可选)」:明确本技能与 MCP 均为按需触发、不走常驻;mcpServers 配置 JSON 示例、按需写入步骤(用后可移除)、重启/重载提示、未加载降级 CLI 兜底;frontmatter description 同步按需加载口径。
8
+ - 测试:mcp-e2e serverInfo.version 断言改为动态读 package.json;python 探测加候选兜底(YOTTA_TEST_PYTHON / python / python3 / Scoop python38),Windows 无需手动设环境变量。
9
+ - 版本升至 0.2.1。
10
+
3
11
  ## v0.2.0 (2026-08-31)
4
12
 
5
13
  技能生态盘点层(阶段 A):元阁从「编排策划 + 安装器」升级为「编排策划 + 安装器 + 技能盘点」。
package/README.md CHANGED
@@ -30,7 +30,7 @@ Installing the whole YottaMeta family used to mean running <code>npx</code> for
30
30
  - **Update** — incremental update: add missing skills, upgrade version-skewed ones.
31
31
  - **Idempotent** — a skill already at the manifest version is skipped; re-running is safe.
32
32
  - **Pre-install summary** — if yotta-verify (元信) is available, each skill is scanned first; the verdict is informational only.
33
- - **Inventory** — scan the skill directories on this machine and keep a local registry (<code>~/.yottaskills/registry.json</code>); self-contained, no other skills required.
33
+ - **Inventory** — scan the skill directories on this machine and keep a local registry (<code>~/.yottaskills/registry.json</code>); self-contained, no other skills required. An optional <code>yotta-skills</code> MCP (on-demand, not resident) exposes <code>list_installed_skills</code> / <code>describe_skill</code> / <code>reindex</code>; see <code>SKILL.md</code> for the config.
34
34
 
35
35
  Boundaries: it only downloads, places and summarizes — it does **not** develop skill content, does **not** bundle any skill body, and does **not** use <code>-g</code> global installs. It never writes outside the target you specify.
36
36
 
package/README.zh-CN.md CHANGED
@@ -33,7 +33,7 @@
33
33
  - **更新**——增量更新:补齐缺失技能、升级版本不一致的技能。
34
34
  - **幂等**——已在清单版本的技能跳过;重复运行安全。
35
35
  - **装前摘要**——若装了元信(yotta-verify),先对每个待装技能做一次装前扫描;verdict 仅提示、不拦截。
36
- - **盘点**——扫描本机各智能体技能目录,维护本地注册表(<code>~/.yottaskills/registry.json</code>);自包含,不需要任何其他技能。
36
+ - **盘点**——扫描本机各智能体技能目录,维护本地注册表(<code>~/.yottaskills/registry.json</code>);自包含,不需要任何其他技能。可选 <code>yotta-skills</code> MCP(按需加载、不常驻)提供 <code>list_installed_skills</code> / <code>describe_skill</code> / <code>reindex</code> 三工具,配置见 <code>SKILL.md</code>。
37
37
 
38
38
  边界:只做「下载 + 落位 + 汇总」——**不**开发技能内容、**不**内置任何技能本体、**不**用 <code>-g</code>
39
39
  全局安装;只在你指定的目标内写文件。
package/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: yotta-skills
3
- version: 0.2.0
4
- description: 元阁 —— 元阁全家技能的总编排策划 + 一键安装器 + 技能盘点。策划层:按场景给出「该组合哪几个元技能、组合强在哪、怎么自动装+自动用」;安装层:一条命令把 YottaMeta 已发布的全部 yotta-* 技能装进指定智能体或目录;盘点层:--inventory 扫描本机已装技能生成注册表(自包含零依赖,不依赖任何元技能)。支持 --list 清单 / install / update / --inventory / --dry-run 预览 / --pin 锁版本。触发:需要批量安装或更新元阁全家技能、按场景组合多个元技能、盘点或查看本机已装技能、给某个智能体或目录一次性铺齐 yotta-* 技能、预览安装清单、锁版本安装、或用户说 元阁/装全家/一次装齐/yotta-skills/install-all/更新全家/盘点技能/查看已装技能 等。边界(Do NOT trigger):只做「组合策划 + 清单 + 下载 + 落位 + 汇总 + 盘点」,不含技能本体、不做技能内容开发、不 -g 污染全局;装前摘要仅供参考,安装决策由用户确认。
3
+ version: 0.2.1
4
+ description: 元阁 —— 元阁全家技能的总编排策划 + 一键安装器 + 技能盘点。策划层:按场景给出「该组合哪几个元技能、组合强在哪、怎么自动装+自动用」;安装层:一条命令把 YottaMeta 已发布的全部 yotta-* 技能装进指定智能体或目录;盘点层:--inventory 扫描本机已装技能生成注册表(自包含零依赖,不依赖任何元技能);MCP 按需加载(可选:list_installed_skills/describe_skill/reindex,不常驻,未加载降级 CLI)。支持 --list 清单 / install / update / --inventory / --dry-run 预览 / --pin 锁版本。触发:需要批量安装或更新元阁全家技能、按场景组合多个元技能、盘点或查看本机已装技能、给某个智能体或目录一次性铺齐 yotta-* 技能、预览安装清单、锁版本安装、或用户说 元阁/装全家/一次装齐/yotta-skills/install-all/更新全家/盘点技能/查看已装技能 等。边界(Do NOT trigger):只做「组合策划 + 清单 + 下载 + 落位 + 汇总 + 盘点」,不含技能本体、不做技能内容开发、不 -g 污染全局;装前摘要仅供参考,安装决策由用户确认。
5
5
  license: MIT
6
6
  metadata:
7
7
  zh_name: 元阁
@@ -142,9 +142,31 @@ npx -y @yottameta/yotta-skills --inventory --dir ~/my-skills --project
142
142
 
143
143
  注册表增量合并:新增(added)/ 更新(updated)/ 消失(gone)随输出列出;同名技能来自多个目录时合并来源,版本不一致记录冲突。
144
144
 
145
- **MCP(按需加载)**:`scripts/yotta-skills-mcp.py` 提供三个工具——
146
- `list_installed_skills`(盘点)/ `describe_skill`(单技能详情)/ `reindex`(强制重扫),
147
- 走 stdio JSON-RPC,数据不出本机。需要时按需加载,不常驻。
145
+ ### MCP:按需加载(可选)
146
+
147
+ 本技能自带一个 MCP server:`yotta-skills`(`scripts/yotta-skills-mcp.py`,零依赖、数据不出本机),
148
+ 提供 `list_installed_skills`(盘点)/ `describe_skill`(单技能详情)/ `reindex`(强制重扫)三个工具。
149
+
150
+ **按需加载,不走常驻**:本技能与 MCP 均为按需触发。默认以 CLI 为主
151
+ (`npx -y @yottameta/yotta-skills --inventory`);需要让 AI 通过工具直接调用时,再按下面配置启用:
152
+
153
+ 1. **检查当前客户端的 `mcpServers`** 是否已有 `yotta-skills` 条目;已有 → 直接使用。
154
+ 2. **没有 → 按需写入**下面这一条 server 配置(用后可移除,不要求常驻):
155
+ ```json
156
+ {
157
+ "mcpServers": {
158
+ "yotta-skills": {
159
+ "command": "python",
160
+ "args": ["<技能目录>/scripts/yotta-skills-mcp.py"]
161
+ }
162
+ }
163
+ }
164
+ ```
165
+ > `<技能目录>` = 本技能实际安装目录,**不要写死盘符路径**;Windows 用 `python`,Linux/macOS 用 `python3`。
166
+ 3. **提醒用户**:改 `mcpServers` 后多数客户端需**重启 / 重载一次** MCP server 才生效;加载后应看到
167
+ `list_installed_skills` / `describe_skill` / `reindex` 三个工具。
168
+ 4. **降级兜底(重要)**:若客户端未暴露 MCP 工具 / 无法改配置 / server 未加载,**自动降级 CLI**
169
+ (同一套扫描核心、结果一致):`npx -y @yottameta/yotta-skills --inventory ...`。
148
170
 
149
171
  ## 版本策略
150
172
 
@@ -22,7 +22,7 @@ const os = require('os');
22
22
  const { spawnSync } = require('child_process');
23
23
 
24
24
  const PKG_ROOT = path.join(__dirname, '..');
25
- let VERSION = '0.2.0';
25
+ let VERSION = '0.2.1';
26
26
  try { VERSION = require(path.join(PKG_ROOT, 'package.json')).version; } catch (_) { /* keep fallback */ }
27
27
 
28
28
  function loadManifest() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yottameta/yotta-skills",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "YuanGe (元阁) — one-command installer for the whole YottaMeta skill family: list, install, and update all published yotta-* skills into any agent (npx one-shot, zero dependencies, Node.js only).",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -23,7 +23,7 @@ import subprocess
23
23
  import sys
24
24
  from pathlib import Path
25
25
 
26
- VERSION = "0.2.0"
26
+ VERSION = "0.2.1"
27
27
  TOOL_NAME = "yotta-skills"
28
28
  CN_NAME = "元阁"
29
29
  MCP_PROTOCOL = "2025-03-26"