@hongmaple0820/scale-engine 0.43.0 → 0.45.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 (55) hide show
  1. package/README.en.md +2 -2
  2. package/README.md +3 -3
  3. package/dist/api/cli.js +24 -2
  4. package/dist/api/cli.js.map +1 -1
  5. package/dist/api/mcp.js +86 -0
  6. package/dist/api/mcp.js.map +1 -1
  7. package/dist/codegraph/CodeIntelligence.d.ts +67 -0
  8. package/dist/codegraph/CodeIntelligence.js +457 -5
  9. package/dist/codegraph/CodeIntelligence.js.map +1 -1
  10. package/dist/cortex/SessionInjector.d.ts +1 -0
  11. package/dist/cortex/SessionInjector.js +33 -0
  12. package/dist/cortex/SessionInjector.js.map +1 -1
  13. package/dist/dashboard/DashboardServer.d.ts +33 -13
  14. package/dist/dashboard/DashboardServer.js +314 -182
  15. package/dist/dashboard/DashboardServer.js.map +1 -1
  16. package/dist/dashboard/index.d.ts +2 -2
  17. package/dist/dashboard/index.js +1 -1
  18. package/dist/dashboard/index.js.map +1 -1
  19. package/dist/dashboard/server.d.ts +8 -22
  20. package/dist/dashboard/server.js +2 -83
  21. package/dist/dashboard/server.js.map +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/memory/MemoryBrain.d.ts +22 -0
  26. package/dist/memory/MemoryBrain.js +183 -4
  27. package/dist/memory/MemoryBrain.js.map +1 -1
  28. package/dist/memory/MemoryProviders.d.ts +6 -1
  29. package/dist/memory/MemoryProviders.js +190 -6
  30. package/dist/memory/MemoryProviders.js.map +1 -1
  31. package/dist/setup/SetupWizard.js +21 -7
  32. package/dist/setup/SetupWizard.js.map +1 -1
  33. package/dist/skills/SkillRepository.js +64 -1
  34. package/dist/skills/SkillRepository.js.map +1 -1
  35. package/dist/topology/DomainMapper.d.ts +23 -0
  36. package/dist/topology/DomainMapper.js +179 -0
  37. package/dist/topology/DomainMapper.js.map +1 -0
  38. package/dist/topology/LayerClassifier.d.ts +8 -0
  39. package/dist/topology/LayerClassifier.js +109 -0
  40. package/dist/topology/LayerClassifier.js.map +1 -0
  41. package/dist/topology/TourGenerator.d.ts +18 -0
  42. package/dist/topology/TourGenerator.js +120 -0
  43. package/dist/topology/TourGenerator.js.map +1 -0
  44. package/dist/topology/index.d.ts +3 -0
  45. package/dist/topology/index.js +4 -0
  46. package/dist/topology/index.js.map +1 -0
  47. package/docs/README.md +3 -0
  48. package/docs/architecture/README.md +248 -0
  49. package/docs/migration/v0.38-to-v0.44.md +232 -0
  50. package/docs/reference/cli.md +234 -0
  51. package/package.json +6 -5
  52. package/docs/EXTERNAL_REFERENCES.md +0 -66
  53. package/docs/SKILL-REPOSITORY.md +0 -57
  54. package/docs/SKILL_RADAR.md +0 -135
  55. package/docs/THIRD_PARTY_SKILLS.md +0 -114
