@pazmo/ai-workflow-kit 3.1.0 → 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,295 +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
- ```
9
-
10
- ---
5
+ **Give AI a task. Keep the work ordered, checked, and approved by a person.**
11
6
 
12
- ## 그림 한 장
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.
13
8
 
14
- ```text
15
- 한 줄 요청 "결제 취소 되게 해줘"
16
- │
17
- ▼
18
- 사람과 이야기하며 무엇을 만들지 정함
19
- │
20
- ▼
21
- ─── G1 ─── "이게 맞아요?"
22
- │ 사람이 승인해야 다음으로 갑니다
23
- ▼
24
- 에이전트가 구현하고 테스트
25
- │
26
- ▼
27
- ─── G4 ─── "이 변경이 뭘 할 것 같아요?"
28
- │ 사람이 먼저 답해야 정답이 나옵니다
29
- ▼
30
- 사람이 이해한 채로 머지
31
- ```
9
+ Version 4 includes a graph runner. A graph is a list of tasks and the rules for which task runs next.
32
10
 
33
- ## 다섯 문장
11
+ ## Start
34
12
 
35
- 에이전트는 코드를 아주 빨리 씁니다.
36
- 사람이 읽는 속도는 그대로입니다.
37
- 그래서 아무도 이해하지 못한 코드가 쌓입니다.
38
- 이 키트는 사람이 승인하기 **직전**마다 짧은 확인을 거치게 합니다.
39
- 확인 없이는 다음 단계로 못 갑니다.
13
+ You need **Node.js 20 or later** and Codex or Claude Code. Run these commands in your project folder:
40
14
 
41
- ---
15
+ ```sh
16
+ npx @pazmo/ai-workflow-kit init
17
+ npx @pazmo/ai-workflow-kit doctor
18
+ ```
42
19
 
43
- ## 사람이 멈춰 서는 두 곳
20
+ Open a **new Codex task or Claude Code session** after installation or updates.
44
21
 
45
- ### G1 — 만들기 전
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` |
46
26
 
47
- 무엇을 만들 건지 한 화면짜리 합의서로 정리해서 보여줍니다. 그리고 묻습니다:
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.
48
28
 
49
- > **"이 내용이 이번에 만들 범위와 완료 조건으로 맞나요?"**
29
+ Use `init --host codex` or `init --host claude` to install for one tool only.
50
30
 
51
- 여기서 중요한 건 **질문을 아껴 쓴다**는 점입니다. 동작이 달라지는 것만 묻고, 한 번에 세 개까지, 두 번 물어보고 멈춥니다. 안 물어본 것들은 안전한 기본값으로 채우고 **"이건 물어보지 않고 정했습니다"** 라고 표시해둡니다. 끝없는 인터뷰가 되지 않게요.
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.
52
32
 
53
- ### G4 — 머지 전
33
+ ## How work moves
54
34
 
55
- **설명을 먼저 안 보여줍니다.** 이번에 바뀐 코드와 테스트 결과만 보여주고 묻습니다:
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)
56
36
 
57
- > **"이 변경이 무엇을 바꾸나요? 항상 지켜져야 하는 규칙은 무엇이고, 잘못되면 어떻게 되나요? 그걸 어떤 테스트가 증명하고 있나요?"**
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.
58
44
 
59
- 답하고 나서야 정답이 나옵니다. 그리고 **맞은 것 / 놓친 것 / 틀린 것** 세 가지로 짚어줍니다.
45
+ High-risk changes need a design check before implementation. The kit does not merge or publish just because tests pass.
60
46
 
61
- 먼저 맞춰보게 하는 이유는, 설명을 읽는 것과 이해하는 것이 다르기 때문입니다.
47
+ ## What the graph does
62
48
 
63
- ---
49
+ The normal code-change graph is:
64
50
 
65
- ## 전체 흐름
51
+ **Implement, test, and simplify → review → final verification**
66
52
 
