skill-flow 1.0.0 → 1.0.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/.gstack/browse-network.log +1 -0
- package/.gstack/browse.json +7 -0
- package/.gstack/qa-reports/qa-report-skill-manager-2026-03-22.md +60 -0
- package/README.md +20 -3
- package/README.zh.md +20 -3
- package/dist/cli.js +19 -7
- package/dist/cli.js.map +1 -1
- package/dist/domain/types.d.ts +9 -2
- package/dist/services/deployment-planner.js +8 -16
- package/dist/services/deployment-planner.js.map +1 -1
- package/dist/services/doctor-service.js +13 -0
- package/dist/services/doctor-service.js.map +1 -1
- package/dist/services/inventory-service.d.ts +1 -1
- package/dist/services/inventory-service.js +4 -2
- package/dist/services/inventory-service.js.map +1 -1
- package/dist/services/skill-flow.d.ts +7 -1
- package/dist/services/skill-flow.js +8 -4
- package/dist/services/skill-flow.js.map +1 -1
- package/dist/services/source-service.d.ts +10 -1
- package/dist/services/source-service.js +200 -39
- package/dist/services/source-service.js.map +1 -1
- package/dist/state/store.d.ts +3 -1
- package/dist/state/store.js +9 -2
- package/dist/state/store.js.map +1 -1
- package/dist/tests/skill-flow.test.js.map +1 -1
- package/dist/tui/config-app.d.ts +2 -2
- package/dist/tui/config-app.js +26 -7
- package/dist/tui/config-app.js.map +1 -1
- package/dist/utils/clawhub.d.ts +38 -0
- package/dist/utils/clawhub.js +65 -0
- package/dist/utils/clawhub.js.map +1 -0
- package/dist/utils/format.js +9 -4
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/naming.d.ts +20 -0
- package/dist/utils/naming.js +82 -0
- package/dist/utils/naming.js.map +1 -0
- package/dist/utils/source-id.js +29 -0
- package/dist/utils/source-id.js.map +1 -1
- package/docs/DESIGN.md +407 -0
- package/docs/PRD/PRD-1.0.0.md +1862 -0
- package/docs/PRD/renew/PRD-0.0.0.md +26 -0
- package/docs/PRD/renew/PRD-0.0.1.md +408 -0
- package/docs/PRD/renew/PRD-0.0.2.md +705 -0
- package/docs/PRD/renew/PRD-0.0.3.md +740 -0
- package/docs/PRD/renew/PRD-0.0.4.md +1494 -0
- package/docs/README.md +242 -0
- package/docs/plan/PLAN_v1.0.0.md +663 -0
- package/docs/plan/PLAN_v1.0.1.md +814 -0
- package/docs/refrences/README.md +7 -0
- package/docs/refrences/agent-skill-paths.md +252 -0
- package/docs/refrences/naming-dedupe-warning-rules.md +482 -0
- package/img/img-1.jpg +0 -0
- package/package.json +18 -7
- package/dist/tests/skill-flow.test.js +0 -926
- package/src/adapters/channel-adapters.ts +0 -75
- package/src/cli.tsx +0 -147
- package/src/domain/types.ts +0 -175
- package/src/services/deployment-applier.ts +0 -81
- package/src/services/deployment-planner.ts +0 -259
- package/src/services/doctor-service.ts +0 -156
- package/src/services/inventory-service.ts +0 -251
- package/src/services/skill-flow.ts +0 -381
- package/src/services/source-service.ts +0 -427
- package/src/services/workflow-service.ts +0 -56
- package/src/state/store.ts +0 -68
- package/src/tests/skill-flow.test.ts +0 -1184
- package/src/tui/config-app.tsx +0 -1094
- package/src/tui/selection-state.ts +0 -45
- package/src/utils/constants.ts +0 -201
- package/src/utils/format.ts +0 -59
- package/src/utils/fs.ts +0 -102
- package/src/utils/git.ts +0 -16
- package/src/utils/result.ts +0 -23
- package/src/utils/source-id.ts +0 -19
- package/tsconfig.json +0 -22
- package/vitest.config.ts +0 -8
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# References
|
|
2
|
+
|
|
3
|
+
This directory stores external path and compatibility references that guide
|
|
4
|
+
future `skill-flow` target support.
|
|
5
|
+
|
|
6
|
+
- [agent-skill-paths.md](/Users/Vint/仓库/03%20Project/skill-flow/docs/refrences/agent-skill-paths.md)
|
|
7
|
+
Current implementation paths and broader ecosystem path references.
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# Agent Skill Paths Reference
|
|
2
|
+
|
|
3
|
+
Last updated: 2026-03-22
|
|
4
|
+
|
|
5
|
+
This file separates two things:
|
|
6
|
+
|
|
7
|
+
1. Current `skill-flow` implementation behavior
|
|
8
|
+
2. Broader ecosystem path references for future support work
|
|
9
|
+
|
|
10
|
+
The goal is to keep implementation truth and compatibility research in one
|
|
11
|
+
place without mixing them up.
|
|
12
|
+
|
|
13
|
+
## Current Skill Flow Support
|
|
14
|
+
|
|
15
|
+
These are the target roots that the current code can detect and project into.
|
|
16
|
+
Targets with missing directories are hidden from the `config` TUI.
|
|
17
|
+
|
|
18
|
+
| Target | Default detection roots | Env override | Strategy |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| Claude Code | `~/.claude/skills` | `SKILL_MANAGER_TARGET_CLAUDE_CODE` | `symlink` |
|
|
21
|
+
| OpenAI Codex | `~/.codex/.agents/skills`, `~/.agents/skills` | `SKILL_MANAGER_TARGET_CODEX` | `symlink` |
|
|
22
|
+
| Cursor | `~/.cursor/skills` | `SKILL_MANAGER_TARGET_CURSOR` | `symlink` |
|
|
23
|
+
| GitHub Copilot | `~/.copilot/skills` | `SKILL_MANAGER_TARGET_GITHUB_COPILOT` | `symlink` |
|
|
24
|
+
| Gemini CLI | `~/.gemini/skills` | `SKILL_MANAGER_TARGET_GEMINI_CLI` | `symlink` |
|
|
25
|
+
| OpenCode | `~/.config/opencode/skills`, `~/.opencode/skills` | `SKILL_MANAGER_TARGET_OPENCODE` | `symlink` |
|
|
26
|
+
| OpenClaw | `~/.openclaw/skills` | `SKILL_MANAGER_TARGET_OPENCLAW` | `copy` |
|
|
27
|
+
| Pi | `~/.pi/agent/skills` | `SKILL_MANAGER_TARGET_PI` | `symlink` |
|
|
28
|
+
| Windsurf | `~/.codeium/windsurf/skills` | `SKILL_MANAGER_TARGET_WINDSURF` | `symlink` |
|
|
29
|
+
| Roo Code | `~/.roo/skills` | `SKILL_MANAGER_TARGET_ROO_CODE` | `symlink` |
|
|
30
|
+
| Cline | `~/.cline/skills` | `SKILL_MANAGER_TARGET_CLINE` | `symlink` |
|
|
31
|
+
| Amp | `~/.config/agents/skills`, `~/.config/amp/skills` | `SKILL_MANAGER_TARGET_AMP` | `symlink` |
|
|
32
|
+
| Kiro | `~/.kiro/skills` | `SKILL_MANAGER_TARGET_KIRO` | `symlink` |
|
|
33
|
+
|
|
34
|
+
Notes:
|
|
35
|
+
|
|
36
|
+
- Current v1 implementation projects into target roots only. It does not yet
|
|
37
|
+
model per-agent project skill roots, compatibility reads, or instruction
|
|
38
|
+
files such as `AGENTS.md`, `CLAUDE.md`, or `GEMINI.md`.
|
|
39
|
+
- Hidden target behavior is intentional: if no detected root exists, the target
|
|
40
|
+
should not appear in `config`.
|
|
41
|
+
- Shared compatibility roots such as `~/.agents/skills` and `~/.claude/skills`
|
|
42
|
+
are not reused across multiple new targets yet. This avoids multi-target
|
|
43
|
+
projection collisions onto the same physical directory.
|
|
44
|
+
|
|
45
|
+
## Ecosystem Path References
|
|
46
|
+
|
|
47
|
+
These references are for future compatibility and target-expansion work. They
|
|
48
|
+
should not be read as "already implemented".
|
|
49
|
+
|
|
50
|
+
### 1. Claude Code
|
|
51
|
+
|
|
52
|
+
Skills:
|
|
53
|
+
|
|
54
|
+
- Personal skills: `~/.claude/skills/<skill-name>/SKILL.md`
|
|
55
|
+
- Project skills: `<repo>/.claude/skills/<skill-name>/SKILL.md`
|
|
56
|
+
|
|
57
|
+
Instructions and rules:
|
|
58
|
+
|
|
59
|
+
- User instructions: `~/.claude/CLAUDE.md`
|
|
60
|
+
- Project instructions: `<repo>/CLAUDE.md`
|
|
61
|
+
- Project hidden instructions: `<repo>/.claude/CLAUDE.md`
|
|
62
|
+
- Rules: `<repo>/.claude/rules/*.md`
|
|
63
|
+
|
|
64
|
+
### 2. OpenAI Codex
|
|
65
|
+
|
|
66
|
+
Skills:
|
|
67
|
+
|
|
68
|
+
- Current official user skills: `$HOME/.agents/skills`
|
|
69
|
+
- Project skills: upward scan from current directory for `.agents/skills`
|
|
70
|
+
- System skills: `/etc/codex/skills`
|
|
71
|
+
|
|
72
|
+
Notes:
|
|
73
|
+
|
|
74
|
+
- `~/.codex/` is primarily a config directory now, for example
|
|
75
|
+
`~/.codex/config.toml`.
|
|
76
|
+
- `~/.codex/` should not be treated as the official primary skills root going
|
|
77
|
+
forward.
|
|
78
|
+
|
|
79
|
+
### 3. Cursor
|
|
80
|
+
|
|
81
|
+
Skills:
|
|
82
|
+
|
|
83
|
+
- Global skills: `~/.cursor/skills/`
|
|
84
|
+
- Project skills: `<repo>/.cursor/skills/`
|
|
85
|
+
|
|
86
|
+
Compatibility reads:
|
|
87
|
+
|
|
88
|
+
- `.agents/skills/`
|
|
89
|
+
- `.claude/skills/`
|
|
90
|
+
- `.codex/skills/`
|
|
91
|
+
- Their corresponding home-directory versions
|
|
92
|
+
|
|
93
|
+
Rules and notes:
|
|
94
|
+
|
|
95
|
+
- Rules: `<repo>/.cursor/rules/`
|
|
96
|
+
- Cursor skills entered editor and CLI support on `2026-01-22`
|
|
97
|
+
|
|
98
|
+
### 4. OpenCode
|
|
99
|
+
|
|
100
|
+
Skills:
|
|
101
|
+
|
|
102
|
+
- Global skills: `~/.config/opencode/skills/<name>/SKILL.md`
|
|
103
|
+
- Project skills: `<repo>/.opencode/skills/<name>/SKILL.md`
|
|
104
|
+
|
|
105
|
+
Compatibility reads:
|
|
106
|
+
|
|
107
|
+
- `.claude/skills`
|
|
108
|
+
- `~/.claude/skills`
|
|
109
|
+
- `.agents/skills`
|
|
110
|
+
- `~/.agents/skills`
|
|
111
|
+
|
|
112
|
+
Instructions and rules:
|
|
113
|
+
|
|
114
|
+
- Long-term instructions: `AGENTS.md`
|
|
115
|
+
- Global instructions: `~/.config/opencode/AGENTS.md`
|
|
116
|
+
- Also reads `.cursor/rules/*.md` as one instruction source
|
|
117
|
+
|
|
118
|
+
### 5. Pi
|
|
119
|
+
|
|
120
|
+
Skills:
|
|
121
|
+
|
|
122
|
+
- Global skills: `~/.pi/agent/skills/`
|
|
123
|
+
- Also supports: `~/.agents/skills/`
|
|
124
|
+
- Project skills: `<repo>/.pi/skills/`
|
|
125
|
+
- Also scans current directory and ancestors for `.agents/skills/`
|
|
126
|
+
|
|
127
|
+
Compatibility reads:
|
|
128
|
+
|
|
129
|
+
- `~/.claude/skills`
|
|
130
|
+
- `~/.codex/skills`
|
|
131
|
+
|
|
132
|
+
### 6. GitHub Copilot
|
|
133
|
+
|
|
134
|
+
Skills:
|
|
135
|
+
|
|
136
|
+
- Project skills: `.github/skills/`
|
|
137
|
+
- Project compatibility skills: `.claude/skills/`
|
|
138
|
+
- User skills: `~/.copilot/skills/`
|
|
139
|
+
- User compatibility skills: `~/.claude/skills/`
|
|
140
|
+
|
|
141
|
+
Notes:
|
|
142
|
+
|
|
143
|
+
- Another official description also lists `.agents/skills/` in the wider
|
|
144
|
+
priority order.
|
|
145
|
+
- This covers VS Code agent mode and Copilot coding agent usage.
|
|
146
|
+
|
|
147
|
+
### 7. Gemini CLI
|
|
148
|
+
|
|
149
|
+
Skills:
|
|
150
|
+
|
|
151
|
+
- Workspace skills: `<repo>/.gemini/skills/`
|
|
152
|
+
- Workspace alias: `<repo>/.agents/skills/`
|
|
153
|
+
- User skills: `~/.gemini/skills/`
|
|
154
|
+
- User alias: `~/.agents/skills/`
|
|
155
|
+
|
|
156
|
+
Instructions and extensions:
|
|
157
|
+
|
|
158
|
+
- User instructions: `~/.gemini/GEMINI.md`
|
|
159
|
+
- Workspace instructions: upward scan for `GEMINI.md`
|
|
160
|
+
- Extensions: `~/.gemini/extensions/`
|
|
161
|
+
|
|
162
|
+
### 8. Windsurf
|
|
163
|
+
|
|
164
|
+
Skills:
|
|
165
|
+
|
|
166
|
+
- Workspace skills: `<repo>/.windsurf/skills/<skill-name>/SKILL.md`
|
|
167
|
+
- User skills: `~/.codeium/windsurf/skills/<skill-name>/SKILL.md`
|
|
168
|
+
- System skills on macOS:
|
|
169
|
+
`/Library/Application Support/Windsurf/skills/`
|
|
170
|
+
|
|
171
|
+
Instructions, rules, workflows, memories:
|
|
172
|
+
|
|
173
|
+
- Long-term instructions: `AGENTS.md`
|
|
174
|
+
- Global rules: `global_rules.md`
|
|
175
|
+
- Project rules: `<repo>/.windsurf/rules/`
|
|
176
|
+
- Project workflows: `<repo>/.windsurf/workflows/`
|
|
177
|
+
- Generated memories: `~/.codeium/windsurf/memories/`
|
|
178
|
+
|
|
179
|
+
### 9. Roo Code
|
|
180
|
+
|
|
181
|
+
Skills:
|
|
182
|
+
|
|
183
|
+
- Project skills: `<repo>/.roo/skills/`
|
|
184
|
+
- Global skills: `~/.roo/skills/`
|
|
185
|
+
|
|
186
|
+
Rules and commands:
|
|
187
|
+
|
|
188
|
+
- Project rules: `<repo>/.roo/rules/`
|
|
189
|
+
- Global rules: `~/.roo/rules/`
|
|
190
|
+
- Mode-specific rules: `rules-{modeSlug}`
|
|
191
|
+
- Project commands: `<repo>/.roo/commands/`
|
|
192
|
+
- Global commands: `~/.roo/commands/`
|
|
193
|
+
|
|
194
|
+
### 10. Cline
|
|
195
|
+
|
|
196
|
+
Skills:
|
|
197
|
+
|
|
198
|
+
- Project skills: `<repo>/.cline/skills/`
|
|
199
|
+
- Global skills: `~/.cline/skills/`
|
|
200
|
+
|
|
201
|
+
Compatibility reads:
|
|
202
|
+
|
|
203
|
+
- Project compatibility skills: `.clinerules/skills/`
|
|
204
|
+
- Project compatibility skills: `.claude/skills/`
|
|
205
|
+
|
|
206
|
+
Rules, workflows, local data:
|
|
207
|
+
|
|
208
|
+
- Project rules: `.clinerules/`
|
|
209
|
+
- Global rules on macOS: `~/Documents/Cline/Rules`
|
|
210
|
+
- Project workflows: `<repo>/.clinerules/workflows/`
|
|
211
|
+
- Global workflows on macOS: `~/Documents/Cline/Workflows`
|
|
212
|
+
- Local data and config: `~/.cline/data/`
|
|
213
|
+
|
|
214
|
+
### 11. Amp
|
|
215
|
+
|
|
216
|
+
Skills:
|
|
217
|
+
|
|
218
|
+
- Project skills: `<repo>/.agents/skills/`
|
|
219
|
+
- User skills: `~/.config/agents/skills/`
|
|
220
|
+
|
|
221
|
+
Compatibility reads:
|
|
222
|
+
|
|
223
|
+
- `~/.config/amp/skills/`
|
|
224
|
+
- `.claude/skills/`
|
|
225
|
+
- `~/.claude/skills/`
|
|
226
|
+
|
|
227
|
+
Instructions:
|
|
228
|
+
|
|
229
|
+
- Long-term instructions: `AGENTS.md`
|
|
230
|
+
- User `AGENTS` locations:
|
|
231
|
+
- `~/.config/amp/AGENTS.md`
|
|
232
|
+
- `~/.config/AGENTS.md`
|
|
233
|
+
|
|
234
|
+
### 12. Kiro
|
|
235
|
+
|
|
236
|
+
Skills:
|
|
237
|
+
|
|
238
|
+
- Global skills: `~/.kiro/skills/`
|
|
239
|
+
- Project skills: `<repo>/.kiro/skills/`
|
|
240
|
+
|
|
241
|
+
## Suggested Follow-up Optimization Areas
|
|
242
|
+
|
|
243
|
+
These references imply a few near-term architecture changes:
|
|
244
|
+
|
|
245
|
+
- Split target support into:
|
|
246
|
+
- projection targets
|
|
247
|
+
- project-level compatibility readers
|
|
248
|
+
- instruction/rules readers
|
|
249
|
+
- Distinguish official roots from compatibility aliases
|
|
250
|
+
- Model user-level, project-level, and system-level roots explicitly
|
|
251
|
+
- Add reference-backed tests for detection precedence and hidden-target behavior
|
|
252
|
+
- Document which roots are used for read, write, or compatibility-only behavior
|