@rch4com/agent-setup 1.15.0 → 1.16.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.
- package/lib/bootstrap/templates.mjs +99 -1
- package/lib/catalog.mjs +7 -3
- package/lib/i18n/catalog/en.mjs +5 -3
- package/lib/i18n/catalog/ko.mjs +5 -3
- package/lib/items/skill.gsd.mjs +71 -19
- package/lib/items/skill.gstack.mjs +17 -3
- package/package.json +1 -1
|
@@ -30,7 +30,105 @@ Document the actual commands used by this repository:
|
|
|
30
30
|
- Do not modify files outside this repository.
|
|
31
31
|
- Do not add production dependencies without explicit approval.
|
|
32
32
|
- Do not edit generated files directly.
|
|
33
|
-
- Never commit credentials, access tokens, or connection strings
|
|
33
|
+
- Never commit credentials, access tokens, or connection strings.
|
|
34
|
+
|
|
35
|
+
## Behavioral guidelines
|
|
36
|
+
|
|
37
|
+
Behavioral guidelines to reduce common LLM coding mistakes.
|
|
38
|
+
|
|
39
|
+
**Scope:** Only what current models still get wrong. If the model or the
|
|
40
|
+
harness already handles something reliably, it doesn't belong here - a rule
|
|
41
|
+
that restates default behavior burns context and buys nothing.
|
|
42
|
+
|
|
43
|
+
**Tradeoff:** These guidelines bias toward caution over speed. For trivial
|
|
44
|
+
tasks, use judgment.
|
|
45
|
+
|
|
46
|
+
### 1. State Assumptions, Then Proceed
|
|
47
|
+
|
|
48
|
+
**Say what you assumed. Keep going. Default the rest.**
|
|
49
|
+
|
|
50
|
+
Before implementing:
|
|
51
|
+
|
|
52
|
+
- State your assumptions in one line, then start.
|
|
53
|
+
- If multiple interpretations exist, pick the likeliest and say which one you
|
|
54
|
+
picked.
|
|
55
|
+
- If a simpler approach exists, say so while doing the work - not as a question
|
|
56
|
+
that blocks it.
|
|
57
|
+
- Ask only when the answer changes what gets built, not how well, and the wrong
|
|
58
|
+
choice can't be cheaply undone.
|
|
59
|
+
|
|
60
|
+
A stated assumption gets corrected in seconds. A question costs a round-trip
|
|
61
|
+
and hands the work back to the user. If you're about to ask a second question
|
|
62
|
+
in one task, you're doing it wrong.
|
|
63
|
+
|
|
64
|
+
### 2. Simplicity First
|
|
65
|
+
|
|
66
|
+
**Minimum code that solves the problem. Nothing speculative.**
|
|
67
|
+
|
|
68
|
+
- No features beyond what was asked.
|
|
69
|
+
- No abstractions for single-use code.
|
|
70
|
+
- No "flexibility" or "configurability" that wasn't requested.
|
|
71
|
+
- No error handling for impossible scenarios.
|
|
72
|
+
- If you write 200 lines and it could be 50, rewrite it.
|
|
73
|
+
|
|
74
|
+
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes,
|
|
75
|
+
simplify.
|
|
76
|
+
|
|
77
|
+
### 3. Surgical Changes
|
|
78
|
+
|
|
79
|
+
**Touch only what you must. Clean up only your own mess.**
|
|
80
|
+
|
|
81
|
+
When editing existing code:
|
|
82
|
+
|
|
83
|
+
- Don't "improve" adjacent code, comments, or formatting.
|
|
84
|
+
- Don't refactor things that aren't broken.
|
|
85
|
+
- Match existing style, even if you'd do it differently.
|
|
86
|
+
- If you notice unrelated dead code, mention it - don't delete it.
|
|
87
|
+
|
|
88
|
+
When your changes create orphans:
|
|
89
|
+
|
|
90
|
+
- Remove imports/variables/functions that YOUR changes made unused.
|
|
91
|
+
- Don't remove pre-existing dead code unless asked.
|
|
92
|
+
|
|
93
|
+
The test: Every changed line should trace directly to the user's request.
|
|
94
|
+
|
|
95
|
+
### 4. Verify Before Done
|
|
96
|
+
|
|
97
|
+
**If you touched code, run the check before saying "done" - and report what
|
|
98
|
+
actually ran.**
|
|
99
|
+
|
|
100
|
+
- \`npm test\`, \`pytest\`, \`cargo test\`, whatever the project uses. Smallest
|
|
101
|
+
relevant check first, broader checks when risk is high.
|
|
102
|
+
- No test setup? At minimum, verify the project builds or typechecks.
|
|
103
|
+
- Report the exact command and its result: "passed", "failed with X", or "not
|
|
104
|
+
run because Y".
|
|
105
|
+
- Never write "done", "fixed", or "works" unless a concrete check backs it.
|
|
106
|
+
- Run it proactively, before the user signals "끝", "완료", "다 됐어".
|
|
107
|
+
|
|
108
|
+
This is the step LLMs skip most often. Treat it as non-negotiable.
|
|
109
|
+
|
|
110
|
+
### 5. Teach One Thing On The Way Out
|
|
111
|
+
|
|
112
|
+
**End with what the user would want to know next time. Two or three
|
|
113
|
+
sentences.**
|
|
114
|
+
|
|
115
|
+
When the work is done:
|
|
116
|
+
|
|
117
|
+
- Name the one concept, tradeoff, or gotcha that actually mattered here.
|
|
118
|
+
- Teach what the code doesn't show: why this way over the obvious one, which
|
|
119
|
+
default you leaned on, what breaks first at scale.
|
|
120
|
+
- If it needs a heading, it's too long. If it restates the diff, delete it.
|
|
121
|
+
- Skip it when the change is trivial, or when the user is the one who taught
|
|
122
|
+
you the thing.
|
|
123
|
+
|
|
124
|
+
Why: an agent that only ships code leaves the user unable to maintain it. They
|
|
125
|
+
should finish each task slightly more able to do it without you.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
**These guidelines are working if:** fewer unnecessary changes in diffs, fewer
|
|
130
|
+
rewrites due to overcomplication, and stated assumptions get corrected early
|
|
131
|
+
instead of surfacing as mistakes late.`
|
|
34
132
|
|
|
35
133
|
export const CLAUDE_BLOCK = `<!-- agent-kit:begin -->
|
|
36
134
|
@AGENTS.md
|
package/lib/catalog.mjs
CHANGED
|
@@ -166,11 +166,15 @@ export function definePlugin({ id, label, installId, detectIds, marketplace, not
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
// supports는 이 항목이 실제로 배선하는 CLI다. 기본값이 claude 하나인 것은
|
|
170
|
+
// 대부분의 스킬 상류가 Claude 경로만 주기 때문이고, 상류가 런타임별 설치를
|
|
171
|
+
// 주는 항목(skill.gsd)은 목록을 직접 넘긴다 — 넘긴 CLI는 미배선 사유 대상에서
|
|
172
|
+
// 빠진다.
|
|
173
|
+
export function defineSkill({ id, label, scope, detect, install, uninstall, note, group = null, supports = ['claude'], unsupported: reasons = {} }) {
|
|
170
174
|
const unsupported = Object.fromEntries(
|
|
171
|
-
CLI_IDS.filter((c) => c
|
|
175
|
+
CLI_IDS.filter((c) => !supports.includes(c)).map((c) => [c, reasons[c] ?? msg('item.unsupported.claudeSkill')]),
|
|
172
176
|
)
|
|
173
|
-
return { id, category: 'skill', label, scope, supports: [
|
|
177
|
+
return { id, category: 'skill', label, scope, supports: [...supports], unsupported, note, group, detect, install, uninstall }
|
|
174
178
|
}
|
|
175
179
|
|
|
176
180
|
// 이 저장소가 공유 스킬 자리로 쓰는 디렉터리. vercel-labs/skills 레지스트리의
|
package/lib/i18n/catalog/en.mjs
CHANGED
|
@@ -242,7 +242,9 @@ export default {
|
|
|
242
242
|
'item.unsupported.bkitPort': 'upstream ships separate ports (bkit-codex / bkit-gemini) installed apart from this plugin; the Gemini port is still a Gemini CLI extension and has had no update since the 2026-06-18 sunset',
|
|
243
243
|
'item.unsupported.impeccableJunction': 'upstream supports it, but npx impeccable install breaks the shared .agents/skills link, so only the plugin route is wired',
|
|
244
244
|
'item.unsupported.gstackHost': 'upstream supports it via ./setup --host — this item installs for Claude Code only',
|
|
245
|
-
'item.unsupported.
|
|
245
|
+
'item.unsupported.gstackShared': 'the upstream --host route is user-scoped, so it is not used. In a bootstrapped repository the shared .agents/skills junction reaches this CLI instead, and it scans recursively, so it sees the individual skills too (measured 2026-08-15)',
|
|
246
|
+
'item.unsupported.gstackSharedShallow': 'in a bootstrapped repository the shared .agents/skills junction reaches this CLI, but it scans only one level, so just the router skill shows up (measured 2026-08-15)',
|
|
247
|
+
'item.unsupported.gsdKimiLocal': 'upstream still blocks project-scope installs — --kimi --local refuses with "Project-level Kimi install semantics remain deferred" (measured 2026-08-15)',
|
|
246
248
|
'item.unsupported.gsdGemini': 'upstream dropped Gemini CLI (sunset 2026-06) — Antigravity succeeds it via --antigravity',
|
|
247
249
|
'item.mcp.partial': 'registered: {present} / missing: {missing}',
|
|
248
250
|
'item.plugin.partial': 'wired: {present} / missing: {missing}',
|
|
@@ -280,8 +282,8 @@ export default {
|
|
|
280
282
|
'item.skill.mcp-builder.note': 'a guide for building MCP servers (Python FastMCP, Node MCP SDK). Its four reference/ documents and the Apache-2.0 LICENSE.txt are copied along inside the skill directory. Harness-neutral content shared by all 10 CLIs',
|
|
281
283
|
'item.skill.mattpocock-skills.note': 'copies 35 skills into the shared .agents/skills so all 10 CLIs see them. Upstream documents this route itself, and with no hooks involved nothing is lost against the plugin edition. Only one of the two can be chosen',
|
|
282
284
|
'item.skill.karpathy.note': 'behavioral guidelines that curb overbuilding and vague success criteria',
|
|
283
|
-
'item.skill.gstack.note': 'repo-local clone + setup (needs bash; Git Bash on Windows). Runtime state (~/.gstack) may be created globally.',
|
|
284
|
-
'item.skill.gsd.note': 'npx @opengsd/gsd-core, installed per project
|
|
285
|
+
'item.skill.gstack.note': 'repo-local clone + setup (needs bash; Git Bash on Windows). Runtime state (~/.gstack) may be created globally. In a bootstrapped repository .claude/skills is a junction, so the files land in the shared .agents/skills — codex and opencode scan recursively and see the individual skills too',
|
|
286
|
+
'item.skill.gsd.note': 'npx @opengsd/gsd-core, installed per project — wires five runtimes in one run: claude, codex, opencode, copilot, kilo (.claude/commands, .codex/skills, .opencode/skills, .github/skills, .kilo/skills). Each runtime writes roughly 700 files. gemini was dropped upstream and kimi still blocks project installs',
|
|
285
287
|
// 커밋 템플릿은 CLI 배선이 아니라 저장소 규약이다 — note가 "무엇이 놓이고
|
|
286
288
|
// 무엇이 설정되는가"를 대신 말한다(상세 패널에 배선표가 없다).
|
|
287
289
|
'item.config.gitmessage.en.note': 'commit messages in English. Writes the template and points git commit.template at it, so it opens in every editor and every tool in this repository',
|
package/lib/i18n/catalog/ko.mjs
CHANGED
|
@@ -235,7 +235,9 @@ export default {
|
|
|
235
235
|
'item.unsupported.bkitPort': '상류가 별도 배포판(bkit-codex·bkit-gemini)으로 지원합니다 — 이 플러그인과 별개 설치입니다. Gemini판은 Gemini CLI 확장 그대로이고 2026-06-18 종료 이후 갱신이 없습니다',
|
|
236
236
|
'item.unsupported.impeccableJunction': '상류는 지원하지만 npx impeccable install이 공유 .agents/skills 연결을 끊어 플러그인 경로만 배선합니다',
|
|
237
237
|
'item.unsupported.gstackHost': '상류는 ./setup --host로 지원합니다 — 이 항목은 Claude Code에만 설치합니다',
|
|
238
|
-
'item.unsupported.
|
|
238
|
+
'item.unsupported.gstackShared': '상류 --host 경로는 사용자 스코프라 쓰지 않습니다. 대신 부트스트랩 저장소에서는 공유 .agents/skills Junction으로 닿고, 이 CLI는 재귀 스캔이라 개별 스킬까지 봅니다(2026-08-15 실측)',
|
|
239
|
+
'item.unsupported.gstackSharedShallow': '부트스트랩 저장소에서는 공유 .agents/skills Junction으로 닿지만, 이 CLI는 1단계만 훑어 라우터 스킬 하나만 보입니다(2026-08-15 실측)',
|
|
240
|
+
'item.unsupported.gsdKimiLocal': '상류가 프로젝트 스코프 설치를 아직 막습니다 — --kimi --local이 "Project-level Kimi install semantics remain deferred"로 거부합니다(2026-08-15 실측)',
|
|
239
241
|
'item.unsupported.gsdGemini': '상류가 Gemini CLI 지원을 제거했습니다(2026-06 종료) — Antigravity가 --antigravity로 승계합니다',
|
|
240
242
|
'item.mcp.partial': '등록됨: {present} / 누락: {missing}',
|
|
241
243
|
'item.plugin.partial': '배선됨: {present} / 누락: {missing}',
|
|
@@ -273,8 +275,8 @@ export default {
|
|
|
273
275
|
'item.skill.mcp-builder.note': 'MCP 서버 제작 가이드(Python FastMCP·Node MCP SDK). reference/ 문서 4종과 Apache-2.0 LICENSE.txt가 스킬 디렉터리에 함께 복사됩니다. 내용이 하네스 중립이라 10개 CLI가 함께 씁니다',
|
|
274
276
|
'item.skill.mattpocock-skills.note': '공유 .agents/skills에 스킬 35종을 복사해 10개 CLI가 함께 봅니다. 상류가 직접 안내하는 경로이며 훅이 없어 플러그인 판에 견줘 잃는 것이 없습니다. 둘 중 하나만 고를 수 있습니다',
|
|
275
277
|
'item.skill.karpathy.note': '과설계와 모호한 완료 기준을 줄이는 행동 지침',
|
|
276
|
-
'item.skill.gstack.note': '저장소 로컬 clone + setup (bash 필요, Windows는 Git Bash). 런타임 상태(~/.gstack)는 전역에 생길 수 있음.',
|
|
277
|
-
'item.skill.gsd.note': 'npx @opengsd/gsd-core 프로젝트 로컬
|
|
278
|
+
'item.skill.gstack.note': '저장소 로컬 clone + setup (bash 필요, Windows는 Git Bash). 런타임 상태(~/.gstack)는 전역에 생길 수 있음. 부트스트랩 저장소에서는 .claude/skills가 Junction이라 실물이 공유 .agents/skills에 앉습니다 — codex·opencode는 재귀 스캔이라 개별 스킬까지 함께 봅니다',
|
|
279
|
+
'item.skill.gsd.note': 'npx @opengsd/gsd-core 프로젝트 로컬 설치 — claude·codex·opencode·copilot·kilo 다섯 런타임을 한 번에 배선합니다(.claude/commands, .codex/skills, .opencode/skills, .github/skills, .kilo/skills). 런타임마다 700개 안팎의 파일이 생깁니다. gemini는 상류가 제거했고 kimi는 프로젝트 설치를 아직 막습니다',
|
|
278
280
|
// 커밋 템플릿은 CLI 배선이 아니라 저장소 규약이다 — en.mjs 쪽 주석 참고.
|
|
279
281
|
'item.config.gitmessage.en.note': '커밋 메시지를 영어로 씁니다. 템플릿을 놓고 git commit.template이 그것을 가리키게 하므로, 저장소의 모든 편집기와 도구에서 함께 열립니다',
|
|
280
282
|
'item.config.gitmessage.ko.note': '커밋 메시지를 한국어로 씁니다. 템플릿을 놓고 git commit.template이 그것을 가리키게 하므로, 저장소의 모든 편집기와 도구에서 함께 열립니다',
|
package/lib/items/skill.gsd.mjs
CHANGED
|
@@ -4,43 +4,95 @@ import { defineSkill } from '../catalog.mjs'
|
|
|
4
4
|
import { CLI_IDS } from '../clis.mjs'
|
|
5
5
|
import { LocalizedError, msg } from '../i18n/index.mjs'
|
|
6
6
|
|
|
7
|
+
// 상류(v1.10.0)는 런타임 플래그 18종을 주는데, 그중 이 저장소의 CLI이면서
|
|
8
|
+
// **프로젝트 스코프(--local)로 설치되고 그 CLI가 실제로 읽는 것**만 배선한다.
|
|
9
|
+
// 다섯 자리 전부 2026-08-15에 실측했다:
|
|
10
|
+
// claude `.claude/commands`에 gsd-* (680파일). skills가 아니라 commands다 —
|
|
11
|
+
// 부트스트랩 저장소의 `.claude/skills` Junction과 무관하다.
|
|
12
|
+
// codex `.codex/skills`에 gsd-* 71종. `codex debug prompt-input`이 이
|
|
13
|
+
// 경로를 스킬 루트로 등록하고 전부 나열하는 것을 확인했다.
|
|
14
|
+
// opencode `.opencode/skills`. `opencode debug skill`이 로드한다.
|
|
15
|
+
// copilot `.github/skills`. `copilot skill list`가 전부 표시한다.
|
|
16
|
+
// kilo `.kilo/skills` 71종을 @kilocode/cli 7.3.45가 읽는다(2026-08-15).
|
|
17
|
+
//
|
|
18
|
+
// 플래그는 한 번에 여러 개를 줄 수 있다 — `--claude --codex --local`이 두
|
|
19
|
+
// 디렉터리를 만드는 것을 실측했다. 그래서 설치·제거 모두 호출 한 번이다.
|
|
20
|
+
// `--uninstall`도 같은 플래그를 받아 그 런타임만 지운다(`--codex --local
|
|
21
|
+
// --uninstall`이 .codex만 비우고 나머지 넷을 보존하는 것을 확인).
|
|
22
|
+
//
|
|
23
|
+
// 미배선 넷의 사유가 전부 다르다:
|
|
24
|
+
// gemini 상류가 명시 제거(2026-06-18 종료). `--gemini --local`은 안내만 찍고
|
|
25
|
+
// 파일을 하나도 만들지 않는다.
|
|
26
|
+
// kimi `--kimi --local`이 "Project-level Kimi install semantics remain
|
|
27
|
+
// deferred"를 찍고 거부한다 — 전역 설치만 가능하다.
|
|
28
|
+
// kiro·grok·vscode 상류 런타임 목록에 없다.
|
|
29
|
+
const RUNTIMES = [
|
|
30
|
+
{ cli: 'claude', dirs: ['.claude/commands', '.claude/skills'] },
|
|
31
|
+
{ cli: 'codex', dirs: ['.codex/skills'] },
|
|
32
|
+
{ cli: 'opencode', dirs: ['.opencode/skills'] },
|
|
33
|
+
{ cli: 'copilot', dirs: ['.github/skills'] },
|
|
34
|
+
{ cli: 'kilo', dirs: ['.kilo/skills'] },
|
|
35
|
+
]
|
|
36
|
+
const SUPPORTS = RUNTIMES.map((r) => r.cli)
|
|
37
|
+
|
|
38
|
+
// gsd-* 이름을 기준으로 센다. 상류 제거가 `gsd-install-state.json`과 훅 몇
|
|
39
|
+
// 개를 남기는 것을 실측했는데(디렉터리는 남고 gsd-* 스킬만 사라진다), 파일
|
|
40
|
+
// 존재만 보면 제거한 런타임이 영원히 설치됨으로 읽힌다.
|
|
7
41
|
function hasGsdFiles(dir) {
|
|
8
|
-
|
|
42
|
+
try {
|
|
43
|
+
return readdirSync(dir).some((f) => f.startsWith('gsd-'))
|
|
44
|
+
} catch {
|
|
45
|
+
return false
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function wiredClis(root) {
|
|
50
|
+
return RUNTIMES.filter((r) => r.dirs.some((d) => hasGsdFiles(join(root, ...d.split('/'))))).map((r) => r.cli)
|
|
9
51
|
}
|
|
10
52
|
|
|
11
|
-
|
|
12
|
-
// 이 항목은 --claude만 배선한다. Gemini CLI는 상류가 명시 제거했다 —
|
|
13
|
-
// `--gemini --local`이 2026-06-18 종료 안내를 찍고 파일을 하나도 만들지 않는
|
|
14
|
-
// 것을 실측했다(2026-08-15).
|
|
15
|
-
// --kilo가 이 저장소의 Kilo Code와 같은 제품인지는 오래 미확인이었는데,
|
|
16
|
-
// `--kilo --local`이 만든 .kilo/skills/ 71개를 설치된 Kilo Code
|
|
17
|
-
// (@kilocode/cli 7.3.45)가 전부 로드하는 것을 실측해 해소했다(2026-08-15).
|
|
18
|
-
const FLAGS = ['codex', 'opencode', 'copilot', 'kimi', 'kilo']
|
|
53
|
+
const flagsFor = (clis) => clis.map((c) => `--${c}`)
|
|
19
54
|
|
|
20
55
|
export default defineSkill({
|
|
21
56
|
id: 'skill.gsd', label: 'GSD (Get Shit Done)', group: '__flow', scope: 'project',
|
|
22
57
|
note: 'item.skill.gsd.note',
|
|
58
|
+
supports: SUPPORTS,
|
|
23
59
|
unsupported: Object.fromEntries(
|
|
24
|
-
CLI_IDS.filter((c) => c
|
|
60
|
+
CLI_IDS.filter((c) => !SUPPORTS.includes(c)).map((c) => [
|
|
25
61
|
c,
|
|
26
|
-
|
|
27
|
-
: c === '
|
|
62
|
+
c === 'gemini' ? msg('item.unsupported.gsdGemini')
|
|
63
|
+
: c === 'kimi' ? msg('item.unsupported.gsdKimiLocal')
|
|
28
64
|
: msg('item.unsupported.upstreamNone'),
|
|
29
65
|
]),
|
|
30
66
|
),
|
|
67
|
+
|
|
31
68
|
async detect({ root }) {
|
|
32
|
-
const
|
|
33
|
-
|
|
69
|
+
const present = wiredClis(root)
|
|
70
|
+
if (present.length === 0) return { status: 'absent' }
|
|
71
|
+
if (present.length === SUPPORTS.length) return { status: 'installed' }
|
|
72
|
+
return {
|
|
73
|
+
status: 'partial',
|
|
74
|
+
detail: msg('item.mcp.partial', {
|
|
75
|
+
present: present.join(', '),
|
|
76
|
+
missing: SUPPORTS.filter((c) => !present.includes(c)).join(', '),
|
|
77
|
+
}),
|
|
78
|
+
}
|
|
34
79
|
},
|
|
80
|
+
|
|
35
81
|
async install({ root, exec }) {
|
|
36
|
-
|
|
82
|
+
// 이미 있는 런타임은 빼고 부른다 — 상류가 덮어써도 무해하지만, 부분
|
|
83
|
+
// 설치를 완성할 때 3,500개 파일을 다시 쓰는 것은 낭비다.
|
|
84
|
+
const missing = SUPPORTS.filter((c) => !wiredClis(root).includes(c))
|
|
85
|
+
if (missing.length === 0) return
|
|
86
|
+
const r = await exec('npx', ['-y', '@opengsd/gsd-core@latest', ...flagsFor(missing), '--local'], { cwd: root })
|
|
37
87
|
if (!r.ok) throw new LocalizedError('error.gsdInstall', { output: r.output })
|
|
38
88
|
},
|
|
89
|
+
|
|
39
90
|
async uninstall({ root, exec }) {
|
|
40
|
-
// 런타임
|
|
41
|
-
//
|
|
42
|
-
|
|
43
|
-
|
|
91
|
+
// 런타임 플래그 없는 `--uninstall`은 기본값 claude만 지운다 — 설치된
|
|
92
|
+
// 런타임을 전부 넘겨야 나머지 넷이 남지 않는다.
|
|
93
|
+
const present = wiredClis(root)
|
|
94
|
+
if (present.length === 0) return
|
|
95
|
+
const r = await exec('npx', ['-y', '@opengsd/gsd-core@latest', ...flagsFor(present), '--local', '--uninstall'], { cwd: root })
|
|
44
96
|
if (!r.ok) throw new LocalizedError('error.gsdUninstall', { output: r.output })
|
|
45
97
|
},
|
|
46
98
|
})
|
|
@@ -12,8 +12,19 @@ const REL_DIR = '.claude/skills/gstack'
|
|
|
12
12
|
// 인자 없이 실행하며 setup의 기본값이 claude 단독이다. README 표에 있는
|
|
13
13
|
// --host cursor·slate는 setup의 case 문이 거부해 exit 1로 죽는다 —
|
|
14
14
|
// 확장한다면 안전한 값은 claude·codex·kiro·factory·opencode·auto뿐이다
|
|
15
|
-
// (2026-08-02
|
|
16
|
-
|
|
15
|
+
// (2026-08-02 검증, 2026-08-15 재확인: case 문과 에러 문구 그대로).
|
|
16
|
+
//
|
|
17
|
+
// 그런데 --host를 늘릴 필요가 없다는 것이 2026-08-15 실측으로 드러났다.
|
|
18
|
+
// 상류 --host 경로는 홈(~/.codex/skills 등)에 까는 사용자 스코프인데, 이
|
|
19
|
+
// 항목이 clone하는 `.claude/skills/gstack`은 부트스트랩 저장소에서 Junction
|
|
20
|
+
// 이라 실물이 공유 `.agents/skills/gstack`에 앉는다. 거기서부터는 CLI의 스킬
|
|
21
|
+
// 스캔 깊이가 도달 범위를 정한다 — gstack은 클론 루트에 라우터 SKILL.md가
|
|
22
|
+
// 있고 개별 스킬이 그 아래 한 단계 더 들어간 2단계 구조다.
|
|
23
|
+
// codex·opencode 재귀 스캔이라 개별 스킬까지 전부 인식(중첩 프로브로 실측).
|
|
24
|
+
// copilot 1단계만 훑어 라우터 스킬 하나만 보인다(같은 프로브).
|
|
25
|
+
// 나머지 CLI의 스캔 깊이는 미실측이라 "상류 경로 없음"으로 남긴다 — Junction
|
|
26
|
+
// 도달은 우리 부트스트랩의 부수 효과지 상류 지원이 아니다.
|
|
27
|
+
const SHARED_RECURSIVE = ['codex', 'opencode']
|
|
17
28
|
|
|
18
29
|
export default defineSkill({
|
|
19
30
|
id: 'skill.gstack', label: 'gstack', group: '__flow', scope: 'project',
|
|
@@ -21,7 +32,10 @@ export default defineSkill({
|
|
|
21
32
|
unsupported: Object.fromEntries(
|
|
22
33
|
CLI_IDS.filter((c) => c !== 'claude').map((c) => [
|
|
23
34
|
c,
|
|
24
|
-
|
|
35
|
+
SHARED_RECURSIVE.includes(c) ? msg('item.unsupported.gstackShared')
|
|
36
|
+
: c === 'copilot' ? msg('item.unsupported.gstackSharedShallow')
|
|
37
|
+
: c === 'kiro' ? msg('item.unsupported.gstackHost')
|
|
38
|
+
: msg('item.unsupported.upstreamNone'),
|
|
25
39
|
]),
|
|
26
40
|
),
|
|
27
41
|
async detect({ root }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rch4com/agent-setup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Repository-scoped bootstrap and optional-item installer for using multiple coding-agent CLIs in one repository | 여러 코딩 에이전트 CLI를 한 저장소에서 함께 쓰기 위한 저장소 범위 부트스트랩과 선택 항목 설치기",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents-md",
|