@pazmo/ai-workflow-kit 3.1.1 → 4.0.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/README.md CHANGED
@@ -1,300 +1,200 @@
1
1
  # AI Workflow Kit
2
2
 
3
- AI와 함께 일할 때 **사람이 이해를 놓치지 않게** 하는 작업 규칙입니다.
4
- Claude Code · Codex · ChatGPT에서 같은 방식으로 씁니다.
3
+ [한국어](https://github.com/syjkim0125/ai-workflow-kit/blob/main/README.ko.md) · English
5
4
 
6
- ```bash
7
- npx @pazmo/ai-workflow-kit init
8
- ```
5
+ **Give AI a task. Keep the work ordered, checked, and approved by a person.**
9
6
 
10
- ---
7
+ AI Workflow Kit adds a work process to Codex and Claude Code. It defines what to build, tracks each task, checks results, and records useful lessons.
11
8
 
12
- ## 그림 한 장
9
+ Version 4 includes a graph runner. A graph is a list of tasks and the rules for which task runs next.
13
10
 
14
- ```text
15
- 한 줄 요청 "결제 취소 되게 해줘"
16
- │
17
- ▼
18
- 사람과 이야기하며 무엇을 만들지 정함
19
- │
20
- ▼
21
- ─── G1 ─── "이게 맞아요?"
22
- │ 사람이 승인해야 다음으로 갑니다
23
- ▼
24
- 에이전트가 구현 → 테스트 통과 → 단순화 검토 → 리뷰 → 재검증
25
- │
26
- ▼
27
- ─── G4 ─── "이 변경이 뭘 할 것 같아요?"
28
- │ 사람이 먼저 답해야 정답이 나옵니다
29
- ▼
30
- 사람이 이해한 채로 머지
31
- ```
11
+ ## Start
32
12
 
33
- ## 다섯 문장
13
+ You need **Node.js 20 or later** and Codex or Claude Code. Run these commands in your project folder:
34
14
 
35
- 에이전트는 코드를 아주 빨리 씁니다.
36
- 사람이 읽는 속도는 그대로입니다.
37
- 그래서 아무도 이해하지 못한 코드가 쌓입니다.
38
- 이 키트는 사람이 승인하기 **직전**마다 짧은 확인을 거치게 합니다.
39
- 확인 없이는 다음 단계로 못 갑니다.
15
+ ```sh
16
+ npx @pazmo/ai-workflow-kit init
17
+ npx @pazmo/ai-workflow-kit doctor
18
+ ```
40
19
 
41
- ---
20
+ Open a **new Codex task or Claude Code session** after installation or updates.
42
21
 
43
- ## 사람이 멈춰 서는 두 곳
22
+ | Tool | Start a task | Check progress | Finish |
23
+ |---|---|---|---|
24
+ | Codex | `$workflow Fix the empty search results page` | `$workflow status` | `$workflow finish` |
25
+ | Claude Code | `/workflow Fix the empty search results page` | `/workflow status` | `/workflow finish` |
44
26
 
45
- ### G1 — 만들기 전
27
+ The agent follows the installed workflow and uses the graph after you approve the scope. You do not need to run each graph command yourself. Installation does not start an AI agent in the background.
46
28
 
47
- 무엇을 만들 건지 한 화면짜리 합의서로 정리해서 보여줍니다. 그리고 묻습니다:
29
+ Use `init --host codex` or `init --host claude` to install for one tool only.
48
30
 
49
- > **"이 내용이 이번에 만들 범위와 완료 조건으로 맞나요?"**
31
+ **ChatGPT:** In an environment that supports custom skills, skill selection may happen automatically. The graph also needs Node.js and access to project files. A chat by itself does not provide the full workflow.
50
32
 
51
- 여기서 중요한 건 **질문을 아껴 쓴다**는 점입니다. 동작이 달라지는 것만 묻고, 한 번에 세 개까지, 두 번 물어보고 멈춥니다. 안 물어본 것들은 안전한 기본값으로 채우고 **"이건 물어보지 않고 정했습니다"** 라고 표시해둡니다. 끝없는 인터뷰가 되지 않게요.
33
+ ## How work moves
52
34
 
53
- ### G4 — 머지 전
35
+ ![Request, scope approval, planning, implementation, review, verification, learning, and human confirmation. Failed checks return to implementation.](https://raw.githubusercontent.com/syjkim0125/ai-workflow-kit/22246e74aaf8480d9aa3071b351eea4196cd2c99/assets/readme/workflow-en.png)
54
36
 
55
- **설명을 먼저 안 보여줍니다.** 이번에 바뀐 코드와 테스트 결과만 보여주고 묻습니다:
37
+ 1. **Describe the result.** The agent asks only questions that affect the work.
38
+ 2. **Approve the scope.** You check what will change and how success will be tested.
39
+ 3. **Plan the work.** Small changes use a short plan. Larger changes use linked tasks.
40
+ 4. **Build and test.** The agent changes the code, runs tests, and removes needless complexity.
41
+ 5. **Review and verify.** Review findings go back for fixes. Changed code gets fresh checks.
42
+ 6. **Save useful lessons.** Keep proven lessons for future tasks. Skip notes that add nothing.
43
+ 7. **Check the result yourself.** Explain the change, then compare your understanding with the evidence.
56
44
 
57
- > **"이 변경이 무엇을 바꾸나요? 항상 지켜져야 하는 규칙은 무엇이고, 잘못되면 어떻게 되나요? 그걸 어떤 테스트가 증명하고 있나요?"**
45
+ High-risk changes need a design check before implementation. The kit does not merge or publish just because tests pass.
58
46
 
59
- 답하고 나서야 정답이 나옵니다. 그리고 **맞은 것 / 놓친 것 / 틀린 것** 세 가지로 짚어줍니다.
47
+ ## What the graph does
60
48
 
61
- 먼저 맞춰보게 하는 이유는, 설명을 읽는 것과 이해하는 것이 다르기 때문입니다.
49
+ The normal code-change graph is:
62
50
 
63
- ---
51
+ **Implement, test, and simplify → review → final verification**
64
52
 
65
- ## 전체 흐름
53
+ Each task has a name, inputs, dependencies, a result, and evidence. A dependency is a task that must finish first.
66
54
 
67
- 위 그림은 가장 바깥 껍데기입니다. 실제로는 열 단계이고, 사람이 멈춰 서는 곳은 최대 세 곳입니다.
55
+ The runner:
68
56
 
69
- ```text
70
- 1 요청
71
- "결제 취소 되게 해줘"
72
- │
73
- 2 무엇을 만들지 정한다
74
- · 동작이 달라지는 것만 묻는다
75
- · 한 번에 세 개까지, 두 번 물어보고 멈춘다
76
- · 안 물어본 건 안전한 기본값으로 채우고 "가정"이라 표시
77
- · 함부로 정하면 위험한 건 "미해결"로 남긴다
78
- │
79
- 3 한 장짜리 합의서를 쓴다
80
- 목표 / 분야 / 꼭 되어야 하는 것 / 되면 좋은 것 /
81
- 이번엔 안 하는 것 / 결정한 것 / 확인하는 방법
82
- │
83
- 4 ━━ G1 ━━ 사람에게 묻는다
84
- "이 범위와 완료 조건이 맞나요?"
85
- → 사람이 승인해야 다음으로 갑니다
86
- → "미해결"이 남아 있으면 승인 자체가 막힙니다
87
- │
88
- 5 변경의 크기를 판정한다
89
- ├ 작고 되돌릴 수 있다 → 바로 8번으로
90
- ├ 보통이다 → 계획 → 작업·테스트 → 단순화 검토 → 리뷰·재검증
91
- └ 위험하고 되돌리기 어렵다 → 6번으로
92
- │
93
- 6 ━━ G3 ━━ 사람에게 묻는다 (위험할 때만 생깁니다)
94
- 어떤 방식을 골랐고, 다른 선택지는 무엇이었는지
95
- 항상 지켜져야 하는 규칙은 무엇인지
96
- 잘못되면 어떻게 되돌릴 수 있는지
97
- │
98
- 7 작업을 쪼갠다 (한 번에 검토하기 너무 클 때만)
99
- │
100
- 8 구현한다
101
- · 먼저 기존 코드를 읽는다
102
- · "꼭 되어야 하는 것"을 실제 코드 위치에 하나씩 연결한다
103
- · 실패하는 테스트를 먼저 쓰고 → 관련 테스트를 통과시킨다
104
- · 단순화 검토로 중복·불필요한 상태·분기·복잡성을 살핀다 (수정할 것이 없으면 그대로)
105
- · 단순화 이후 최종 변경을 리뷰하고, 수정한 부분을 재검증한다
106
- │
107
- 9 ━━ G4 ━━ 사람에게 묻는다
108
- 설명을 감추고, 바뀐 코드와 테스트 결과만 보여줍니다
109
- ① 사람이 먼저 답한다
110
- ② 그 다음에 정답을 보여준다
111
- ③ 맞은 것 / 놓친 것 / 틀린 것을 짚는다
112
- ④ 사람이 자기 말로 다시 설명한다
113
- │
114
- 10 검사기를 돌린다 → 통과해야만 "완료"로 바뀝니다
115
- │
116
- 머지
117
- ```
57
+ - Starts only tasks whose dependencies passed.
58
+ - Allows independent read tasks to run together.
59
+ - Allows one code-writing task at a time within a run.
60
+ - Requires a recorded result and evidence for each task.
61
+ - Rejects duplicate results and old task tokens.
62
+ - Resets affected tasks after a failed check. It keeps unrelated completed work.
63
+ - Stops after three attempts at a node. Unresolved decisions go to a person.
64
+
65
+ The agent does the work. The runner checks the saved state and returns the next action. It does not call an AI model itself.
118
66
 
119
- **5번에서 갈라진다는 점이 중요합니다.** 오타 하나 고치는 데 설계 회의를 열지 않고, 결제 로직을 갈아엎는데 그냥 지나가지도 않습니다. 크기에 따라 사람을 부르는 횟수가 달라집니다.
67
+ Plans, results, and progress are saved in the project. This helps a new session continue the work. If a worker stopped mid-task, inspect its changes before retrying.
120
68
 
121
- ### 이 문서에서 쓴 말
69
+ When all nodes pass, the runner returns `action: g4`. **This means ready for human review, not approved.**
122
70
 
123
- 개발자들끼리 쓰는 단어를 풀어서 적었습니다. 실제 파일에는 오른쪽 단어로 들어갑니다.
71
+ ## When you decide
124
72
 
125
- | 이 문서의 말 | 파일에 들어가는 말 | 뜻 |
73
+ | Check | What you decide | When |
126
74
  |---|---|---|
127
- | 한 장짜리 합의서 | Story | 이번에 무엇을 만들지 적은 한 장짜리 문서 |
128
- | 꼭 되어야 하는 것 | MUST | 안 되면 실패인 조건 |
129
- | 되면 좋은 것 | SHOULD | 있으면 좋지만 없어도 되는 것 |
130
- | 이번엔 안 하는 것 | OUT | 일부러 범위 밖으로 밀어둔 것 |
131
- | 확인하는 방법 | Verify | 그게 됐는지 무엇으로 증명할지 |
132
- | 가정 | ASSUMED | 사람에게 안 묻고 기본값으로 정한 것 |
133
- | 미해결 | OPEN BLOCKING | 못 정한 채 남은 것. 있으면 출발 못 함 |
134
- | 항상 지켜져야 하는 규칙 | 불변 조건 | 예: 환불은 결제한 수단으로만 돌아간다 |
135
- | 바뀐 코드 | diff | 이번에 손댄 부분만 모아서 보는 것 |
136
- | 검토 한 덩어리 | PR | 한 번에 검토받는 변경 묶음 |
75
+ | **G1: scope** | Is this the right work and success condition? | Before implementation |
76
+ | **G3: design** | Is this approach acceptable? Can we recover if it fails? | For high-risk changes |
77
+ | **G4: understanding** | What changed? Which rules must hold? What do the tests prove? | Before completion |
137
78
 
138
- ---
79
+ For G4, you see the changed code and test results before the explanation. You answer first. The agent then points out what you understood, missed, or got wrong. You explain the corrected version in your own words.
139
80
 
140
- ## 지키게 만드는 방법
81
+ A small change may qualify for a documented G4 exception. The reason must be specific.
141
82
 
142
- 규칙을 문서에 적어두는 것만으로는 지켜지지 않습니다. 그래서 각 확인 지점은 **파일을 남기고, 그 파일을 기계가 검사합니다.**
83
+ The checker checks **records and files**. It cannot prove who wrote an approval or whether a test report is true. The person and the host must supply real approval and real evidence.
143
84
 
144
- ```text
145
- Understanding gate (G4): docs/understanding/cancel-diff.md · 2026-08-31 · Check-in: accepted
146
- G4: PASS — 환불은 결제수단으로만 돌아간다는 규칙을 담당자가 자기 말로 다시 설명함
147
- ```
85
+ ## Keep one requirements document
148
86
 
149
- ```bash
150
- node .ai-workflow/bin/check.mjs story docs/STORY.md
151
- node .ai-workflow/bin/check.mjs gate G1 docs/STORY.md
152
- ```
153
-
154
- `story`는 합의서의 **모양**을, `gate`는 **사람이 실제로 확인했는지**를 봅니다. 아직 `Draft`인
155
- 파일에 `story`를 돌리면 모양만 맞아도 통과합니다 — 그건 승인이 아니고, 통과 메시지가 어느
156
- 게이트를 건너뛰었는지 `NOTE`로 알려줍니다. 승인을 확인하려면 `gate G1`을, 이해 게이트를
157
- 확인하려면 `gate G4`를 함께 돌리세요.
87
+ The requirements live in one short document called a **Story**.
158
88
 
159
- 이 검사기가 잡는 것:
160
-
161
- | 검사 | 막는 상황 |
89
+ | Field | Meaning |
162
90
  |---|---|
163
- | 확인했다는 기록 줄이 있는가 | 사람 확인 없이 그냥 넘어감 |
164
- | 그 기록이 가리키는 파일이 실제로 있고 **비어 있지 않은가** | 백지를 제출함 |
165
- | "꼭 되어야 하는 것"이 전부 확인 방법과 연결됐는가 | 됐는지 알 수 없는 요구사항 |
166
- | "미해결"이 남아 있는데 승인됐는가 | 못 정한 걸 안고 출발함 |
167
- | 사람이 자기 말로 다시 설명한 내용이 적혀 있는가 | "이해했다"는 주장만 있음 |
168
-
169
- 작은 변경이라 건너뛰고 싶으면 그것도 적습니다. 다만 **구체적인 이유**를 요구합니다:
170
-
171
- ```text
172
- Understanding gate (G4): N/A — 주석만 변경, 실행 동작 변화 없음
173
- ```
174
-
175
- 건너뛴 것도 기록이라 나중에 눈에 보입니다.
176
-
177
- ---
178
-
179
- ## 시작하기
180
-
181
- ```bash
182
- npx @pazmo/ai-workflow-kit init
183
- ```
91
+ | Goal | The result you want |
92
+ | Domain | The rules this change must respect |
93
+ | MUST | Required behavior |
94
+ | SHOULD | Optional improvements |
95
+ | OUT | Work excluded from this request |
96
+ | Decisions | Agreed choices and stated assumptions |
97
+ | Verify | How to check each required behavior |
184
98
 
185
- 레포에 이것만 들어갑니다:
99
+ The agent asks at most three questions per round, for up to two rounds. It marks safe defaults as `ASSUMED`. A decision that blocks the work stays `OPEN BLOCKING`; it cannot be hidden by approval.
186
100
 
187
- ```text
188
- AGENTS.md · CLAUDE.md 정해진 표시 사이에 짧은 규칙 블록 (바깥은 안 건드림)
189
- .claude/skills/workflow/ Claude Code용
190
- .agents/skills/workflow/ Codex용
191
- .ai-workflow/bin/ 검사기
192
- templates/ai-workflow/ 합의서 · 작업 조각 서식
193
- ```
101
+ Split a Story into Tasks only when it is too large to review in one change. Each Task is at most 30 non-empty lines and points to the Story's requirement and verification IDs. The plan explains how to build it.
194
102
 
195
- ### 설치 후 한 번 확인하세요
103
+ ## Superpowers and Compound Engineering
196
104
 
197
- ```bash
198
- npx @pazmo/ai-workflow-kit doctor
199
- ```
105
+ The kit controls the overall process. Available skills handle individual steps.
200
106
 
201
- 자바 계열 저장소에는 `.gitignore`에 `bin/` 규칙이 흔히 들어 있습니다. 이게 **검사기(`.ai-workflow/bin/check.mjs`)를 통째로 삼킵니다.** 파일은 디스크에 멀쩡히 있는데 `git add`가 말없이 건너뛰어서, 저장소를 받는 사람에게는 검사기가 없습니다.
107
+ | Step | Preferred skill |
108
+ |---|---|
109
+ | Plan | CE `ce-plan` |
110
+ | Implement with tests | Superpowers `test-driven-development` |
111
+ | Diagnose a failure | Superpowers `systematic-debugging` |
112
+ | Simplify after tests pass | CE `ce-simplify-code` |
113
+ | Review | CE `ce-code-review mode:agent` |
114
+ | Run fresh final checks | Superpowers `verification-before-completion` |
115
+ | Save a proven lesson | CE `ce-compound` |
202
116
 
203
- `init`과 `doctor`가 이걸 잡아내고 고칠 줄을 알려줍니다:
117
+ A Developer performs its assigned task. It does not restart the full Superpowers or CE process. CE `ce-work mode:return-to-caller` is an alternative when explicitly selected, not a second implementation pass.
204
118
 
205
- ```text
206
- MISS Checker reaches git: .gitignore:21:bin/
207
- Fix: add "!.ai-workflow/bin/" to .gitignore, below the rule above.
208
- ```
119
+ **These plugins are not bundled.** The agent checks which skills are installed. If a skill is missing, it follows the kit's direct procedure and reports that choice.
209
120
 
210
- 한쪽 도구만 쓴다면:
121
+ Lessons normally go in `docs/solutions/`. Later tasks read relevant lessons. This stores project knowledge; it does not retrain the model.
211
122
 
212
- ```bash
213
- npx @pazmo/ai-workflow-kit init --host claude
214
- npx @pazmo/ai-workflow-kit init --host codex
215
- ```
123
+ ## Using Agent Office
216
124
 
217
- ### 부르는 법
125
+ Office assigns work to PM, team lead, Developer, and Reviewer agents. Each agent uses the kit for its own role.
218
126
 
219
- | 도구 | 시작 |
127
+ | Part | Responsibility |
220
128
  |---|---|
221
- | Claude Code | `/workflow 결제 취소 되게 해줘` · `/workflow status` · `/workflow finish` |
222
- | Codex | `$workflow 결제 취소 되게 해줘` · `$workflow status` · `$workflow finish` |
223
- | ChatGPT | `skills/workflow/` 폴더를 Skill로 올리면 관련 요청에서 **자동으로** 선택됩니다 |
129
+ | **Kit** | Task rules, dependencies, checks, and correction paths |
130
+ | **Office** | Role assignments, agent execution, messages, saved state, budgets, cancellation, and user approvals |
131
+ | **Agent** | Its assigned work, results, evidence, and questions |
224
132
 
225
- 한 번만 부르면 됩니다. 지금 어디까지 왔는지 합의서를 읽고 알아서 다음 단계로 갑니다. 대화가 끊겼다 돌아왔다면 위 표의 호스트별 status 또는 finish 명령으로 다시 들어가면 됩니다. 설치·업데이트 후에는 새 Codex 작업 또는 새 Claude Code 세션을 시작해야 바뀐 스킬을 발견할 수 있습니다.
133
+ Keep one authoritative task state. Do not let Office and a kit run file independently decide that the same task is complete.
226
134
 
227
- ---
135
+ The current kit does **not** include a finished Office adapter, a conversation UI, or model execution. Office must connect these parts. Cross-run isolation, time and cost limits, cancellation, and approval of the exact code revision need host integration.
228
136
 
229
- ## 합의서는 한 장뿐
137
+ The standalone CLI has no question/reply/resume command. A `human` result needs a resolved decision and a new run. Role-specific integration must handle questions without treating answers as approvals.
230
138
 
231
- 요구사항 원본은 **한 장짜리 합의서 하나**입니다.
232
-
233
- ```text
234
- 목표 · 분야 · 꼭 되어야 하는 것 · 되면 좋은 것 ·
235
- 이번엔 안 하는 것 · 결정한 것 · 확인하는 방법
236
- ```
139
+ The kit uses graph design concepts. It does not require Google ADK, Google Cloud, or a new server.
237
140
 
238
- 별도의 "AI용 요구사항 문서"를 따로 만들지 않습니다. AI에게 필요한 코드·테스트·계획은 실행할 때 붙이면 됩니다. 원본이 둘이 되는 순간 둘은 어긋나기 시작합니다.
141
+ ## Installed files
239
142
 
240
- **작업을 쪼개는 건 한 번에 검토하기 너무 클 때만** 합니다. 30줄 이하로, 합의서의 항목 번호만 가리킵니다. 어떻게 만들지는 쪼갠 조각이 아니라 계획이 담당합니다.
241
-
242
- ---
243
-
244
- ## 명령어
245
-
246
- ```bash
247
- ai-workflow-kit init # 설치 · 업데이트
248
- ai-workflow-kit doctor # 설치 상태 점검
249
- ai-workflow-kit check story <file>
250
- ai-workflow-kit check task <file>
251
- ai-workflow-kit check gate G4 <story-file>
252
- ai-workflow-kit jira preview <story-file> # 로컬 미리보기만 출력
253
- ai-workflow-kit remove # 제거
143
+ ```text
144
+ AGENTS.md / CLAUDE.md Workflow instructions inside a marked block
145
+ .agents/skills/workflow/ Codex skill
146
+ .claude/skills/workflow/ Claude Code skill
147
+ .ai-workflow/bin/ Checker and graph commands
148
+ .ai-workflow/graph/ Graph runtime
149
+ .ai-workflow/runs/ Saved runs, created during work
150
+ templates/ai-workflow/ Story and Task templates
254
151
  ```
255
152
 
256
- `init`은 여러 번 돌려도 안전합니다. `remove`는 표시 **사이만** 지우고, 사용자가 고친 서식과 확인 기록은 남깁니다.
153
+ `init` also updates an existing installation. It preserves user-edited managed files and reports them. `remove` removes owned files and instruction blocks. It keeps user changes, run files, and evidence.
257
154
 
258
- 설치는 `.ai-workflow-install/`에 먼저 준비한 뒤 기존 파일을 백업하고 적용합니다. 처리 가능한 실패는 이전 파일·권한·디렉터리를 복구합니다. 프로세스가 강제 종료되면 다음 `init`이 같은 장비의 종료된 프로세스 기록을 확인하고 복구한 뒤 시작합니다. 여러 파일이 한순간에 동시에 바뀌는 것은 아니므로 설치 중에는 대상 파일을 편집하거나 다른 설치·제거를 실행하지 마세요. 복구까지 실패하면 백업과 기록을 보존하고 오류를 알립니다. 기록이 불완전하거나 소유 프로세스를 확인할 수 없으면 자동 삭제하지 않습니다. 영구 디스크 손상·전원 장애의 내구성을 보장하는 파일시스템 트랜잭션은 아닙니다.
155
+ Run `doctor` after installation. It finds missing files and Git ignore rules that hide the checker or graph runtime. Follow its suggested fixes before sharing the project.
259
156
 
260
- ## Jira 발행 (선택)
157
+ ## Commands
261
158
 
262
- `ai-workflow-kit jira preview <story-file>`은 Goal, Domain, MUST, SHOULD, OUT, Decisions, Verify 순서의 읽기 쉬운 미리보기만 출력합니다. 실제 발행은 G1 승인, 별도의 명시적 발행 승인과 대상, 호스트가 제공하는 어댑터가 필요합니다. 자격증명이나 Jira 클라이언트는 패키지에 포함하지 않습니다.
159
+ Run these in the project folder:
263
160
 
264
- 새 `publishStory` 모듈은 안정적인 발행 ID, 생성 전 로컬 기록, 중복 조회, 생성 결과 재조회·내용 검증을 지원합니다. 생성 결과가 불명확하면 새 이슈를 다시 만들지 않고 확인을 요구합니다. 원본 Story는 수정하지 않습니다. ADF 설명과 어댑터 계약, 실패 복구 및 검증 한계는 [Jira 안내](skills/workflow/references/jira.md)를 확인하세요. 이 릴리스의 Jira 검증은 fixture 기반이며 실제 Jira 이슈 생성은 수행하지 않았습니다.
161
+ ```sh
162
+ npx @pazmo/ai-workflow-kit init
163
+ npx @pazmo/ai-workflow-kit doctor
164
+ npx @pazmo/ai-workflow-kit remove
265
165
 
266
- ---
166
+ node .ai-workflow/bin/check.mjs story docs/STORY.md
167
+ node .ai-workflow/bin/check.mjs gate G1 docs/STORY.md
168
+ node .ai-workflow/bin/check.mjs gate G4 docs/STORY.md
267
169
 
268
- ## Compound Engineering 연동 (선택)
170
+ node .ai-workflow/bin/graph.mjs status .ai-workflow/runs/change.json
171
+ ```
269
172
 
270
- 기본 흐름은 **구현 → 관련 테스트 통과 → 단순화 검토 → 코드 리뷰 → 수정한 부분 재검증 → 기존 G4**입니다. Compound Engineering이 있으면 `ce-plan → ce-work → ce-simplify-code → ce-code-review`를 활용합니다. AI는 사용 가능한 `ce-simplify-code`의 실제 지침을 읽고 실행하며, 없으면 같은 기준으로 직접 검토합니다. 설치를 요구하거나 작업을 멈추지 않습니다.
173
+ Use your actual Story and run paths. `check story` checks the document; a valid Draft is not an approval. Use the gate commands to check approval records.
271
174
 
272
- 검토는 기본이지만 수정은 명확한 이득이 있을 때만 합니다. 줄 수 감소나 `for`를 stream으로 바꾸는 것 자체가 성과는 아니며, 체이닝과 실제 반복 횟수 감소도 다릅니다. 현재 변경과 필요한 연관 부분만 다루고, 동작·결과 순서·부수 효과·도메인 경계·실패 처리·안전 검증을 보존합니다. 이를 바꾸려면 기존 설계·범위 변경 절차를 따릅니다.
175
+ The agent uses `init`, `start`, `record`, `status`, and `reset` for graph work. Full inputs and examples are in the [graph guide](https://github.com/syjkim0125/ai-workflow-kit/blob/main/skills/workflow/references/graph-engineering.md).
273
176
 
274
- 리뷰 수정 후에는 영향받은 범위만 다시 확인합니다. 새 승인 단계·필수 문서·Jira Task는 생기지 않으며, 에이전트 사용 방식은 해당 스킬과 저장소·런타임 지침에 맡깁니다. 상세 기준은 [실행 안내](skills/workflow/references/execution.md)에 있습니다. 이 패키지는 Compound Engineering을 포함하지 않습니다.
177
+ **Jira is optional.** `npx @pazmo/ai-workflow-kit jira preview docs/STORY.md` prints a local preview. Publishing needs an authorized host adapter. The kit includes no Jira credentials or client.
275
178
 
276
- ---
179
+ ## Verify before release
277
180
 
278
- ## 개발
181
+ Run these in the kit repository:
279
182
 
280
- ```bash
281
- npm test # 전체 테스트
282
- npm pack # 로컬 tarball
183
+ ```sh
184
+ npm pack
185
+ # Replace <version> with the version printed by npm pack.
186
+ node test/fixtures/verify-tarball.mjs ./pazmo-ai-workflow-kit-<version>.tgz
283
187
  ```
284
188
 
285
- 로컬 tarball로 시험 설치:
189
+ `npm pack` runs the full test suite. The tarball check installs the package offline for both Codex and Claude, runs the graph, and checks update and removal behavior.
286
190
 
287
- ```bash
288
- # npm pack 출력에 나온 실제 파일명으로 <version>을 바꾸세요.
289
- npx --package './pazmo-ai-workflow-kit-<version>.tgz' ai-workflow-kit init
290
- ```
291
-
292
- 배포는 scope 소유자 인증 후:
191
+ These checks do not prove that a live agent follows every step. Also run a small real task and inspect its graph commands, test logs, review fixes, and human confirmation.
293
192
 
294
- ```bash
295
- npm publish --access public
296
- ```
193
+ ## More detail
297
194
 
298
- ---
195
+ - [Graph verification](https://github.com/syjkim0125/ai-workflow-kit/blob/main/docs/graph-verification.md)
196
+ - [Office handoff](https://github.com/syjkim0125/ai-workflow-kit/blob/main/docs/agent-office-handoff.md)
197
+ - [Skill integration](https://github.com/syjkim0125/ai-workflow-kit/blob/main/skills/workflow/references/skill-integration.md)
198
+ - [Changes in 4.0.0](https://github.com/syjkim0125/ai-workflow-kit/blob/main/CHANGELOG.md)
299
199
 
300
200
  MIT · [JongKun Kim](https://github.com/syjkim0125)
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ // Installed alongside check.mjs; imports resolve inside .ai-workflow, without npm.
3
+ import { runGraphCommand } from '../graph/cli.mjs';
4
+ import { checkArtifact, checkGate } from './check.mjs';
5
+ try {
6
+ console.log(JSON.stringify(await runGraphCommand(process.argv.slice(2), { checkArtifact, checkGate }), null, 2));
7
+ } catch (error) {
8
+ console.error(error.message);
9
+ process.exitCode = 1;
10
+ }
Binary file
@@ -0,0 +1,41 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="1190" viewBox="0 0 960 1190" role="img" aria-labelledby="title desc">
2
+ <title id="title">From request to checked result</title><desc id="desc">Failed review or verification returns to implementation. High-risk changes need G3 approval.</desc>
3
+ <defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0,0 L8,4 L0,8" fill="none" stroke="#64748b" stroke-width="1.5"/></marker><marker id="fix" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0,0 L8,4 L0,8" fill="none" stroke="#b45309" stroke-width="1.5"/></marker></defs>
4
+ <rect width="960" height="1190" rx="20" fill="#f8fafc"/>
5
+ <style>text{font-family:Arial,'Apple SD Gothic Neo','Noto Sans KR',sans-serif}.heading{font-size:30px;font-weight:700;fill:#0f172a}.label{font-size:23px;font-weight:700;fill:#0f172a}.detail{font-size:18px;fill:#475569}.note{font-size:18px;fill:#92400e}.line{fill:none;stroke:#64748b;stroke-width:2;marker-end:url(#arrow)}</style>
6
+ <text x="42" y="57" class="heading">From request to checked result</text>
7
+
8
+ <rect x="158" y="102" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
9
+ <text x="183" y="137" class="label">Request</text><text x="183" y="167" class="detail">Describe the result you want.</text>
10
+ <path d="M443 192 V217" class="line"/>
11
+ <rect x="158" y="224" width="570" height="90" rx="12" fill="#ecfdf5" stroke="#6ee7b7"/>
12
+ <text x="183" y="259" class="label">Approve scope · G1</text><text x="183" y="289" class="detail">A person approves what to build.</text>
13
+ <path d="M443 314 V339" class="line"/>
14
+ <rect x="158" y="346" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
15
+ <text x="183" y="381" class="label">Plan</text><text x="183" y="411" class="detail">Set the task order and checks.</text>
16
+ <path d="M443 436 V461" class="line"/>
17
+ <rect x="158" y="468" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
18
+ <text x="183" y="503" class="label">Build · test · simplify</text><text x="183" y="533" class="detail">Change the code and pass the related tests.</text>
19
+ <path d="M443 558 V583" class="line"/>
20
+ <rect x="158" y="590" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
21
+ <text x="183" y="625" class="label">Review</text><text x="183" y="655" class="detail">Check the changes and missing requirements.</text>
22
+ <path d="M443 680 V705" class="line"/>
23
+ <rect x="158" y="712" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
24
+ <text x="183" y="747" class="label">Verify again</text><text x="183" y="777" class="detail">Run fresh checks on the final code.</text>
25
+ <path d="M443 802 V827" class="line"/>
26
+ <rect x="158" y="834" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
27
+ <text x="183" y="869" class="label">Save a lesson</text><text x="183" y="899" class="detail">Keep only what will help future work.</text>
28
+ <path d="M443 924 V949" class="line"/>
29
+ <rect x="158" y="956" width="570" height="90" rx="12" fill="#ecfdf5" stroke="#6ee7b7"/>
30
+ <text x="183" y="991" class="label">Check understanding · G4</text><text x="183" y="1021" class="detail">A person explains and checks the result.</text>
31
+ <path d="M728 390 H740" fill="none" stroke="#93c5fd" stroke-width="2"/>
32
+ <rect x="740" y="341" width="194" height="85" rx="10" fill="#eff6ff" stroke="#93c5fd"/>
33
+ <text x="837" y="372" text-anchor="middle" style="font-size:16px;fill:#1e40af;font-weight:600">High-risk only</text>
34
+ <text x="837" y="399" text-anchor="middle" style="font-size:16px;fill:#1e40af;font-weight:600">G3 · approve design</text>
35
+ <path d="M158 635 H72 V513 H150" fill="none" stroke="#b45309" stroke-width="2.5" marker-end="url(#fix)"/>
36
+ <path d="M158 757 H72 V635" fill="none" stroke="#b45309" stroke-width="2.5"/>
37
+ <text x="67" y="805" text-anchor="middle" class="note" style="font-size:16px">If checks fail</text>
38
+ <text x="67" y="831" text-anchor="middle" class="note" style="font-size:16px">fix the code</text>
39
+ <text x="42" y="1100" class="detail">Each node gets up to 3 attempts. Stop when the limit is reached.</text>
40
+ <text x="42" y="1132" class="detail">Ask a person about unresolved decisions. AI cannot approve for them.</text>
41
+ </svg>
Binary file
@@ -0,0 +1,41 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="1190" viewBox="0 0 960 1190" role="img" aria-labelledby="title desc">
2
+ <title id="title">요청부터 결과 확인까지</title><desc id="desc">리뷰나 검증이 실패하면 구현으로 돌아갑니다. 위험한 변경은 G3 확인을 거칩니다.</desc>
3
+ <defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0,0 L8,4 L0,8" fill="none" stroke="#64748b" stroke-width="1.5"/></marker><marker id="fix" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0,0 L8,4 L0,8" fill="none" stroke="#b45309" stroke-width="1.5"/></marker></defs>
4
+ <rect width="960" height="1190" rx="20" fill="#f8fafc"/>
5
+ <style>text{font-family:Arial,'Apple SD Gothic Neo','Noto Sans KR',sans-serif}.heading{font-size:30px;font-weight:700;fill:#0f172a}.label{font-size:23px;font-weight:700;fill:#0f172a}.detail{font-size:18px;fill:#475569}.note{font-size:18px;fill:#92400e}.line{fill:none;stroke:#64748b;stroke-width:2;marker-end:url(#arrow)}</style>
6
+ <text x="42" y="57" class="heading">요청부터 결과 확인까지</text>
7
+
8
+ <rect x="158" y="102" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
9
+ <text x="183" y="137" class="label">요청</text><text x="183" y="167" class="detail">원하는 결과를 적습니다.</text>
10
+ <path d="M443 192 V217" class="line"/>
11
+ <rect x="158" y="224" width="570" height="90" rx="12" fill="#ecfdf5" stroke="#6ee7b7"/>
12
+ <text x="183" y="259" class="label">범위 확인 · G1</text><text x="183" y="289" class="detail">무엇을 만들지 사람이 승인합니다.</text>
13
+ <path d="M443 314 V339" class="line"/>
14
+ <rect x="158" y="346" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
15
+ <text x="183" y="381" class="label">계획</text><text x="183" y="411" class="detail">작업 순서와 확인 방법을 정합니다.</text>
16
+ <path d="M443 436 V461" class="line"/>
17
+ <rect x="158" y="468" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
18
+ <text x="183" y="503" class="label">구현 · 테스트 · 단순화</text><text x="183" y="533" class="detail">코드를 고치고 관련 테스트를 통과시킵니다.</text>
19
+ <path d="M443 558 V583" class="line"/>
20
+ <rect x="158" y="590" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
21
+ <text x="183" y="625" class="label">리뷰</text><text x="183" y="655" class="detail">변경 내용과 빠진 조건을 확인합니다.</text>
22
+ <path d="M443 680 V705" class="line"/>
23
+ <rect x="158" y="712" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
24
+ <text x="183" y="747" class="label">최종 검증</text><text x="183" y="777" class="detail">수정한 코드로 테스트를 다시 실행합니다.</text>
25
+ <path d="M443 802 V827" class="line"/>
26
+ <rect x="158" y="834" width="570" height="90" rx="12" fill="#ffffff" stroke="#cbd5e1"/>
27
+ <text x="183" y="869" class="label">교훈 기록</text><text x="183" y="899" class="detail">다음 작업에 쓸 내용만 남깁니다.</text>
28
+ <path d="M443 924 V949" class="line"/>
29
+ <rect x="158" y="956" width="570" height="90" rx="12" fill="#ecfdf5" stroke="#6ee7b7"/>
30
+ <text x="183" y="991" class="label">결과 확인 · G4</text><text x="183" y="1021" class="detail">사람이 변경을 이해하고 확인합니다.</text>
31
+ <path d="M728 390 H740" fill="none" stroke="#93c5fd" stroke-width="2"/>
32
+ <rect x="740" y="341" width="194" height="85" rx="10" fill="#eff6ff" stroke="#93c5fd"/>
33
+ <text x="837" y="372" text-anchor="middle" style="font-size:18px;fill:#1e40af;font-weight:600">위험한 변경만</text>
34
+ <text x="837" y="399" text-anchor="middle" style="font-size:18px;fill:#1e40af;font-weight:600">G3 · 설계 승인</text>
35
+ <path d="M158 635 H72 V513 H150" fill="none" stroke="#b45309" stroke-width="2.5" marker-end="url(#fix)"/>
36
+ <path d="M158 757 H72 V635" fill="none" stroke="#b45309" stroke-width="2.5"/>
37
+ <text x="67" y="805" text-anchor="middle" class="note" style="font-size:16px">실패하면</text>
38
+ <text x="67" y="831" text-anchor="middle" class="note" style="font-size:16px">수정</text>
39
+ <text x="42" y="1100" class="detail">같은 노드는 최대 3회 시도합니다. 한도에 도달하면 멈춥니다.</text>
40
+ <text x="42" y="1132" class="detail">미해결 결정은 사람에게 묻습니다. AI가 사람의 승인을 대신하지 않습니다.</text>
41
+ </svg>