solmate-skills 2.0.12 → 2.0.13

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.
Files changed (36) hide show
  1. package/AGENTS.md +9 -0
  2. package/CLAUDE.md +13 -3
  3. package/README.md +91 -5
  4. package/USAGE.md +118 -12
  5. package/bin/cli.js +171 -1
  6. package/bin/harness-artifact.js +621 -0
  7. package/bin/harness-artifact.test.js +520 -0
  8. package/bin/harness-check.js +373 -0
  9. package/bin/harness-check.test.js +159 -0
  10. package/bin/test.js +2 -0
  11. package/docs/01_Concept_Design/01_AGENT_HARNESS_REQUIREMENTS_ANALYSIS.md +162 -0
  12. package/docs/03_Technical_Specs/01_AGENT_HARNESS_ARCHITECTURE.md +376 -0
  13. package/docs/03_Technical_Specs/assets/01_agent_harness_data_flow.svg +94 -0
  14. package/docs/04_Logic_Progress/00_BACKLOG.md +339 -0
  15. package/docs/04_Logic_Progress/01_EXECUTION_PLAN.md +160 -0
  16. package/docs/04_Logic_Progress/03_DECISION_LOG.md +98 -0
  17. package/docs/05_QA_Validation/01_TEST_SCENARIOS.md +313 -0
  18. package/docs/05_QA_Validation/02_AGENT_HARNESS_DESIGN_REVIEW.md +100 -0
  19. package/docs/05_QA_Validation/03_AGENT_HARNESS_CONTRACT_QA.md +96 -0
  20. package/manage-collaboration/SKILL.md +2 -0
  21. package/package.json +6 -4
  22. package/rules-docs/SKILL.md +15 -1
  23. package/rules-product/SKILL.md +30 -6
  24. package/rules-product/agents/openai.yaml +2 -2
  25. package/rules-workflow/SKILL.md +32 -7
  26. package/rules-workflow/adapters/claude/solmate-context-reader.md +17 -0
  27. package/rules-workflow/adapters/claude/solmate-implementer.md +20 -0
  28. package/rules-workflow/adapters/claude/solmate-verifier.md +21 -0
  29. package/rules-workflow/agents/openai.yaml +2 -2
  30. package/rules-workflow/resources/agent-harness-contract.md +187 -0
  31. package/rules-workflow/resources/agent-harness-v1.schema.json +432 -0
  32. package/verify-docs/SKILL.md +33 -6
  33. package/verify-docs/agents/openai.yaml +2 -2
  34. package/verify-implementation/SKILL.md +14 -2
  35. package/verify-implementation/agents/openai.yaml +2 -2
  36. package/verify-skills/SKILL.md +27 -0
package/AGENTS.md CHANGED
@@ -99,6 +99,15 @@
99
99
  - **프로토타입 예외**: 프로토타입·스파이크·탐색 단계에서는 차단 조건이 아니라 기록성 체크로 적용한다.
100
100
  - **안전 예외**: 검증, 인증·인가, 에러 처리, 접근성, 보안, 데이터 보존, 테스트 가능성은 단순화를 이유로 제거하지 않는다.
101
101
 
102
+ ### 3.3. Agent Harness Gate (Context / Implementation / Verification)
103
+ - **정본 위치**: 역할·권한·인계·Receipt 상세 형식은 `rules-workflow/resources/agent-harness-contract.md`를 따른다.
104
+ - **적용 범위**: `Work Type`이 `code` 또는 `deploy`인 백로그 작업에 필수로 적용한다. `docs`, `prototype`은 기록성 체크로 적용한다.
105
+ - **구현 전 차단**: `blocking` 모드에서는 읽기 전용 Context Agent가 모든 Related 문서를 읽고 PASS Context Receipt를 남기지 않으면 구현을 시작할 수 없다.
106
+ - **완료 전 차단**: `blocking` 모드에서는 읽기 전용 Verification Agent가 명령 결과와 QA 문서 또는 PR 근거를 포함한 PASS Verification Receipt를 남기지 않으면 Done, PR, merge, publish, deploy로 이동할 수 없다.
107
+ - **역할 분리**: Implementation Agent가 작성한 Change Receipt는 독립 검증이 아니다. Verification Agent는 발견 사항을 직접 수정하지 않고 Coordinator를 통해 Implementation Agent로 반환한다.
108
+ - **Claude와 Codex**: Claude Code는 `.claude/agents/solmate-*.md`를 사용한다. Codex는 `rules-workflow` 정본을 사용 가능한 subagent 또는 별도 task에 전달한다.
109
+ - **강제 수준**: 처음 5개 실제 작업은 `warning` 결과를 기록하고 사용자 확인 후 진행한다. 이후 `npx solmate-skills preflight TASK-ID --strict`와 `npx solmate-skills verify TASK-ID --strict`를 차단 게이트로 사용한다.
110
+
102
111
  ## 4. Skills & AI Capabilities