@@ -0,0 +1,234 @@
1
+ # SCALE Engine CLI Reference
2
+
3
+ > Auto-generated from source. Run `scale --help` for live output.
4
+
5
+ ## Top-Level Commands
6
+
7
+ | Command | Description |
8
+ |---------|-------------|
9
+ | `scale init` | Initialize SCALE governance in a project |
10
+ | `scale setup` | Interactive setup wizard |
11
+ | `scale doctor` | Diagnose SCALE installation and configuration |
12
+ | `scale preflight` | Run pre-flight checks |
13
+ | `scale status` | Show project governance status |
14
+
15
+ ## Phase Workflow
16
+
17
+ | Command | Description |
18
+ |---------|-------------|
19
+ | `scale define` | Define a new task with scope and level |
20
+ | `scale plan` | Generate implementation plan |
21
+ | `scale build` | Execute implementation with TDD |
22
+ | `scale verify` | Run verification gates |
23
+ | `scale review` | Code review and evidence check |
24
+ | `scale ship` | Prepare for release |
25
+
26
+ ## Engines
27
+
28
+ ### Shield (`scale shield`)
29
+
30
+ Hook-based security engine that intercepts dangerous commands.
31
+
32
+ | Command | Description |
33
+ |---------|-------------|
34
+ | `scale shield compile` | Compile YAML policies to executable hooks |
35
+ | `scale shield status` | Show shield configuration status |
36
+ | `scale shield test` | Test shield rules |
37
+
38
+ ### Orchestrator (`scale orch`)
39
+
40
+ Declarative orchestration daemon with git worktree isolation.
41
+
42
+ | Command | Description |
43
+ |---------|-------------|
44
+ | `scale orch start` | Start orchestration daemon |
45
+ | `scale orch stop` | Stop orchestration daemon |
46
+ | `scale orch status` | Show orchestration status |
47
+ | `scale orch log` | View orchestration logs |
48
+
49
+ ### Cortex (`scale cortex`)
50
+
51
+ Evidence-driven continuous evolution with instinct extraction.
52
+
53
+ | Command | Description |
54
+ |---------|-------------|
55
+ | `scale cortex extract` | Extract instincts from observation logs |
56
+ | `scale cortex inject` | Preview SessionStart injection content |
57
+ | `scale cortex metrics` | Show governance metrics |
58
+ | `scale cortex evolve` | Run evolution cycle |
59
+ | `scale cortex verify` | Verify cortex pipeline health |
60
+
61
+ ## Memory
62
+
63
+ | Command | Description |
64
+ |---------|-------------|
65
+ | `scale memory pack` | Build memory context pack |
66
+ | `scale memory doctor` | Diagnose memory system health |
67
+ | `scale memory settle` | Settle learning candidates |
68
+ | `scale memory ingest` | Ingest evidence into memory |
69
+ | `scale memory query` | Query memory brain |
70
+ | `scale memory contradictions` | Detect memory contradictions |
71
+ | `scale memory dream` | Run memory consolidation |
72
+ | `scale memory promote` | Promote memory node to active |
73
+ | `scale memory export` | Export memory to JSONL |
74
+ | `scale memory import` | Import memory from JSONL |
75
+
76
+ ### Memory Providers
77
+
78
+ | Command | Description |
79
+ |---------|-------------|
80
+ | `scale memory provider init` | Initialize memory provider config |
81
+ | `scale memory provider status` | Show provider health status |
82
+ | `scale memory provider recall` | Query providers for memories |
83
+ | `scale memory provider use` | Switch active memory provider |
84
+
85
+ ## Code Intelligence
86
+
87
+ | Command | Description |
88
+ |---------|-------------|
89
+ | `scale codegraph status` | Show codegraph index status |
90
+ | `scale codegraph init` | Initialize codegraph index |
91
+ | `scale codegraph query` | Query code symbols and relationships |
92
+ | `scale codegraph impact` | Analyze change impact |
93
+ | `scale codegraph context` | Build context for code review |
94
+ | `scale codegraph roi` | Show codegraph ROI metrics |
95
+ | `scale codegraph dump` | Dump codegraph data |
96
+
97
+ ## Evaluation
98
+
99
+ | Command | Description |
100
+ |---------|-------------|
101
+ | `scale eval init` | Initialize evaluation suite |
102
+ | `scale eval run` | Run evaluation suite |
103
+ | `scale eval compare` | Compare evaluation runs |
104
+ | `scale eval report` | Generate evaluation report |
105
+ | `scale eval failures` | List failure records |
106
+ | `scale eval replay` | Replay failure scenarios |
107
+ | `scale eval promote-failure` | Promote failure to learning |
108
+
109
+ ## Workflow
110
+
111
+ | Command | Description |
112
+ |---------|-------------|
113
+ | `scale workflow list` | List workflow presets |
114
+ | `scale evidence list` | List evidence records |
115
+ | `scale evidence show` | Show evidence details |
116
+ | `scale token record` | Record token usage |
117
+ | `scale token report` | Generate token usage report |
118
+
119
+ ## Runtime
120
+
121
+ | Command | Description |
122
+ |---------|-------------|
123
+ | `scale runtime start` | Start runtime session |
124
+ | `scale runtime end` | End runtime session |
125
+ | `scale runtime record` | Record runtime evidence |
126
+ | `scale runtime doctor` | Diagnose runtime health |
127
+ | `scale runtime final-check` | Run final delivery check |
128
+
129
+ ## Skills
130
+
131
+ | Command | Description |
132
+ |---------|-------------|
133
+ | `scale skill scan` | Scan for available skills |
134
+ | `scale skill plan` | Generate skill routing plan |
135
+ | `scale skill doctor` | Diagnose skill configuration |
136
+ | `scale skill check` | Check skill installation safety |
137
+ | `scale skill repo` | Browse skill repository |
138
+ | `scale skill safety` | Evaluate skill supply chain safety |
139
+ | `scale skill radar` | Show skill radar visualization |
140
+ | `scale skill recommend` | Get skill recommendations |
141
+ | `scale skill outdated` | Check for outdated skills |
142
+
143
+ ## Tools
144
+
145
+ | Command | Description |
146
+ |---------|-------------|
147
+ | `scale tool policy` | Show tool orchestration policy |
148
+ | `scale tool doctor` | Diagnose tool configuration |
149
+ | `scale tool plan` | Generate tool usage plan |
150
+ | `scale tool run` | Run tool with evidence |
151
+ | `scale tool evidence` | Show tool evidence |
152
+ | `scale tool outdated` | Check for outdated tools |
153
+
154
+ ## Governance
155
+
156
+ | Command | Description |
157
+ |---------|-------------|
158
+ | `scale governance diff` | Show governance drift |
159
+ | `scale governance mode` | Set governance mode |
160
+ | `scale governance roi` | Show governance ROI |
161
+
162
+ ## Configuration
163
+
164
+ | Command | Description |
165
+ |---------|-------------|
166
+ | `scale config profile` | Manage configuration profiles |
167
+
168
+ ## Upgrade
169
+
170
+ | Command | Description |
171
+ |---------|-------------|
172
+ | `scale upgrade check` | Check for available upgrades |
173
+ | `scale upgrade plan` | Generate upgrade plan |
174
+ | `scale upgrade apply` | Apply upgrade plan |
175
+ | `scale upgrade rollback` | Rollback latest upgrade |
176
+
177
+ ## Agents
178
+
179
+ | Command | Description |
180
+ |---------|-------------|
181
+ | `scale agent spawn` | Spawn agent instance |
182
+ | `scale agent list` | List active agents |
183
+ | `scale agent profiles` | Show agent profiles |
184
+ | `scale agent leaders` | Show leadership presets |
185
+
186
+ ## Other
187
+
188
+ | Command | Description |
189
+ |---------|-------------|
190
+ | `scale diagnose plan` | Generate diagnostic plan |
191
+ | `scale hunt scan` | Background Hunter scan |
192
+ | `scale hunt report` | Generate hunt report |
193
+ | `scale hunt diagnose` | Run hunt diagnostics |
194
+ | `scale hunt ignore` | Add to ignore baseline |
195
+ | `scale dependency audit` | Audit dependencies |
196
+ | `scale tdd slice` | Create TDD slice |
197
+ | `scale quickstart` | Quick start wizard |
198
+ | `scale tui` | Terminal UI |
199
+ | `scale qa` | Quality assurance checks |
200
+ | `scale auto-fix` | Auto-fix common issues |
201
+ | `scale cost-report` | Generate cost report |
202
+ | `scale cost-optimize` | Optimize costs |
203
+ | `scale cross-review` | Cross-agent code review |
204
+
205
+ ## Examples
206
+
207
+ ```bash
208
+ # Initialize project
209
+ scale init
210
+
211
+ # Run setup wizard
212
+ scale setup --interactive
213
+
214
+ # Define and execute a task
215
+ scale define "Add user authentication" --level M
216
+ scale plan
217
+ scale build
218
+ scale verify
219
+ scale review
220
+ scale ship
221
+
222
+ # Memory operations
223
+ scale memory query "authentication patterns"
224
+ scale memory provider status
225
+ scale memory provider use gbrain
226
+
227
+ # Code intelligence
228
+ scale codegraph query "UserService"
229
+ scale codegraph impact src/auth/login.ts
230
+
231
+ # Skills
232
+ scale skill scan
233
+ scale skill recommend "implement OAuth"
234
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hongmaple0820/scale-engine",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
4
4
  "description": "Executable AI agent governance with workflow gates, evidence, skill/tool orchestration, and traceable HTML artifacts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,10 +25,9 @@
25
25
  "files": [
26
26
  "dist",
27
27
  "docs/README.md",
28
- "docs/SKILL_RADAR.md",
29
- "docs/SKILL-REPOSITORY.md",
30
- "docs/EXTERNAL_REFERENCES.md",
31
- "docs/THIRD_PARTY_SKILLS.md",
28
+ "docs/reference",
29
+ "docs/architecture",
30
+ "docs/migration",
32
31
  "docs/guides",
33
32
  "docs/start",
34
33
  "docs/workflow",
@@ -56,11 +55,13 @@
56
55
  "serve": "node dist/api/http.js"
57
56
  },
58
57
  "dependencies": {
58
+ "@hono/node-server": "^2.0.4",
59
59
  "@modelcontextprotocol/sdk": "1.29.0",
60
60
  "better-sqlite3": "^11.10.0",
61
61
  "chokidar": "^3.6.0",
62
62
  "citty": "^0.1.6",
63
63
  "content-type": "1.0.5",
64
+ "echarts": "^6.1.0",
64
65
  "execa": "^9.3.0",
65
66
  "hono": "^4.5.0",
66
67
  "js-yaml": "^4.1.0",
@@ -1,66 +0,0 @@
1
- # External Reference Inventory
2
-
3
- This inventory is the source of truth for external projects, community skills, MCP servers, CLIs, and adapter targets referenced by SCALE. It complements [Third-Party Skills and External References](THIRD_PARTY_SKILLS.md).
4
-
5
- The inventory is intentionally conservative:
6
-
7
- - A row here is an acknowledgement and governance record, not a claim that upstream code is vendored.
8
- - License is only marked when it has been explicitly reviewed in this repository. Unknown or unverified projects stay `review-required`.
9
- - Any future vendoring, source copying, modified redistribution, bundled assets, logos, examples, or generated derivatives must preserve upstream license text, copyright notices, NOTICE files, source URL, pinned revision, and modification notes.
10
- - External services and memory providers remain disabled or read-only by default until privacy, retention, credential, and deletion boundaries are reviewed.
11
-
12
- ## Current References
13
-
14
- | Upstream | Role in SCALE | Usage status | License status | Primary source surface |
15
- | --- | --- | --- | --- | --- |
16
- | [OthmanAdi/planning-with-files](https://github.com/OthmanAdi/planning-with-files) | File-backed planning workflow reference | adapted concept, not vendored | MIT | `SkillRepository`, README, `THIRD_PARTY_SKILLS` |
17
- | [rohitg00/agentmemory](https://github.com/rohitg00/agentmemory) | Secondary external memory provider | external provider, fallback-only | Apache-2.0 | `MemoryProviders`, `SkillRepository`, README |
18
- | [garrytan/gbrain](https://github.com/garrytan/gbrain) | Default graph-backed memory provider | external provider, default-enabled | MIT | `MemoryProviders`, `SkillRepository`, README |
19
- | [safishamsi/graphify](https://github.com/safishamsi/graphify) | Default knowledge graph and semantic recall source | external provider, default-enabled | review-required | `GraphifyKnowledgeBase`, `CodeIntelligence`, docs |
20
- | [colbymchenry/codegraph](https://github.com/colbymchenry/codegraph) | Upstream code intelligence CLI and MCP server for project-local code graph queries | external CLI and MCP reference | MIT | `CodeIntelligence`, `doctor`, quickstart docs |
21
- | [anthropics/skills](https://github.com/anthropics/skills) | Frontend and webapp testing skill references | external skill reference | review-required | `SkillRepository`, `SkillCatalog`, `ToolCapabilityRegistry` |
22
- | [anthropics/claude-code](https://github.com/anthropics/claude-code) | Graphify and playwright-interactive skill references | optional discovery reference | review-required | `SkillDiscovery` |
23
- | [VoltAgent/awesome-design-md](https://github.com/VoltAgent/awesome-design-md) | Design system and DESIGN.md guidance | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
24
- | [nextlevelbuilder/ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) | UI/UX design intelligence reference | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
25
- | [rtk-ai/rtk](https://github.com/rtk-ai/rtk) | Governed CLI proxy for output compression and shell wrapping | external CLI reference | review-required | `ToolCapabilityRegistry`, `ToolOrchestrator`, `InstalledSkillsIntegration`, docs |
26
- | [eze-is/web-access](https://github.com/eze-is/web-access) | Web research and browser automation skill | external skill reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
27
- | [vercel-labs/agent-browser](https://github.com/vercel-labs/agent-browser) | Browser automation CLI | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
28
- | [ChromeDevTools/chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp) | Chrome DevTools MCP integration | MCP reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
29
- | [trycua/cua](https://github.com/trycua/cua) | Desktop computer-use automation | restricted external automation reference | review-required | `SkillRepository`, `ExternalSkills`, `ToolCapabilityRegistry` |
30
- | [microsoft/playwright](https://github.com/microsoft/playwright) | Browser automation and validation | optional discovery reference | review-required | `SkillDiscovery` |
31
- | [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) | Gemini CLI and community skill examples | external CLI and skill reference | review-required | `SkillRepository`, `SkillCatalog`, adapters |
32
- | [openai/codex](https://github.com/openai/codex) | Codex CLI adapter and external reviewer | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, adapters |
33
- | [sst/opencode](https://github.com/sst/opencode) | OpenCode CLI reference used by routing | external CLI reference | review-required | `SkillRepository`, `ExternalSkills`, `SkillDoctor` |
34
- | [opencode-ai/opencode](https://github.com/opencode-ai/opencode) | OpenCode adapter source comment | adapter target reference | review-required | `OpenCodeAdapter` |
35
- | [facebook/react](https://github.com/facebook/react) | React fix skill example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
36
- | [vercel/next.js](https://github.com/vercel/next.js) | Next.js documentation update skill example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
37
- | [vercel-labs/skills](https://github.com/vercel-labs/skills) | Skill discovery example | external skill reference | review-required | `SkillRepository`, `SkillCatalog` |
38
- | [Shubhamsaboo/awesome-llm-apps](https://github.com/Shubhamsaboo/awesome-llm-apps) | Full-stack agent skill example | external skill reference | review-required | `SkillCatalog` |
39
- | [jnMetaCode/agency-agents-zh](https://github.com/jnMetaCode/agency-agents-zh) | Chinese role preset reference | external preset reference | review-required | `SkillRepository` |
40
- | [yizhiyanhua-ai/fireworks-tech-graph](https://github.com/yizhiyanhua-ai/fireworks-tech-graph) | Diagram skill discovery and installer reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
41
- | [github/awesome-copilot](https://github.com/github/awesome-copilot) | Excalidraw diagram skill source | optional install reference | review-required | `ExternalSkills`, `SkillInstaller`, installation workflow doc |
42
- | [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) | Architecture diagram skill reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
43
- | [heygen-com/hyperframes](https://github.com/heygen-com/hyperframes) | Video generation CLI reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
44
- | [op7418/guizang-ppt-skill](https://github.com/op7418/guizang-ppt-skill) | PPT generation skill reference | optional install reference | review-required | `ExternalSkills`, `SkillDiscovery`, `SkillInstaller` |
45
- | [QwenLM/qwen-code](https://github.com/QwenLM/qwen-code) | QCoder adapter target | adapter target reference | review-required | `QCoderAdapter` |
46
- | [Qoder docs](https://docs.qoder.com/) | Qoder adapter target | adapter target reference | review-required | `QoderAdapter` |
47
- | JCode | JCode adapter target; upstream source and license still need review | provisional adapter target reference | review-required | `JCodeAdapter` |
48
- | [Cline docs](https://docs.cline.bot/) | Cline adapter target | adapter target reference | review-required | `ClineAdapter` |
49
- | [Kilo Code docs](https://docs.kilocode.ai/) | Kilo Code adapter target | adapter target reference | review-required | `KiloCodeAdapter` |
50
- | [Google Antigravity docs](https://antigravity.google/docs/) | Antigravity adapter target | adapter target reference | review-required | `AntigravityAdapter` |
51
- | [openclaw-ai/openclaw](https://github.com/openclaw-ai/openclaw) | OpenClaw adapter target | adapter target reference | review-required | `OpenClawAdapter` |
52
- | [hermes-ai/hermes](https://github.com/hermes-ai/hermes) | Hermes adapter target | adapter target reference | review-required | `HermesAdapter` |
53
- | [Hmbown/deepseek-tui](https://github.com/Hmbown/deepseek-tui) | DeepSeek TUI adapter target | adapter target reference | review-required | `DeepSeekTuiAdapter` |
54
- | [Aider-AI/aider](https://github.com/Aider-AI/aider) | Aider adapter target | adapter target reference | review-required | `AiderAdapter` |
55
-
56
- ## Required Maintenance
57
-
58
- When a new GitHub upstream is referenced from `src/skills`, `src/tools`, `src/adapters`, or current tool orchestration docs, update this inventory in the same change. `tests/docs/externalReferences.test.ts` scans those surfaces and fails if a referenced upstream is missing from this file.
59
-
60
- Before promoting any `review-required` item to a declared license status, record:
61
-
62
- 1. upstream license file and revision
63
- 2. upstream copyright and NOTICE obligations
64
- 3. whether SCALE vendors code, adapts concepts, or only links to the project
65
- 4. modification notes for copied or derived files
66
- 5. installation, script, and permission review evidence
@@ -1,57 +0,0 @@
1
- # SCALE Skill 仓库
2
-
3
- 这个仓库视图用于让 Agent 按任务渐进式发现、激活和编排 skills/MCP/CLI,而不是一次性把所有能力塞进上下文。
4
-
5
- ## 渐进式披露
6
-
7
- 1. 启动时只读取 Skill 元数据和一句话描述。
8
- 2. 任务命中时才读取完整 SKILL.md。
9
- 3. scripts、references、assets 只在明确需要时懒加载。
10
-
11
- ## 安全安装
12
-
13
- - 安装前必须执行安全扫描,阻断 `curl | bash`、`Invoke-Expression`、危险删除和非 HTTPS 来源。
14
- - npm/npx 来源必须补充 `npm audit signatures`、来源仓库、许可证和版本/commit 固定检查。
15
- - 任何第三方 Skill 都先进入隔离审查,再写入项目或全局 skills 目录。
16
-
17
- ## 供应链防护清单
18
-
19
- - review-skill-frontmatter
20
- - inspect-scripts-directory
21
- - verify-license-and-source
22
- - verify-attribution-and-notice
23
- - pin-source-revision
24
- - npm-audit-signatures
25
-
26
- ## Skill 目录
27
-
28
- | ID | 类别 | 信任 | 主要用途 | 组合建议 |
29
- | --- | --- | --- | --- | --- |
30
- | `planning-with-files` | planning | community | Use persistent planning files, progress logs, findings, active-plan selection, and plan attestation for long-running agent work. | memory-brain, web-access, code-reviewer |
31
- | `agentmemory` | memory | community | Use as an optional external memory provider via REST or MCP when teams want cross-agent persistent memory beyond SCALE local Memory Brain. | memory-brain, mcp-chrome-devtools, codex-cli |
32
- | `gbrain` | memory | community | Use as the default graph-backed memory provider for long-running project knowledge, entity relationships, and background memory maintenance. | memory-brain, agentmemory, codegraph |
33
- | `frontend-design` | ui | official | 在 DESIGN.md 和 UX 验收之后补齐前端实现约束、组件状态和落地方式。 | awesome-design-md, ui-ux-pro-max, webapp-testing |
34
- | `awesome-design-md` | ui | ecosystem | 建立产品级设计规范、品牌语言和 DESIGN.md。 | ui-ux-pro-max, frontend-design |
35
- | `ui-ux-pro-max` | ui | ecosystem | 补齐体验策略、交互状态和 UI 验收维度。 | awesome-design-md, webapp-testing |
36
- | `webapp-testing` | testing | official | 验证页面点击、表单、控制台、截图和端到端行为。 | agent-browser, mcp-chrome-devtools |
37
- | `web-access` | browser | ecosystem | 获取一手资料、动态页面内容、网页证据和来源引用。 | agent-browser, mcp-chrome-devtools |
38
- | `agent-browser` | browser | ecosystem | 与 Web 页面真实交互,补齐手工验收证据。 | web-access, webapp-testing, mcp-chrome-devtools |
39
- | `mcp-chrome-devtools` | browser | ecosystem | 调试控制台错误、网络请求、页面状态和性能问题。 | agent-browser, webapp-testing |
40
- | `cua` | desktop | ecosystem | 操作桌面应用并收集端侧截图、状态和副作用边界证据。 | web-access, agent-browser |
41
- | `code-reviewer` | review | official | 合并前分级审查缺陷、安全、可维护性和测试风险。 | security-and-hardening, update-docs |
42
- | `fix` | review | official | 提交前清理格式和 lint 问题。 | code-reviewer |
43
- | `pr-creator` | review | official | 生成标准 PR 描述和合并前说明。 | code-reviewer, update-docs |
44
- | `update-docs` | docs | official | 发现并更新受代码变更影响的长期文档。 | documentation-and-adrs |
45
- | `find-skills` | discovery | ecosystem | 按任务意图搜索合适 Skill,再进入安全扫描。 | web-access |
46
- | `codex-cli` | agent-cli | official | 外部 CLI 审查和命令级证据。 | gemini-cli, opencode-cli |
47
- | `gemini-cli` | agent-cli | official | 外部 CLI 审查和命令级证据。 | codex-cli, opencode-cli |
48
- | `opencode-cli` | agent-cli | ecosystem | 外部 CLI 审查和命令级证据。 | codex-cli, gemini-cli |
49
- | `agency-agents-zh` | role-library | community | 提供 CEO、CTO、工程、设计、产品等角色预设参考。 | skill-safety-scan |
50
-
51
- ## Third-Party Attribution
52
-
53
- | ID | License | Usage | Notice |
54
- | --- | --- | --- | --- |
55
- | `planning-with-files` | MIT | adapted-concept | Inspired by and compatible with OthmanAdi/planning-with-files. SCALE should not copy upstream files unless the MIT license text and attribution are included. |
56
- | `agentmemory` | Apache-2.0 | external-reference | Optional external integration only. Do not vendor agentmemory code into SCALE without preserving Apache-2.0 license text, modification notices, and any upstream NOTICE obligations. |
57
- | `gbrain` | MIT | external-reference | Optional external provider only. Do not vendor GBrain code into SCALE without preserving MIT license text, source revision, and modification notices. |
@@ -1,135 +0,0 @@
1
- # Skill Radar
2
-
3
- Skill Radar is the active capability selection layer for SCALE. It does not auto-install or blindly run skills. It scores relevant skills, MCP servers, browser tools, desktop automation, and external CLIs against the current task, then returns:
4
-
5
- - why the capability matches
6
- - confidence score
7
- - safety level
8
- - required evidence
9
- - fallback path
10
- - supply-chain checks before installation or promotion
11
-
12
- The goal is to make agents actively use useful tools without turning the project into an unsafe prompt or tool bundle.
13
-
14
- ## Commands
15
-
16
- ```bash
17
- scale skill radar --task "Design upload UI and run browser E2E checks" --files src/pages/upload.tsx
18
- scale skill radar --task "Automate WPS desktop workflow with CUA" --json
19
- scale skill radar --task "Review release PR" --phase review --level L --output docs/worklog/tasks/release/skill-radar.md
20
- scale skill doctor --supply-chain
21
- scale skill doctor --supply-chain --json
22
- scale ai-os plan --task "Design upload UI and run browser E2E checks" --files src/pages/upload.tsx --json
23
- ```
24
-
25
- ## Safety Levels
26
-
27
- | Level | Meaning | Default action |
28
- | --- | --- | --- |
29
- | `trusted` | Official or low-risk capability with policy enabled | May be recommended when confidence is high |
30
- | `review-required` | Third-party or ecosystem capability | Require source, license, scripts, and revision review |
31
- | `restricted` | Browser, desktop, or external execution boundary | Require explicit evidence and side-effect boundaries |
32
- | `blocked` | Disabled by policy or failed safety review | Do not run; use fallback |
33
-
34
- ## Confidence
35
-
36
- Skill Radar combines:
37
-
38
- - task keywords and workflow phase
39
- - changed file patterns
40
- - local skill installation
41
- - tool availability
42
- - trust level
43
- - policy status
44
- - frontend/package evidence
45
- - safety penalties
46
-
47
- The score is not a promise that the tool will work. It is a routing signal. Any recommendation still needs real evidence before the agent can claim success.
48
-
49
- ## Default Domains
50
-
51
- | Domain | Typical triggers | Recommended capability types |
52
- | --- | --- | --- |
53
- | `ui` | UI, UX, frontend, component, visual, layout | design skills, visual review, screenshot evidence |
54
- | `browserAutomation` | browser, E2E, Playwright, Chrome, DevTools | web access, browser automation, DevTools evidence |
55
- | `desktopAutomation` | desktop, GUI, WPS, WeChat, CUA | disabled by default; manual operator fallback |
56
- | `externalCli` | Codex, Gemini, OpenCode, external agent CLI | disabled by default; dry-run and output evidence |
57
- | `review` | PR, merge, release, code review | reviewer skills, severity findings |
58
- | `docs` | docs, README, ADR, governance asset | doc impact and source-of-truth evidence |
59
- | `planning` | plans, task_plan, findings, progress, long-running work | file-backed planning, progress logs, plan attestation |
60
- | `memory` | memory, recall, knowledge, persistent memory, agentmemory, gbrain | provider-routed memory through agentmemory, gbrain, or scale-local fallback |
61
- | `discovery` | skill, MCP, tool, capability discovery | find-skills plus safety review |
62
-
63
- ## Evidence Contract
64
-
65
- Each recommendation carries required evidence. Examples:
66
-
67
- - UI work: `ui-spec`, `design-rationale`, `screenshot`, `visual-review`
68
- - Browser work: `browser-evidence`, `console-summary`, `network-summary`, `scenario-result`
69
- - Desktop work: `operator-boundary`, `desktop-screenshot`, `affected-app`
70
- - External CLI work: `cli-version-check`, `command`, `exit-code`, `output-summary`
71
- - Review work: `review-report`, `finding-list`, `severity`
72
- - Planning work: `task-plan`, `findings-log`, `progress-log`, `plan-attestation`
73
- - Memory work: `memory-provider-health`, `privacy-boundary`, `data-retention-policy`, `query-result`
74
-
75
- If evidence is missing, the final delivery should list the capability as unverified rather than claiming it was used successfully.
76
-
77
- ## Skill Execution Plan
78
-
79
- In v0.27.0, `createSkillPlan` and `scale ai-os plan` return an `executionPlan`:
80
-
81
- - `strategy`: currently `intent-evidence-graph-v1`
82
- - `steps`: ordered skill, artifact, and verification actions
83
- - `reason`: why the step was selected from task intents
84
- - `evidenceRequired`: what proof must be recorded
85
- - `fallback`: what to do when the skill, MCP, CLI, or verification path is unavailable
86
-
87
- This turns skill routing from a recommendation list into an auditable execution graph. Required steps still need concrete evidence or an explicit skipped/fallback record; recommended steps may be skipped with a reason.
88
-
89
- ## Supply-Chain Doctor
90
-
91
- `scale skill doctor --supply-chain` reviews known skill sources and install commands for:
92
-
93
- - HTTPS source requirement
94
- - `curl | bash`, `wget | sh`, `Invoke-Expression`, and `iex` blocking
95
- - destructive install patterns
96
- - npm/npx lifecycle script review
97
- - required source, license, and revision checks
98
- - third-party attribution and NOTICE checks
99
-
100
- This is intentionally conservative. Third-party skills should start in review-required mode and be promoted only after inspection.
101
-
102
- External skill references and acknowledgements are tracked in [Third-Party Skills and External References](THIRD_PARTY_SKILLS.md) and the full [External Reference Inventory](EXTERNAL_REFERENCES.md). SCALE should not vendor community skill code unless the license text, source revision, copyright notice, and modification notes are preserved.
103
-
104
- ## Policy Integration
105
-
106
- Skill Radar reads `.scale/tools.json` through the Tool Policy layer. Defaults:
107
-
108
- - UI and browser capabilities are enabled but evidence-required.
109
- - Desktop CUA is disabled by default.
110
- - External agent CLIs are disabled by default.
111
- - Browser tools require captured evidence and should stay in approved domains.
112
-
113
- Use Tool Policy to enable a restricted capability deliberately rather than relying on an agent's assumption.
114
-
115
- ## Fallback Rule
116
-
117
- Every recommendation must include a fallback. This prevents tool theater:
118
-
119
- ```text
120
- If the capability is missing, unsafe, low-confidence, or policy-blocked,
121
- the agent must use the fallback and record why the capability was not used.
122
- ```
123
-
124
- ## Artifact Lifecycle
125
-
126
- Skill Radar reports can be written into task artifacts:
127
-
128
- ```bash
129
- scale skill radar \
130
- --task "Refactor upload page and verify browser flow" \
131
- --files src/pages/upload.tsx \
132
- --output docs/worklog/tasks/2026-05-19-upload-refactor/skill-radar.md
133
- ```
134
-
135
- Keep the report when it is evidence for an M/L/CRITICAL task. Do not commit transient local detection output unless it is part of the reviewed task artifact set.
@@ -1,114 +0,0 @@
1
- # Third-Party Skills and External References
2
-
3
- This document records external skill projects that SCALE may learn from, recommend, or integrate with. It is a governance boundary, not a vendoring manifest. The complete cross-repo inventory is maintained in [External Reference Inventory](EXTERNAL_REFERENCES.md).
4
-
5
- ## Policy
6
-
7
- - Do not vendor third-party skill code, images, logos, examples, or marketing copy unless the license review explicitly allows redistribution.
8
- - Preserve upstream license text, copyright notices, NOTICE files, source URL, and source revision before any vendored or modified redistribution.
9
- - Mark modified files and document what changed from upstream.
10
- - Treat optional external services as review-required until privacy, retention, credential, and delete boundaries are reviewed.
11
- - `scale skill doctor --supply-chain` must include license, attribution, script, and pinned-revision checks for third-party skills.
12
- - Community skills start as `review-required`; promotion requires real installation evidence and a recorded safety decision.
13
-
14
- ## Highlighted External References
15
-
16
- | Project | License | Upstream | SCALE usage | Redistribution status |
17
- | --- | --- | --- | --- | --- |
18
- | Planning with Files | MIT | [OthmanAdi/planning-with-files](https://github.com/OthmanAdi/planning-with-files) | Adapt concepts for file-backed plans, findings, progress logs, active-plan routing, and plan attestation. | Not vendored. |
19
- | agentmemory | Apache-2.0 | [rohitg00/agentmemory](https://github.com/rohitg00/agentmemory) | Optional external memory provider via REST or MCP for teams that need cross-agent persistent memory beyond local SCALE Memory Brain. | Not vendored. |
20
- | GBrain | MIT | [garrytan/gbrain](https://github.com/garrytan/gbrain) | Default memory provider route for graph-backed cross-session recall. SCALE verifies that a brain is configured and recall-critical health checks pass; CLI existence alone is not enough. | Not vendored. |
21
- | awesome-design-md | MIT | [VoltAgent/awesome-design-md](https://github.com/VoltAgent/awesome-design-md) | DESIGN.md catalog for brand, visual language, typography, and design-system direction. `scale setup --pack ui --apply` syncs upstream under `~/.scale/vendor/awesome-design-md` and creates `~/.agents/skills/awesome-design-md/SKILL.md`. | Installed only with explicit setup/apply. |
22
- | ui-ux-pro-max | Upstream project license | [nextlevelbuilder/ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) | UX, UI state, accessibility, responsive, and acceptance-review skill. `scale setup --pack ui --apply` syncs upstream under `~/.scale/vendor/ui-ux-pro-max` and creates `~/.agents/skills/ui-ux-pro-max/SKILL.md`. | Installed only with explicit setup/apply. |
23
- | RTK | Upstream project license | [rtk-ai/rtk](https://github.com/rtk-ai/rtk) | Governed CLI proxy for shell-output compression and token savings. SCALE checks `rtk gain` and hook initialization. | External CLI only. |
24
- | Graphify | Upstream project license | [safishamsi/graphify](https://github.com/safishamsi/graphify) | Knowledge graph artifact provider. SCALE expects `graphify-out/graph.json` and Codex hook/skill freshness before relying on it. | Generated artifacts are project-local. |
25
- | CodeGraph | Upstream project license | [colbymchenry/codegraph](https://github.com/colbymchenry/codegraph) | Code structure provider for symbol/context exploration. SCALE expects a project `.codegraph/` index. | External CLI/index only. |
26
-
27
- Other referenced skills, MCP servers, CLIs, discovery candidates, and adapter targets are listed in [External Reference Inventory](EXTERNAL_REFERENCES.md). Unknown licenses stay `review-required`; do not treat a repository link as redistribution permission.
28
-
29
- ## Acknowledgements
30
-
31
- SCALE acknowledges these upstream projects and contributors:
32
-
33
- - `OthmanAdi/planning-with-files`, Copyright (c) 2026 Ahmad Adi.
34
- - `rohitg00/agentmemory` and its upstream contributors.
35
- - `garrytan/gbrain` and its upstream contributors.
36
- - All upstream projects listed in [External Reference Inventory](EXTERNAL_REFERENCES.md) according to their licenses and contribution histories.
37
-
38
- The current SCALE implementation records these projects as external references or adapted concepts. It does not copy their source code into this repository.
39
-
40
- ## Vendoring Checklist
41
-
42
- If SCALE later vendors or modifies any third-party skill, the change must include:
43
-
44
- 1. Full upstream license text in the distributed package.
45
- 2. Upstream copyright and NOTICE material.
46
- 3. Source repository URL and pinned revision.
47
- 4. Modification notes for every copied or changed file.
48
- 5. Tests or doctor checks proving the attribution metadata is present.
49
- 6. README and generated skill repository documentation updates.
50
-
51
- ## Runtime Boundaries
52
-
53
- External memory providers must not be enabled silently. Before use, record:
54
-
55
- - provider endpoint and health check evidence
56
- - project data scope
57
- - credential boundary
58
- - retention and deletion policy
59
- - whether data leaves the local machine or team-controlled infrastructure
60
- - whether provider writes are disabled, candidate-only, or explicitly enabled
61
-
62
- External planning skills must not replace SCALE task evidence. They can improve the plan artifact shape, but final delivery still requires verification output, changed-file evidence, and explicit unverified-risk notes.
63
-
64
- ## User-Facing Setup
65
-
66
- Use the governed installer instead of asking users to discover every upstream command manually:
67
-
68
- ```bash
69
- scale setup --pack full
70
- scale setup --pack full --apply --yes
71
- scale setup --pack full --json
72
- ```
73
-
74
- Default language is Chinese. Running `scale setup` without `--json` starts the interactive wizard: language, dependency pack, memory provider, memory route, and install scope. Use `--lang en` or `SCALE_LANG=en` for English output.
75
-
76
- `setup` and `bootstrap deps` now expose report-level `runtimeChecks` before any install command runs. Missing `python`, `bun`, `cargo`, `uv/pipx`, or `node/npm/npx` is shown with a targeted install hint, so users can fix the environment before `--yes`/`--apply`.
77
-
78
- Memory provider routing can be configured during setup:
79
-
80
- ```bash
81
- scale setup --pack memory --memory-provider scale-local --json
82
- scale setup --pack memory --memory-provider gbrain --memory-mode external-first --json
83
- ```
84
-
85
- Repository maintainers should run the setup smoke before release or after changing installer behavior:
86
-
87
- ```bash
88
- npm run smoke:setup
89
- make setup-smoke
90
- ```
91
-
92
- The smoke is intentionally non-destructive: it validates bilingual output, `runtimeChecks`, memory-provider routing writes in a temp `.scale`, and CodeGraph/Graphify status discovery without running third-party installers.
93
-
94
- For a real installer smoke in an isolated home directory, verify both the skill adapter and the upstream vendor checkout:
95
-
96
- ```bash
97
- scale setup --pack ui --include awesome-design-md --apply --yes
98
- test -f ~/.agents/skills/awesome-design-md/SKILL.md
99
- test -d ~/.scale/vendor/awesome-design-md
100
- ```
101
-
102
- For OS-specific failures, run:
103
-
104
- ```bash
105
- scale doctor env --json
106
- ```
107
-
108
- This reports platform, shell discovery, PATH shape, core tools, package managers, and optional third-party runtimes in one machine-readable payload.
109
-
110
- `frontend-design` is no longer part of the default UI install path. The default UI stack is:
111
-
112
- - `awesome-design-md` for brand, visual language, and `DESIGN.md`.
113
- - `ui-ux-pro-max` for UX flow, UI state, accessibility, and responsive acceptance.
114
- - `frontend-design` only when explicitly requested with `--include frontend-design`.