Skip to content

Commit c150c54

Browse files
authored
Merge branch 'main' into claude/fix-e2e-ci-test-fgY7u
2 parents 7234b88 + c14e5b1 commit c150c54

File tree

78 files changed

+6222
-2913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+6222
-2913
lines changed

.claude/commands/deepwork_jobs.define.md

Lines changed: 30 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ hooks:
4444
## Job Overview
4545

4646
Core commands for managing DeepWork jobs. These commands help you define new multi-step
47-
workflows and refine existing ones.
47+
workflows and learn from running them.
4848

4949
The `define` command guides you through an interactive process to create a new job by
5050
asking detailed questions about your workflow, understanding each step's inputs and outputs,
5151
and generating all necessary files.
5252

53-
The `refine` command helps you modify existing jobs safely by understanding what you want
54-
to change, validating the impact, and ensuring consistency across your workflow.
53+
The `learn` command reflects on conversations where DeepWork jobs were run, identifies
54+
confusion or inefficiencies, and improves job instructions. It also captures bespoke
55+
learnings specific to the current run into AGENTS.md files in the working folder.
5556

5657

5758

@@ -121,6 +122,12 @@ For each major phase they mentioned, ask detailed questions:
121122

122123
**Note**: You're gathering this information to understand what instructions will be needed, but you won't create the instruction files yet - that happens in the `implement` step.
123124

125+
### Capability Considerations
126+
127+
When defining steps, identify any that require specialized tools:
128+
129+
**Browser Automation**: If any step involves web scraping, form filling, interactive browsing, UI testing, or research requiring website visits, ask the user what browser tools they have available. For Claude Code users, **Claude in Chrome** (Anthropic's browser extension) has been tested with DeepWork and is recommended for new users. Don't assume a default—confirm the tool before designing browser-dependent steps.
130+
124131
### Step 3: Validate the Workflow
125132

126133
After gathering information about all steps:
@@ -188,68 +195,31 @@ stop_hooks:
188195

189196
**Encourage prompt-based hooks** - They leverage the AI's ability to understand context and make nuanced quality judgments. Script hooks are best for objective checks (syntax, format, tests).
190197

191-
### Step 5: Create the job.yml Specification
198+
### Step 5: Create the Job Directory and Specification
192199

193-
Only after you have complete understanding, create the `job.yml` file:
200+
Only after you have complete understanding, create the job directory and `job.yml` file:
194201

195-
**File Location**: `.deepwork/jobs/[job_name]/job.yml`
202+
**First, create the directory structure** using the `make_new_job.sh` script:
196203

197-
(Where `[job_name]` is the name of the NEW job you're creating, e.g., `.deepwork/jobs/competitive_research/job.yml`)
198-
199-
**Format**:
200-
```yaml
201-
name: [job_name]
202-
version: "1.0.0"
203-
summary: "[Brief one-line summary of what this job accomplishes]"
204-
description: |
205-
[Detailed multi-line description of the job's purpose, process, and goals.
206-
207-
This should explain:
208-
- What problem this workflow solves
209-
- What the overall process looks like
210-
- What the end result will be
211-
- Who the intended users are
212-
- Any important context about the workflow]
213-
214-
changelog:
215-
- version: "1.0.0"
216-
changes: "Initial job creation"
217-
218-
steps:
219-
- id: [step_id]
220-
name: "[Step Name]"
221-
description: "[What this step does]"
222-
instructions_file: steps/[step_id].md
223-
inputs:
224-
- name: [param_name]
225-
description: "[What user needs to provide]"
226-
# OR for file inputs from previous steps:
227-
# - file: [filename_or_path]
228-
# from_step: [previous_step_id]
229-
outputs:
230-
- [output_filename_or_path] # e.g., "report.md" or "reports/analysis.md"
231-
dependencies: [] # List of step IDs that must complete first
232-
# Optional: Quality validation hooks
233-
stop_hooks:
234-
- prompt: |
235-
Verify this step's output meets quality criteria:
236-
1. [Criterion 1]
237-
2. [Criterion 2]
238-
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
239-
240-
- id: [another_step]
241-
name: "[Another Step]"
242-
description: "[What this step does]"
243-
instructions_file: steps/[another_step].md
244-
inputs:
245-
- file: [output_filename_or_path]
246-
from_step: [step_id]
247-
outputs:
248-
- [another_output_path]
249-
dependencies:
250-
- [step_id] # This step requires the previous step
204+
```bash
205+
.deepwork/jobs/deepwork_jobs/make_new_job.sh [job_name]
251206
```
252207

208+
This creates:
209+
- `.deepwork/jobs/[job_name]/` - Main job directory
210+
- `.deepwork/jobs/[job_name]/steps/` - For step instruction files
211+
- `.deepwork/jobs/[job_name]/hooks/` - For custom validation scripts
212+
- `.deepwork/jobs/[job_name]/templates/` - For example file formats
213+
- `.deepwork/jobs/[job_name]/AGENTS.md` - Job management guidance
214+
215+
**Then create the job.yml file** at `.deepwork/jobs/[job_name]/job.yml`
216+
217+
(Where `[job_name]` is the name of the NEW job you're creating, e.g., `competitive_research`)
218+
219+
**Template reference**: See `.deepwork/jobs/deepwork_jobs/templates/job.yml.template` for the standard structure.
220+
221+
**Complete example**: See `.deepwork/jobs/deepwork_jobs/templates/job.yml.example` for a fully worked example.
222+
253223
**Important**:
254224
- Use lowercase with underscores for job name and step IDs
255225
- Ensure file inputs reference steps in dependencies

0 commit comments

Comments
 (0)