103
112
  AI 에이전트는 본 프로젝트에 설치된 다음 **26개 스킬**을 활용하여 작업을 수행하며, 모든 작업 결과물은 이 스킬들의 검증 가이드를 통과해야 한다.
104
113
 
package/CLAUDE.md CHANGED
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
 
5
5
  ## What This Repo Is
6
6
 
7
- `solmate-skills` is an npm package that ships curated AI skill files (SKILL.md) to downstream projects. It is **not** an application — it is a skill library and CLI tool. Each top-level directory (except `bin/`) is a skill that gets copied into `.agent/skills/<skill-name>` of a target project.
7
+ `solmate-skills` is an npm package that ships curated AI skill files (SKILL.md) to downstream projects. It is **not** an application — it is a skill library and CLI tool. Each installable top-level directory contains `SKILL.md` and is copied into `.agent/skills/<skill-name>` of a target project.
8
8
 
9
9
  ## CLI Commands
10
10
 
@@ -17,13 +17,20 @@ npx solmate-skills install <skill-name>
17
17
 
18
18
  # Install all skills
19
19
  npx solmate-skills@latest install all
20
+
21
+ # Refresh native Claude project agents
22
+ npx solmate-skills@latest install agents
23
+
24
+ # Check backlog context and verification receipts
25
+ npx solmate-skills preflight TASK-000 --strict
26
+ npx solmate-skills verify TASK-000 --strict
20
27
  ```
21
28
 
22
- There are no build, test, or lint scripts in this repo (`"test": "echo \"Error: no test specified\" && exit 1"`).
29
+ Run `npm test` to validate the harness receipt parser and blocking behavior. There is no build or lint script.
23
30
 
24
31
  ## Installing Skills via Symlink (Dev)
25
32
 
26
- `init-skills.sh` creates symlinks from a target project's `.agent/skills/` to this repo, and links `AGENTS.md` and `USAGE.md` to the project root. Run it from inside the target project:
33
+ `init-skills.sh` creates symlinks from a target project's `.agent/skills/` to this repo, links `AGENTS.md` and `USAGE.md` to the project root, and links the namespaced Claude project agents under `.claude/agents/`. Run it from inside the target project:
27
34
 
28
35
  ```bash
29
36
  bash /Users/namhyeongseog/Documents/solmate-skills/init-skills.sh
@@ -33,6 +40,7 @@ bash /Users/namhyeongseog/Documents/solmate-skills/init-skills.sh
33
40
 
34
41
  ```
35
42
  bin/cli.js — CLI entrypoint; discovers skills as top-level dirs, copies them to .agent/skills/
43
+ bin/harness-check.js — Backlog Context/Verification Receipt parser and blocking checks
36
44
  AGENTS.md — Global AI collaboration rules (linked into target projects)
37
45
  init-skills.sh — Symlink installer for local development
38
46
  <skill-name>/
@@ -40,6 +48,7 @@ init-skills.sh — Symlink installer for local development
40
48
  templates/ — (optional) document templates
41
49
  resources/ — (optional) reference files
42
50
  examples/ — (optional) example outputs
51
+ adapters/ — (optional) runtime-specific thin adapters; canonical policy remains in resources/
43
52
  ```
44
53
 
45
54
  Skills discovered by `bin/cli.js` = any top-level directory not in `IGNORED_FOLDERS` (`bin`, `node_modules`, `.git`, `.github`, `.gemini`, `.agent`).
