@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/.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 -221
- 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 +70 -0
- package/skills/workflow/SKILL.md +6 -6
- package/skills/workflow/references/execution.md +41 -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,295 +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
|
-
```
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
33
|
+
## How work moves
|
|
54
34
|
|
|
55
|
-
|
|
35
|
+

|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
197
|
-
npx @pazmo/ai-workflow-kit doctor
|
|
198
|
-
```
|
|
105
|
+
The kit controls the overall process. Available skills handle individual steps.
|
|
199
106
|
|
|
200
|
-
|
|
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
|
-
`
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
221
|
-
|
|
|
222
|
-
|
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
```
|
|
246
|
-
ai-workflow-kit init
|
|
247
|
-
ai-workflow-kit doctor
|
|
248
|
-
ai-workflow-kit
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
```
|
|
276
|
-
npm
|
|
277
|
-
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
|
|
278
187
|
```
|
|
279
188
|
|
|
280
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
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>
|