Skip to content

Commit 53bd252

Browse files
nhortonclaude
andcommitted
Add review_job_spec step to deepwork_jobs workflow
Add DTD-based quality validation step between define and implement that: - Uses a sub-agent (haiku model) for unbiased review of job.yml - Evaluates all 9 DTD quality criteria from job_spec.md - Iterates fix-review cycle until all criteria pass This establishes a reusable pattern for DTD-conforming document validation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b4b72fb commit 53bd252

16 files changed

Lines changed: 1291 additions & 44 deletions

File tree

.claude/skills/deepwork_jobs.define/SKILL.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ hooks:
3838

3939
# deepwork_jobs.define
4040

41-
**Step 1/3** in **deepwork_jobs** workflow
41+
**Step 1/4** in **deepwork_jobs** workflow
4242

4343
> DeepWork job management commands
4444
@@ -390,7 +390,7 @@ Claude: Great! Creating the job.yml specification now...
390390
- .deepwork/jobs/competitive_research/job.yml
391391

392392
**Next step:**
393-
Run `/deepwork_jobs.implement` to generate the instruction files for each step based on this specification.
393+
Run `/deepwork_jobs.review_job_spec` to validate the specification against quality criteria.
394394
```
395395
396396
## Important Guidelines
@@ -430,7 +430,7 @@ The complete YAML specification file (example shown in Step 5 above).
430430
After creating the file:
431431
1. Inform the user that the specification is complete
432432
2. Recommend that they review the job.yml file
433-
3. Tell them to run `/deepwork_jobs.implement` next
433+
3. Tell them to run `/deepwork_jobs.review_job_spec` next
434434
435435
## Quality Criteria
436436
@@ -682,8 +682,8 @@ Stop hooks will automatically validate your work. The loop continues until all c
682682
## On Completion
683683

684684
1. Verify outputs are created
685-
2. Inform user: "Step 1/3 complete, outputs: job.yml"
686-
3. **Continue workflow**: Use Skill tool to invoke `/deepwork_jobs.implement`
685+
2. Inform user: "Step 1/4 complete, outputs: job.yml"
686+
3. **Continue workflow**: Use Skill tool to invoke `/deepwork_jobs.review_job_spec`
687687

688688
---
689689

.claude/skills/deepwork_jobs.implement/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ hooks:
3535

3636
# deepwork_jobs.implement
3737

38-
**Step 2/3** in **deepwork_jobs** workflow
38+
**Step 3/4** in **deepwork_jobs** workflow
3939

4040
> DeepWork job management commands
4141
4242
## Prerequisites (Verify First)
4343

4444
Before proceeding, confirm these steps are complete:
45-
- `/deepwork_jobs.define`
45+
- `/deepwork_jobs.review_job_spec`
4646

4747
## Instructions
4848

@@ -52,7 +52,7 @@ Before proceeding, confirm these steps are complete:
5252

5353
## Objective
5454

55-
Generate the DeepWork job directory structure and instruction files for each step based on the `job.yml` specification created in the previous step.
55+
Generate the DeepWork job directory structure and instruction files for each step based on the validated `job.yml` specification from the review_job_spec step.
5656

5757
## Task
5858

@@ -82,7 +82,7 @@ touch .deepwork/jobs/[job_name]/hooks/.gitkeep .deepwork/jobs/[job_name]/templat
8282
### Step 2: Read and Validate the Specification
8383

8484
1. **Locate the job.yml file**
85-
- Read `.deepwork/jobs/[job_name]/job.yml` from the define step
85+
- Read `.deepwork/jobs/[job_name]/job.yml` from the review_job_spec step
8686
- Parse the YAML content
8787

8888
2. **Validate the specification**
@@ -161,7 +161,7 @@ See `.deepwork/jobs/deepwork_jobs/steps/supplemental_file_references.md` for det
161161

162162
### Step 4: Verify job.yml Location
163163

164-
Verify that `job.yml` is in the correct location at `.deepwork/jobs/[job_name]/job.yml`. The define step should have created it there. If for some reason it's not there, you may need to create or move it.
164+
Verify that `job.yml` is in the correct location at `.deepwork/jobs/[job_name]/job.yml`. The define and review_job_spec steps should have created and validated it. If for some reason it's not there, you may need to create or move it.
165165

166166
### Step 5: Sync Skills
167167

@@ -306,7 +306,7 @@ learnings specific to the current run into AGENTS.md files in the working folder
306306
307307
308308
**Files from Previous Steps** - Read these first:
309-
- `job.yml` (from `define`)
309+
- `job.yml` (from `review_job_spec`)
310310
311311
## Work Branch
312312
@@ -341,7 +341,7 @@ Stop hooks will automatically validate your work. The loop continues until all c
341341
## On Completion
342342
343343
1. Verify outputs are created
344-
2. Inform user: "Step 2/3 complete, outputs: steps/"
344+
2. Inform user: "Step 3/4 complete, outputs: steps/"
345345
3. **Continue workflow**: Use Skill tool to invoke `/deepwork_jobs.learn`
346346
347347
---

0 commit comments

Comments
 (0)