@@ -61,6 +70,7 @@ Skills discovered by `bin/cli.js` = any top-level directory not in `IGNORED_FOLD
61
70
  - **Conventional Commits in Korean**: `type(scope): 한글 요약` (e.g. `feat(login): 소셜 로그인 API 연동`).
62
71
  - **5-Layer doc structure**: `docs/01_Concept_Design/`, `02_UI_Screens/`, `03_Technical_Specs/`, `04_Logic_Progress/`, `05_QA_Validation/`.
63
72
  - **Backlogs and roadmaps** belong exclusively in `docs/04_Logic_Progress/`.
73
+ - **Agent Harness Gate**: code/deploy work requires a passing Context Receipt before implementation and an independent Verification Receipt before completion or release.
64
74
 
65
75
  ## Skill Categories
66
76
 
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # solmate-skills
2
2
 
3
- Reusable AI-agent skills for disciplined product work.
3
+ Reusable AI-agent harness and workflow skills for disciplined product work.
4
4
 
5
- `solmate-skills` packages the Solmate workflow as installable skills: plan the product, create browser-viewable UI previews, lock backlog tasks to their source documents, plan components and libraries before coding, implement with YAGNI/KISS/DRY approval gates, and verify the result before release.
5
+ `solmate-skills` packages the Solmate workflow as installable skills: plan the product, create browser-viewable UI previews, lock backlog tasks to their source documents, prove that required context was read, plan components and libraries before coding, implement with YAGNI/KISS/DRY approval gates, and independently verify the result before release.
6
6
 
7
7
  Use it when you want an AI coding agent to follow a shared workflow instead of improvising project structure, documentation, implementation order, and QA.
8
8
 
@@ -22,9 +22,12 @@ npx solmate-skills@latest install rules-product
22
22
 
23
23
  # Install proactive hook suggestions for Claude Code projects
24
24
  npx solmate-skills@latest install hooks
25
+
26
+ # Refresh native Claude agents for the shared harness
27
+ npx solmate-skills@latest install agents
25
28
  ```
26
29
 
27
- The installer copies each selected skill folder into `.agent/skills/<skill-name>` in your current project and copies [USAGE.md](./USAGE.md) to the project root.
30
+ The installer copies each selected skill folder into `.agent/skills/<skill-name>` in your current project and copies [USAGE.md](./USAGE.md) to the project root. Installing `rules-workflow` or `all` also installs the namespaced Claude project agents under `.claude/agents/`; Codex uses the same canonical contract through `rules-workflow`, reinforced by `AGENTS.md` when that file is linked into the project.
28
31
 
29
32
  **Detailed usage:** see `USAGE.md` at the project root (English default, Korean below) for the situation-to-skill cheat sheet, orchestrator map, full skill catalog (26 skills), gate details, and recommended prompts.
30
33
 
