skill-family-studio 0.0.0-stage → 0.2.0

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 (41) hide show
  1. package/.agents/platform-manifest.json +14 -0
  2. package/.agents/plugins/marketplace.json +12 -0
  3. package/.agents/skills/skill-family-studio/SKILL.md +77 -0
  4. package/.claude/platform-manifest.json +14 -0
  5. package/.claude/skills/skill-family-studio/SKILL.md +77 -0
  6. package/.claude-plugin/plugin.json +21 -0
  7. package/.codebuddy-plugin/plugin.json +22 -0
  8. package/.codex-plugin/plugin.json +27 -0
  9. package/.kimi-plugin/plugin.json +20 -0
  10. package/.qoder-plugin/plugin.json +20 -0
  11. package/CHANGELOG.md +8 -0
  12. package/LICENSE +201 -0
  13. package/NOTICE +10 -0
  14. package/README.md +85 -2
  15. package/USER-GUIDE.md +213 -0
  16. package/VERSION +1 -0
  17. package/bin/skill-family-studio.mjs +376 -0
  18. package/package.json +51 -4
  19. package/plugin.json +8 -0
  20. package/skills/skill-family-studio/SKILL.md +77 -0
  21. package/src/alignment-inspector.mjs +1386 -0
  22. package/src/ecosystem.mjs +1780 -0
  23. package/src/graph-layout.mjs +261 -0
  24. package/src/guide-content.mjs +429 -0
  25. package/src/index.mjs +123 -0
  26. package/src/lifecycle-inspector.mjs +1529 -0
  27. package/src/markdown-render.mjs +562 -0
  28. package/src/review-state.mjs +534 -0
  29. package/src/runtime-bridge.mjs +1594 -0
  30. package/src/server.mjs +1008 -0
  31. package/src/session-fleet.mjs +1350 -0
  32. package/src/setup-advisor.mjs +320 -0
  33. package/src/stb-bridge.mjs +486 -0
  34. package/src/ui/app.mjs +4361 -0
  35. package/src/ui/diagram-svg.mjs +212 -0
  36. package/src/ui/fleet-ui.mjs +993 -0
  37. package/src/ui/index.html +89 -0
  38. package/src/ui/lifecycle-ui.mjs +1188 -0
  39. package/src/ui/stb-ui.mjs +371 -0
  40. package/src/ui/studio.css +2644 -0
  41. package/src/ui/tooltips.mjs +417 -0
