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
Rename all policy-related terminology to rules throughout the codebase:
- Rename deepwork_policy job to deepwork_rules
- Rename .deepwork.policy.yml to .deepwork.rules.yml
- Rename policy_parser.py, policy_queue.py, policy_check.py to rules_*
- Rename policy_schema.py to rules_schema.py
- Rename policy_stop_hook.sh to rules_stop_hook.sh
- Update all documentation, tests, and references
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/commands/deepwork_jobs.implement.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ hooks:
19
19
6. **Ask Structured Questions**: Do step instructions that gather user input explicitly use the phrase "ask structured questions"?
20
20
7. **Sync Complete**: Has `deepwork sync` been run successfully?
21
21
8. **Commands Available**: Are the slash-commands generated in `.claude/commands/`?
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.
22
+
9. **Rules Considered**: Have you thought about whether rules would benefit this job?
23
+
- If relevant rules were identified, did you explain them and offer to run `/deepwork_rules.define`?
24
+
- Not every job needs rules - only suggest when genuinely helpful.
25
25
26
26
If ANY criterion is not met, continue working to address it.
27
27
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
@@ -200,48 +200,48 @@ This will:
200
200
201
201
After running `deepwork sync`, look at the "To use the new commands" section in the output. **Relay these exact reload instructions to the user** so they know how to pick up the new commands. Don't just reference the sync output - tell them directly what they need to do (e.g., "Type 'exit' then run 'claude --resume'" for Claude Code, or "Run '/memory refresh'" for Gemini CLI).
202
202
203
-
### Step 7: Consider Policies for the New Job
203
+
### Step 7: Consider Rules for the New Job
204
204
205
-
After implementing the job, consider whether there are **policies** that would help enforce quality or consistency when working with this job's domain.
205
+
After implementing the job, consider whether there are **rules** that would help enforce quality or consistency when working with this job's domain.
206
206
207
-
**What are policies?**
207
+
**What are rules?**
208
208
209
-
Policies are automated guardrails defined in `.deepwork.policy.yml` that trigger when certain files change during an AI session. They help ensure:
209
+
Rules are automated guardrails defined in `.deepwork.rules.yml` that trigger when certain files change during an AI session. They help ensure:
210
210
- Documentation stays in sync with code
211
211
- Team guidelines are followed
212
212
- Architectural decisions are respected
213
213
- Quality standards are maintained
214
214
215
-
**When to suggest policies:**
215
+
**When to suggest rules:**
216
216
217
217
Think about the job you just implemented and ask:
218
218
- Does this job produce outputs that other files depend on?
219
219
- Are there documentation files that should be updated when this job's outputs change?
220
220
- Are there quality checks or reviews that should happen when certain files in this domain change?
221
221
- Could changes to the job's output files impact other parts of the project?
222
222
223
-
**Examples of policies that might make sense:**
223
+
**Examples of rules that might make sense:**
224
224
225
-
| Job Type | Potential Policy |
226
-
|----------|------------------|
225
+
| Job Type | Potential Rule |
226
+
|----------|----------------|
227
227
| API Design | "Update API docs when endpoint definitions change" |
If you identify one or more policies that would benefit the user, explain:
236
-
1. **What the policy would do** - What triggers it and what action it prompts
235
+
If you identify one or more rules that would benefit the user, explain:
236
+
1. **What the rule would do** - What triggers it and what action it prompts
237
237
2. **Why it would help** - How it prevents common mistakes or keeps things in sync
238
238
3. **What files it would watch** - The trigger patterns
239
239
240
240
Then ask the user:
241
241
242
-
> "Would you like me to create this policy for you? I can run `/deepwork_policy.define` to set it up."
242
+
> "Would you like me to create this rule for you? I can run `/deepwork_rules.define` to set it up."
243
243
244
-
If the user agrees, invoke the `/deepwork_policy.define` command to guide them through creating the policy.
244
+
If the user agrees, invoke the `/deepwork_rules.define` command to guide them through creating the rule.
245
245
246
246
**Example dialogue:**
247
247
@@ -250,15 +250,15 @@ Based on the competitive_research job you just created, I noticed that when
250
250
competitor analysis files change, it would be helpful to remind you to update
251
251
your strategy documentation.
252
252
253
-
I'd suggest a policy like:
253
+
I'd suggest a rule like:
254
254
-**Name**: "Update strategy when competitor analysis changes"
255
255
-**Trigger**: `**/positioning_report.md`
256
256
-**Action**: Prompt to review and update `docs/strategy.md`
257
257
258
-
Would you like me to create this policy? I can run `/deepwork_policy.define` to set it up.
258
+
Would you like me to create this rule? I can run `/deepwork_rules.define` to set it up.
259
259
```
260
260
261
-
**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.
261
+
**Note:** Not every job needs rules. Only suggest them when they would genuinely help maintain consistency or quality. Don't force rules where they don't make sense.
262
262
263
263
## Example Implementation
264
264
@@ -292,8 +292,8 @@ Before marking this step complete, ensure:
292
292
- [ ] `deepwork sync` executed successfully
293
293
- [ ] Commands generated in platform directory
294
294
- [ ] User informed to follow reload instructions from `deepwork sync`
295
-
- [ ] Considered whether policies would benefit this job (Step 7)
296
-
- [ ] If policies suggested, offered to run `/deepwork_policy.define`
295
+
- [ ] Considered whether rules would benefit this job (Step 7)
296
+
- [ ] If rules suggested, offered to run `/deepwork_rules.define`
297
297
298
298
## Quality Criteria
299
299
@@ -305,7 +305,7 @@ Before marking this step complete, ensure:
305
305
- Steps with user inputs explicitly use "ask structured questions" phrasing
306
306
- Sync completed successfully
307
307
- Commands available for use
308
-
- Thoughtfully considered relevant policies for the job domain
308
+
- Thoughtfully considered relevant rules for the job domain
309
309
310
310
311
311
## Inputs
@@ -355,9 +355,9 @@ Verify the implementation meets ALL quality criteria before completing:
355
355
6.**Ask Structured Questions**: Do step instructions that gather user input explicitly use the phrase "ask structured questions"?
356
356
7.**Sync Complete**: Has `deepwork sync` been run successfully?
357
357
8.**Commands Available**: Are the slash-commands generated in `.claude/commands/`?
358
-
9.**Policies Considered**: Have you thought about whether policies would benefit this job?
359
-
- If relevant policies were identified, did you explain them and offer to run `/deepwork_policy.define`?
360
-
- Not every job needs policies - only suggest when genuinely helpful.
358
+
9.**Rules Considered**: Have you thought about whether rules would benefit this job?
359
+
- If relevant rules were identified, did you explain them and offer to run `/deepwork_rules.define`?
360
+
- Not every job needs rules - only suggest when genuinely helpful.
361
361
362
362
If ANY criterion is not met, continue working to address it.
363
363
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
0 commit comments