@@ -37,8 +40,83 @@ The installer copies each selected skill folder into `.agent/skills/<skill-name>
37
40
  - **Component & Library Planning Gate**: React work must name the shadcn/ui components, custom components, reused components, libraries to add, libraries to avoid, and preset action before coding.
38
41
  - **YAGNI/KISS/DRY Gate**: `rules-dev` is the canonical source for avoiding future-only features, preferring the simplest existing/native path, and removing only true duplicate knowledge.
39
42
  - **Implementation workflow**: `/rules-workflow` keeps coding work tied to approved documents, preconditions, and acceptance criteria.
43
+ - **Agent harness**: a read-only Context Agent proves required documents were read, an Implementation Agent returns a scoped change summary, and a read-only Verification Agent provides independent evidence before completion.
44
+ - **Machine-checkable receipts**: `preflight TASK-ID` checks linked document coverage and `verify TASK-ID` checks command results plus QA/PR evidence; `--strict` turns findings into blocking exit codes.
45
+ - **Versioned harness artifacts**: `validate-harness` checks v1 task manifests, structured messages, ordered state events, role activation, evidence gates, and exclusive write ownership.
40
46
  - **Release verification**: `/verify-implementation` runs the verification family for docs, UI, code, security, performance, DB schema, and skill package readiness.
41
47
 
48
+ ## What's New in 2.0.13: Agent Harness Contracts
49
+
50
+ `solmate-skills@2.0.13` strengthens the existing Solmate workflow with a shared Claude/Codex agent harness. It addresses two recurring failure modes in long AI-assisted projects:
51
+
52
+ 1. An implementation starts from a backlog item without reading the linked concept, UI, technical, and QA documents.
53
+ 2. An agent marks work complete based only on its own summary, without independent verification evidence.
54
+
55
+ The harness makes both boundaries explicit and machine-checkable while preserving the existing skill installation and backlog format.
56
+
57
+ ### How the harness works
58
+
59
+ ```text
60
+ Coordinator
61
+ -> read-only Context Agent -> Context Receipt
62
+ -> Implementation Agent -> Change Receipt
63
+ -> read-only QA Inspector -> Verification Receipt
64
+ -> Done / PR / merge / publish / deploy
65
+ ```
66
+
67
+ - **Context Receipt** records every required backlog reference that was read, the extracted constraints, and any conflict found before implementation.
68
+ - **Change Receipt** records changed files, covered requirements, excluded scope, checks, and remaining risks. It is a handoff, not independent proof.
69
+ - **Verification Receipt** records commands, results, unrun checks, detailed QA evidence, and the independent PASS/FAIL decision.
70
+ - Code and deploy tasks are blocked from implementation without Context evidence and from completion without Verification evidence. Documentation and prototype work remain advisory.
71
+
72
+ The canonical contract lives at [`rules-workflow/resources/agent-harness-contract.md`](./rules-workflow/resources/agent-harness-contract.md).
73
+
74
+ ### Backlog Receipt checks
75
+
76
+ Existing projects can keep their current `00_BACKLOG.md` workflow and add the checks incrementally:
77
+
78
+ ```bash
79
+ # Confirm required linked documents were read before coding
80
+ npx solmate-skills preflight TASK-000
81
+
82
+ # Confirm independent command and QA/PR evidence before completion
83
+ npx solmate-skills verify TASK-000
84
+
85
+ # Turn findings into blocking exit codes for CI or release gates
86
+ npx solmate-skills preflight TASK-000 --strict
87
+ npx solmate-skills verify TASK-000 --strict
88
+ ```
89
+
90
+ ### Versioned manifest, message, and event checks
91
+
92
+ Projects that need structured multi-agent coordination can opt into the v1 contract without rewriting existing backlog Receipts:
93
+
94
+ ```bash
95
+ npx solmate-skills validate-harness manifest _workspace/harness/TASK-000/manifest.json
96
+ npx solmate-skills validate-harness message _workspace/harness/TASK-000/attempt-01/messages/msg-001.json \
97
+ --manifest _workspace/harness/TASK-000/manifest.json
98
+ npx solmate-skills validate-harness events _workspace/harness/TASK-000/events.jsonl \
99
+ --manifest _workspace/harness/TASK-000/manifest.json
100
+ ```
101
+
102
+ [`agent-harness-v1.schema.json`](./rules-workflow/resources/agent-harness-v1.schema.json) defines the manifest, message, and state-event shapes. The validator additionally checks task identity, legal state transitions, active roles, message authority, required evidence, canonical file paths, and exclusive write ownership.
103
+
104
+ | Mode / result | Exit code | Behavior |
105
+ |:---|:---:|:---|
106
+ | Default warning mode, valid | `0` | Reports PASS |
107
+ | Default warning mode, contract finding | `0` | Reports findings without blocking migration |
108
+ | `--strict`, contract finding | `1` | Blocks the workflow or CI step |
109
+ | Invalid command input, unreadable file, malformed JSON/JSONL | `2` | Reports an operational error |
110
+
111
+ ### Compatibility and current scope
112
+
113
+ - Existing `preflight`, `verify`, and backlog Receipt fixtures continue to work without structured artifact files.
114
+ - The structured v1 contract is opt-in and warning-first; projects can move to `--strict` after a real-task pilot.
115
+ - The implementation uses the Node standard library and adds no runtime dependency.
116
+ - Claude Code can install the current namespaced `solmate-*` project agents with `install agents`; Codex follows the same canonical contract through its available delegation mechanism.
117
+ - Specialist personas, runtime orchestration, persistent recovery, pilot automation, and blocking rollout remain separate follow-up work.
118
+ - This release ships the contract and validation foundation; specialist personas and runtime orchestration remain separately gated follow-up work.
119
+
42
120
  ## What's New in 2.0.12
43
121
 
44
122
  `solmate-skills@2.0.12` adds a bilingual usage guide and copies it into every target project on install.
@@ -86,7 +164,7 @@ Recent workflow guardrails:
86
164
 
87
165
  ## Install Details
88
166
 
89
- `install all` installs only skill folders that contain `SKILL.md`. Use `install hooks` separately when you want prompt/file-change suggestions that nudge the agent toward `/rules-product`, `/rules-workflow`, and the relevant `verify-*` skills.
167
+ `install all` installs only skill folders that contain `SKILL.md` and adds the namespaced Claude agent adapters. Use `install hooks` separately when you want prompt/file-change suggestions. Use `install agents` to refresh `rules-workflow`, its canonical contract, and the native Claude adapters in an existing project.
90
168
 
91
169
  ---
92
170
 
@@ -137,6 +215,14 @@ Reinstall from the project root, then diagnose — do not restart from Phase 1 b
137
215
  ```bash
138
216
  npx solmate-skills@latest install all
139
217
  npx solmate-skills@latest install hooks
