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.define.md
+21-26Lines changed: 21 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,13 @@ hooks:
11
11
12
12
Verify the job.yml output meets ALL quality criteria before completing:
13
13
14
-
1. **User Understanding**: Did you fully understand the user's workflow by asking structured questions?
15
-
2. **Structured Questions Used**: Did you ask structured questions (using the AskUserQuestion tool) to gather user input?
16
-
3. **Clear Inputs/Outputs**: Does every step have clearly defined inputs and outputs?
17
-
4. **Logical Dependencies**: Do step dependencies make sense and avoid circular references?
18
-
5. **Concise Summary**: Is the summary under 200 characters and descriptive?
19
-
6. **Rich Description**: Does the description provide enough context for future refinement?
20
-
7. **Valid Schema**: Does the job.yml follow the required schema (name, version, summary, steps)?
21
-
8. **File Created**: Has the job.yml file been created in `.deepwork/jobs/[job_name]/job.yml`?
14
+
1. **User Understanding**: Did you fully understand the user's workflow through interactive Q&A?
15
+
2. **Clear Inputs/Outputs**: Does every step have clearly defined inputs and outputs?
16
+
3. **Logical Dependencies**: Do step dependencies make sense and avoid circular references?
17
+
4. **Concise Summary**: Is the summary under 200 characters and descriptive?
18
+
5. **Rich Description**: Does the description provide enough context for future refinement?
19
+
6. **Valid Schema**: Does the job.yml follow the required schema (name, version, summary, steps)?
20
+
7. **File Created**: Has the job.yml file been created in `.deepwork/jobs/[job_name]/job.yml`?
22
21
23
22
If ANY criterion is not met, continue working to address it.
24
23
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
@@ -48,7 +47,7 @@ Core commands for managing DeepWork jobs. These commands help you define new mul
48
47
workflows and learn from running them.
49
48
50
49
The `define` command guides you through an interactive process to create a new job by
51
-
asking structured questions about your workflow, understanding each step's inputs and outputs,
50
+
asking detailed questions about your workflow, understanding each step's inputs and outputs,
52
51
and generating all necessary files.
53
52
54
53
The `learn` command reflects on conversations where DeepWork jobs were run, identifies
@@ -67,15 +66,13 @@ Create a `job.yml` specification file that defines the structure of a new DeepWo
67
66
68
67
## Task
69
68
70
-
Guide the user through defining a job specification by asking structured questions. **Do not attempt to create the specification without first fully understanding the user's needs.**
71
-
72
-
**Important**: Use the AskUserQuestion tool to ask structured questions when gathering information from the user. This provides a better user experience with clear options and guided choices.
69
+
Guide the user through defining a job specification by asking clarifying questions. **Do not attempt to create the specification without first fully understanding the user's needs.**
73
70
74
71
The output of this step is **only** the `job.yml` file - a complete specification of the workflow. The actual step instruction files will be created in the next step (`implement`).
75
72
76
73
### Step 1: Understand the Job Purpose
77
74
78
-
Start by asking structured questions to understand what the user wants to accomplish:
75
+
Start by asking questions to understand what the user wants to accomplish:
79
76
80
77
1.**What is the overall goal of this workflow?**
81
78
- What complex task are they trying to accomplish?
@@ -94,7 +91,7 @@ Start by asking structured questions to understand what the user wants to accomp
94
91
95
92
### Step 2: Define Each Step
96
93
97
-
For each major phase they mentioned, ask structured questions to gather details:
94
+
For each major phase they mentioned, ask detailed questions:
98
95
99
96
1.**Step Purpose**
100
97
- What exactly does this step accomplish?
@@ -155,7 +152,7 @@ After gathering information about all steps:
155
152
156
153
For each step, consider whether it would benefit from **quality validation loops**. Stop hooks allow the AI agent to iteratively refine its work until quality criteria are met.
157
154
158
-
**Ask structured questions about quality validation:**
155
+
**Ask the user about quality validation:**
159
156
- "Are there specific quality criteria that must be met for this step?"
160
157
- "Would you like the agent to validate its work before completing?"
161
158
- "What would make you send the work back for revision?"
@@ -344,11 +341,11 @@ Run `/deepwork_jobs.implement` to generate the instruction files for each step b
Copy file name to clipboardExpand all lines: .claude/commands/deepwork_jobs.implement.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,9 @@ 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. **Ask Structured Questions**: Do step instructions that gather user input explicitly use the phrase "ask structured questions"?
20
-
7. **Sync Complete**: Has `deepwork sync` been run successfully?
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?
19
+
6. **Sync Complete**: Has `deepwork sync` been run successfully?
20
+
7. **Commands Available**: Are the slash-commands generated in `.claude/commands/`?
21
+
8. **Policies Considered**: Have you thought about whether policies would benefit this job?
23
22
- If relevant policies were identified, did you explain them and offer to run `/deepwork_policy.define`?
24
23
- Not every job needs policies - only suggest when genuinely helpful.
25
24
@@ -51,7 +50,7 @@ Core commands for managing DeepWork jobs. These commands help you define new mul
51
50
workflows and learn from running them.
52
51
53
52
The `define` command guides you through an interactive process to create a new job by
54
-
asking structured questions about your workflow, understanding each step's inputs and outputs,
53
+
asking detailed questions about your workflow, understanding each step's inputs and outputs,
55
54
and generating all necessary files.
56
55
57
56
The `learn` command reflects on conversations where DeepWork jobs were run, identifies
@@ -139,7 +138,6 @@ For each step in the job.yml, create a comprehensive instruction file at `.deepw
139
138
4.**Explain the "why"** - Help the user understand the step's role in the workflow
140
139
5.**Quality over quantity** - Detailed, actionable instructions are better than vague ones
141
140
6.**Align with stop hooks** - If the step has `stop_hooks` defined, ensure the quality criteria in the instruction file match the validation criteria in the hooks
142
-
7.**Ask structured questions** - When a step has user inputs, the instructions MUST explicitly tell the agent to "ask structured questions" using the AskUserQuestion tool to gather that information. Never use generic phrasing like "ask the user" - always use "ask structured questions"
143
141
144
142
### Handling Stop Hooks
145
143
@@ -302,7 +300,6 @@ Before marking this step complete, ensure:
302
300
- Instructions are specific and actionable
303
301
- Output examples are provided in each instruction file
304
302
- Quality criteria defined for each step
305
-
- Steps with user inputs explicitly use "ask structured questions" phrasing
306
303
- Sync completed successfully
307
304
- Commands available for use
308
305
- Thoughtfully considered relevant policies for the job domain
@@ -352,10 +349,9 @@ Verify the implementation meets ALL quality criteria before completing:
352
349
3.**Specific & Actionable**: Are instructions tailored to each step's purpose, not generic?
353
350
4.**Output Examples**: Does each instruction file show what good output looks like?
354
351
5.**Quality Criteria**: Does each instruction file define quality criteria for its outputs?
355
-
6.**Ask Structured Questions**: Do step instructions that gather user input explicitly use the phrase "ask structured questions"?
356
-
7.**Sync Complete**: Has `deepwork sync` been run successfully?
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?
352
+
6.**Sync Complete**: Has `deepwork sync` been run successfully?
353
+
7.**Commands Available**: Are the slash-commands generated in `.claude/commands/`?
354
+
8.**Policies Considered**: Have you thought about whether policies would benefit this job?
359
355
- If relevant policies were identified, did you explain them and offer to run `/deepwork_policy.define`?
360
356
- Not every job needs policies - only suggest when genuinely helpful.
Copy file name to clipboardExpand all lines: .claude/commands/deepwork_policy.define.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,11 @@ Create or update policy entries in the `.deepwork.policy.yml` file to enforce te
38
38
39
39
## Task
40
40
41
-
Guide the user through defining a new policy by asking structured questions. **Do not create the policy without first understanding what they want to enforce.**
42
-
43
-
**Important**: Use the AskUserQuestion tool to ask structured questions when gathering information from the user. This provides a better user experience with clear options and guided choices.
41
+
Guide the user through defining a new policy by asking clarifying questions. **Do not create the policy without first understanding what they want to enforce.**
44
42
45
43
### Step 1: Understand the Policy Purpose
46
44
47
-
Start by asking structured questions to understand what the user wants to enforce:
45
+
Start by asking questions to understand what the user wants to enforce:
48
46
49
47
1.**What guideline or constraint should this policy enforce?**
50
48
- What situation triggers the need for action?
@@ -209,7 +207,6 @@ Create or update this file at the project root with the new policy entry.
209
207
210
208
## Quality Criteria
211
209
212
-
- Asked structured questions to understand user requirements
213
210
- Policy name is clear and descriptive
214
211
- Trigger patterns accurately match the intended files
Copy file name to clipboardExpand all lines: .deepwork/jobs/deepwork_jobs/job.yml
+12-16Lines changed: 12 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
name: deepwork_jobs
2
-
version: "0.5.0"
2
+
version: "0.4.0"
3
3
summary: "DeepWork job management commands"
4
4
description: |
5
5
Core commands for managing DeepWork jobs. These commands help you define new multi-step
6
6
workflows and learn from running them.
7
7
8
8
The `define` command guides you through an interactive process to create a new job by
9
-
asking structured questions about your workflow, understanding each step's inputs and outputs,
9
+
asking detailed questions about your workflow, understanding each step's inputs and outputs,
10
10
and generating all necessary files.
11
11
12
12
The `learn` command reflects on conversations where DeepWork jobs were run, identifies
@@ -22,8 +22,6 @@ changelog:
22
22
changes: "Added make_new_job.sh script and templates directory; updated instructions to reference templates instead of inline examples"
23
23
- version: "0.4.0"
24
24
changes: "Removed implementation_summary and learning_summary outputs; simplified step outputs"
25
-
- version: "0.5.0"
26
-
changes: "Standardized on 'ask structured questions' phrasing for user input; Updated quality criteria hooks to verify phrase usage; Added guidance in implement.md to use phrase in generated instructions"
27
25
28
26
steps:
29
27
- id: define
@@ -41,14 +39,13 @@ steps:
41
39
- prompt: |
42
40
Verify the job.yml output meets ALL quality criteria before completing:
43
41
44
-
1. **User Understanding**: Did you fully understand the user's workflow by asking structured questions?
45
-
2. **Structured Questions Used**: Did you ask structured questions (using the AskUserQuestion tool) to gather user input?
46
-
3. **Clear Inputs/Outputs**: Does every step have clearly defined inputs and outputs?
47
-
4. **Logical Dependencies**: Do step dependencies make sense and avoid circular references?
48
-
5. **Concise Summary**: Is the summary under 200 characters and descriptive?
49
-
6. **Rich Description**: Does the description provide enough context for future refinement?
50
-
7. **Valid Schema**: Does the job.yml follow the required schema (name, version, summary, steps)?
51
-
8. **File Created**: Has the job.yml file been created in `.deepwork/jobs/[job_name]/job.yml`?
42
+
1. **User Understanding**: Did you fully understand the user's workflow through interactive Q&A?
43
+
2. **Clear Inputs/Outputs**: Does every step have clearly defined inputs and outputs?
44
+
3. **Logical Dependencies**: Do step dependencies make sense and avoid circular references?
45
+
4. **Concise Summary**: Is the summary under 200 characters and descriptive?
46
+
5. **Rich Description**: Does the description provide enough context for future refinement?
47
+
6. **Valid Schema**: Does the job.yml follow the required schema (name, version, summary, steps)?
48
+
7. **File Created**: Has the job.yml file been created in `.deepwork/jobs/[job_name]/job.yml`?
52
49
53
50
If ANY criterion is not met, continue working to address it.
54
51
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
@@ -74,10 +71,9 @@ steps:
74
71
3. **Specific & Actionable**: Are instructions tailored to each step's purpose, not generic?
75
72
4. **Output Examples**: Does each instruction file show what good output looks like?
76
73
5. **Quality Criteria**: Does each instruction file define quality criteria for its outputs?
77
-
6. **Ask Structured Questions**: Do step instructions that gather user input explicitly use the phrase "ask structured questions"?
78
-
7. **Sync Complete**: Has `deepwork sync` been run successfully?
79
-
8. **Commands Available**: Are the slash-commands generated in `.claude/commands/`?
80
-
9. **Policies Considered**: Have you thought about whether policies would benefit this job?
74
+
6. **Sync Complete**: Has `deepwork sync` been run successfully?
75
+
7. **Commands Available**: Are the slash-commands generated in `.claude/commands/`?
76
+
8. **Policies Considered**: Have you thought about whether policies would benefit this job?
81
77
- If relevant policies were identified, did you explain them and offer to run `/deepwork_policy.define`?
82
78
- Not every job needs policies - only suggest when genuinely helpful.
0 commit comments