@rch4com/agent-setup 1.12.0 → 1.15.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/install.mjs CHANGED
@@ -70,7 +70,20 @@ async function runClassic(root, { dryRun, listOnly, setArg, t }) {
70
70
  for (const id of selectedIds) if (!known.has(id)) throw new LocalizedError('error.unknownItem', { id })
71
71
  assertExclusive(items, selectedIds)
72
72
 
73
- const changes = planChanges(states, selectedIds)
73
+ // 전역(scope: 'user') 항목은 --set 생략만으로 지우지 않는다. --set은 "저장소가
74
+ // 가질 상태"의 선언이라 목록 밖 항목을 제거하는데, 전역 항목까지 그 규칙에
75
+ // 태우면 무관한 --set 실행 하나가 머신 전체 설치를 걷어 간다 — 스크래치
76
+ // 저장소에서 스킬 둘을 --set 하다가 copilot의 전역 superpowers가 함께
77
+ // 제거되는 것을 실측했다(2026-08-15). 전역 항목의 제거는 TUI에서 명시적으로
78
+ // 해제해 검토 화면을 거친다.
79
+ const changes = []
80
+ for (const c of planChanges(states, selectedIds)) {
81
+ if (c.action === 'uninstall' && c.item.scope === 'user') {
82
+ console.log(t('run.keepUserScope', { id: c.item.id }))
83
+ continue
84
+ }
85
+ changes.push(c)
86
+ }
74
87
  if (changes.length === 0) { console.log(t('apply.noChanges')); return }
75
88
 
76
89
  // 비대화형 경로다 — 바를 그리지 않고 평문 한 줄씩 흘린다.
@@ -0,0 +1,207 @@
1
+ // 사용자 전역(scope: 'user') 플러그인 항목의 공통 기구. 상류가 하니스별 전역
2
+ // 설치만 지원하는 도구(superpowers, ponytail)가 공유한다 — 항목 파일
3
+ // (lib/items/global.*.mjs)은 상류별 좌표와 미배선 사유만 든다.
4
+ //
5
+ // 전역 파일을 만지므로 repoPath 계열 가드를 일부러 안 쓴다 — 저장소 이탈이
6
+ // 목적인 기구다. 항목 파일에 두지 않는 이유는 gitmessage.mjs와 같다:
7
+ // loadItems가 items/의 모든 .mjs를 항목으로 읽는다.
8
+ //
9
+ // 하니스별 기록 위치(2026-08-15 실측, 상세는 global.superpowers.mjs):
10
+ // codex $CODEX_HOME/config.toml의 [plugins."<이름>@…"] — CODEX_HOME
11
+ // 재지정을 실제로 쓰는 환경(Orca)이 있어 환경변수를 따라간다.
12
+ // copilot ~/.copilot/config.json의 installedPlugins[] (주석 있는 JSONC).
13
+ // gemini ~/.gemini/extensions/<이름>/ (공식 extensions 문서).
14
+ // opencode 전역 opencode.json의 plugin 배열 (XDG_CONFIG_HOME 존중).
15
+ import { existsSync, readFileSync } from 'node:fs'
16
+ import { homedir } from 'node:os'
17
+ import { delimiter, join } from 'node:path'
18
+ import { parse as parseToml } from 'smol-toml'
19
+ import { CLIS } from './clis.mjs'
20
+ import { readJson, setKey, removeKey } from './jsonfile.mjs'
21
+ import { msg, LocalizedError } from './i18n/index.mjs'
22
+
23
+ // 실행은 cmd 셸을 거치므로(catalog.mjs makeExec) win32에서는 PATHEXT 확장자가
24
+ // 있어야 실제로 부를 수 있다 — copilot.ps1만 있는 PATH는 "없음"이 맞다.
25
+ function defaultHasBinary(name, env = process.env) {
26
+ const dirs = (env.PATH ?? '').split(delimiter).filter(Boolean)
27
+ const exts = process.platform === 'win32'
28
+ ? (env.PATHEXT ?? '.COM;.EXE;.BAT;.CMD').split(';').filter(Boolean)
29
+ : ['']
30
+ return dirs.some((dir) => exts.some((ext) => existsSync(join(dir, name + ext))))
31
+ }
32
+
33
+ // superpowers@openai-curated처럼 다른 마켓플레이스로 설치된 판도 잡아야
34
+ // 하므로(실측: 이런 머신이 실제로 있다) 이름이 아니라 접두사로 고른다.
35
+ // 제거도 여기서 찾은 id를 그대로 쓴다 — 감지가 "있다"고 말한 판을 지워야
36
+ // 상태가 맞아떨어진다.
37
+ function codexPluginIds(file, pluginName) {
38
+ if (!existsSync(file)) return []
39
+ try {
40
+ const data = parseToml(readFileSync(file, 'utf8'))
41
+ return Object.keys(data.plugins ?? {}).filter((id) => id.startsWith(`${pluginName}@`))
42
+ } catch {
43
+ // 깨진 config.toml은 미설치로 둔다 — 설치를 시도하면 codex가 스스로
44
+ // 진단하고, "설치됨"으로 오판해 제거를 그리로 보내는 것보다 낫다.
45
+ return []
46
+ }
47
+ }
48
+
49
+ function copilotInstalled(file, pluginName) {
50
+ const list = readJson(file)?.installedPlugins
51
+ return Array.isArray(list) && list.some((p) => p?.name === pluginName)
52
+ }
53
+
54
+ // ponytail(items/plugin.ponytail.mjs)과 같은 규칙: plugin 키가 배열이 아니면
55
+ // 손대지 않는다.
56
+ function opencodePlugins(file) {
57
+ const value = readJson(file)?.plugin
58
+ if (value === undefined) return []
59
+ if (!Array.isArray(value)) return null
60
+ return value
61
+ }
62
+
63
+ // config:
64
+ // pluginName 감지·제거가 쓰는 상류 이름 (codex 접두사, copilot name,
65
+ // gemini 확장 디렉터리 이름)
66
+ // marketplaceRepo codex·copilot 마켓플레이스 (owner/repo)
67
+ // installId 마켓플레이스 설치 id (<이름>@<마켓>)
68
+ // gemini gemini extensions install에 줄 git URL, 없으면 null
69
+ // opencode 전역 opencode.json plugin 배열에 넣을 항목, 없으면 null
70
+ // supports는 어댑터 유무로 정해진다 — codex·copilot은 항상, gemini·opencode는
71
+ // 좌표가 있을 때만.
72
+ export function defineGlobalPlugin(
73
+ { id, label, group, note, exclusive = null, unsupported = {}, pluginName, marketplaceRepo, installId, gemini = null, opencode = null },
74
+ { home = null, env = process.env, hasBinary = defaultHasBinary } = {},
75
+ ) {
76
+ const supports = ['codex', ...(gemini ? ['gemini'] : []), ...(opencode ? ['opencode'] : []), 'copilot']
77
+
78
+ const files = () => {
79
+ const base = home ?? homedir()
80
+ return {
81
+ codex: join(env.CODEX_HOME || join(base, '.codex'), 'config.toml'),
82
+ copilot: join(base, '.copilot', 'config.json'),
83
+ gemini: join(base, '.gemini', 'extensions', pluginName),
84
+ opencode: join(env.XDG_CONFIG_HOME || join(base, '.config'), 'opencode', 'opencode.json'),
85
+ }
86
+ }
87
+
88
+ const isOurEntry = (p) => String(p).startsWith(`${pluginName}@`)
89
+ const wired = {
90
+ codex: (f) => codexPluginIds(f.codex, pluginName).length > 0,
91
+ copilot: (f) => copilotInstalled(f.copilot, pluginName),
92
+ gemini: (f) => existsSync(f.gemini),
93
+ opencode: (f) => (opencodePlugins(f.opencode) ?? []).some(isOurEntry),
94
+ }
95
+
96
+ return {
97
+ id, category: 'plugin', label, scope: 'user', group, exclusive,
98
+ supports: [...supports],
99
+ unsupported,
100
+ note,
101
+
102
+ // 상태는 "이 머신에 있는 하니스" 기준이다. CLI가 없는 하니스까지 누락으로
103
+ // 세면 gemini 없는 머신은 영원히 partial이라 apply가 매번 헛돈다.
104
+ async detect() {
105
+ const f = files()
106
+ const present = supports.filter((c) => wired[c](f))
107
+ const machine = supports.filter((c) => hasBinary(c))
108
+ const noCli = supports.filter((c) => !machine.includes(c))
109
+ const missing = machine.filter((c) => !present.includes(c))
110
+ const detail = noCli.length > 0 ? msg('item.global.noCli', { list: noCli.join(', ') }) : undefined
111
+ if (present.length === 0) return { status: 'absent', detail }
112
+ if (missing.length === 0) return { status: 'installed', detail }
113
+ return {
114
+ status: 'partial',
115
+ detail: msg('item.plugin.partial', { present: present.join(', '), missing: missing.join(', ') }),
116
+ }
117
+ },
118
+
119
+ async install({ dryRun, exec, log = () => {}, t }) {
120
+ const f = files()
121
+ // opencode 설정이 손댈 수 없는 꼴이면 아무것도 만지기 전에 멈춘다 —
122
+ // 절반만 설치된 채 실패하는 것보다 통째로 거절이 낫다.
123
+ const needsOpencode = opencode && !wired.opencode(f) && hasBinary('opencode')
124
+ if (needsOpencode && !dryRun && opencodePlugins(f.opencode) === null) {
125
+ throw new LocalizedError('error.globalOpencodePlugin', { file: f.opencode, entry: opencode })
126
+ }
127
+ const skipped = []
128
+ const failures = []
129
+ const fail = (cli, output) => failures.push(`${cli}: ${String(output).trim().split('\n')[0]}`)
130
+ for (const cli of supports) {
131
+ if (wired[cli](f)) continue
132
+ if (!hasBinary(cli)) {
133
+ skipped.push(cli)
134
+ continue
135
+ }
136
+ if (cli === 'codex') {
137
+ // 마켓 등록은 이미 있어도 해가 없다 — 성패는 add가 판정한다.
138
+ await exec('codex', ['plugin', 'marketplace', 'add', marketplaceRepo])
139
+ const r = await exec('codex', ['plugin', 'add', installId])
140
+ if (!r.ok) fail(cli, r.output)
141
+ } else if (cli === 'copilot') {
142
+ await exec('copilot', ['plugin', 'marketplace', 'add', marketplaceRepo])
143
+ // 실측(2026-08-15): 다른 copilot 세션이 떠 있으면 os error 5로 한 번
144
+ // 실패하고 재시도에 성공한다. 한 번만 다시 시도한다.
145
+ let r = await exec('copilot', ['plugin', 'install', installId])
146
+ if (!r.ok) r = await exec('copilot', ['plugin', 'install', installId])
147
+ if (!r.ok) fail(cli, r.output)
148
+ } else if (cli === 'gemini') {
149
+ const r = await exec('gemini', ['extensions', 'install', gemini])
150
+ if (!r.ok) fail(cli, r.output)
151
+ } else {
152
+ if (dryRun) {
153
+ log(t('log.plugin.add', { cli: CLIS.opencode.label, name: opencode }))
154
+ continue
155
+ }
156
+ const list = opencodePlugins(f.opencode) ?? []
157
+ if (list.length === 0) setKey(f.opencode, ['plugin'], [opencode])
158
+ else setKey(f.opencode, ['plugin', list.length], opencode)
159
+ }
160
+ }
161
+ if (failures.length > 0) throw new LocalizedError('error.globalExec', { detail: failures.join(' / ') })
162
+ if (skipped.length > 0) return { message: msg('item.global.skipped', { list: skipped.join(', ') }) }
163
+ },
164
+
165
+ async uninstall({ dryRun, exec, log = () => {}, t }) {
166
+ const f = files()
167
+ const skipped = []
168
+ const failures = []
169
+ const fail = (cli, output) => failures.push(`${cli}: ${String(output).trim().split('\n')[0]}`)
170
+ for (const cli of supports) {
171
+ if (!wired[cli](f)) continue
172
+ if (cli === 'opencode') {
173
+ if (dryRun) {
174
+ log(t('log.plugin.remove', { cli: CLIS.opencode.label, name: opencode }))
175
+ continue
176
+ }
177
+ const kept = (opencodePlugins(f.opencode) ?? []).filter((p) => !isOurEntry(p))
178
+ // 우리 항목만 빼고 비면 키째 지운다 — 빈 배열은 우리가 남긴 흔적이다.
179
+ if (kept.length === 0) removeKey(f.opencode, ['plugin'])
180
+ else setKey(f.opencode, ['plugin'], kept)
181
+ continue
182
+ }
183
+ if (!hasBinary(cli)) {
184
+ skipped.push(cli)
185
+ continue
186
+ }
187
+ if (cli === 'codex') {
188
+ for (const pid of codexPluginIds(f.codex, pluginName)) {
189
+ const r = await exec('codex', ['plugin', 'remove', pid])
190
+ if (!r.ok) fail(cli, r.output)
191
+ }
192
+ // 마켓플레이스 등록은 남긴다 — 우리가 등록했다는 보장이 없고,
193
+ // 같은 마켓의 다른 플러그인이 쓰고 있을 수 있다.
194
+ } else if (cli === 'copilot') {
195
+ let r = await exec('copilot', ['plugin', 'uninstall', pluginName])
196
+ if (!r.ok) r = await exec('copilot', ['plugin', 'uninstall', pluginName])
197
+ if (!r.ok) fail(cli, r.output)
198
+ } else {
199
+ const r = await exec('gemini', ['extensions', 'uninstall', pluginName])
200
+ if (!r.ok) fail(cli, r.output)
201
+ }
202
+ }
203
+ if (failures.length > 0) throw new LocalizedError('error.globalExec', { detail: failures.join(' / ') })
204
+ if (skipped.length > 0) return { message: msg('item.global.skipped', { list: skipped.join(', ') }) }
205
+ },
206
+ }
207
+ }
@@ -234,6 +234,11 @@ export default {
234
234
  'item.unsupported.mattpocockRegistry': 'upstream also documents npx skills add (the shared .agents/skills), but this item wires the Claude Code plugin only',
235
235
  'item.unsupported.upstreamNone': 'no official install path upstream',
236
236
  'item.unsupported.superpowersSeparate': 'upstream supports it via a separate per-harness install — this item wires the Claude Code plugin only',
237
+ 'item.unsupported.superpowersGlobalClaude': 'covered by the project-scope item superpowers (plugin)',
238
+ 'item.unsupported.superpowersGlobalGrok': 'upstream 6.3.0 ships grok plugin install superpowers@xai-official, but the detect/remove paths are unverified — not wired yet',
239
+ 'item.unsupported.superpowersGlobalKimi': 'upstream installs only via the interactive /plugins command — no headless path',
240
+ 'item.unsupported.globalProjectItem': 'covered by the project-scope item {item}',
241
+ 'item.unsupported.ponytailGlobalGrok': 'upstream ships grok plugin install DietrichGebert/ponytail --trust, but the detect/remove paths are unverified — not wired yet',
237
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',
238
243
  'item.unsupported.impeccableJunction': 'upstream supports it, but npx impeccable install breaks the shared .agents/skills link, so only the plugin route is wired',
239
244
  'item.unsupported.gstackHost': 'upstream supports it via ./setup --host — this item installs for Claude Code only',
@@ -241,6 +246,9 @@ export default {
241
246
  'item.unsupported.gsdGemini': 'upstream dropped Gemini CLI (sunset 2026-06) — Antigravity succeeds it via --antigravity',
242
247
  'item.mcp.partial': 'registered: {present} / missing: {missing}',
243
248
  'item.plugin.partial': 'wired: {present} / missing: {missing}',
249
+ 'item.global.noCli': 'CLI not on this machine: {list} — excluded from the target set',
250
+ 'run.keepUserScope': '· {id} is a user-global item and is not removed by omission from --set — uncheck it in the TUI to remove it',
251
+ 'item.global.skipped': 'skipped (no CLI): {list}',
244
252
  'item.plugin.deferred': 'recorded in config — it downloads on the next Claude Code run',
245
253
  'item.scanFailed': 'detection failed: {message}',
246
254
  'log.mcp.add': ' [dry-run] register {name} in the {cli} config',
@@ -254,7 +262,9 @@ export default {
254
262
  'item.mcp.codebase-memory.note': 'needs the codebase-memory-mcp binary on PATH. Install: https://github.com/DeusData/codebase-memory-mcp (install.sh / install.ps1)',
255
263
  'item.mcp.graphify.note': 'needs the graphify-mcp binary on PATH. Install: uv tool install "graphifyy[mcp]". Reads graphify-out/graph.json — build it first with /graphify .',
256
264
  'item.mcp.headroom.note': 'needs the headroom binary on PATH. Install: uv tool install --python 3.13 "headroom-ai[proxy,mcp]". The proxy (headroom wrap) is a way of launching, not repo config',
257
- 'item.plugin.superpowers.note': 'official marketplace plugin. Upstream supports 11 harnesses (Codex, Antigravity, …) via per-harness installs',
265
+ 'item.plugin.superpowers.note': 'official marketplace plugin. Upstream supports 14 harnesses (Codex, Grok Build, …) via per-harness installs',
266
+ 'item.global.superpowers.note': 'installs superpowers user-globally with each harness\'s official command — marketplace for codex/copilot, extensions for gemini, the global opencode.json for OpenCode. CLIs missing from this machine are skipped. With skill.superpowers also on, overlapping CLIs see the same skills twice',
267
+ 'item.global.ponytail.note': 'installs Ponytail user-globally with each harness\'s official command — the DietrichGebert/ponytail marketplace for codex/copilot, extensions for gemini. After the codex install, check hook registration once via /hooks. Upstream recommends scripts/uninstall.js to clean ~/.config/ponytail before removal — this item removes the plugin only',
258
268
  'item.plugin.mattpocock-skills.note': '35 engineering and productivity skills (code-review, diagnosing-bugs, domain-modeling, …)',
259
269
  'item.plugin.ponytail.note': 'lean-code ruleset. Wires the Claude Code plugin and the OpenCode plugin entry, both repo-scoped',
260
270
  'item.plugin.ecc.note': 'skills, instincts, memory and security for agent harnesses. Installed as a plugin — its skills/ holds 284 entries, too many to copy into the shared skills directory',
@@ -265,6 +275,9 @@ export default {
265
275
  'item.skill.hallmark.note': 'anti-AI-slop design skill with four verbs (build, audit, redesign, study). 21 themes and 57 slop-test gates. Upstream also documents Cursor and Codex paths; the shared skills directory covers all 10 CLIs at once',
266
276
  'item.skill.diagram-design.note': 'draws 27 diagram types in HTML/SVG using your brand colors and fonts; also redraws Mermaid and draw.io sources. The default fonts (Instrument Serif, Geist) carry no CJK glyphs — swap them in style-guide.md — and PNG export needs Playwright and Chromium separately. The three upstream slash commands are left out, but the references/ they delegate to come along',
267
277
  'item.skill.superpowers.note': 'copies 14 skills into the shared .agents/skills so all 10 CLIs see them. Only one of this and the plugin edition can be chosen — this route has no session-start hook, so nothing is injected at the start of a conversation and skills are invoked on demand',
278
+ 'item.skill.agent-browser.note': 'a skill that drives the browser-automation CLI. Requires the agent-browser binary on PATH — npm i -g agent-browser, then agent-browser install once (downloads Chrome for Testing). The SKILL.md is a discovery stub; the real workflow guidance is served by the installed CLI. The body is harness-neutral, so all 10 CLIs share it (only the allowed-tools line is Claude syntax)',
279
+ 'item.skill.find-skills.note': 'a skill that searches the public skills registry and guides installs. It only instructs npx skills commands — harness-neutral, shared by all 10 CLIs',
280
+ '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',
268
281
  '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',
269
282
  'item.skill.karpathy.note': 'behavioral guidelines that curb overbuilding and vague success criteria',
270
283
  'item.skill.gstack.note': 'repo-local clone + setup (needs bash; Git Bash on Windows). Runtime state (~/.gstack) may be created globally.',
@@ -284,6 +297,8 @@ export default {
284
297
  'error.gsdInstall': 'GSD install failed: {output}',
285
298
  'error.gsdUninstall': 'GSD uninstall failed: {output}',
286
299
  'error.ponytailOpencodePlugin': '{file}: the plugin key is not an array. Leaving it alone — add "@dietrichgebert/ponytail" by hand.',
300
+ 'error.globalExec': 'a harness command failed — {detail}',
301
+ 'error.globalOpencodePlugin': '{file}: the plugin key is not an array. Leaving it alone — add "{entry}" by hand.',
287
302
  'error.registrySkillInstall': 'skill registry install failed ({skill}): {output}',
288
303
  'error.registrySkillAnchor': "{id}: when skill is '*', an anchor skill must be named for detect to look at",
289
304
  'error.itemFieldMissing': '{file}: {field} missing',
@@ -227,6 +227,11 @@ export default {
227
227
  'item.unsupported.mattpocockRegistry': '상류가 npx skills add(공유 .agents/skills)도 안내하지만 이 항목은 Claude Code 플러그인만 배선합니다',
228
228
  'item.unsupported.upstreamNone': '상류에 공식 설치 경로가 없습니다',
229
229
  'item.unsupported.superpowersSeparate': '상류가 하니스별 별도 설치로 지원합니다 — 이 항목은 Claude Code 플러그인만 배선합니다',
230
+ 'item.unsupported.superpowersGlobalClaude': '프로젝트 스코프 항목 superpowers (plugin)이 담당합니다',
231
+ 'item.unsupported.superpowersGlobalGrok': '상류 6.3.0에 grok plugin install superpowers@xai-official 명령이 있지만 감지·제거 경로를 실측하지 못해 아직 배선하지 않습니다',
232
+ 'item.unsupported.superpowersGlobalKimi': '상류 설치가 대화형 /plugins 명령뿐이라 헤드리스 경로가 없습니다',
233
+ 'item.unsupported.globalProjectItem': '프로젝트 스코프 항목 {item}이 담당합니다',
234
+ 'item.unsupported.ponytailGlobalGrok': '상류 명령(grok plugin install DietrichGebert/ponytail --trust)이 있지만 감지·제거 경로 미실측이라 배선하지 않습니다',
230
235
  'item.unsupported.bkitPort': '상류가 별도 배포판(bkit-codex·bkit-gemini)으로 지원합니다 — 이 플러그인과 별개 설치입니다. Gemini판은 Gemini CLI 확장 그대로이고 2026-06-18 종료 이후 갱신이 없습니다',
231
236
  'item.unsupported.impeccableJunction': '상류는 지원하지만 npx impeccable install이 공유 .agents/skills 연결을 끊어 플러그인 경로만 배선합니다',
232
237
  'item.unsupported.gstackHost': '상류는 ./setup --host로 지원합니다 — 이 항목은 Claude Code에만 설치합니다',
@@ -234,6 +239,9 @@ export default {
234
239
  'item.unsupported.gsdGemini': '상류가 Gemini CLI 지원을 제거했습니다(2026-06 종료) — Antigravity가 --antigravity로 승계합니다',
235
240
  'item.mcp.partial': '등록됨: {present} / 누락: {missing}',
236
241
  'item.plugin.partial': '배선됨: {present} / 누락: {missing}',
242
+ 'item.global.noCli': 'CLI 없음: {list} — 이 머신 대상에서 제외',
243
+ 'run.keepUserScope': '· {id}는 사용자 전역 항목이라 --set 생략으로는 제거하지 않습니다 — 제거하려면 TUI에서 해제하세요',
244
+ 'item.global.skipped': 'CLI가 없어 건너뜀: {list}',
237
245
  'item.plugin.deferred': '설정 기록됨 — 다음 Claude Code 실행 시 다운로드됩니다',
238
246
  'item.scanFailed': '감지 실패: {message}',
239
247
  'log.mcp.add': ' [dry-run] {cli} 설정에 {name} 등록',
@@ -247,7 +255,9 @@ export default {
247
255
  'item.mcp.codebase-memory.note': 'PATH에 codebase-memory-mcp 바이너리 필요. 설치: https://github.com/DeusData/codebase-memory-mcp (install.sh / install.ps1)',
248
256
  'item.mcp.graphify.note': 'PATH에 graphify-mcp 바이너리 필요. 설치: uv tool install "graphifyy[mcp]". graphify-out/graph.json을 읽으므로 /graphify .로 그래프를 먼저 만드세요',
249
257
  'item.mcp.headroom.note': 'PATH에 headroom 바이너리 필요. 설치: uv tool install --python 3.13 "headroom-ai[proxy,mcp]". 프록시(headroom wrap)는 실행 방식이라 저장소 설정 대상이 아닙니다',
250
- 'item.plugin.superpowers.note': '공식 마켓플레이스 플러그인. 상류는 Codex·Antigravity 등 11개 하니스를 하니스별 설치로 지원합니다',
258
+ 'item.plugin.superpowers.note': '공식 마켓플레이스 플러그인. 상류는 Codex·Grok Build 등 14개 하니스를 하니스별 설치로 지원합니다',
259
+ 'item.global.superpowers.note': 'superpowers를 하니스별 공식 명령으로 사용자 전역에 설치합니다 — codex·copilot은 마켓플레이스, gemini는 extensions, opencode는 전역 opencode.json. 이 머신에 없는 CLI는 건너뜁니다. skill.superpowers와 함께 켜면 겹치는 CLI는 같은 스킬을 두 곳에서 봅니다',
260
+ 'item.global.ponytail.note': 'Ponytail을 하니스별 공식 명령으로 사용자 전역에 설치합니다 — codex·copilot은 마켓플레이스(DietrichGebert/ponytail), gemini는 extensions. codex는 설치 후 /hooks에서 훅 등록을 한 번 확인해야 합니다. 상류는 제거 전 scripts/uninstall.js로 ~/.config/ponytail 정리를 안내합니다 — 이 항목은 플러그인만 제거합니다',
251
261
  'item.plugin.mattpocock-skills.note': '엔지니어링·생산성 스킬 35종 (code-review, diagnosing-bugs, domain-modeling 등)',
252
262
  'item.plugin.ponytail.note': '군더더기 없는 코드 규칙 묶음. Claude Code 플러그인과 OpenCode plugin 항목을 저장소 범위로 배선합니다',
253
263
  'item.plugin.ecc.note': '에이전트 하네스용 스킬·본능·메모리·보안 묶음. skills/에 284개가 들어 있어 공유 스킬 디렉터리에 복사하지 않고 플러그인으로 설치합니다',
@@ -258,6 +268,9 @@ export default {
258
268
  'item.skill.hallmark.note': '네 가지 동사(신규 제작·audit·redesign·study)를 갖춘 안티 AI슬롭 디자인 스킬. 테마 21종과 슬롭 테스트 57종. 상류는 Cursor·Codex 경로도 안내하지만 공유 스킬 디렉터리 하나로 10개 CLI가 함께 봅니다',
259
269
  'item.skill.diagram-design.note': '브랜드 색·폰트로 다이어그램 27종을 그리는 HTML/SVG 스킬. Mermaid·draw.io 원본도 다시 그립니다. 기본 폰트(Instrument Serif·Geist)에 한글 글리프가 없어 style-guide.md에서 바꿔야 하고, PNG 내보내기는 Playwright·Chromium이 따로 필요합니다. 상류 플러그인의 명령 3개는 빠지지만 그 본문인 references/는 그대로 옵니다',
260
270
  'item.skill.superpowers.note': '공유 .agents/skills에 스킬 14종을 복사해 10개 CLI가 함께 봅니다. 플러그인 판과 하나만 고를 수 있습니다 — 이쪽은 session-start 훅이 없어 대화 시작 시 자동 주입이 되지 않고, 스킬을 불러서 씁니다',
271
+ 'item.skill.agent-browser.note': '브라우저 자동화 CLI를 쓰게 하는 스킬. PATH에 agent-browser 바이너리 필요 — npm i -g agent-browser 후 최초 1회 agent-browser install(Chrome for Testing 다운로드). SKILL.md는 안내 스텁이라 실제 지침은 설치된 CLI가 제공합니다. 본문이 하네스 중립이라 10개 CLI가 함께 씁니다(allowed-tools 줄만 Claude 문법)',
272
+ 'item.skill.find-skills.note': '공개 스킬 레지스트리를 검색해 설치를 안내하는 스킬. npx skills 명령만 지시하는 하네스 중립 문서라 10개 CLI가 함께 씁니다',
273
+ 'item.skill.mcp-builder.note': 'MCP 서버 제작 가이드(Python FastMCP·Node MCP SDK). reference/ 문서 4종과 Apache-2.0 LICENSE.txt가 스킬 디렉터리에 함께 복사됩니다. 내용이 하네스 중립이라 10개 CLI가 함께 씁니다',
261
274
  'item.skill.mattpocock-skills.note': '공유 .agents/skills에 스킬 35종을 복사해 10개 CLI가 함께 봅니다. 상류가 직접 안내하는 경로이며 훅이 없어 플러그인 판에 견줘 잃는 것이 없습니다. 둘 중 하나만 고를 수 있습니다',
262
275
  'item.skill.karpathy.note': '과설계와 모호한 완료 기준을 줄이는 행동 지침',
263
276
  'item.skill.gstack.note': '저장소 로컬 clone + setup (bash 필요, Windows는 Git Bash). 런타임 상태(~/.gstack)는 전역에 생길 수 있음.',
@@ -276,6 +289,8 @@ export default {
276
289
  'error.gsdInstall': 'GSD 설치 실패: {output}',
277
290
  'error.gsdUninstall': 'GSD 제거 실패: {output}',
278
291
  'error.ponytailOpencodePlugin': '{file}: plugin 키가 배열이 아닙니다. 덮어쓰지 않고 그대로 둡니다 — "@dietrichgebert/ponytail"을 직접 추가하세요.',
292
+ 'error.globalExec': '하니스 명령이 실패했습니다 — {detail}',
293
+ 'error.globalOpencodePlugin': '{file}: plugin 키가 배열이 아닙니다. 덮어쓰지 않고 그대로 둡니다 — "{entry}"을 직접 추가하세요.',
279
294
  'error.registrySkillInstall': '스킬 레지스트리 설치 실패 ({skill}): {output}',
280
295
  'error.registrySkillAnchor': "{id}: skill이 '*'이면 detect가 볼 대표 스킬을 anchor로 지정해야 합니다",
281
296
  'error.itemFieldMissing': '{file}: {field} 누락',
@@ -0,0 +1,52 @@
1
+ import { defineGlobalPlugin } from '../global-plugin.mjs'
2
+ import { CLI_IDS } from '../clis.mjs'
3
+ import { msg } from '../i18n/index.mjs'
4
+
5
+ // Ponytail의 하니스별 전역 설치 판. 공통 기구는 global-plugin.mjs에 있다.
6
+ //
7
+ // 하니스별 근거(2026-08-15 상류 README 재검증):
8
+ // codex — `codex plugin marketplace add DietrichGebert/ponytail` +
9
+ // `codex plugin add ponytail@ponytail`. 상류는 설치 후 codex에서
10
+ // /hooks로 라이프사이클 훅 등록을 확인하고 새 스레드를 시작하라는
11
+ // 대화형 후속 단계를 안내한다 — 명령으로 대신할 수 없어 note에
12
+ // 적는다. 제거는 `codex plugin remove <id>`.
13
+ // copilot — `copilot plugin marketplace add` + `copilot plugin install
14
+ // ponytail@ponytail`. 상류 README에 제거 명령은 없지만
15
+ // `copilot plugin uninstall <이름>`은 copilot CLI 자체의 범용
16
+ // 명령이다(--help 실측).
17
+ // gemini — `gemini extensions install https://github.com/DietrichGebert/ponytail`.
18
+ //
19
+ // opencode는 프로젝트 항목(plugin.ponytail)이 opencode.jsonc의 plugin 배열로
20
+ // 이미 배선한다 — 전역 판에서 겹치면 같은 플러그인이 두 번 등록된다. claude도
21
+ // 같은 이유로 프로젝트 항목의 자리다. grok은 상류 명령이 있으나 감지·제거
22
+ // 경로를 실측할 CLI가 없어 superpowers 전역 판과 같은 기준으로 제외한다.
23
+ // kiro·vscode는 상류가 룰 파일 수동 배치만 안내하고, kilo·kimi는 경로가 없다.
24
+ //
25
+ // 상류는 플러그인 제거 전에 node scripts/uninstall.js로 ~/.config/ponytail
26
+ // 설정과 statusLine 항목을 정리하라고 안내한다 — 하니스마다 스크립트 위치가
27
+ // 달라 자동화하지 않고 note로 알린다. 이 항목은 플러그인만 제거한다.
28
+ const SUPPORTS = ['codex', 'gemini', 'copilot']
29
+
30
+ const CONFIG = {
31
+ id: 'global.ponytail', label: 'Ponytail (global)', group: '__token',
32
+ note: 'item.global.ponytail.note',
33
+ pluginName: 'ponytail',
34
+ marketplaceRepo: 'DietrichGebert/ponytail',
35
+ installId: 'ponytail@ponytail',
36
+ gemini: 'https://github.com/DietrichGebert/ponytail',
37
+ unsupported: Object.fromEntries(
38
+ CLI_IDS.filter((c) => !SUPPORTS.includes(c)).map((c) => [
39
+ c,
40
+ ['claude', 'opencode'].includes(c) ? msg('item.unsupported.globalProjectItem', { item: 'Ponytail' })
41
+ : c === 'grok' ? msg('item.unsupported.ponytailGlobalGrok')
42
+ : ['kiro', 'vscode'].includes(c) ? msg('item.unsupported.ponytailRules')
43
+ : msg('item.unsupported.upstreamNone'),
44
+ ]),
45
+ ),
46
+ }
47
+
48
+ export function createItem(deps = {}) {
49
+ return defineGlobalPlugin(CONFIG, deps)
50
+ }
51
+
52
+ export default createItem()
@@ -0,0 +1,52 @@
1
+ import { defineGlobalPlugin } from '../global-plugin.mjs'
2
+ import { CLI_IDS } from '../clis.mjs'
3
+ import { msg } from '../i18n/index.mjs'
4
+
5
+ // superpowers를 프로젝트 스코프로 배선할 길이 없는 하니스에 상류의 하니스별
6
+ // 전역 설치("install separately for each one")를 대신 해 주는 항목. 공통
7
+ // 기구는 global-plugin.mjs에 있고, 여기는 상류 좌표와 사유만 든다.
8
+ //
9
+ // 하니스별 근거(2026-08-15, v6.3.0):
10
+ // codex — 이 머신에서 marketplace add + plugin add를 실측. 기록은
11
+ // $CODEX_HOME/config.toml의 [plugins."superpowers@…"].
12
+ // copilot — 이 머신에서 설치·목록·제거를 실측(~/.copilot/config.json).
13
+ // gemini — 공식 extensions 기구. 로컬 CLI가 없어 문서 근거다.
14
+ // opencode— 상류 .opencode/INSTALL.md가 전역 opencode.json의 plugin 배열에
15
+ // 아래 항목 한 줄을 더하라고 안내한다.
16
+ //
17
+ // grok은 상류 명령(grok plugin install superpowers@xai-official --trust)이
18
+ // 있지만 감지·제거 경로를 실측할 CLI가 없어 아직 배선하지 않고, kimi는 설치가
19
+ // 대화형 /plugins뿐이라 헤드리스 경로가 없다. claude는 프로젝트 스코프 항목
20
+ // (plugin.superpowers)의 자리다.
21
+ //
22
+ // skill.superpowers(공유 .agents/skills)와 배타로 묶지 않는다 — 저쪽은 이
23
+ // 저장소에만, 이쪽은 머신 전체에 작용해 평면이 다르고, "claude는 프로젝트
24
+ // 플러그인 + 나머지는 전역" 같은 조합이 정당하다. 겹치는 하니스가 같은 스킬을
25
+ // 두 곳에서 본다는 것은 note에 적어 둔다.
26
+ const SUPPORTS = ['codex', 'gemini', 'opencode', 'copilot']
27
+
28
+ const CONFIG = {
29
+ id: 'global.superpowers', label: 'superpowers (global)', group: '__flow',
30
+ note: 'item.global.superpowers.note',
31
+ pluginName: 'superpowers',
32
+ marketplaceRepo: 'obra/superpowers-marketplace',
33
+ installId: 'superpowers@superpowers-marketplace',
34
+ gemini: 'https://github.com/obra/superpowers',
35
+ opencode: 'superpowers@git+https://github.com/obra/superpowers.git',
36
+ unsupported: Object.fromEntries(
37
+ CLI_IDS.filter((c) => !SUPPORTS.includes(c)).map((c) => [
38
+ c,
39
+ c === 'claude' ? msg('item.unsupported.superpowersGlobalClaude')
40
+ : c === 'grok' ? msg('item.unsupported.superpowersGlobalGrok')
41
+ : c === 'kimi' ? msg('item.unsupported.superpowersGlobalKimi')
42
+ : msg('item.unsupported.upstreamNone'),
43
+ ]),
44
+ ),
45
+ }
46
+
47
+ // 테스트가 홈·환경·PATH 탐지를 갈아끼울 수 있게 공장으로 노출한다.
48
+ export function createItem(deps = {}) {
49
+ return defineGlobalPlugin(CONFIG, deps)
50
+ }
51
+
52
+ export default createItem()
@@ -6,12 +6,15 @@ import { msg } from '../i18n/index.mjs'
6
6
  // 부트스트랩이 만든 `.agents/skills` Junction을 끊는다 — 공유 스킬이 전부
7
7
  // Claude Code 화면에서 사라진다. 버그가 아니라 설계다: 상류
8
8
  // `cli/bin/commands/skills.mjs`의 isInProjectProviderLink가 "프로젝트 안 다른
9
- // 프로바이더를 가리키는 링크"를 의도적으로 unlink한다(3.5.0 재확인, 2026-08-02).
9
+ // 프로바이더의 skills를 가리키는 링크"를 의도적으로 unlink한다(3.6.0 재확인,
10
+ // 2026-08-15 — 저장소 밖을 가리키는 링크는 보존하지만, 부트스트랩 Junction은
11
+ // 프로젝트 안 `.agents/skills`를 가리켜 여전히 파괴 대상이다).
10
12
  // 플러그인 경로는 `.claude/skills`를 건드리지 않는다.
11
13
  // 또 그 명령은 `--providers`와 `--scope`를 함께 주지 않으면 대화형으로 물으며,
12
14
  // 비TTY에서는 조용히 global을 골라 홈에 설치한다.
13
- // 상류 공식 프로바이더 14개 중 이 저장소의 CLI와 겹치는 것(아래 UPSTREAM).
14
- // Antigravity는 README에만 있고 설치 CLI는 거부한다(수동 복사 전용).
15
+ // 상류 공식 프로바이더는 3.6.0 기준 16개(.agent=antigravity·.hermes가 새로
16
+ // 들어옴 — README는 아직 수동 복사만 안내해 코드가 앞선다). 이 저장소의 CLI와
17
+ // 겹치는 것은 아래 UPSTREAM 그대로다.
15
18
  const UPSTREAM = ['codex', 'gemini', 'opencode', 'kiro', 'grok', 'copilot']
16
19
  export default definePlugin({
17
20
  id: 'plugin.impeccable', label: 'impeccable', group: '__style',
@@ -0,0 +1,16 @@
1
+ import { defineRegistrySkill } from '../catalog.mjs'
2
+ // SKILL.md는 안내 스텁이다 — 실제 워크플로 지침은 설치된 CLI가 런타임에 준다
3
+ // (`agent-browser skills get core`). 그래서 스킬 복사만으로는 반쪽이고, PATH의
4
+ // agent-browser 바이너리(npm i -g agent-browser)와 최초 1회
5
+ // `agent-browser install`(Chrome for Testing 다운로드)이 사실상 전제다 —
6
+ // note가 알린다. 본문은 Bash로 agent-browser를 부르라는 하네스 중립 문서라
7
+ // 공유 디렉터리의 10개 CLI가 함께 쓴다. frontmatter의 allowed-tools와
8
+ // hidden: true는 Claude Code 문법이라 다른 CLI는 무시한다.
9
+ // (2026-08-15 확인: skills/agent-browser/SKILL.md 단일 스킬, npm agent-browser
10
+ // 0.34.0 = vercel-labs 리포, 네이티브 바이너리는 Windows x64 포함.)
11
+ export default defineRegistrySkill({
12
+ id: 'skill.agent-browser', label: 'agent-browser', group: '__service',
13
+ source: 'https://github.com/vercel-labs/agent-browser',
14
+ skill: 'agent-browser',
15
+ note: 'item.skill.agent-browser.note',
16
+ })
@@ -0,0 +1,12 @@
1
+ import { defineRegistrySkill } from '../catalog.mjs'
2
+ // vercel-labs/skills는 이 저장소의 레지스트리 항목들이 쓰는 `npx skills` CLI
3
+ // 본체 리포인데, 자체 배포 스킬은 find-skills 하나다(skills/find-skills/
4
+ // SKILL.md, 2026-08-15 확인). 본문은 npx skills find/add/update 명령만
5
+ // 지시하는 하네스 중립 문서다. README 예시에 나오는 web-design-guidelines
6
+ // 등은 별도 리포(vercel-labs/agent-skills) 소속이라 이 항목과 무관하다.
7
+ export default defineRegistrySkill({
8
+ id: 'skill.find-skills', label: 'find-skills', group: '__flow',
9
+ source: 'https://github.com/vercel-labs/skills',
10
+ skill: 'find-skills',
11
+ note: 'item.skill.find-skills.note',
12
+ })
@@ -0,0 +1,13 @@
1
+ import { defineRegistrySkill } from '../catalog.mjs'
2
+ // anthropics/skills 17종 중 mcp-builder 하나만 --skill로 고른다. 본문이
3
+ // reference/*.md 넷을 상대경로로 참조하는데 레지스트리 --copy가 스킬
4
+ // 디렉터리를 통째로 복사하므로 함께 온다 — 스킬별 LICENSE.txt(Apache-2.0)도
5
+ // 같은 디렉터리에 실려 고지가 유지된다(2026-08-15 확인, 리포 단위 라이선스는
6
+ // 없고 스킬별로 갈린다). Python(FastMCP)·Node(MCP SDK) 서버 작성 가이드라
7
+ // Claude 전용 도구 없이 하네스 중립이다.
8
+ export default defineRegistrySkill({
9
+ id: 'skill.mcp-builder', label: 'mcp-builder', group: '__service',
10
+ source: 'https://github.com/anthropics/skills',
11
+ skill: 'mcp-builder',
12
+ note: 'item.skill.mcp-builder.note',
13
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rch4com/agent-setup",
3
- "version": "1.12.0",
3
+ "version": "1.15.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",
@@ -20,10 +20,21 @@
20
20
  },
21
21
  "license": "MIT",
22
22
  "type": "module",
23
- "engines": { "node": ">=20" },
24
- "bin": { "agent-setup": "install.mjs" },
25
- "files": ["install.mjs", "lib/", "README.md", "LICENSE"],
26
- "publishConfig": { "access": "public" },
23
+ "engines": {
24
+ "node": ">=20"
25
+ },
26
+ "bin": {
27
+ "agent-setup": "install.mjs"
28
+ },
29
+ "files": [
30
+ "install.mjs",
31
+ "lib/",
32
+ "README.md",
33
+ "LICENSE"
34
+ ],
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
27
38
  "scripts": {
28
39
  "start": "node install.mjs",
29
40
  "test": "node --test",