218
+ npx solmate-skills@latest install agents
219
+ ```
220
+
221
+ For a `code` or `deploy` backlog item:
222
+
223
+ ```bash
224
+ npx solmate-skills preflight TASK-000 --strict
225
+ npx solmate-skills verify TASK-000 --strict
140
226
  ```
141
227
 
142
228
  Example prompts: [USAGE.md §9 Recommended Prompts](./USAGE.md#9-recommended-prompts) (EN) · [§9 권장 프롬프트](./USAGE.md#9-권장-프롬프트-모음) (KO)
@@ -145,7 +231,7 @@ Example prompts: [USAGE.md §9 Recommended Prompts](./USAGE.md#9-recommended-pro
145
231
 
146
232
  ## Skills at a Glance
147
233
 
148
- 26 installable skills plus `hooks`. Category summary:
234
+ 26 installable skills plus `hooks` and `agents` utilities. Category summary:
149
235
 
150
236
  | Category | Skills |
151
237
  |:---|:---|
package/USAGE.md CHANGED
@@ -3,12 +3,12 @@
3
3
  <a id="solmate-skills-usage-guide"></a>
4
4
 
5
5
  Created Date: 2026-06-25 03:00
6
- Last Updated Date: 2026-06-29 15:20
6
+ Last Updated Date: 2026-07-17 00:33
7
7
 
8
8
  **Language:** English (default) · [Korean version below](#solmate-skills-usage-guide-korean)
9
9
 
10
10
  This is a **human-readable** guide for choosing and invoking skills.
11
- Agent execution rules live in each `SKILL.md` and the installed `AGENTS.md`.
11
+ Agent execution rules live in each `SKILL.md` and the project `AGENTS.md` when it is linked or installed.
12
12
 
13
13
  ---
14
14
 
@@ -29,9 +29,10 @@ Run /verify-implementation on the current changes
29
29
  ```bash
30
30
  npx solmate-skills@latest install all # .agent/skills/<skill-name>/ + ./USAGE.md
31
31
  npx solmate-skills@latest install hooks # Claude Code suggestions (optional) + ./USAGE.md
32
+ npx solmate-skills@latest install agents # Refresh rules-workflow + native Claude project agents
32
33
  ```
33
34
 
34
- Every `install` command (single skill, `all`, or `hooks`) copies `USAGE.md` to the **project root**.
35
+ Every `install` command (single skill, `all`, `hooks`, or `agents`) copies `USAGE.md` to the **project root**. Installing `rules-workflow` or `all` also installs the namespaced Claude agents automatically.
35
36
 
36
37
  ### Local development (symlink)
37
38
 
@@ -42,7 +43,7 @@ When hacking on the `solmate-skills` repo itself:
42
43
  bash /path/to/solmate-skills/init-skills.sh
43
44
  ```
44
45
 
45
- This symlinks `.agent/skills/` to the repo and links `AGENTS.md` and `USAGE.md` at the project root.
46
+ This symlinks `.agent/skills/` to the repo, links `AGENTS.md` and `USAGE.md` at the project root, and links the namespaced Claude agents under `.claude/agents/`.
46
47
 
47
48
  ---
48
49
 
@@ -107,6 +108,39 @@ This symlinks `.agent/skills/` to the repo and links `AGENTS.md` and `USAGE.md`
107
108
  | `rules-workflow` | Plan → implement → cleanup → PR (18 steps) | Feature work, commit/PR prep |
108
109
  | `verify-implementation` | Run verify-* by changed files, unified report | Pre-PR / pre-release |
109
110
 
