@pazmo/ai-workflow-kit 3.1.0 → 3.1.1
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.md +10 -5
- package/package.json +1 -1
- package/skills/workflow/EVALS.md +25 -0
- package/skills/workflow/SKILL.md +1 -1
- package/skills/workflow/references/execution.md +15 -5
- package/src/managed-block.mjs +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ npx @pazmo/ai-workflow-kit init
|
|
|
21
21
|
─── G1 ─── "이게 맞아요?"
|
|
22
22
|
│ 사람이 승인해야 다음으로 갑니다
|
|
23
23
|
▼
|
|
24
|
-
에이전트가
|
|
24
|
+
에이전트가 구현 → 테스트 통과 → 단순화 검토 → 리뷰 → 재검증
|
|
25
25
|
│
|
|
26
26
|
▼
|
|
27
27
|
─── G4 ─── "이 변경이 뭘 할 것 같아요?"
|
|
@@ -87,7 +87,7 @@ npx @pazmo/ai-workflow-kit init
|
|
|
87
87
|
│
|
|
88
88
|
5 변경의 크기를 판정한다
|
|
89
89
|
├ 작고 되돌릴 수 있다 → 바로 8번으로
|
|
90
|
-
├ 보통이다 → 계획 →
|
|
90
|
+
├ 보통이다 → 계획 → 작업·테스트 → 단순화 검토 → 리뷰·재검증
|
|
91
91
|
└ 위험하고 되돌리기 어렵다 → 6번으로
|
|
92
92
|
│
|
|
93
93
|
6 ━━ G3 ━━ 사람에게 묻는다 (위험할 때만 생깁니다)
|
|
@@ -100,8 +100,9 @@ npx @pazmo/ai-workflow-kit init
|
|
|
100
100
|
8 구현한다
|
|
101
101
|
· 먼저 기존 코드를 읽는다
|
|
102
102
|
· "꼭 되어야 하는 것"을 실제 코드 위치에 하나씩 연결한다
|
|
103
|
-
· 실패하는 테스트를 먼저 쓰고 →
|
|
104
|
-
·
|
|
103
|
+
· 실패하는 테스트를 먼저 쓰고 → 관련 테스트를 통과시킨다
|
|
104
|
+
· 단순화 검토로 중복·불필요한 상태·분기·복잡성을 살핀다 (수정할 것이 없으면 그대로)
|
|
105
|
+
· 단순화 이후 최종 변경을 리뷰하고, 수정한 부분을 재검증한다
|
|
105
106
|
│
|
|
106
107
|
9 ━━ G4 ━━ 사람에게 묻는다
|
|
107
108
|
설명을 감추고, 바뀐 코드와 테스트 결과만 보여줍니다
|
|
@@ -266,7 +267,11 @@ ai-workflow-kit remove # 제거
|
|
|
266
267
|
|
|
267
268
|
## Compound Engineering 연동 (선택)
|
|
268
269
|
|
|
269
|
-
|
|
270
|
+
기본 흐름은 **구현 → 관련 테스트 통과 → 단순화 검토 → 코드 리뷰 → 수정한 부분 재검증 → 기존 G4**입니다. Compound Engineering이 있으면 `ce-plan → ce-work → ce-simplify-code → ce-code-review`를 활용합니다. AI는 사용 가능한 `ce-simplify-code`의 실제 지침을 읽고 실행하며, 없으면 같은 기준으로 직접 검토합니다. 설치를 요구하거나 작업을 멈추지 않습니다.
|
|
271
|
+
|
|
272
|
+
검토는 기본이지만 수정은 명확한 이득이 있을 때만 합니다. 줄 수 감소나 `for`를 stream으로 바꾸는 것 자체가 성과는 아니며, 체이닝과 실제 반복 횟수 감소도 다릅니다. 현재 변경과 필요한 연관 부분만 다루고, 동작·결과 순서·부수 효과·도메인 경계·실패 처리·안전 검증을 보존합니다. 이를 바꾸려면 기존 설계·범위 변경 절차를 따릅니다.
|
|
273
|
+
|
|
274
|
+
리뷰 수정 후에는 영향받은 범위만 다시 확인합니다. 새 승인 단계·필수 문서·Jira Task는 생기지 않으며, 에이전트 사용 방식은 해당 스킬과 저장소·런타임 지침에 맡깁니다. 상세 기준은 [실행 안내](skills/workflow/references/execution.md)에 있습니다. 이 패키지는 Compound Engineering을 포함하지 않습니다.
|
|
270
275
|
|
|
271
276
|
---
|
|
272
277
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pazmo/ai-workflow-kit",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"repository": { "type": "git", "url": "git+https://github.com/syjkim0125/ai-workflow-kit.git" },
|
|
5
5
|
"homepage": "https://github.com/syjkim0125/ai-workflow-kit#readme",
|
|
6
6
|
"bugs": { "url": "https://github.com/syjkim0125/ai-workflow-kit/issues" },
|
package/skills/workflow/EVALS.md
CHANGED
|
@@ -26,3 +26,28 @@ Failure: A long ELI5 lecture or a patronizing tone.
|
|
|
26
26
|
Input: Publish a Story or Task with consecutive headings and MUST/SHOULD lists in Jira.
|
|
27
27
|
Expected: Use the editor's supported heading format, real newlines, standalone headings and blank lines before/after each heading. Keep peer sections at the same level. Inspect the rendered description after publication and preserve any user formatting corrections.
|
|
28
28
|
Failure: SHOULD appears inside MUST's list or paragraph; literal escaped newlines or Markdown headings appear in wiki-text mode; a heading is attached to the preceding content.
|
|
29
|
+
|
|
30
|
+
## Simplify available after green
|
|
31
|
+
Input: The task's related tests pass. ce-simplify-code is discoverable; its instructions include a preflight and reviewer orchestration. Repository/runtime rules constrain agent use.
|
|
32
|
+
Expected: Read and execute the actual skill within those constraints before final-diff review. Follow its preflight; do not copy or override its agent count. Revalidate any edits before the existing G4.
|
|
33
|
+
Failure: Merely mention the skill, run it on failing implementation tests, or force a kit-owned agent count.
|
|
34
|
+
|
|
35
|
+
## Simplify unavailable
|
|
36
|
+
Input: Related tests pass, but ce-simplify-code is not installed. Two new branches duplicate one calculation within the same domain; the surrounding public behavior must stay unchanged.
|
|
37
|
+
Expected: Directly inspect the current changes for duplication, state, branches and complexity using the execution criteria. Make a local change only if clearly beneficial and behavior-preserving; continue to review and affected tests without requiring installation.
|
|
38
|
+
Failure: Stop to install Compound, skip simplification review, introduce a general framework or touch unrelated files.
|
|
39
|
+
|
|
40
|
+
## No useful simplification
|
|
41
|
+
Input: Related tests pass; the changed function is already clear. The only proposal replaces a loop with chained map/filter calls without reducing traversals. Another task changes documentation only.
|
|
42
|
+
Expected: A no-change result is valid. Reject line-count/style churn; distinguish chaining from actual iteration reduction. Respect documentation-only preflight, note scope briefly in existing evidence, and proceed to review/G4.
|
|
43
|
+
Failure: Manufacture changes, report speedup without evidence, create a mandatory simplify report or new Task.
|
|
44
|
+
|
|
45
|
+
## Behavior-changing proposal
|
|
46
|
+
Input: A shorter implementation sorts caller-visible results, fuses loops that reorder effects, removes an error check, or merges logic across distinct domains.
|
|
47
|
+
Expected: Do not apply it as simplification. Preserve result order, side effects, domain boundaries, failure handling and safety checks; route any desired behavior change through the existing design/scope process.
|
|
48
|
+
Failure: Silently accept the proposal because tests happen to pass or fewer lines remain.
|
|
49
|
+
|
|
50
|
+
## Review edits after simplify
|
|
51
|
+
Input: Simplify changed function A and its related tests passed. Code review then changes A's error path; unrelated function B and its evidence are untouched.
|
|
52
|
+
Expected: Review the final diff; recheck A's affected simplification and rerun error-path tests, broadening verification if impact requires. Do not cite pre-edit tests as final evidence or blindly repeat all prior stages. Keep the existing G4.
|
|
53
|
+
Failure: Review only the pre-simplify diff, skip fresh checks, reset every gate, or add another approval/document/Jira Task.
|
package/skills/workflow/SKILL.md
CHANGED
|
@@ -24,7 +24,7 @@ Before G1 or G3, explain the problem, intended change, safety rule and verificat
|
|
|
24
24
|
|
|
25
25
|
1. **No approved Story:** read `references/intake.md`. Use `assets/STORY.md`; ask only missing behavior questions and obtain G1.
|
|
26
26
|
2. **Approved, not implemented:** read `references/execution.md`. Read `references/domain-risks.md` only for relevant risk domains. Create a Task from `assets/TASK.md` only when one PR is not reviewable.
|
|
27
|
-
3. **Implemented or `finish`:**
|
|
27
|
+
3. **Implemented or `finish`:** complete pending checks in `references/execution.md`, then follow `references/understanding-gate.md` for G4.
|
|
28
28
|
4. **`status`:** report stage, blocking decision, evidence present, and the single next action.
|
|
29
29
|
|
|
30
30
|
Use the user's language. Keep each response focused on one decision. Surface assumptions and evidence boundaries. Never say “AI decided”; name the human-owned decision or mark it open.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Size first
|
|
4
4
|
|
|
5
5
|
- **Small/reversible:** one reviewable outcome, local effect. Record `Plan source: N/A — small and reversible`; use test-first implementation and review.
|
|
6
|
-
- **Normal:** use `ce-plan → ce-work → ce-code-review` when Compound Engineering is available. Otherwise perform equivalent repository-grounded
|
|
6
|
+
- **Normal:** use `ce-plan → ce-work → ce-simplify-code → ce-code-review` when Compound Engineering is available; simplify only after related tests pass. Otherwise perform equivalent repository-grounded stages directly.
|
|
7
7
|
- **High-risk/hard to reverse:** add G3. Present the key design decision, alternatives, invariant, rollback/recovery path, and evidence plan; end the turn for human approval before work. Save that decision to `docs/understanding/<slug>-plan.md` and record `Understanding gate (G3): <artifact> · <YYYY-MM-DD> · Check-in: accepted`.
|
|
8
8
|
|
|
9
9
|
High-risk signals: money/payment, authentication/authorization, concurrency, destructive migration, sensitive data, data loss, and irreversible external side effects.
|
|
@@ -26,7 +26,17 @@ For user-authorized optional Jira publication after G1, follow `jira.md`. Withou
|
|
|
26
26
|
|
|
27
27
|
1. Read the approved Story, relevant code, tests, repository instructions, and prior learnings.
|
|
28
28
|
2. Make a plan that maps every M/V ID to code and evidence. Do not create a second requirement source.
|
|
29
|
-
3. For new behavior or a bug fix, demonstrate RED before production code, GREEN after the minimum change
|
|
30
|
-
4.
|
|
31
|
-
5.
|
|
32
|
-
6.
|
|
29
|
+
3. For new behavior or a bug fix, demonstrate RED before production code, then GREEN after the minimum change. Proceed when related tests pass.
|
|
30
|
+
4. Refactor while green: perform the simplification pass below. If `ce-simplify-code` is available, read its `SKILL.md` and execute it; naming the skill is not execution. If unavailable, apply the same criteria below directly; do not require installation or stop the workflow.
|
|
31
|
+
5. Review the final diff after simplification against the Story, including failure paths and what tests do not prove. Use `ce-code-review` for deep review when available; resolve material findings.
|
|
32
|
+
6. Revalidate affected behavior after simplify/review edits before G4. If review edits affect previously simplified code, recheck only the affected scope; do not restart the whole pipeline automatically. Broaden tests when impact warrants it; never claim old results cover new edits.
|
|
33
|
+
7. Continue to `understanding-gate.md`; passing tests alone are not completion.
|
|
34
|
+
|
|
35
|
+
## Simplification pass
|
|
36
|
+
|
|
37
|
+
- Review is a default part of refactoring, not a change quota: no changes is a valid result when no clear benefit exists. Documentation-only or mechanical changes may need no code simplification; follow the skill's preflight.
|
|
38
|
+
- Limit scope to the current task's changed code and necessary related seams. Avoid unrelated refactoring, new abstractions or packages, and edits made just to fill a diff.
|
|
39
|
+
- Reduce duplication, unnecessary state, branches and complexity to improve understanding. Fewer lines or replacing `for` with a stream is not evidence of improvement; chaining operations does not necessarily reduce traversals. Check actual iteration and evaluation behavior before claiming efficiency.
|
|
40
|
+
- Preserve behavior, result order, side effects, domain boundaries, failure handling and safety checks. A proposal that changes them belongs to the existing design or scope-change process, not a silent simplification.
|
|
41
|
+
- Follow the invoked skill and applicable repository/runtime instructions for execution and agent use; this kit sets no fixed agent count. Do not copy the skill's orchestration into this workflow.
|
|
42
|
+
- Include changes (or no-change outcome), review scope and fresh checks briefly in existing review/verification evidence. Add no separate approval gate, mandatory document or Jira Task.
|
package/src/managed-block.mjs
CHANGED
|
@@ -8,7 +8,7 @@ export const MANAGED_BLOCK = `${START_MARKER}
|
|
|
8
8
|
- Keep one concise canonical Story contract: Goal, Domain, MUST, SHOULD, OUT, Decisions, Verify.
|
|
9
9
|
- Ask only blocking behavior questions; label safe defaults \`ASSUMED\` instead of silently inventing scope.
|
|
10
10
|
- Keep Tasks at most 30 non-empty lines and reference Story M/V IDs; HOW belongs to the repository-grounded plan.
|
|
11
|
-
- Use Compound Engineering when available: normal work \`ce-plan → ce-work → ce-code-review\`; high-risk work adds a human plan gate.
|
|
11
|
+
- Use Compound Engineering when available: normal work \`ce-plan → ce-work → ce-simplify-code → ce-code-review\`; simplify after related tests pass, revalidate edits before G4. Follow the workflow execution reference for direct fallback; high-risk work adds a human plan gate.
|
|
12
12
|
- Do not merge non-trivial changes until the workflow's G4 question gate records that a human understands behavior, an invariant/failure path, and the evidence boundary.
|
|
13
13
|
- Gates are satisfied by evidence, not by assertion. Verify with \`node .ai-workflow/bin/check.mjs story <story-file>\` and report the exit code; exit 0 is the only pass.
|
|
14
14
|
${END_MARKER}`;
|