67
- 위 그림은 가장 바깥 껍데기입니다. 실제로는 열 단계이고, 사람이 멈춰 서는 곳은 최대 세 곳입니다.
53
+ Each task has a name, inputs, dependencies, a result, and evidence. A dependency is a task that must finish first.
68
54
 
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
- 9 ━━ G4 ━━ 사람에게 묻는다
107
- 설명을 감추고, 바뀐 코드와 테스트 결과만 보여줍니다
108
- ① 사람이 먼저 답한다
109
- ② 그 다음에 정답을 보여준다
110
- ③ 맞은 것 / 놓친 것 / 틀린 것을 짚는다
111
- ④ 사람이 자기 말로 다시 설명한다
112
- │
113
- 10 검사기를 돌린다 → 통과해야만 "완료"로 바뀝니다
114
- │
115
- 머지
116
- ```
55
+ The runner:
117
56
 
118
- **5번에서 갈라진다는 점이 중요합니다.** 오타 하나 고치는 데 설계 회의를 열지 않고, 결제 로직을 갈아엎는데 그냥 지나가지도 않습니다. 크기에 따라 사람을 부르는 횟수가 달라집니다.
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.
119
64
 
120
- ### 이 문서에서 쓴 말
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.
121
66
 
122
- 개발자들끼리 쓰는 단어를 풀어서 적었습니다. 실제 파일에는 오른쪽 단어로 들어갑니다.
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.
123
68
 
124
- | 이 문서의 말 | 파일에 들어가는 말 | 뜻 |
125
- |---|---|---|
126
- | 한 장짜리 합의서 | Story | 이번에 무엇을 만들지 적은 한 장짜리 문서 |
127
- | 꼭 되어야 하는 것 | MUST | 안 되면 실패인 조건 |
128
- | 되면 좋은 것 | SHOULD | 있으면 좋지만 없어도 되는 것 |
129
- | 이번엔 안 하는 것 | OUT | 일부러 범위 밖으로 밀어둔 것 |
130
- | 확인하는 방법 | Verify | 그게 됐는지 무엇으로 증명할지 |
131
- | 가정 | ASSUMED | 사람에게 안 묻고 기본값으로 정한 것 |
132
- | 미해결 | OPEN BLOCKING | 못 정한 채 남은 것. 있으면 출발 못 함 |
133
- | 항상 지켜져야 하는 규칙 | 불변 조건 | 예: 환불은 결제한 수단으로만 돌아간다 |
134
- | 바뀐 코드 | diff | 이번에 손댄 부분만 모아서 보는 것 |
135
- | 검토 한 덩어리 | PR | 한 번에 검토받는 변경 묶음 |
69
+ When all nodes pass, the runner returns `action: g4`. **This means ready for human review, not approved.**
136
70
 
137
- ---
71
+ ## When you decide
138
72
 
139
- ## 지키게 만드는 방법
73
+ | Check | What you decide | When |
74
+ |---|---|---|
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 |
140
78
 
141
- 규칙을 문서에 적어두는 것만으로는 지켜지지 않습니다. 그래서 각 확인 지점은 **파일을 남기고, 그 파일을 기계가 검사합니다.**
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.
142
80
 
143
- ```text
144
- Understanding gate (G4): docs/understanding/cancel-diff.md · 2026-08-31 · Check-in: accepted
145
- G4: PASS — 환불은 결제수단으로만 돌아간다는 규칙을 담당자가 자기 말로 다시 설명함
146
- ```
81
+ A small change may qualify for a documented G4 exception. The reason must be specific.
147
82
 
148
- ```bash
149
- node .ai-workflow/bin/check.mjs story docs/STORY.md
150
- node .ai-workflow/bin/check.mjs gate G1 docs/STORY.md
151
- ```
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.
152
84
 
153
- `story`는 합의서의 **모양**을, `gate`는 **사람이 실제로 확인했는지**를 봅니다. 아직 `Draft`인
154
- 파일에 `story`를 돌리면 모양만 맞아도 통과합니다 — 그건 승인이 아니고, 통과 메시지가 어느
155
- 게이트를 건너뛰었는지 `NOTE`로 알려줍니다. 승인을 확인하려면 `gate G1`을, 이해 게이트를
156
- 확인하려면 `gate G4`를 함께 돌리세요.
85
+ ## Keep one requirements document
157
86
 
158
- 이 검사기가 잡는 것:
87
+ The requirements live in one short document called a **Story**.
159
88
 
160
- | 검사 | 막는 상황 |
89
+ | Field | Meaning |
161
90
  |---|---|
162
- | 확인했다는 기록 줄이 있는가 | 사람 확인 없이 그냥 넘어감 |
163
- | 그 기록이 가리키는 파일이 실제로 있고 **비어 있지 않은가** | 백지를 제출함 |
164
- | "꼭 되어야 하는 것"이 전부 확인 방법과 연결됐는가 | 됐는지 알 수 없는 요구사항 |
165
- | "미해결"이 남아 있는데 승인됐는가 | 못 정한 걸 안고 출발함 |
166
- | 사람이 자기 말로 다시 설명한 내용이 적혀 있는가 | "이해했다"는 주장만 있음 |
167
-
168
- 작은 변경이라 건너뛰고 싶으면 그것도 적습니다. 다만 **구체적인 이유**를 요구합니다:
169
-
170
- ```text
171
- Understanding gate (G4): N/A — 주석만 변경, 실행 동작 변화 없음
172
- ```
173
-
174
- 건너뛴 것도 기록이라 나중에 눈에 보입니다.
175
-
176
- ---
177
-
178
- ## 시작하기
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 |
179
98
 
180
- ```bash
181
- npx @pazmo/ai-workflow-kit init
182
- ```
183
-
184
- 레포에 이것만 들어갑니다:
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.
185
100
 
186
- ```text
187
- AGENTS.md · CLAUDE.md 정해진 표시 사이에 짧은 규칙 블록 (바깥은 안 건드림)
188
- .claude/skills/workflow/ Claude Code용
189
- .agents/skills/workflow/ Codex용
190
- .ai-workflow/bin/ 검사기
191
- templates/ai-workflow/ 합의서 · 작업 조각 서식
192
- ```
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.
193
102
 
194
- ### 설치 후 한 번 확인하세요
103
+ ## Superpowers and Compound Engineering
195
104
 
196
- ```bash
197
- npx @pazmo/ai-workflow-kit doctor
198
- ```
105
+ The kit controls the overall process. Available skills handle individual steps.
199
106
 
200
- 자바 계열 저장소에는 `.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` |
201
116
 
202
- `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.
203
118
 