111
+ ### Agent harness sequence
112
+
113
+ For backlog tasks with `Work Type: code` or `Work Type: deploy`:
114
+
115
+ ```text
116
+ Coordinator
117
+ -> read-only Context Agent -> Context Receipt
118
+ -> Implementation Agent -> Change Receipt
119
+ -> read-only Verifier -> Verification Receipt
120
+ -> Coordinator completion decision
121
+ ```
122
+
123
+ - Claude Code uses `.claude/agents/solmate-context-reader.md`, `solmate-implementer.md`, and `solmate-verifier.md`.
124
+ - Codex uses available subagents or separate tasks with the same canonical contract from `rules-workflow/resources/agent-harness-contract.md`.
125
+ - The verifier reports findings but does not modify source files.
126
+ - Receipt summaries stay in the backlog; detailed verification links to a QA document or GitHub PR.
127
+ - Use warning mode for the first five real tasks, then switch to blocking checks:
128
+
129
+ ```bash
130
+ npx solmate-skills preflight TASK-000 --strict
131
+ npx solmate-skills verify TASK-000 --strict
132
+ ```
133
+
134
+ Optional v1 structured artifacts use the same warning-to-blocking migration:
135
+
136
+ ```bash
137
+ npx solmate-skills validate-harness manifest _workspace/harness/TASK-000/manifest.json
138
+ npx solmate-skills validate-harness message _workspace/harness/TASK-000/attempt-01/messages/msg-001.json --manifest _workspace/harness/TASK-000/manifest.json
139
+ npx solmate-skills validate-harness events _workspace/harness/TASK-000/events.jsonl --manifest _workspace/harness/TASK-000/manifest.json
140
+ ```
141
+
142
+ Add `--strict` for blocking validation. Contract failures then exit `1`; malformed JSON, missing files, and invalid command input exit `2`. Existing backlog-only projects do not need to create these files.
143
+
110
144
  ### Individual verify-* vs master
111
145
 
112
146
  | Situation | Use |
@@ -129,9 +163,10 @@ Phase 2 UI design docs → docs-plan (02_UI_Screens)
129
163
  UI-First Gate → screens, flows, data, states
130
164
  Pre-Code Technical Brief → API, state, acceptance criteria
131
165
  Component & Library Planning Gate → shadcn, custom, reuse, libraries
166
+ Context Receipt Gate → linked docs read by a read-only agent
132
167
  Phase 3 React implementation → rules-react (+ tools-shadcn)
133
168
  Phase 4 Dev docs → docs-dev (03–05)
134
- Phase 5 Quality verification → verify-implementation
169
+ Phase 5 Independent verification Verification Receipt + verify-implementation
135
170
  Phase 6 Deliverables (opt.) → docs-pitch / docs-business