@@ -0,0 +1,14 @@
1
+ {
2
+ "platformId": "codex",
3
+ "familyId": "skill-family-studio",
4
+ "version": "0.2.0",
5
+ "logicalMappings": [
6
+ {
7
+ "logicalName": "skill-family-studio",
8
+ "physicalName": "skill-family-studio",
9
+ "path": "skills/skill-family-studio/SKILL.md",
10
+ "entryType": "skill",
11
+ "userInvocable": true
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "skill-family-studio",
3
+ "plugins": [
4
+ {
5
+ "name": "skill-family-studio",
6
+ "source": {
7
+ "source": "local",
8
+ "path": "./"
9
+ }
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: skill-family-studio
3
+ description: 当用户说“打开工作台”“带我看设计”“帮我审阅需求或代码锁对齐”“看看长任务进度和派出去的子会话编队”时使用。先静默探测目录角色与关联仓,按交互式极简提问或零配置聚焦本仓拉起单端口本地控制台(Skill Family Studio),再给用户一条清晰的固定阅读路线。
4
+ ---
5
+
6
+ # Skill Family Studio 控制台技能
7
+
8
+ 用户只需用自然语言提出“看设计、审需求、核对跨仓对齐、查任务推进树或看多智能体会话编队”,由你代劳探测环境、按需配置并打开 `127.0.0.1:57630`(或隔离端口)控制台。**严禁要求用户自己背命令行参数、猜测扫描目录或手写配置文件。**
9
+
10
+ ## 一、交互式对话启动流程(必须严格按序执行)
11
+
12
+ ### 第 1 步:先识别用户意图与默认目标页签
13
+
14
+ - 用户想“看全盘架构、依赖连线或 Archify 图” → `--tab graph`
15
+ - 用户想“审阅需求、故事、场景,或核对需求拆分与代码锁漂移” → `--tab review`
16
+ - 用户想“看长程任务推进树、派出去的子会话协同、文件锁或排障” → `--tab runtime`
17
+ - 仅泛指“打开工作台 / 新手看看” → 选 `graph`(若探测到高阶规划仓或上游绑定则选 `review`)
18
+
19
+ ### 第 2 步:静默运行只读环境探针(严禁跳过)
20
+
21
+ 在已激活项目要求的 Node.js 运行时环境中执行:
22
+
23
+ ```bash
24
+ npx skill-family-studio inspect-setup --root <当前项目绝对路径> --json
25
+ ```
26
+
27
+ 根据探针返回的 JSON 字段采取对应动作:
28
+
29
+ 1. **情况 A:独立单技能族仓且未绑定上下游(`needsUserChoice === false` 且非多仓父目录)**
30
+ - 直接用单仓聚焦模式启动,绝不把父目录无关项目混入下拉框:
31
+ ```bash
32
+ npx skill-family-studio ensure --root <当前项目绝对路径> --scan-roots none --tab <目标页签>
33
+ ```
34
+ 2. **情况 B:已存在 `.studio-workspace.json` 或用户已明确要求全套组展示**
35
+ - 按现有工作区边界启动(无需重复询问):
36
+ ```bash
37
+ npx skill-family-studio ensure --root <当前项目绝对路径> --tab <目标页签>
38
+ ```
39
+ 3. **情况 C:存在关联上下游绑定或多仓父目录,且尚无 `.studio-workspace.json`(`needsUserChoice === true`)**
40
+ - **只向用户提一个极简中文三选一问题**(严禁抛出一堆术语或配置文件参数):
41
+ > 检测到当前仓库关联了上下游(或同目录多个)仓库,希望怎么打开工作台?
42
+ > 1. **只看当前这一个仓**(最清爽,不混入其他项目)
43
+ > 2. **自动纳入关联的上下游仓**(可看需求进展与双向对齐总览表并一键跨仓互跳,顺便帮你写好 `.studio-workspace.json`)
44
+ > 3. **扫描我自己指定的业务域目录**(你告诉我目录相对路径即可)
45
+ - 用户选 `1` → 用 `--scan-roots none` 启动;
46
+ - 用户选 `2` → 先执行 `npx skill-family-studio init-workspace --root <当前项目绝对路径> --mode related`,再执行 `ensure`;
47
+ - 用户选 `3` → 代执行 `init-workspace --mode custom --scan-roots <dirs>` 后再启动 `ensure`。
48
+
49
+ > 注:`ensure` 会先核对目标端口既有的 `/api/studio/state` 是否已收录当前项目;已收录则自动带精确 `?repo=<id>` 复用,未收录则自动隔离分配新空闲端口,绝不张冠李戴。
50
+
51
+ ## 二、向用户交付“明确、免抽样”的固定审阅路线
52
+
53
+ 启动成功后,**必须**结合探针结果给用户一条直接可点、不用自己摸索的 3~4 步路线:
54
+
55
+ ```markdown
56
+ ### Skill Family Studio 已就绪
57
+ - **点击打开**:`<实际返回的 URL>`(`<复用当前项目视图 / 新建独立本地端口>`)
58
+ - **当前范围**:`<单仓聚焦 / 多仓套组(共 N 个关联仓)>` · 当前锁定 `<仓库标识>`
59
+
60
+ #### 建议按以下顺序查看(免自由抽样)
61
+ 1. **第 1 步(看哪一页)**:`<依据本次目标,明确说明打开哪个页签和具体列表;如需临时接入新仓库或修订名称说明,可点顶部「+ 添加本地项目」或「✎ 说明与来源」>`
62
+ 2. **第 2 步(核对关键信息)**:`<例如:先看「📝 审阅与对齐」第 ① 步「① 核对需求与代码对齐」(每行先展示中文标题与正文摘要,列表头 ⓘ 提供列口径规则)并点「下一步:开始逐篇审阅正文 →」/ 在左栏「① 用户故事 → ② 生命周期讲解 → ③ 需求总纲 → ④ 场景剧本 → ⑤ 领域模型与架构设计」折叠目录树逐篇阅读或点「▶ 跳至下一项待审条目 →」/ 看「⚡ 运行监控」双栏「🌳 任务推进树」(含活跃与近期历史计划)与「🛰️ 智能体会话编队」左选右看(看到「🟢 无卡死」无需打开排障页)>`
63
+ 3. **第 3 步(如何完成闭环)**:`<写批注点「+ 添加批注(自动转入审阅中)」(未提交草稿跨篇自动暂存为「📝 草稿」),确认无误点「✓ 通过并审下一项 →」,最后点「③ 导出验收结论」或右上角「审阅进度:... 导出 ▾」导出含标题与摘要的验收单;列表头或「审阅签收 ⓘ」可随时查看规则>`
64
+ ```
65
+
66
+ ## 三、职责与安全红线
67
+
68
+ - **只读受审仓,零侵入落盘**:批注与审阅结论、运行期添加项目/说明覆写以及网页挂载运行源统一写入工作台启动根目录的 `.skill-family-studio/`(`reviews.json`、`workspace-projects.json`、`runtime-registry.json`);除用户确认生成 `.studio-workspace.json` 外,绝不修改受审仓任何 Git 跟踪文件。
69
+ - **对齐口径与工程 CLI 规范**:总览表严格区分「🔗 追溯双锁齐备 (`traceability_locked`)」与「✅ 已验证满足 (`verified_satisfied`)」,并在切换器与体检面板区分 `support` 支撑仓(「🟠 支撑仓底座待同批拉齐」)与 `business` 业务仓(「ℹ️ 可选底座新版本」)。如需调用 `skill-family-engineering-kit` 做底层体检或运行态委托,统一使用标准四顶层命令子动作(如 `skill-family-kit check monitor`、`check prereqs`、`check deps`),不使用旧版裸别名。
70
+ - **回环纯离线与沙箱脱敏**:服务仅监听 `127.0.0.1`,写接口强制校验同端口回环 `Origin` 与 `X-Studio-Request: 1`;内嵌 Archify 图采用无 `allow-same-origin` 的同源沙箱隔离(`sandbox="allow-scripts"` + `postMessage`);多智能体会话编队监控严格只读、有限文件读取并脱敏敏感目录与现代密钥。
71
+ - **不越权 Git 写操作**:本技能不执行 `git commit`、`git push`、`git tag` 或包发布。
72
+
73
+ <!-- @feature STU002 -->
74
+ <!-- @feature STU003 -->
75
+ <!-- @feature STU004 -->
76
+ <!-- @feature STU005 -->
77
+ <!-- @feature STU006 -->
@@ -0,0 +1,14 @@
1
+ {
2
+ "platformId": "claude",
3
+ "familyId": "skill-family-studio",
4
+ "version": "0.2.0",
5
+ "logicalMappings": [
6
+ {
7
+ "logicalName": "skill-family-studio",
8
+ "physicalName": "skill-family-studio",
9
+ "path": "skills/skill-family-studio/SKILL.md",
10
+ "entryType": "skill",
11
+ "userInvocable": true
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: skill-family-studio
3
+ description: 当用户说“打开工作台”“带我看设计”“帮我审阅需求或代码锁对齐”“看看长任务进度和派出去的子会话编队”时使用。先静默探测目录角色与关联仓,按交互式极简提问或零配置聚焦本仓拉起单端口本地控制台(Skill Family Studio),再给用户一条清晰的固定阅读路线。
4
+ ---
5
+
6
+ # Skill Family Studio 控制台技能
7
+
8
+ 用户只需用自然语言提出“看设计、审需求、核对跨仓对齐、查任务推进树或看多智能体会话编队”,由你代劳探测环境、按需配置并打开 `127.0.0.1:57630`(或隔离端口)控制台。**严禁要求用户自己背命令行参数、猜测扫描目录或手写配置文件。**
9
+
10
+ ## 一、交互式对话启动流程(必须严格按序执行)
11
+
12
+ ### 第 1 步:先识别用户意图与默认目标页签
13
+
14
+ - 用户想“看全盘架构、依赖连线或 Archify 图” → `--tab graph`
15
+ - 用户想“审阅需求、故事、场景,或核对需求拆分与代码锁漂移” → `--tab review`
16
+ - 用户想“看长程任务推进树、派出去的子会话协同、文件锁或排障” → `--tab runtime`
17
+ - 仅泛指“打开工作台 / 新手看看” → 选 `graph`(若探测到高阶规划仓或上游绑定则选 `review`)
18
+
19
+ ### 第 2 步:静默运行只读环境探针(严禁跳过)
20
+
21
+ 在已激活项目要求的 Node.js 运行时环境中执行:
22
+
23
+ ```bash
24
+ npx skill-family-studio inspect-setup --root <当前项目绝对路径> --json
25
+ ```
26
+
27
+ 根据探针返回的 JSON 字段采取对应动作:
28
+
29
+ 1. **情况 A:独立单技能族仓且未绑定上下游(`needsUserChoice === false` 且非多仓父目录)**
30
+ - 直接用单仓聚焦模式启动,绝不把父目录无关项目混入下拉框:
31
+ ```bash
32
+ npx skill-family-studio ensure --root <当前项目绝对路径> --scan-roots none --tab <目标页签>
33
+ ```
34
+ 2. **情况 B:已存在 `.studio-workspace.json` 或用户已明确要求全套组展示**
35
+ - 按现有工作区边界启动(无需重复询问):
36
+ ```bash
37
+ npx skill-family-studio ensure --root <当前项目绝对路径> --tab <目标页签>
38
+ ```
39
+ 3. **情况 C:存在关联上下游绑定或多仓父目录,且尚无 `.studio-workspace.json`(`needsUserChoice === true`)**
40
+ - **只向用户提一个极简中文三选一问题**(严禁抛出一堆术语或配置文件参数):
41
+ > 检测到当前仓库关联了上下游(或同目录多个)仓库,希望怎么打开工作台?
42
+ > 1. **只看当前这一个仓**(最清爽,不混入其他项目)
43
+ > 2. **自动纳入关联的上下游仓**(可看需求进展与双向对齐总览表并一键跨仓互跳,顺便帮你写好 `.studio-workspace.json`)
44
+ > 3. **扫描我自己指定的业务域目录**(你告诉我目录相对路径即可)
45
+ - 用户选 `1` → 用 `--scan-roots none` 启动;
46
+ - 用户选 `2` → 先执行 `npx skill-family-studio init-workspace --root <当前项目绝对路径> --mode related`,再执行 `ensure`;
47
+ - 用户选 `3` → 代执行 `init-workspace --mode custom --scan-roots <dirs>` 后再启动 `ensure`。
48
+
49
+ > 注:`ensure` 会先核对目标端口既有的 `/api/studio/state` 是否已收录当前项目;已收录则自动带精确 `?repo=<id>` 复用,未收录则自动隔离分配新空闲端口,绝不张冠李戴。
50
+
51
+ ## 二、向用户交付“明确、免抽样”的固定审阅路线
52
+
53
+ 启动成功后,**必须**结合探针结果给用户一条直接可点、不用自己摸索的 3~4 步路线:
54
+
55
+ ```markdown
56
+ ### Skill Family Studio 已就绪
57
+ - **点击打开**:`<实际返回的 URL>`(`<复用当前项目视图 / 新建独立本地端口>`)
58
+ - **当前范围**:`<单仓聚焦 / 多仓套组(共 N 个关联仓)>` · 当前锁定 `<仓库标识>`
59
+
60
+ #### 建议按以下顺序查看(免自由抽样)
61
+ 1. **第 1 步(看哪一页)**:`<依据本次目标,明确说明打开哪个页签和具体列表;如需临时接入新仓库或修订名称说明,可点顶部「+ 添加本地项目」或「✎ 说明与来源」>`
62
+ 2. **第 2 步(核对关键信息)**:`<例如:先看「📝 审阅与对齐」第 ① 步「① 核对需求与代码对齐」(每行先展示中文标题与正文摘要,列表头 ⓘ 提供列口径规则)并点「下一步:开始逐篇审阅正文 →」/ 在左栏「① 用户故事 → ② 生命周期讲解 → ③ 需求总纲 → ④ 场景剧本 → ⑤ 领域模型与架构设计」折叠目录树逐篇阅读或点「▶ 跳至下一项待审条目 →」/ 看「⚡ 运行监控」双栏「🌳 任务推进树」(含活跃与近期历史计划)与「🛰️ 智能体会话编队」左选右看(看到「🟢 无卡死」无需打开排障页)>`
63
+ 3. **第 3 步(如何完成闭环)**:`<写批注点「+ 添加批注(自动转入审阅中)」(未提交草稿跨篇自动暂存为「📝 草稿」),确认无误点「✓ 通过并审下一项 →」,最后点「③ 导出验收结论」或右上角「审阅进度:... 导出 ▾」导出含标题与摘要的验收单;列表头或「审阅签收 ⓘ」可随时查看规则>`
64
+ ```
65
+
66
+ ## 三、职责与安全红线
67
+
68
+ - **只读受审仓,零侵入落盘**:批注与审阅结论、运行期添加项目/说明覆写以及网页挂载运行源统一写入工作台启动根目录的 `.skill-family-studio/`(`reviews.json`、`workspace-projects.json`、`runtime-registry.json`);除用户确认生成 `.studio-workspace.json` 外,绝不修改受审仓任何 Git 跟踪文件。
69
+ - **对齐口径与工程 CLI 规范**:总览表严格区分「🔗 追溯双锁齐备 (`traceability_locked`)」与「✅ 已验证满足 (`verified_satisfied`)」,并在切换器与体检面板区分 `support` 支撑仓(「🟠 支撑仓底座待同批拉齐」)与 `business` 业务仓(「ℹ️ 可选底座新版本」)。如需调用 `skill-family-engineering-kit` 做底层体检或运行态委托,统一使用标准四顶层命令子动作(如 `skill-family-kit check monitor`、`check prereqs`、`check deps`),不使用旧版裸别名。
70
+ - **回环纯离线与沙箱脱敏**:服务仅监听 `127.0.0.1`,写接口强制校验同端口回环 `Origin` 与 `X-Studio-Request: 1`;内嵌 Archify 图采用无 `allow-same-origin` 的同源沙箱隔离(`sandbox="allow-scripts"` + `postMessage`);多智能体会话编队监控严格只读、有限文件读取并脱敏敏感目录与现代密钥。
71
+ - **不越权 Git 写操作**:本技能不执行 `git commit`、`git push`、`git tag` 或包发布。
72
+
73
+ <!-- @feature STU002 -->
74
+ <!-- @feature STU003 -->
75
+ <!-- @feature STU004 -->
76
+ <!-- @feature STU005 -->
77
+ <!-- @feature STU006 -->
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "skill-family-studio",
3
+ "version": "0.2.0",
4
+ "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
+ "author": {
6
+ "name": "广州市风荷科技有限公司"
7
+ },
8
+ "license": "Apache-2.0",
9
+ "homepage": "https://github.com/ifoohoo/skill-family-studio",
10
+ "keywords": [
11
+ "artifact-graph",
12
+ "studio",
13
+ "review",
14
+ "runtime-monitor",
15
+ "codex",
16
+ "claude-code",
17
+ "antigravity",
18
+ "skill-family"
19
+ ],
20
+ "skills": "./.claude/skills/"
21
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "skill-family-studio",
3
+ "version": "0.2.0",
4
+ "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
+ "author": {
6
+ "name": "广州市风荷科技有限公司"
7
+ },
8
+ "license": "Apache-2.0",
9
+ "keywords": [
10
+ "artifact-graph",
11
+ "studio",
12
+ "review",
13
+ "runtime-monitor",
14
+ "codex",
15
+ "claude-code",
16
+ "antigravity",
17
+ "skill-family"
18
+ ],
19
+ "skills": [
20
+ "./.agents/skills/"
21
+ ]
22
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "skill-family-studio",
3
+ "version": "0.2.0",
4
+ "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
+ "author": {
6
+ "name": "广州市风荷科技有限公司"
7
+ },
8
+ "license": "Apache-2.0",
9
+ "homepage": "https://github.com/ifoohoo/skill-family-studio",
10
+ "keywords": [
11
+ "artifact-graph",
12
+ "studio",
13
+ "review",
14
+ "runtime-monitor",
15
+ "codex",
16
+ "claude-code",
17
+ "antigravity",
18
+ "skill-family"
19
+ ],
20
+ "skills": "./.agents/skills/",
21
+ "interface": {
22
+ "displayName": "Skill Family Studio",
23
+ "shortDescription": "宽屏制品图谱审阅与运行监控控制台",
24
+ "developerName": "广州市风荷科技有限公司",
25
+ "category": "Developer Tools"
26
+ }
27
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "skill-family-studio",
3
+ "version": "0.2.0",
4
+ "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
+ "author": {
6
+ "name": "广州市风荷科技有限公司"
7
+ },
8
+ "license": "Apache-2.0",
9
+ "keywords": [
10
+ "artifact-graph",
11
+ "studio",
12
+ "review",
13
+ "runtime-monitor",
14
+ "codex",
15
+ "claude-code",
16
+ "antigravity",
17
+ "skill-family"
18
+ ],
19
+ "skills": "./.agents/skills/"
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "skill-family-studio",
3
+ "version": "0.2.0",
4
+ "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
+ "author": {
6
+ "name": "广州市风荷科技有限公司"
7
+ },
8
+ "license": "Apache-2.0",
9
+ "keywords": [
10
+ "artifact-graph",
11
+ "studio",
12
+ "review",
13
+ "runtime-monitor",
14
+ "codex",
15
+ "claude-code",
16
+ "antigravity",
17
+ "skill-family"
18
+ ],
19
+ "skills": "./.agents/skills/"
20
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0
4
+
5
+ - 单端口统一承载三业务主页签(审阅与对齐、制品图谱、运行监控)与按需「📖 手册」,提供零配置单仓与声明式多仓发现。
6
+ - 支持高阶规划仓 4 列需求进展与双向对齐总览表、机器派生满足度(严格校对代码/测试双锁 SHA-256)、跨仓一键互跳与高阶无代码锁豁免说明。
7
+ - 支持手风琴 6 组折叠目录树、EntityBrief 摘要卡片、运行期零侵入接入本地项目(.skill-family-studio/workspace-projects.json)与全局 ⌘K 搜索。
8
+ - 支持双栏主从任务推进树、多宿主智能体会话编队(双窗保头保尾与扩展凭据脱敏)、沙箱锁实时读秒排障,以及 Archify iframe 同源沙箱(sandbox="allow-scripts" + postMessage)与同端口回环 CSRF 防护。
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ Skill Family Studio
2
+ ===================
3
+
4
+ Copyright 2026 广州市风荷科技有限公司
5
+
6
+ Licensed under the Apache License, Version 2.0.
7
+
8
+ Existing NOTICE entries, third-party license notices, and historical
9
+ copyright statements must be preserved. Unresolved attribution is reported
10
+ for human review and is never deleted or reassigned automatically.
package/README.md CHANGED
@@ -1,3 +1,86 @@
1
- # Temporary Holding Version
1
+ # Skill Family Studio
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `skill-family-studio` 是面向任意技能族与业务域套组的本地离线可视化控制台。它在单一回环端口(默认 `127.0.0.1:57630`)内统一承载三业务主页签(`审阅与对齐`、`制品图谱`、`运行监控`)与按需「手册」,提供 `artifact-graph` 固定坐标宽屏图谱与 `sandbox` 沙箱化的 Archify 业务图联动、4 列三层双向一致性体检与跨仓互跳、6 组手风琴折叠目录树四态审阅,以及双栏多级任务树与跨宿主智能体编队监控。
4
+
5
+ ## 安装与本地写入边界
6
+
7
+ ```bash
8
+ npm install -g skill-family-studio
9
+ ```
10
+
11
+ <!-- release-skill:external-write-boundary -->
12
+ `skill-family-studio` 全程离线运行于本机回环地址(默认 `127.0.0.1:57630`),不会连接外部网络或修改任何远端仓库。`inspect-setup`、`doctor`、`snapshot` 以及 `--readonly` 预览模式均为纯只读检查;仅当你执行 `init-workspace` 初始化配置,或在默认可写模式下提交审阅结论与批注时,才会在本地写入 `.studio-workspace.json` 或 `.skill-family-studio/reviews.json`。
13
+
14
+ ## 三十秒零记忆启动(推荐:直接对 AI 助手说一句话)
15
+
16
+ 安装技能包后,**不需要背任何命令行参数**。只要你在项目目录里对 Codex / Claude Code / Kimi Code / Antigravity 说:
17
+
18
+ > “打开工作台” / “帮我审阅这个项目的设计文档” / “看看任务推进和子智能体编队”
19
+
20
+ 智能体会自动执行以下静默引导流程:
21
+ 1. 先调用内置 `inspect-setup` 探针识别当前目录角色:**独立单仓**默认以 `--scan-roots none` 纯净聚焦本仓,不再混入无关兄弟仓;
22
+ 2. 若检测到关联上下游仓或位于多仓工作区父目录且尚未配置,仅向你提出**一个中文三选一**问题(只看本仓 / 看关联业务套组 / 看全工作区);
23
+ 3. 选定后代劳生成 `.studio-workspace.json`(若需要)、在已收录同一项目的前提下幂等复用现有服务并精准隔离冲突端口,最后直接输出可点击链接与当前角色的推荐阅读顺序。
24
+
25
+ ## 核心能力
26
+
27
+ 1. **多仓声明式发现、运行期管理与来源追溯**:单仓默认 `--scan-roots none` 干净聚焦当前仓库;多仓业务域可通过声明式 `.studio-workspace.json`(或 `artifact-graph.config.yaml` 的 `studio` 节)自定义 `scanRoots`、`groupLabels` 与扩展集合。控制台支持运行期「+ 添加本地项目」、按 `package.json#description` / `README.md` 查看「✎ 说明与来源」并零侵入覆写名称说明或移出列表。
28
+ 2. **全站实体第一身份与统一表头 `ⓘ` 口径**:无论是高阶对齐表、子仓绑定、审阅目录、运行计划还是智能体编队,均将中文标题与正文第一句自然摘要放于首位,编号与文件路径退居辅助位置;高频列表头以单一 `ⓘ` 集中阐释列规则与状态字典,行内仅真正异常与漂移告警保留诊断 `ⓘ`。
29
+ 3. **折叠目录树、现代长文排版与草稿不丢失**:逐篇审阅左侧提供「① 用户故事 → ② 生命周期讲解 → ③ 需求总纲 → ④ 场景剧本 → ⑤ 领域模型与架构设计 → 附:机器数据契约 (.json/.yaml · 自动跳过)」手风琴折叠目录树,支持关键词穿透搜索;正文顶部呈现 Hero 摘要卡、GitHub Callout 与用户故事卡片;Archify 业务逻辑图通过 `&embed=1` 纯净内嵌,未提交批注与备注草稿自动暂存(「📝 草稿」)并支持 5 秒撤销,零侵入保存在 `.skill-family-studio/reviews.json`。
30
+ 4. **双栏主从运行监控(活跃 + 历史计划树 & 多宿主编队)**:「🌳 任务推进树」左侧聚合活跃运行计划与近期进行中/已完成历史计划、右侧展开多级树与进度条;「🛰️ 智能体会话编队」左侧以宿主过滤芯片和摘要卡片直选 Antigravity / Claude / Codex / 沙箱编队,右侧联动渲染网络拓扑、协作泳道与 Markdown 事件简报;「🩺 异常排障」实时汇报运行时排他写锁、事件哈希链与子进程看门狗。
31
+
32
+ ## 环境要求
33
+
34
+ - Node.js `>=22.22.2 <23`
35
+
36
+ <details>
37
+ <summary>高级与手动 CLI 命令参考(平时交由 AI 助手代劳即可,按需展开)</summary>
38
+
39
+ <!-- release-skill:safe-first-command -->
40
+ ```bash
41
+ # 安全首选命令:只读查看命令说明与环境健康状态(零写入)
42
+ npx skill-family-studio --help
43
+ npx skill-family-studio doctor --root /absolute/project/path --scan-roots none
44
+
45
+ # 只读探测当前目录角色与推荐启动参数(输出结构化 JSON)
46
+ npx skill-family-studio inspect-setup --root /absolute/project/path
47
+
48
+ # 在工作区或单仓按选择安全生成 .studio-workspace.json
49
+ npx skill-family-studio init-workspace --root /absolute/project/path --mode standalone
50
+
51
+ # 单仓纯净聚焦守护启动(推荐加 --scan-roots none,仅收录当前项目)
52
+ npx skill-family-studio ensure --root /absolute/project/path --port 57630 --scan-roots none
53
+
54
+ # 按项目 .studio-workspace.json 声明启动多仓套组控制台
55
+ npx skill-family-studio ensure --root /absolute/project/path --port 57630
56
+
57
+ # 前台启动并默认打开「📖 手册」页签
58
+ npx skill-family-studio serve --root /absolute/project/path --port 57630 --scan-roots none --tab guide
59
+
60
+ # 检查运行环境与离线资产完整性
61
+ npx skill-family-studio doctor --root /absolute/project/path
62
+
63
+ # 离线输出设计态 + 双向对齐 + 审阅汇总 + 运行态聚合快照
64
+ npx skill-family-studio snapshot --root /absolute/project/path
65
+ ```
66
+
67
+ </details>
68
+
69
+ ## 多宿主技能接入说明
70
+
71
+ 包内包含经 Foundation 构建核验的 `skills/skill-family-studio/SKILL.md` 及多宿主投影清单:
72
+
73
+ - **Codex / Kimi Code / Qoder / CodeBuddy**:自动映射至 `.agents/skills/skill-family-studio/SKILL.md` 及对应 `.*-plugin/plugin.json`;
74
+ - **Claude Code**:映射至 `.claude/skills/skill-family-studio/SKILL.md` 与 `.claude-plugin/plugin.json`;
75
+ - **Antigravity**:提供严格遵守官方十键白名单的根级 `plugin.json`,支持按宿主规范挂载至项目 `.agents/skills`、`.agent/skills` 或 `.gemini/config/{skills,plugins}`。
76
+
77
+ 完整逐页引导、角色动线与运行监控说明请参阅随附的 [USER-GUIDE.md](USER-GUIDE.md)。
78
+
79
+ ## 常见故障处理
80
+
81
+ - **启动或环境自检失败**:先运行 `npx skill-family-studio doctor --root . --scan-roots none --json` 核对当前 `node` 版本是否处于 `>=22.22.2 <23` 区间。
82
+ - **默认端口冲突或混入其他目录**:改用 `npx skill-family-studio ensure --root . --port 0 --scan-roots none` 自动分配空闲回环端口并仅聚焦当前仓库。
83
+
84
+ ## 开源许可与署名
85
+
86
+ 作者:广州市风荷科技有限公司。Licensed under Apache-2.0(详见 [LICENSE](LICENSE) 与 [NOTICE](NOTICE))。