204
- ```text
205
- MISS Checker reaches git: .gitignore:21:bin/
206
- Fix: add "!.ai-workflow/bin/" to .gitignore, below the rule above.
207
- ```
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.
208
120
 
209
- 한쪽 도구만 쓴다면:
121
+ Lessons normally go in `docs/solutions/`. Later tasks read relevant lessons. This stores project knowledge; it does not retrain the model.
210
122
 
211
- ```bash
212
- npx @pazmo/ai-workflow-kit init --host claude
213
- npx @pazmo/ai-workflow-kit init --host codex
214
- ```
123
+ ## Using Agent Office
215
124
 
216
- ### 부르는 법
125
+ Office assigns work to PM, team lead, Developer, and Reviewer agents. Each agent uses the kit for its own role.
217
126
 
218
- | 도구 | 시작 |
127
+ | Part | Responsibility |
219
128
  |---|---|
220
- | Claude Code | `/workflow 결제 취소 되게 해줘` · `/workflow status` · `/workflow finish` |
221
- | Codex | `$workflow 결제 취소 되게 해줘` · `$workflow status` · `$workflow finish` |
222
- | 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 |
132
+
133
+ Keep one authoritative task state. Do not let Office and a kit run file independently decide that the same task is complete.
223
134
 
224
- 한 번만 부르면 됩니다. 지금 어디까지 왔는지 합의서를 읽고 알아서 다음 단계로 갑니다. 대화가 끊겼다 돌아왔다면 위 표의 호스트별 status 또는 finish 명령으로 다시 들어가면 됩니다. 설치·업데이트 후에는 새 Codex 작업 또는 새 Claude Code 세션을 시작해야 바뀐 스킬을 발견할 수 있습니다.
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.
225
136
 
226
- ---
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.
227
138
 
228
- ## 합의서는 한 장뿐
139
+ The kit uses graph design concepts. It does not require Google ADK, Google Cloud, or a new server.
229
140
 
230
- 요구사항 원본은 **한 장짜리 합의서 하나**입니다.
141
+ ## Installed files
231
142
 
232
143
  ```text
233
- 목표 · 분야 · 꼭 되어야 하는 것 · 되면 좋은 것 ·
234
- 이번엔 안 하는 것 · 결정한 것 · 확인하는 방법
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
235
151
  ```
236
152
 
237
- 별도의 "AI용 요구사항 문서"를 따로 만들지 않습니다. AI에게 필요한 코드·테스트·계획은 실행할 때 붙이면 됩니다. 원본이 둘이 되는 순간 둘은 어긋나기 시작합니다.
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.
238
154
 
