You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/deepwork_jobs.implement.md
+75-8Lines changed: 75 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,12 @@ hooks:
16
16
3. **Specific & Actionable**: Are instructions tailored to each step's purpose, not generic?
17
17
4. **Output Examples**: Does each instruction file show what good output looks like?
18
18
5. **Quality Criteria**: Does each instruction file define quality criteria for its outputs?
19
-
6. **Registry Updated**: Is `.deepwork/registry.yml` updated with the new job?
20
-
7. **Sync Complete**: Has `deepwork sync` been run successfully?
21
-
8. **Commands Available**: Are the slash-commands generated in `.claude/commands/`?
22
-
9. **Summary Created**: Has `implementation_summary.md` been created?
19
+
6. **Sync Complete**: Has `deepwork sync` been run successfully?
20
+
7. **Commands Available**: Are the slash-commands generated in `.claude/commands/`?
21
+
8. **Summary Created**: Has `implementation_summary.md` been created?
22
+
9. **Policies Considered**: Have you thought about whether policies would benefit this job?
23
+
- If relevant policies were identified, did you explain them and offer to run `/deepwork_policy.define`?
24
+
- Not every job needs policies - only suggest when genuinely helpful.
23
25
24
26
If ANY criterion is not met, continue working to address it.
25
27
If ALL criteria are satisfied, include `<promise>QUALITY_COMPLETE</promise>` in your response.
@@ -238,6 +240,66 @@ Instruct the user to reload commands in their current session:
238
240
- Run `/reload` command (if available)
239
241
- Or restart the Claude session
240
242
243
+
### Step 7: Consider Policies for the New Job
244
+
245
+
After implementing the job, consider whether there are **policies** that would help enforce quality or consistency when working with this job's domain.
246
+
247
+
**What are policies?**
248
+
249
+
Policies are automated guardrails defined in `.deepwork.policy.yml` that trigger when certain files change during an AI session. They help ensure:
250
+
- Documentation stays in sync with code
251
+
- Team guidelines are followed
252
+
- Architectural decisions are respected
253
+
- Quality standards are maintained
254
+
255
+
**When to suggest policies:**
256
+
257
+
Think about the job you just implemented and ask:
258
+
- Does this job produce outputs that other files depend on?
259
+
- Are there documentation files that should be updated when this job's outputs change?
260
+
- Are there quality checks or reviews that should happen when certain files in this domain change?
261
+
- Could changes to the job's output files impact other parts of the project?
262
+
263
+
**Examples of policies that might make sense:**
264
+
265
+
| Job Type | Potential Policy |
266
+
|----------|------------------|
267
+
| API Design | "Update API docs when endpoint definitions change" |
-**Action**: Prompt to review and update `docs/strategy.md`
297
+
298
+
Would you like me to create this policy? I can run `/deepwork_policy.define` to set it up.
299
+
```
300
+
301
+
**Note:** Not every job needs policies. Only suggest them when they would genuinely help maintain consistency or quality. Don't force policies where they don't make sense.
302
+
241
303
## Example Implementation
242
304
243
305
**Given this job.yml:**
@@ -431,6 +493,8 @@ Before marking this step complete, ensure:
431
493
-[ ] Commands generated in platform directory
432
494
-[ ] User informed of next steps (reload commands)
433
495
-[ ] implementation_summary.md created
496
+
-[ ] Considered whether policies would benefit this job (Step 7)
497
+
-[ ] If policies suggested, offered to run `/deepwork_policy.define`
434
498
435
499
## Quality Criteria
436
500
@@ -441,6 +505,7 @@ Before marking this step complete, ensure:
441
505
- Quality criteria defined for each step
442
506
- Sync completed successfully
443
507
- Commands available for use
508
+
- Thoughtfully considered relevant policies for the job domain
444
509
445
510
446
511
## Inputs
@@ -493,10 +558,12 @@ Verify the implementation meets ALL quality criteria before completing:
493
558
3.**Specific & Actionable**: Are instructions tailored to each step's purpose, not generic?
494
559
4.**Output Examples**: Does each instruction file show what good output looks like?
495
560
5.**Quality Criteria**: Does each instruction file define quality criteria for its outputs?
496
-
6.**Registry Updated**: Is `.deepwork/registry.yml` updated with the new job?
497
-
7.**Sync Complete**: Has `deepwork sync` been run successfully?
498
-
8.**Commands Available**: Are the slash-commands generated in `.claude/commands/`?
499
-
9.**Summary Created**: Has `implementation_summary.md` been created?
561
+
6.**Sync Complete**: Has `deepwork sync` been run successfully?
562
+
7.**Commands Available**: Are the slash-commands generated in `.claude/commands/`?
563
+
8.**Summary Created**: Has `implementation_summary.md` been created?
564
+
9.**Policies Considered**: Have you thought about whether policies would benefit this job?
565
+
- If relevant policies were identified, did you explain them and offer to run `/deepwork_policy.define`?
566
+
- Not every job needs policies - only suggest when genuinely helpful.
500
567
501
568
If ANY criterion is not met, continue working to address it.
502
569
If ALL criteria are satisfied, include `<promise>QUALITY_COMPLETE</promise>` in your response.
0 commit comments