skill-flow 1.0.2 → 1.0.4

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 (57) hide show
  1. package/README.md +62 -23
  2. package/README.zh.md +63 -25
  3. package/dist/cli.js +13 -39
  4. package/dist/cli.js.map +1 -1
  5. package/dist/domain/types.d.ts +12 -1
  6. package/dist/services/doctor-service.js +1 -1
  7. package/dist/services/doctor-service.js.map +1 -1
  8. package/dist/services/skill-flow.d.ts +16 -13
  9. package/dist/services/skill-flow.js +158 -5
  10. package/dist/services/skill-flow.js.map +1 -1
  11. package/dist/services/source-service.d.ts +11 -1
  12. package/dist/services/source-service.js +60 -18
  13. package/dist/services/source-service.js.map +1 -1
  14. package/dist/services/workflow-service.d.ts +2 -2
  15. package/dist/services/workflow-service.js +17 -4
  16. package/dist/services/workflow-service.js.map +1 -1
  17. package/dist/services/workspace-bootstrap-service.d.ts +25 -0
  18. package/dist/services/workspace-bootstrap-service.js +148 -0
  19. package/dist/services/workspace-bootstrap-service.js.map +1 -0
  20. package/dist/state/store.js +1 -0
  21. package/dist/state/store.js.map +1 -1
  22. package/dist/tests/skill-flow.test.js +1458 -0
  23. package/dist/tests/skill-flow.test.js.map +1 -1
  24. package/dist/tui/config-app.d.ts +3 -0
  25. package/dist/tui/config-app.js +61 -1
  26. package/dist/tui/config-app.js.map +1 -1
  27. package/dist/tui/find-app.d.ts +1 -1
  28. package/dist/tui/find-app.js +36 -4
  29. package/dist/tui/find-app.js.map +1 -1
  30. package/dist/utils/format.js +1 -1
  31. package/dist/utils/format.js.map +1 -1
  32. package/dist/utils/naming.d.ts +1 -0
  33. package/dist/utils/naming.js +7 -1
  34. package/dist/utils/naming.js.map +1 -1
  35. package/dist/utils/source-id.js +4 -0
  36. package/dist/utils/source-id.js.map +1 -1
  37. package/package.json +10 -1
  38. package/.gstack/browse-network.log +0 -1
  39. package/.gstack/browse.json +0 -7
  40. package/.gstack/qa-reports/base-branch.txt +0 -1
  41. package/.gstack/qa-reports/qa-report-skill-flow-cli-2026-03-22.md +0 -159
  42. package/.gstack/qa-reports/qa-report-skill-manager-2026-03-22.md +0 -60
  43. package/docs/DESIGN.md +0 -407
  44. package/docs/PRD/PRD-1.0.0.md +0 -1862
  45. package/docs/PRD/renew/PRD-0.0.0.md +0 -26
  46. package/docs/PRD/renew/PRD-0.0.1.md +0 -408
  47. package/docs/PRD/renew/PRD-0.0.2.md +0 -705
  48. package/docs/PRD/renew/PRD-0.0.3.md +0 -740
  49. package/docs/PRD/renew/PRD-0.0.4.md +0 -1494
  50. package/docs/README.md +0 -242
  51. package/docs/plan/PLAN_v1.0.0.md +0 -663
  52. package/docs/plan/PLAN_v1.0.1.md +0 -845
  53. package/docs/refrences/README.md +0 -9
  54. package/docs/refrences/agent-skill-paths.md +0 -274
  55. package/docs/refrences/config-state-reconciliation.md +0 -199
  56. package/docs/refrences/naming-dedupe-warning-rules.md +0 -482
  57. package/img/img-1.jpg +0 -0
