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/skills/deepwork_jobs.define/SKILL.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,37 @@ hooks:
34
34
35
35
If criteria are NOT met OR the promise tag is missing, respond with:
36
36
{"ok": false, "reason": "**AGENT: TAKE ACTION** - [which criteria failed and why]"}
37
+
SubagentStop:
38
+
- hooks:
39
+
- type: prompt
40
+
prompt: |
41
+
You must evaluate whether Claude has met all the below quality criteria for the request.
42
+
43
+
## Quality Criteria
44
+
45
+
1. **User Understanding**: Did the agent fully understand the user's workflow by asking structured questions?
46
+
2. **Structured Questions Used**: Did the agent ask structured questions (using the AskUserQuestion tool) to gather user input?
47
+
3. **Document Detection**: For document-oriented workflows, did the agent detect patterns and offer doc spec creation?
48
+
4. **doc spec Created (if applicable)**: If a doc spec was needed, was it created in `.deepwork/doc_specs/[doc_spec_name].md` with proper quality criteria?
49
+
5. **doc spec References**: Are document outputs properly linked to their doc specs using `{file, doc_spec}` format?
50
+
6. **Valid Against doc spec**: Does the job.yml conform to the job.yml doc spec quality criteria (valid identifier, semantic version, concise summary, rich description, complete steps, valid dependencies)?
51
+
7. **Clear Inputs/Outputs**: Does every step have clearly defined inputs and outputs?
52
+
8. **Logical Dependencies**: Do step dependencies make sense and avoid circular references?
53
+
9. **Concise Summary**: Is the summary under 200 characters and descriptive?
54
+
10. **Rich Description**: Does the description provide enough context for future refinement?
55
+
11. **Valid Schema**: Does the job.yml follow the required schema (name, version, summary, steps)?
56
+
12. **File Created**: Has the job.yml file been created in `.deepwork/jobs/[job_name]/job.yml`?
57
+
58
+
## Instructions
59
+
60
+
Review the conversation and determine if ALL quality criteria above have been satisfied.
61
+
Look for evidence that each criterion has been addressed.
62
+
63
+
If the agent has included `<promise>✓ Quality Criteria Met</promise>` in their response AND
64
+
all criteria appear to be met, respond with: {"ok": true}
65
+
66
+
If criteria are NOT met OR the promise tag is missing, respond with:
67
+
{"ok": false, "reason": "**AGENT: TAKE ACTION** - [which criteria failed and why]"}
0 commit comments