improve-skills-loop-system 0.1.4__tar.gz

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 (35) hide show
  1. improve_skills_loop_system-0.1.4/LICENSE +21 -0
  2. improve_skills_loop_system-0.1.4/PKG-INFO +519 -0
  3. improve_skills_loop_system-0.1.4/README.md +508 -0
  4. improve_skills_loop_system-0.1.4/pyproject.toml +25 -0
  5. improve_skills_loop_system-0.1.4/setup.cfg +4 -0
  6. improve_skills_loop_system-0.1.4/src/improve_skills_loop_system.egg-info/PKG-INFO +519 -0
  7. improve_skills_loop_system-0.1.4/src/improve_skills_loop_system.egg-info/SOURCES.txt +33 -0
  8. improve_skills_loop_system-0.1.4/src/improve_skills_loop_system.egg-info/dependency_links.txt +1 -0
  9. improve_skills_loop_system-0.1.4/src/improve_skills_loop_system.egg-info/entry_points.txt +2 -0
  10. improve_skills_loop_system-0.1.4/src/improve_skills_loop_system.egg-info/top_level.txt +1 -0
  11. improve_skills_loop_system-0.1.4/src/portable_skill_learning/__init__.py +1 -0
  12. improve_skills_loop_system-0.1.4/src/portable_skill_learning/adapters/__init__.py +1 -0
  13. improve_skills_loop_system-0.1.4/src/portable_skill_learning/adapters/antigravity.py +361 -0
  14. improve_skills_loop_system-0.1.4/src/portable_skill_learning/adapters/claude.py +219 -0
  15. improve_skills_loop_system-0.1.4/src/portable_skill_learning/adapters/codex.py +280 -0
  16. improve_skills_loop_system-0.1.4/src/portable_skill_learning/assessment.py +85 -0
  17. improve_skills_loop_system-0.1.4/src/portable_skill_learning/cli.py +313 -0
  18. improve_skills_loop_system-0.1.4/src/portable_skill_learning/guidance.py +218 -0
  19. improve_skills_loop_system-0.1.4/src/portable_skill_learning/install.py +333 -0
  20. improve_skills_loop_system-0.1.4/src/portable_skill_learning/probe.py +117 -0
  21. improve_skills_loop_system-0.1.4/src/portable_skill_learning/reflection.py +280 -0
  22. improve_skills_loop_system-0.1.4/src/portable_skill_learning/replay.py +470 -0
  23. improve_skills_loop_system-0.1.4/src/portable_skill_learning/schedule.py +72 -0
  24. improve_skills_loop_system-0.1.4/src/portable_skill_learning/store.py +378 -0
  25. improve_skills_loop_system-0.1.4/src/portable_skill_learning/trials.py +382 -0
  26. improve_skills_loop_system-0.1.4/src/portable_skill_learning/worker.py +204 -0
  27. improve_skills_loop_system-0.1.4/tests/test_adapter_contract.py +168 -0
  28. improve_skills_loop_system-0.1.4/tests/test_antigravity.py +239 -0
  29. improve_skills_loop_system-0.1.4/tests/test_claude.py +132 -0
  30. improve_skills_loop_system-0.1.4/tests/test_guidance.py +121 -0
  31. improve_skills_loop_system-0.1.4/tests/test_install.py +164 -0
  32. improve_skills_loop_system-0.1.4/tests/test_reflection.py +162 -0
  33. improve_skills_loop_system-0.1.4/tests/test_replay.py +205 -0
  34. improve_skills_loop_system-0.1.4/tests/test_store.py +116 -0
  35. improve_skills_loop_system-0.1.4/tests/test_trial_lifecycle.py +150 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 GIY0201
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,519 @@
1
+ Metadata-Version: 2.4
2
+ Name: improve-skills-loop-system
3
+ Version: 0.1.4
4
+ Summary: Project-local skill learning, shared trials and replay evidence
5
+ License-Expression: MIT
6
+ Project-URL: Repository, https://github.com/GIY0201/Improve-Skills-loop-System
7
+ Requires-Python: >=3.11
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Dynamic: license-file
11
+
12
+ # Improve-Skills-loop-System
13
+
14
+ [English](#english) | [한국어](#한국어)
15
+
16
+ ## English
17
+
18
+ Improve-Skills-loop-System lets a coding agent learn a reusable procedure from
19
+ ordinary work and share the resulting skill with other connected agents in the
20
+ same project. It runs with Codex, Claude Code, Antigravity and Traycer. Skill
21
+ versions and test results live in a local SQLite database.
22
+
23
+ ### Where the design comes from
24
+
25
+ The engine combines ideas from two projects.
26
+
27
+ [Hermes Agent](https://github.com/NousResearch/hermes-agent) by Nous Research
28
+ writes its own skills while it works. When it finds a working path after errors,
29
+ or when the user corrects its approach, it saves the procedure as a skill and
30
+ loads that skill on later tasks of the same kind. A background review after each
31
+ turn can also propose skill changes. Hermes does not rerun tasks to check whether
32
+ a change helped.
33
+
34
+ [SkillOpt](https://github.com/microsoft/SkillOpt) from Microsoft trains a skill
35
+ document with scored runs. The agent runs tasks with the current skill, a
36
+ separate model turns the results into small edits, and an edit is accepted only
37
+ if it raises the score on tasks that were held out. SkillOpt-Sleep runs this
38
+ process overnight on past sessions of local coding agents. The method needs tasks
39
+ that can be scored, and each candidate edit costs extra model calls.
40
+
41
+ From Hermes Agent, this engine takes automatic learning during work. From
42
+ SkillOpt, it takes a separate acceptance test. The previous version and the
43
+ trial run on the same input, and the engine recommends keeping the trial when
44
+ its scores improve by more than the spread between repeated scorings.
45
+
46
+ ### How it works
47
+
48
+ 1. Work normally. A lasting correction, three conversation turns, or six tool
49
+ calls can trigger a short end-of-turn review. The model already in the chat
50
+ decides whether a reusable correction or a verified fix is worth saving.
51
+ 2. The engine confirms the finished turn and checks the cited evidence against
52
+ the client's own record. It saves the procedure and how to check it. Other
53
+ clients receive the skill, while the source conversation stays in its client.
54
+ 3. The same version becomes a trial for the connected profiles in that project.
55
+ A profile already trying another version of that skill gets the shared trial
56
+ after its current trial is kept or rolled back. Rollback restores that
57
+ profile's previous selection. New connected profiles get the shared trial
58
+ automatically.
59
+ 4. When a later request matches a task phrase, the hook asks the agent to read
60
+ that exact version. `skill-learning status --project .` shows reflections,
61
+ active versions and verified reads. `skill-learning work --project .` retries
62
+ pending lessons and lists profiles still working through another trial.
63
+
64
+ For example, tell Claude, “From now on, put a source line right under the title of
65
+ each document summary.” If Claude saves that procedure, Codex or Gemini can use
66
+ it on the next matching summary request in the same project. The review step
67
+ uses the current session's model and tool permissions.
68
+
69
+ <details>
70
+ <summary>File-verified correction format</summary>
71
+
72
+ You can submit a correction in this format and run `skill-learning work
73
+ --project .` after the turn. The engine checks that the project file changed
74
+ during the completed turn and contains the expected line.
75
+
76
+ ```text
77
+ SKILL CORRECTION <skill-name>
78
+ trigger: <words that identify the task>
79
+ procedure: <steps to follow>
80
+ verification: <file path relative to the project>
81
+ expected: <line the file must contain>
82
+ ```
83
+
84
+ </details>
85
+
86
+ ### Compare a trial before keeping it
87
+
88
+ 1. `skill-learning review` takes a fixed input from a manifest file and runs it
89
+ in isolated Codex or Claude Code sessions, once with the previous version and
90
+ once with the trial. If some runs fail, the finished results are kept and a
91
+ resumed review runs only the missing ones.
92
+ 2. `skill-learning assess` records scores from readers who do not know which
93
+ version produced each output. From these scores the engine recommends keeping
94
+ the trial, extending it or rolling it back. Apply the result with `keep` or
95
+ `rollback`.
96
+ 3. On Windows, `skill-learning schedule` registers the review in Task Scheduler.
97
+ If the computer is asleep at the scheduled time, the review runs after it
98
+ wakes.
99
+
100
+ ### Install and connect a project
101
+
102
+ Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and set up
103
+ the AI clients you want to use. The package requires Python 3.11 or newer, and uv
104
+ downloads one if none is installed. Open a terminal in the project you want to
105
+ connect.
106
+
107
+ ```text
108
+ uv tool install improve-skills-loop-system
109
+ skill-learning setup
110
+ ```
111
+
112
+ If the terminal cannot find `skill-learning`, run `uv tool update-shell` and
113
+ open a new terminal. To install and connect the current project in one line:
114
+
115
+ **PowerShell**
116
+
117
+ ```powershell
118
+ uv tool install improve-skills-loop-system; if ($LASTEXITCODE -eq 0) { & (Join-Path (uv tool dir --bin) "skill-learning.exe") setup }
119
+ ```
120
+
121
+ **Bash or Zsh**
122
+
123
+ ```sh
124
+ uv tool install improve-skills-loop-system && "$(uv tool dir --bin)/skill-learning" setup
125
+ ```
126
+
127
+ `setup` detects local clients and binds their transcript directories. It adds
128
+ the engine's hooks to the three project settings files below and preserves
129
+ existing settings and hook entries. You can preview the changes or limit the
130
+ installation to particular clients:
131
+
132
+ ```text
133
+ skill-learning setup --dry-run
134
+ skill-learning setup --project <project-folder> --target codex --target traycer
135
+ skill-learning doctor --project .
136
+ ```
137
+
138
+ Run `setup` in each project folder. Clients read hooks only from the folder a
139
+ session runs in, so a parent folder such as `D:\projects` does not cover the
140
+ projects inside it. `setup` prints a warning when the folder holds several
141
+ projects. The generated project settings contain machine-specific paths. Keep
142
+ these entries local when committing shared settings files.
143
+
144
+ #### Choose clients with `--target`
145
+
146
+ Without `--target`, `setup` connects every client it detects. Repeat
147
+ `--target` to connect only the clients you name.
148
+
149
+ | `--target` | Connects |
150
+ | --- | --- |
151
+ | `codex` | Codex CLI |
152
+ | `claude` | Claude Code |
153
+ | `antigravity` | Antigravity App and CLI, if their folders exist |
154
+ | `traycer` | Traycer Codex and Claude Code, plus ACP import if found |
155
+ | `traycer-acp` | Traycer Antigravity ACP import only, without hook files |
156
+
157
+ `traycer` covers Traycer's default and managed profiles. It does not include the
158
+ standalone Codex CLI or Claude Code, so add `--target codex` or `--target claude`
159
+ for those. For example, `--target codex --target traycer` connects Codex CLI and
160
+ Traycer's Codex and Claude Code. It also adds ACP import when Traycer Antigravity
161
+ is installed.
162
+
163
+ #### If no client is detected
164
+
165
+ If `setup` prints `No supported client found`, it found neither a client folder
166
+ in your home directory nor a client command on `PATH`. Start the client once and
167
+ run `setup` again, or name the client with `--target`:
168
+
169
+ ```text
170
+ skill-learning setup --target codex
171
+ skill-learning setup --target claude
172
+ ```
173
+
174
+ `codex` and `claude` connect even before the client's first run. They use
175
+ `~/.codex/sessions` and `~/.claude/projects`, or the folders set by `CODEX_HOME`
176
+ and `CLAUDE_CONFIG_DIR`. Antigravity has no such fallback, so start it once
177
+ before running `setup`.
178
+
179
+ ### After setup
180
+
181
+ `setup` prints the remaining steps in the terminal. Its JSON output lists the
182
+ same steps under `next_steps`.
183
+
184
+ 1. Approve the Codex hooks. Codex runs a project hook only after you trust the
185
+ project folder and review the hook, and `setup` cannot do this for you. It
186
+ prints one command for each Codex profile it found, including Traycer's
187
+ managed profiles. Run each command, trust the folder if Codex asks, then open
188
+ `/hooks` and trust every hook from `.codex/hooks.json`. Codex asks again
189
+ whenever a hook definition changes.
190
+ 2. If Antigravity asks whether to trust the workspace hooks, allow it. Claude
191
+ Code needs no approval.
192
+ 3. Start a new chat or session. Clients read hook settings when a session
193
+ starts, so chats that were already open do not run the hooks.
194
+ 4. Run `skill-learning doctor --project .`. For each Codex profile it shows
195
+ whether the folder is trusted and how many hooks are approved, and it prints
196
+ the commands again for anything left.
197
+
198
+ Traycer's managed Codex profiles live under a long path, and Codex CLI fails
199
+ there with `path must be shorter than SUN_LEN`. The printed command adds
200
+ `--no-daemon` for those profiles.
201
+
202
+ ### Supported connections
203
+
204
+ | Client | Project settings | Available workflow |
205
+ | --- | --- | --- |
206
+ | Codex CLI and Traycer Codex | `.codex/hooks.json` | End-of-turn learning, shared trials, native verification and replay |
207
+ | Claude Code and Traycer Claude Code | `.claude/settings.json` | End-of-turn learning, shared trials, native verification and replay |
208
+ | Antigravity App and CLI | `.agents/hooks.json` | End-of-turn learning with a correlated parent `Stop`, shared trials and native file-read evidence |
209
+ | Traycer Antigravity ACP | Transcript binding | Selected transcript import only |
210
+
211
+ Traycer's ambient connections use the default Codex and Claude homes. Managed
212
+ connections are detected from local Traycer account profiles with an existing
213
+ sessions or projects directory. If you use a custom transcript directory, bind it
214
+ explicitly with `skill-learning bind --help`. For ACP, select a transcript from the
215
+ registered project and pass its full path to the importer:
216
+
217
+ ```text
218
+ skill-learning import-antigravity --project . --profile traycer-acp --transcript <transcript_full.jsonl>
219
+ ```
220
+
221
+ ### Update
222
+
223
+ Run this from any folder.
224
+
225
+ ```text
226
+ uv tool upgrade improve-skills-loop-system
227
+ ```
228
+
229
+ To use the latest commit on `main` before it is released, install from GitHub
230
+ instead. This needs Git.
231
+
232
+ ```text
233
+ uv tool install "git+https://github.com/GIY0201/Improve-Skills-loop-System.git"
234
+ ```
235
+
236
+ ### Move from the previous PyPI package
237
+
238
+ If you installed `portable-skill-learning`, run `skill-learning teardown` in
239
+ each connected project before changing the installation. Teardown keeps the
240
+ project's saved skills and session evidence while removing its old hook entries.
241
+
242
+ ```text
243
+ uv tool uninstall portable-skill-learning
244
+ uv tool install improve-skills-loop-system
245
+ ```
246
+
247
+ Run `skill-learning setup` again in each project with its previous target
248
+ options, approve the new Codex hooks if applicable, and start a new session.
249
+
250
+ ### Status and removal
251
+
252
+ `skill-learning status --project .` lists the skill versions and the state of
253
+ each connection. Every command lists its options with `--help`.
254
+
255
+ Run these commands from a connected project when removing the engine:
256
+
257
+ ```text
258
+ skill-learning teardown
259
+ uv tool uninstall improve-skills-loop-system
260
+ ```
261
+
262
+ `teardown` removes the hook entries installed by setup in that project. It
263
+ retains existing settings, local evidence and the project registration. Run it
264
+ in every connected project before uninstalling the CLI.
265
+
266
+ ### Development
267
+
268
+ ```text
269
+ uv run --no-project --with pytest python -m pytest
270
+ ```
271
+
272
+ ### License
273
+
274
+ MIT. See [LICENSE](https://github.com/GIY0201/Improve-Skills-loop-System/blob/main/LICENSE).
275
+
276
+ ## 한국어
277
+
278
+ Improve-Skills-loop-System은 코딩 에이전트가 평소 작업에서 재사용할 절차를 찾아
279
+ 스킬로 만들고, 같은 프로젝트에 연결된 다른 에이전트와 공유하게 합니다. Codex,
280
+ Claude Code, Antigravity, Traycer를 지원합니다. 스킬 버전과 시험 결과는 로컬
281
+ SQLite에 보관합니다.
282
+
283
+ ### 만든 배경
284
+
285
+ 이 엔진은 두 프로젝트의 방식을 합쳐 만들었습니다.
286
+
287
+ Nous Research의 [Hermes Agent](https://github.com/NousResearch/hermes-agent)는
288
+ 작업하면서 스킬을 직접 씁니다. 오류를 겪은 뒤 통하는 방법을 찾거나 사용자가
289
+ 방식을 바로잡으면, 그 절차를 스킬로 저장하고 같은 종류의 다음 작업에서 불러옵니다.
290
+ 턴이 끝난 뒤 백그라운드 검토가 스킬 변경을 제안하기도 합니다. 변경이 도움이
291
+ 됐는지 작업을 다시 실행해 확인하지는 않습니다.
292
+
293
+ Microsoft의 [SkillOpt](https://github.com/microsoft/SkillOpt)는 점수를 매긴 실행으로
294
+ 스킬 문서를 학습시킵니다. 현재 스킬로 과제를 실행하면 별도 모델이 결과를 보고 작은
295
+ 수정안을 만들고, 수정안 작성에 쓰지 않은 과제에서 점수가 오를 때만 그 수정을
296
+ 받아들입니다. SkillOpt-Sleep은 이 과정을 로컬 코딩 에이전트의 지난 세션에 밤마다
297
+ 적용합니다. 채점할 수 있는 과제가 필요하고, 수정안마다 모델 호출이 더 듭니다.
298
+
299
+ 이 엔진은 Hermes Agent의 작업 중 자동 학습과 SkillOpt의 채택 시험을 결합합니다.
300
+ 직전판과 시험판을 같은 입력으로 실행하고, 반복 채점 사이의 차이보다 점수가 더
301
+ 오르면 시험판 유지를 제안합니다.
302
+
303
+ ### 동작 방식
304
+
305
+ 1. 평소처럼 작업합니다. 지속적으로 적용할 교정이 들어오거나 대화가 세 턴 또는
306
+ 도구 호출이 여섯 번 쌓이면, 지금 대화 중인 모델이 턴 끝에 짧게 검토합니다.
307
+ 다시 쓸 만한 교정이나 확인된 해결 절차를 발견하면 스킬 초안을 만듭니다.
308
+ 2. 엔진은 턴이 끝났는지, 초안의 근거가 도구 자체 기록에 있는지 확인합니다.
309
+ 절차와 확인 방법을 저장하고, 다른 도구에는 그 스킬을 전달합니다.
310
+ 3. 같은 프로젝트에 연결된 다른 프로필도 같은 버전을 시험판으로 받습니다. 같은
311
+ 스킬의 다른 버전을 시험 중인 프로필은 유지 또는 롤백 뒤 새 시험판을 받습니다.
312
+ 롤백은 해당 프로필의 직전 선택을 복원합니다. 새로 연결한 프로필도 공유 스킬을
313
+ 자동으로 받습니다.
314
+ 4. 다음 요청이 스킬의 작업 문구와 맞으면 훅이 해당 버전을 읽도록 안내합니다.
315
+ `skill-learning status --project .`에서 검토, 활성 버전, 읽기 기록을 볼 수
316
+ 있습니다. `skill-learning work --project .`는 대기 중인 초안을 다시 확인하고,
317
+ 다른 시험판을 진행 중인 프로필을 보여 줍니다.
318
+
319
+ 예를 들어 Claude에게 “앞으로 자료 요약은 제목 바로 아래 출처 한 줄을 넣어 줘”라고
320
+ 말합니다. Claude가 이 절차를 스킬로 저장하면, 같은 프로젝트에서 자료 요약을 맡은
321
+ Codex나 Gemini도 다음 요청에서 그 스킬을 쓸 수 있습니다. 검토는 현재 채팅의 모델과
322
+ 도구 권한으로 진행합니다.
323
+
324
+ <details>
325
+ <summary>파일로 확인하는 교정 형식</summary>
326
+
327
+ 다음 형식으로 교정을 보낸 뒤 턴이 끝나면 `skill-learning work --project .`를
328
+ 실행합니다. 엔진은 완료된 턴이 프로젝트 파일을 바꿨는지, 파일에 지정한 줄이
329
+ 들어 있는지 확인합니다.
330
+
331
+ ```text
332
+ SKILL CORRECTION <skill-name>
333
+ trigger: <작업을 알아볼 문구>
334
+ procedure: <따를 절차>
335
+ verification: <프로젝트 기준 파일 경로>
336
+ expected: <파일에 있어야 할 줄>
337
+ ```
338
+
339
+ </details>
340
+
341
+ ### 시험판 유지 여부 비교
342
+
343
+ 1. `skill-learning review`는 매니페스트 파일에 정한 고정 입력을 Codex나 Claude Code의
344
+ 격리된 세션에서 직전판과 시험판으로 한 번씩 실행합니다. 일부 실행이 실패하면 끝난
345
+ 결과는 보존하고, 다시 실행할 때 빠진 것만 돌립니다.
346
+ 2. 어느 버전의 결과인지 모르는 독자의 점수를 `skill-learning assess`로 기록합니다.
347
+ 엔진은 이 점수로 시험판 유지, 시험 연장, 직전판 복구 중 하나를 제안합니다.
348
+ 결과는 `keep`이나 `rollback`으로 반영합니다.
349
+ 3. Windows에서는 `skill-learning schedule`이 검토를 작업 스케줄러에 등록합니다.
350
+ 예약 시각에 컴퓨터가 절전 중이었다면 깨어난 뒤 실행합니다.
351
+
352
+ ### 설치와 프로젝트 연결
353
+
354
+ [uv](https://docs.astral.sh/uv/getting-started/installation/)를 설치하고 사용할 AI
355
+ 도구를 준비합니다. 이 패키지는 Python 3.11 이상이 필요하며, 설치된 Python이 없으면
356
+ uv가 받아 씁니다. 연결하려는 프로젝트 폴더에서 터미널을 열고 다음 명령을 실행합니다.
357
+
358
+ ```text
359
+ uv tool install improve-skills-loop-system
360
+ skill-learning setup
361
+ ```
362
+
363
+ 터미널에서 `skill-learning`을 찾지 못하면 `uv tool update-shell`을 실행한 뒤
364
+ 새 터미널을 엽니다. 한 줄로 설치와 프로젝트 연결을 마칠 수도 있습니다.
365
+
366
+ **PowerShell**
367
+
368
+ ```powershell
369
+ uv tool install improve-skills-loop-system; if ($LASTEXITCODE -eq 0) { & (Join-Path (uv tool dir --bin) "skill-learning.exe") setup }
370
+ ```
371
+
372
+ **Bash 또는 Zsh**
373
+
374
+ ```sh
375
+ uv tool install improve-skills-loop-system && "$(uv tool dir --bin)/skill-learning" setup
376
+ ```
377
+
378
+ `setup`은 설치된 도구를 감지하고 대화 기록 경로를 등록합니다. 아래 표에 나온 프로젝트
379
+ 설정 파일에 엔진 훅을 추가하고 기존 설정과 훅 항목을 보존합니다. 변경 내용을
380
+ 미리 확인하거나 연결할 도구를 직접 지정할 수 있습니다.
381
+
382
+ ```text
383
+ skill-learning setup --dry-run
384
+ skill-learning setup --project <project-folder> --target codex --target traycer
385
+ skill-learning doctor --project .
386
+ ```
387
+
388
+ `setup`은 프로젝트 폴더마다 실행합니다. 도구는 세션이 실행되는 폴더의 훅만 읽기
389
+ 때문에, `D:\projects` 같은 상위 폴더에 설치하면 그 안의 프로젝트에는 적용되지 않습니다.
390
+ 하위에 프로젝트가 여러 개인 폴더에서 실행하면 `setup`이 경고를 출력합니다. 생성된
391
+ 설정에는 컴퓨터별 경로가 들어 있으므로, 저장소에 공유 설정을 커밋할 때 이 항목은
392
+ 로컬에 남겨 둡니다.
393
+
394
+ #### `--target`으로 연결할 도구 고르기
395
+
396
+ `--target` 없이 실행하면 `setup`은 감지한 도구를 모두 연결합니다. `--target`을
397
+ 반복해 지정하면 지정한 도구만 연결합니다.
398
+
399
+ | `--target` | 연결 대상 |
400
+ | --- | --- |
401
+ | `codex` | Codex CLI |
402
+ | `claude` | Claude Code |
403
+ | `antigravity` | Antigravity App과 CLI. 해당 폴더가 있을 때만 연결 |
404
+ | `traycer` | Traycer의 Codex와 Claude Code. ACP는 감지되면 기록 가져오기 연결 |
405
+ | `traycer-acp` | Traycer Antigravity ACP 기록 가져오기만 연결. 훅 파일 없음 |
406
+
407
+ `traycer`는 Traycer의 공용 프로필과 관리 프로필을 모두 연결합니다. 단독 Codex CLI와
408
+ Claude Code는 포함하지 않으므로 함께 쓰려면 `--target codex`나 `--target claude`를
409
+ 더합니다. 예를 들어 `--target codex --target traycer`는 Codex CLI와 Traycer의 Codex,
410
+ Claude Code를 연결합니다. Traycer Antigravity가 설치돼 있으면 ACP 기록 가져오기도 연결합니다.
411
+
412
+ #### 도구를 찾지 못할 때
413
+
414
+ `setup`이 `No supported client found`를 출력하면 홈 폴더의 도구 폴더와 `PATH`의 도구
415
+ 명령을 모두 찾지 못한 것입니다. 도구를 한 번 실행한 뒤 `setup`을 다시 실행하거나,
416
+ `--target`으로 도구를 지정합니다.
417
+
418
+ ```text
419
+ skill-learning setup --target codex
420
+ skill-learning setup --target claude
421
+ ```
422
+
423
+ `codex`와 `claude`는 도구를 처음 실행하기 전에도 연결됩니다. 이때 `~/.codex/sessions`와
424
+ `~/.claude/projects`를 쓰고, `CODEX_HOME`이나 `CLAUDE_CONFIG_DIR`을 설정했다면 그 폴더를
425
+ 씁니다. Antigravity에는 이런 대체 경로가 없으므로 먼저 한 번 실행한 뒤 `setup`을 실행합니다.
426
+
427
+ ### 설치 후 할 일
428
+
429
+ `setup`은 남은 단계를 터미널에 출력하고, JSON 출력의 `next_steps`에도 같은 내용을
430
+ 담습니다.
431
+
432
+ 1. Codex 훅을 승인합니다. Codex는 사용자가 프로젝트 폴더를 신뢰하고 훅을 검토한
433
+ 뒤에만 프로젝트 훅을 실행하며, 이 승인은 `setup`이 대신할 수 없습니다. `setup`은
434
+ 찾은 Codex 프로필마다 명령을 하나씩 출력하고, Traycer의 관리 프로필도 포함합니다.
435
+ 각 명령을 실행해 Codex가 폴더 신뢰를 물으면 신뢰를 고르고, `/hooks`에서
436
+ `.codex/hooks.json`의 훅을 모두 승인합니다. 훅 정의가 바뀌면 Codex가 다시 승인을
437
+ 요청합니다.
438
+ 2. Antigravity가 작업 공간 훅을 신뢰할지 물으면 허용합니다. Claude Code는 승인이
439
+ 필요 없습니다.
440
+ 3. 새 채팅이나 세션을 시작합니다. 도구는 세션을 시작할 때 훅 설정을 읽으므로, 이미
441
+ 열려 있던 채팅에서는 훅이 실행되지 않습니다.
442
+ 4. `skill-learning doctor --project .`를 실행합니다. Codex 프로필마다 폴더 신뢰 여부와
443
+ 승인된 훅 수를 보여 주고, 남은 단계가 있으면 명령을 다시 출력합니다.
444
+
445
+ Traycer 관리 프로필은 경로가 길어서 Codex CLI가 `path must be shorter than SUN_LEN`
446
+ 오류를 냅니다. `setup`이 출력하는 명령은 이런 프로필에 `--no-daemon`을 붙입니다.
447
+
448
+ ### 지원 범위
449
+
450
+ | 실행 환경 | 프로젝트 설정 | 지원 기능 |
451
+ | --- | --- | --- |
452
+ | Codex CLI와 Traycer Codex | `.codex/hooks.json` | 턴 종료 시 학습, 시험판 공유, 로컬 검증과 재실행 |
453
+ | Claude Code와 Traycer Claude Code | `.claude/settings.json` | 턴 종료 시 학습, 시험판 공유, 로컬 검증과 재실행 |
454
+ | Antigravity App과 CLI | `.agents/hooks.json` | 입력과 `Stop`을 대조한 턴의 학습, 시험판 공유, 파일 읽기 확인 |
455
+ | Traycer Antigravity ACP | 대화 기록 경로 등록 | 선택한 기록 가져오기 |
456
+
457
+ Traycer 공용 연결은 Codex와 Claude의 기본 사용자 설정 폴더를 사용합니다.
458
+ 관리 프로필은 Traycer의 로컬 계정에서 `sessions` 또는 `projects` 폴더를 찾아 감지합니다.
459
+ 별도 경로를 쓰는 경우 `skill-learning bind --help`를 참고해 직접 등록합니다.
460
+ ACP 기록을 가져올 때는 등록한 프로젝트의 대화 기록을 골라 전체 파일 경로를 지정합니다.
461
+
462
+ ```text
463
+ skill-learning import-antigravity --project . --profile traycer-acp --transcript <transcript_full.jsonl>
464
+ ```
465
+
466
+ ### 업데이트
467
+
468
+ 아무 폴더에서 다음 명령을 실행합니다.
469
+
470
+ ```text
471
+ uv tool upgrade improve-skills-loop-system
472
+ ```
473
+
474
+ 릴리스 전의 `main` 최신 커밋을 쓰려면 GitHub에서 설치합니다. 이 방법에는 Git이
475
+ 필요합니다.
476
+
477
+ ```text
478
+ uv tool install "git+https://github.com/GIY0201/Improve-Skills-loop-System.git"
479
+ ```
480
+
481
+ ### 이전 PyPI 패키지에서 전환
482
+
483
+ `portable-skill-learning`으로 설치했다면, 먼저 연결된 프로젝트마다
484
+ `skill-learning teardown`을 실행합니다. 저장한 스킬과 작업 기록은 보존되고, 이전
485
+ 설치 경로를 가리키는 훅만 제거됩니다.
486
+
487
+ ```text
488
+ uv tool uninstall portable-skill-learning
489
+ uv tool install improve-skills-loop-system
490
+ ```
491
+
492
+ 각 프로젝트에서 기존에 사용한 `--target` 옵션으로 `skill-learning setup`을 다시
493
+ 실행합니다. Codex를 연결했다면 새 훅을 승인한 뒤 새 채팅을 시작합니다.
494
+
495
+ ### 상태 확인과 제거
496
+
497
+ `skill-learning status --project .`는 스킬 버전과 연결별 상태를 보여 줍니다.
498
+ 각 명령의 옵션은 `--help`로 확인합니다.
499
+
500
+ 엔진을 제거하려면 연결된 프로젝트 폴더에서 다음 명령을 실행합니다.
501
+
502
+ ```text
503
+ skill-learning teardown
504
+ uv tool uninstall improve-skills-loop-system
505
+ ```
506
+
507
+ `teardown`은 해당 프로젝트에서 `setup`으로 추가한 훅을 제거합니다. 기존 설정과
508
+ 로컬 검증 근거, 프로젝트 등록 정보는 보존합니다. 여러 프로젝트를 연결했다면
509
+ CLI를 제거하기 전에 각 프로젝트에서 `teardown`을 실행합니다.
510
+
511
+ ### 개발
512
+
513
+ ```text
514
+ uv run --no-project --with pytest python -m pytest
515
+ ```
516
+
517
+ ### 라이선스
518
+
519
+ MIT 라이선스입니다. 전문은 [LICENSE](https://github.com/GIY0201/Improve-Skills-loop-System/blob/main/LICENSE)에 있습니다.