136
171
  ```
137
172
 
@@ -171,9 +206,9 @@ Each entry: **When** / **Prerequisites** / **Invoke** / **Outputs** / **Next**
171
206
  #### `rules-workflow`
172
207
 
173
208
  - **When:** Feature implementation, planning, commit/PR (18 steps)
174
- - **Prerequisites:** HTML UI Preview Gate, UI-First Gate, Backlog Context Lock, Component & Library Plan (non-prototype)
209
+ - **Prerequisites:** HTML UI Preview Gate, UI-First Gate, Backlog Context Lock, Component & Library Plan, Context Receipt (code/deploy)
175
210
  - **Invoke:** `/rules-workflow` — implement this backlog item
176
- - **Outputs:** Plan review, implementation, self-check, PR readiness
211
+ - **Outputs:** Context Receipt, plan review, Change Receipt, independent Verification Receipt, PR readiness
177
212
  - **Next:** `verify-implementation`
178
213
 
179
214
  #### `rules-dev`
@@ -428,11 +463,21 @@ Required fields per item in `docs/04_Logic_Progress/00_BACKLOG.md`:
428
463
 
429
464
  - `Related Concept Docs`, `Related UI Docs`, `Related HTML Preview`
430
465
  - `Related Technical Docs`, `Related QA Docs`
431
- - `Implementation Preconditions`, `Component & Library Plan`
466
+ - `Work Type`, `Implementation Preconditions`, `Component & Library Plan`
467
+ - `Context Receipt`, `Change Receipt`, `Verification Receipt`
432
468
  - `Acceptance Criteria`, `Document Sync Check`
433
469
 
434
470
  Use `N/A - reason` when a doc does not exist. Pause implementation if a missing doc blocks a safe decision.
435
471
 
472
+ ### Agent Harness Gate
473
+
474
+ - Canonical contract: `rules-workflow/resources/agent-harness-contract.md`
475
+ - `code` and `deploy`: Context Receipt before implementation; Verification Receipt before Done, PR, merge, publish, or deploy
476
+ - `docs` and `prototype`: advisory receipts
477
+ - Context and Verification agents are read-only
478
+ - Verification details must link to an existing `docs/05_QA_Validation/` document or GitHub PR
479
+ - Default CLI mode is `warning`; `--strict` returns a blocking non-zero exit
480
+
436
481
  ### YAGNI/KISS/DRY Gate
437
482
 
438
483
  - **Canonical:** `rules-dev` § Minimal Implementation Gate
@@ -447,6 +492,7 @@ Use `N/A - reason` when a doc does not exist. Pause implementation if a missing
447
492
  ### [ ] TASK-000: Implement feature name
448
493
 
449
494
  - Status: ToDo
495
+ - Work Type: code
450
496
  - Related Concept Docs:
451
497
  - [Product Specs](../01_Concept_Design/03_PRODUCT_SPECS.md) - feature purpose and user value
452
498
  - Related UI Docs:
@@ -464,6 +510,13 @@ Use `N/A - reason` when a doc does not exist. Pause implementation if a missing
464
510
  - [ ] Confirm user path and screen-by-screen data flow
465
511
  - [ ] Confirm loading, empty, and error states
466
512
  - [ ] Confirm implementation scope does not conflict with documented intent
513
+ - Context Receipt:
514
+ - Status: PENDING
515
+ - Required References Read:
516
+ - PENDING - repeat every linked Related document after reading it
517
+ - Constraints:
518
+ - PENDING - extracted implementation constraints
519
+ - Conflicts: PENDING - use `None` only after checking
467
520
  - Component & Library Plan:
468
521
  - shadcn/ui components: button, card, form, or `N/A - reason`
469
522
  - Custom components: feature-specific components or `N/A - reason`
@@ -475,6 +528,23 @@ Use `N/A - reason` when a doc does not exist. Pause implementation if a missing
475
528
  - [ ] Feature follows the confirmed screen structure and user path
476
529
  - [ ] Feature behavior matches linked Concept/UI/Technical docs
477
530
  - [ ] QA criteria are testable and satisfied
531
+ - Change Receipt:
532
+ - Files Changed:
533
+ - PENDING
534
+ - Requirements Covered:
535
+ - PENDING
536
+ - Excluded Scope: PENDING
537
+ - Basic Checks:
538
+ - PENDING
539
+ - Remaining Risks: PENDING
540
+ - Verification Receipt:
541
+ - Status: PENDING
542
+ - Commands and Results:
543
+ - PENDING - `command` - PASS/FAIL - exact scope and result
544
+ - Unrun Checks:
545
+ - PENDING - skipped checks and reasons
546
+ - Detailed Evidence:
547
+ - PENDING - link an existing QA document or GitHub PR
478
548
  - Document Sync Check:
479
549
  - [ ] No mismatch between implementation and linked documents
480
550
  - [ ] Update related documents if implementation changes the agreed behavior
@@ -540,7 +610,7 @@ Run /verify-implementation on current changes. Include a Flow Status Block in th
540
610
  **언어:** [English (default)](#solmate-skills-usage-guide) · 한국어 (아래)
541
611
 
542
612
  사람이 읽기 위한 스킬 사용법 가이드입니다.
543
- 에이전트 실행 규칙의 정본은 각 `SKILL.md`와 프로젝트에 설치된 `AGENTS.md`입니다.
613
+ 에이전트 실행 규칙의 정본은 각 `SKILL.md`와 프로젝트에 링크 또는 설치된 `AGENTS.md`입니다.
544
614
 
545
615
  ---
546
616
 
@@ -561,9 +631,10 @@ Run /verify-implementation on current changes. Include a Flow Status Block in th
561
631
  ```bash
562
632
  npx solmate-skills@latest install all # .agent/skills/<skill-name>/ + ./USAGE.md
563
633
  npx solmate-skills@latest install hooks # Claude Code 자동 제안 (별도) + ./USAGE.md
634
+ npx solmate-skills@latest install agents # rules-workflow + Claude 프로젝트 에이전트 갱신
564
635
  ```
565
636
 
566
- 모든 `install` 명령(단일 스킬, `all`, `hooks`)은 `USAGE.md`를 **프로젝트 루트**에 복사합니다.
637
+ 모든 `install` 명령(단일 스킬, `all`, `hooks`, `agents`)은 `USAGE.md`를 **프로젝트 루트**에 복사합니다. `rules-workflow` 또는 `all` 설치 시 Claude 에이전트도 자동 설치됩니다.
567
638
 
568
639
  ### 로컬 개발 (symlink)
569
640
 
@@ -574,7 +645,7 @@ npx solmate-skills@latest install hooks # Claude Code 자동 제안 (별도)
574
645
  bash /path/to/solmate-skills/init-skills.sh
575
646
  ```
576
647
 
577
- `.agent/skills/`가 저장소로 symlink되고, `AGENTS.md`와 `USAGE.md`가 루트에 링크됩니다.
648
+ `.agent/skills/`가 저장소로 symlink되고, `AGENTS.md`와 `USAGE.md`가 루트에 링크되며, `.claude/agents/`에 Solmate 에이전트가 연결됩니다.
578
649
 
579
650
  ---