package/docs/README.md DELETED
@@ -1,242 +0,0 @@
1
- # Skill Flow
2
-
3
- `skill-flow` is a terminal-first workflow control tower for AI agent skills.
4
-
5
- It is designed for the real problem behind skills management:
6
-
7
- - one source often contains several related skills
8
- - those skills belong to one workflow
9
- - after install, they get flattened into hidden target directories
10
- - later updates, reconfiguration, and troubleshooting become harder than the initial install
11
-
12
- The first release of `skill-flow` is intentionally narrow:
13
-
14
- - add a Git source
15
- - discover grouped skills from that source
16
- - view them as one workflow group
17
- - project selected skills into multiple agent targets
18
- - update that workflow later without losing structure
19
- - diagnose drift and broken projections clearly
20
-
21
- This project does **not** execute skills. It manages, projects, updates, and diagnoses them.
22
-
23
- ## Product Direction
24
-
25
- The approved v1 direction is:
26
-
27
- **Workflow Control Tower MVP**
28
-
29
- That means:
30
-
31
- - workflow-first UX
32
- - Git-only source support in v1
33
- - grouped management over discovery breadth
34
- - explicit state via `manifest.json + lock.json`
35
- - no physical canonical skill store
36
- - no discovery / ranking / search platform in the first release
37
-
38
- The goal is not to build the biggest skills platform first.
39
-
40
- The goal is to ship the smallest complete product that makes grouped skills finally make sense.
41
-
42
- ## v1 Scope
43
-
44
- ### In scope
45
-
46
- - Git source add / update / remove
47
- - grouped workflow view from source contents
48
- - leaf skill discovery
49
- - workflow-first terminal UI for configuration
50
- - projection into supported agent directories
51
- - grouped update and re-apply
52
- - minimal `doctor`
53
- - full automated coverage for critical happy-path and failure-path flows
54
-
55
- ### Not in scope
56
-
57
- - discovery / `find`
58
- - ranking / recommendation
59
- - ClawHub in v1
60
- - well-known discovery URLs
61
- - physical canonical skill store
62
- - GUI / desktop shell
63
- - plugin SDK
64
-
65
- ## Core Mental Model
66
-
67
- Internal domain model:
68
-
69
- ```text
70
- Source -> SkillLeaf -> DeploymentTarget -> DeploymentState
71
- ```
72
-
73
- User-facing model:
74
-
75
- ```text
76
- Workflow Group -> Contained Skills -> Projects To
77
- ```
78
-
79
- This distinction is intentional.
80
- The system stays technically honest, but the UI presents the structure users actually think in.
81
-
82
- ## UX Shape
83
-
84
- The primary flow is:
85
-
86
- ```text
87
- add source
88
- ->
89
- see grouped workflow
90
- ->
91
- inspect contained skills
92
- ->
93
- select targets
94
- ->
95
- preview changes
96
- ->
97
- apply projection
98
- ->
99
- update later without losing context
100
- ```
101
-
102
- Target wide-layout interaction:
103
-
104
- ```text
105
- +------------------------+--------------------------+----------------------+
106
- | WORKFLOW GROUPS | GROUP DETAIL | AGENT PROJECTION |
107
- | | | |
108
- | frontend-workflow | Purpose | Claude Code |
109
- | agent-ops | Contained Skills | Codex (.agents) |
110
- | pdf-toolchain | Health / Warnings | OpenCode |
111
- | | Update State | OpenClaw |
112
- +------------------------+--------------------------+----------------------+
113
- ```
114
-
115
- ## Architecture
116
-
117
- ### Source of truth
118
-
119
- `skill-flow` has two state files:
120
-
121
- - `manifest.json`
122
- User intent
123
- - `lock.json`
124
- Resolved source snapshot, leaf inventory, and deployment state
125
-
126
- Target directories are projections only. They are never the truth.
127
-
128
- ### Filesystem layout
129
-
130
- ```text
131
- ~/.skillflow/
132
- ├── source/
133
- │ └── git/
134
- │ └── <source-id>/
135
- ├── manifest.json
136
- └── lock.json
137
- ```
138
-
139
- There is no physical `skills/` store in v1.
140
-
141
- ### Channel model
142
-
143
- Supported v1 targets:
144
-
145
- - Claude Code
146
- - Codex (`.agents/skills`)
147
- - OpenCode
148
- - OpenClaw
149
-
150
- Default strategies:
151
-
152
- - Claude Code: symlink
153
- - Codex (`.agents/skills`): symlink
154
- - OpenCode: symlink
155
- - OpenClaw: copy
156
-
157
- ## Plans and Design Docs
158
-
159
- Current source-of-truth docs:
160
-
161
- - Design system:
162
- [`DESIGN.md`](/Users/Vint/仓库/03%20Project/skill-flow/DESIGN.md)
163
- - Implementation plan:
164
- [`docs/plan/PLAN_v1.0.0.md`](/Users/Vint/仓库/03%20Project/skill-flow/docs/plan/PLAN_v1.0.0.md)
165
- - Original broad PRD:
166
- [`PRD/PRD-1.0.0.md`](/Users/Vint/仓库/03%20Project/skill-flow/PRD/PRD-1.0.0.md)
167
-
168
- The original PRD is useful for history and model exploration, but `PLAN_v1.0.0.md` is the implementation baseline for v1.
169
-
170
- ## Engineering Principles
171
-
172
- This project is intentionally biased toward:
173
-
174
- - explicit over clever
175
- - narrow but complete scope
176
- - strong edge-case handling
177
- - workflow-first UX
178
- - small number of core services
179
- - heavy automated test coverage
180
-
181
- v1 should be:
182
-
183
- - narrow in scope
184
- - complete in behavior
185
- - strong in grouped workflow understanding
186
- - boring in architecture where possible
187
-
188
- ## Planned Module Shape
189
-
190
- ```text
191
- src/
192
- ├── commands/
193
- ├── domain/
194
- ├── services/
195
- ├── adapters/
196
- ├── state/
197
- ├── tui/
198
- └── tests/
199
- ```
200
-
201
- Core service boundaries:
202
-
203
- - `SourceService`
204
- - `InventoryService`
205
- - `DeploymentPlanner`
206
- - `DeploymentApplier`
207
-
208
- ## Testing
209
-
210
- Required v1 test coverage includes:
211
-
212
- - add happy path
213
- - invalid source fetch
214
- - zero valid leafs
215
- - mixed valid/invalid leafs
216
- - target conflict
217
- - broken projection detection
218
- - unavailable channel path
219
- - update add/remove/invalidate leaf
220
- - tree selection state machine
221
- - doctor drift detection
222
-
223
- This is not optional hardening. It is part of the first release.
224
-
225
- ## Current Status
226
-
227
- Current repo status:
228
-
229
- - design direction approved
230
- - implementation plan written
231
- - design system document written
232
- - TypeScript CLI implemented
233
- - workflow-first Ink TUI implemented for `config`
234
- - Git source add / update / remove working
235
- - skill discovery, projection, and `doctor` implemented
236
- - automated regression suite covering happy path and key failure branches
237
-
238
- ## Next Step
239
-
240
- The next concrete step is to polish and extend beyond MVP boundaries already captured in [`PLAN_v1.0.0.md`](/Users/Vint/仓库/03%20Project/skill-flow/docs/plan/PLAN_v1.0.0.md), such as broader source discovery or additional adapters. The v1 implementation baseline now exists in code.
241
- - leaf scanner
242
- - initial tests