239
- **작업을 쪼개는 건 한 번에 검토하기 너무 클 때만** 합니다. 30줄 이하로, 합의서의 항목 번호만 가리킵니다. 어떻게 만들지는 쪼갠 조각이 아니라 계획이 담당합니다.
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.
240
156
 
241
- ---
157
+ ## Commands
242
158
 
243
- ## 명령어
159
+ Run these in the project folder:
244
160
 
245
- ```bash
246
- ai-workflow-kit init # 설치 · 업데이트
247
- ai-workflow-kit doctor # 설치 상태 점검
248
- ai-workflow-kit check story <file>
249
- ai-workflow-kit check task <file>
250
- ai-workflow-kit check gate G4 <story-file>
251
- ai-workflow-kit jira preview <story-file> # 로컬 미리보기만 출력
252
- ai-workflow-kit remove # 제거
253
- ```
254
-
255
- `init`은 여러 번 돌려도 안전합니다. `remove`는 표시 **사이만** 지우고, 사용자가 고친 서식과 확인 기록은 남깁니다.
256
-
257
- 설치는 `.ai-workflow-install/`에 먼저 준비한 뒤 기존 파일을 백업하고 적용합니다. 처리 가능한 실패는 이전 파일·권한·디렉터리를 복구합니다. 프로세스가 강제 종료되면 다음 `init`이 같은 장비의 종료된 프로세스 기록을 확인하고 복구한 뒤 시작합니다. 여러 파일이 한순간에 동시에 바뀌는 것은 아니므로 설치 중에는 대상 파일을 편집하거나 다른 설치·제거를 실행하지 마세요. 복구까지 실패하면 백업과 기록을 보존하고 오류를 알립니다. 기록이 불완전하거나 소유 프로세스를 확인할 수 없으면 자동 삭제하지 않습니다. 영구 디스크 손상·전원 장애의 내구성을 보장하는 파일시스템 트랜잭션은 아닙니다.
258
-
259
- ## Jira 발행 (선택)
161
+ ```sh
162
+ npx @pazmo/ai-workflow-kit init
163
+ npx @pazmo/ai-workflow-kit doctor
164
+ npx @pazmo/ai-workflow-kit remove
260
165
 
261
- `ai-workflow-kit jira preview <story-file>`은 Goal, Domain, MUST, SHOULD, OUT, Decisions, Verify 순서의 읽기 쉬운 미리보기만 출력합니다. 실제 발행은 G1 승인, 별도의 명시적 발행 승인과 대상, 호스트가 제공하는 어댑터가 필요합니다. 자격증명이나 Jira 클라이언트는 패키지에 포함하지 않습니다.
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
262
169
 
263
- 새 `publishStory` 모듈은 안정적인 발행 ID, 생성 전 로컬 기록, 중복 조회, 생성 결과 재조회·내용 검증을 지원합니다. 생성 결과가 불명확하면 새 이슈를 다시 만들지 않고 확인을 요구합니다. 원본 Story는 수정하지 않습니다. ADF 설명과 어댑터 계약, 실패 복구 및 검증 한계는 [Jira 안내](skills/workflow/references/jira.md)를 확인하세요. 이 릴리스의 Jira 검증은 fixture 기반이며 실제 Jira 이슈 생성은 수행하지 않았습니다.
170
+ node .ai-workflow/bin/graph.mjs status .ai-workflow/runs/change.json
171
+ ```
264
172
 
265
- ---
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.
266
174
 
267
- ## Compound Engineering 연동 (선택)
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).
268
176
 
269
- 설치돼 있으면 `ce-plan → ce-work → ce-code-review`를 그대로 씁니다. 없어도 같은 계획·작업·리뷰 단계를 도구 기본 기능으로 진행합니다. 이 패키지는 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.
270
178
 
271
- ---
179
+ ## Verify before release
272
180
 
273
- ## 개발
181
+ Run these in the kit repository:
274
182
 
275
- ```bash
276
- npm test # 전체 테스트
277
- 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
278
187
  ```
279
188
 
280
- 로컬 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.
281
190
 
282
- ```bash
283
- # npm pack 출력에 나온 실제 파일명으로 <version>을 바꾸세요.
284
- npx --package './pazmo-ai-workflow-kit-<version>.tgz' ai-workflow-kit init
285
- ```
286
-
287
- 배포는 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.
288
192
 
289
- ```bash
290
- npm publish --access public
291
- ```
193
+ ## More detail
292
194
 
293
- ---
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)
294
199
 
295
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>