580
651
 
@@ -620,6 +691,39 @@ bash /path/to/solmate-skills/init-skills.sh
620
691
  | `rules-workflow` | 승인된 문서 기준으로 계획→구현→정리→PR (18단계) | 기능 구현·커밋·PR 직전 |
621
692
  | `verify-implementation` | 변경 파일에 맞춰 verify-* 순차 실행·통합 보고 | PR·배포 전 최종 점검 |
622
693
 
694
+ ### 에이전트 하네스 순서
695
+
696
+ `Work Type`이 `code` 또는 `deploy`인 백로그 작업은 다음 순서로 진행합니다.
697
+
698
+ ```text
699
+ Coordinator
700
+ -> 읽기 전용 Context Agent -> Context Receipt
701
+ -> Implementation Agent -> Change Receipt
702
+ -> 읽기 전용 Verifier -> Verification Receipt
703
+ -> Coordinator 완료 판단
704
+ ```
705
+
706
+ - Claude Code는 `.claude/agents/solmate-*.md`를 사용합니다.
707
+ - Codex는 `rules-workflow/resources/agent-harness-contract.md`의 같은 계약을 subagent 또는 별도 task에 전달합니다.
708
+ - 검증자는 문제를 직접 수정하지 않고 Implementation Agent로 돌려보냅니다.
709
+ - Receipt 요약은 백로그에, 상세 검증 근거는 QA 문서 또는 GitHub PR에 남깁니다.
710
+ - 처음 5개 실제 작업은 warning으로 확인한 뒤 blocking으로 전환합니다.
711
+
712
+ ```bash
713
+ npx solmate-skills preflight TASK-000 --strict
714
+ npx solmate-skills verify TASK-000 --strict
715
+ ```
716
+
717
+ 선택형 v1 구조화 산출물도 같은 warning-to-blocking 마이그레이션을 사용합니다.
718
+
719
+ ```bash
720
+ npx solmate-skills validate-harness manifest _workspace/harness/TASK-000/manifest.json
721
+ npx solmate-skills validate-harness message _workspace/harness/TASK-000/attempt-01/messages/msg-001.json --manifest _workspace/harness/TASK-000/manifest.json
722
+ npx solmate-skills validate-harness events _workspace/harness/TASK-000/events.jsonl --manifest _workspace/harness/TASK-000/manifest.json
723
+ ```
724
+
725
+ 차단 검증에는 `--strict`를 추가합니다. 계약 위반은 종료 코드 `1`, JSON 파싱·파일·명령 입력 오류는 종료 코드 `2`입니다. 기존 백로그 Receipt만 사용하는 프로젝트는 이 파일을 만들 필요가 없습니다.
726
+
623
727
  ### verify-* 개별 vs 통합
624
728
 
625
729
  | 상황 | 사용 |
@@ -642,9 +746,10 @@ Phase 2 UI 설계 문서 → docs-plan (02_UI_Screens)
642
746
  UI-First Gate → 화면·동선·데이터 흐름·상태 확인
643
747
  Pre-Code Technical Brief → API·상태·acceptance criteria 합의
644
748
  Component & Library Planning Gate → shadcn·커스텀·재사용·라이브러리 계획
749
+ Context Receipt Gate → 읽기 전용 에이전트의 관련 문서 확인
645
750
  Phase 3 React 구현 → rules-react (+ tools-shadcn)
646
751
  Phase 4 개발문서 → docs-dev (03~05)
647
- Phase 5 품질 검증 → verify-implementation
752
+ Phase 5 독립 품질 검증 Verification Receipt + verify-implementation
648
753
  Phase 6 전달물 (선택) → docs-pitch / docs-business
649
754
  ```
650
755
 
@@ -738,6 +843,7 @@ Gate: UI-First Gate 진행 중
738
843
  - **UI-First Gate:** 화면·동선·CTA·데이터 흐름·로딩/빈/오류 상태
739
844
  - **Component & Library Planning Gate:** shadcn·커스텀·재사용·라이브러리·preset
740
845
  - **Backlog Context Lock:** Related Docs, Preconditions, Component Plan, Acceptance, Sync Check
846
+ - **Agent Harness Gate:** code/deploy 작업은 Context Receipt와 독립 Verification Receipt 필수
741
847
  - **YAGNI/KISS/DRY Gate:** `rules-dev` 정본; 프로토타입은 기록성 체크
742
848
 
743
849
  백로그 템플릿: [영문 §7 Backlog item template](#backlog-item-template) (필드명은 영문 유지)