@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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.ko.md +200 -0
- package/README.md +126 -226
- package/assets/graph.mjs +10 -0
- package/assets/readme/workflow-en.png +0 -0
- package/assets/readme/workflow-en.svg +41 -0
- package/assets/readme/workflow-ko.png +0 -0
- package/assets/readme/workflow-ko.svg +41 -0
- package/bin/ai-workflow-kit.mjs +36 -2
- package/package.json +2 -1
- package/skills/workflow/EVALS.md +45 -0
- package/skills/workflow/SKILL.md +5 -5
- package/skills/workflow/references/execution.md +31 -5
- package/skills/workflow/references/graph-engineering.md +102 -0
- package/skills/workflow/references/intake.md +2 -0
- package/skills/workflow/references/skill-integration.md +55 -0
- package/skills/workflow/references/understanding-gate.md +2 -0
- package/src/git-visibility.mjs +19 -12
- package/src/graph/cli.mjs +94 -0
- package/src/graph/executor.mjs +92 -0
- package/src/graph/index.mjs +17 -0
- package/src/graph/planning-graph.mjs +16 -0
- package/src/graph/scheduler.mjs +99 -0
- package/src/graph/storage.mjs +76 -0
- package/src/graph/task-graph.mjs +125 -0
- package/src/graph/workflow.mjs +120 -0
- package/src/install-transaction.mjs +1 -0
- package/src/install.mjs +16 -0
- package/src/managed-block.mjs +3 -1
package/README.md
CHANGED
|
@@ -1,300 +1,200 @@
|
|
|
1
1
|
# AI Workflow Kit
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Claude Code · Codex · ChatGPT에서 같은 방식으로 씁니다.
|
|
3
|
+
[한국어](https://github.com/syjkim0125/ai-workflow-kit/blob/main/README.ko.md) · English
|
|
5
4
|
|
|
6
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
35
|
+

|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
198
|
-
npx @pazmo/ai-workflow-kit doctor
|
|
199
|
-
```
|
|
105
|
+
The kit controls the overall process. Available skills handle individual steps.
|
|
200
106
|
|
|
201
|
-
|
|
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
|
-
`
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
222
|
-
|
|
|
223
|
-
|
|
|
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
|
-
|
|
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
|
-
|
|
141
|
+
## Installed files
|
|
239
142
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
ai-workflow
|
|
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
|
|
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
|
-
|
|
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
|
-
##
|
|
157
|
+
## Commands
|
|
261
158
|
|
|
262
|
-
|
|
159
|
+
Run these in the project folder:
|
|
263
160
|
|
|
264
|
-
|
|
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
|
-
|
|
170
|
+
node .ai-workflow/bin/graph.mjs status .ai-workflow/runs/change.json
|
|
171
|
+
```
|
|
269
172
|
|
|
270
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
```
|
|
281
|
-
npm
|
|
282
|
-
npm pack
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
package/assets/graph.mjs
ADDED
|
@@ -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>
|