Skip to content

Commit 7b40553

Browse files
nhortonclaude
andcommitted
Add AGENT: TAKE ACTION prefix to hook prompts
Prevents Claude from stopping when hooks are presented as errors. Updated prompts in policy.yml, add_platform, update, and deepwork_jobs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f5d6953 commit 7b40553

13 files changed

Lines changed: 31 additions & 31 deletions

File tree

.claude/commands/deepwork_jobs.learn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hooks:
99
1010
## Quality Criteria
1111
12-
Verify the learning process meets ALL quality criteria before completing:
12+
**AGENT: TAKE ACTION** - Verify the learning process meets ALL quality criteria before completing:
1313
1414
1. **Conversation Analyzed**: Did you review the conversation for DeepWork job executions?
1515
2. **Confusion Identified**: Did you identify points of confusion, errors, or inefficiencies?
@@ -386,7 +386,7 @@ Ensure all outputs are:
386386
This step uses an iterative quality validation loop. After completing your work, stop hook(s) will evaluate whether the outputs meet quality criteria. If criteria are not met, you will be prompted to continue refining.
387387

388388
### Quality Criteria
389-
Verify the learning process meets ALL quality criteria before completing:
389+
**AGENT: TAKE ACTION** - Verify the learning process meets ALL quality criteria before completing:
390390

391391
1. **Conversation Analyzed**: Did you review the conversation for DeepWork job executions?
392392
2. **Confusion Identified**: Did you identify points of confusion, errors, or inefficiencies?

.claude/commands/uw.add_platform.add_capabilities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hooks:
99
1010
## Quality Criteria
1111
12-
Verify the capability additions meet ALL criteria:
12+
**AGENT: TAKE ACTION** - Verify the capability additions meet ALL criteria:
1313
1. Any new hooks from the platform (for slash commands only) are added to src/deepwork/schemas/job_schema.py
1414
2. All existing adapters in src/deepwork/adapters.py are updated with the new hook fields
1515
(set to None/null if the platform doesn't support that hook)
@@ -242,7 +242,7 @@ Ensure all outputs are:
242242
This step uses an iterative quality validation loop. After completing your work, stop hook(s) will evaluate whether the outputs meet quality criteria. If criteria are not met, you will be prompted to continue refining.
243243

244244
### Quality Criteria
245-
Verify the capability additions meet ALL criteria:
245+
**AGENT: TAKE ACTION** - Verify the capability additions meet ALL criteria:
246246
1. Any new hooks from the platform (for slash commands only) are added to src/deepwork/schemas/job_schema.py
247247
2. All existing adapters in src/deepwork/adapters.py are updated with the new hook fields
248248
(set to None/null if the platform doesn't support that hook)

.claude/commands/uw.add_platform.implement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hooks:
1111
1212
## Quality Criteria
1313
14-
Verify the implementation meets ALL criteria:
14+
**AGENT: TAKE ACTION** - Verify the implementation meets ALL criteria:
1515
1. Platform adapter class is added to src/deepwork/adapters.py
1616
2. Templates exist in src/deepwork/templates/<platform>/ with appropriate command structure
1717
3. Tests exist for all new functionality
@@ -343,7 +343,7 @@ This step uses an iterative quality validation loop. After completing your work,
343343
344344
The validation script will be executed automatically when you attempt to complete this step.
345345
### Quality Criteria (2)
346-
Verify the implementation meets ALL criteria:
346+
**AGENT: TAKE ACTION** - Verify the implementation meets ALL criteria:
347347
1. Platform adapter class is added to src/deepwork/adapters.py
348348
2. Templates exist in src/deepwork/templates/<platform>/ with appropriate command structure
349349
3. Tests exist for all new functionality

.claude/commands/uw.add_platform.research.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hooks:
99
1010
## Quality Criteria
1111
12-
Verify the research output meets ALL criteria:
12+
**AGENT: TAKE ACTION** - Verify the research output meets ALL criteria:
1313
1. Both files exist in doc/platforms/<platform>/: cli_configuration.md and hooks_system.md
1414
2. Each file has a comment at the top with:
1515
- Last updated date
@@ -288,7 +288,7 @@ Ensure all outputs are:
288288
This step uses an iterative quality validation loop. After completing your work, stop hook(s) will evaluate whether the outputs meet quality criteria. If criteria are not met, you will be prompted to continue refining.
289289

290290
### Quality Criteria
291-
Verify the research output meets ALL criteria:
291+
**AGENT: TAKE ACTION** - Verify the research output meets ALL criteria:
292292
1. Both files exist in doc/platforms/<platform>/: cli_configuration.md and hooks_system.md
293293
2. Each file has a comment at the top with:
294294
- Last updated date

.claude/commands/uw.add_platform.verify.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hooks:
99
1010
## Quality Criteria
1111
12-
Verify the installation meets ALL criteria:
12+
**AGENT: TAKE ACTION** - Verify the installation meets ALL criteria:
1313
1. Platform-specific directories/files are added to the deepwork repo as needed
1414
2. Running `deepwork install --platform <platform>` completes without errors
1515
3. Expected command files are created in the platform's command directory
@@ -213,7 +213,7 @@ No specific files are output by this command.
213213
This step uses an iterative quality validation loop. After completing your work, stop hook(s) will evaluate whether the outputs meet quality criteria. If criteria are not met, you will be prompted to continue refining.
214214

215215
### Quality Criteria
216-
Verify the installation meets ALL criteria:
216+
**AGENT: TAKE ACTION** - Verify the installation meets ALL criteria:
217217
1. Platform-specific directories/files are added to the deepwork repo as needed
218218
2. Running `deepwork install --platform <platform>` completes without errors
219219
3. Expected command files are created in the platform's command directory

.claude/commands/uw.deepwork_jobs.define.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hooks:
99
1010
## Quality Criteria
1111
12-
Verify the job.yml output meets ALL quality criteria before completing:
12+
**AGENT: TAKE ACTION** - Verify the job.yml output meets ALL quality criteria before completing:
1313
1414
1. **User Understanding**: Did you fully understand the user's workflow by asking structured questions?
1515
2. **Structured Questions Used**: Did you ask structured questions (using the AskUserQuestion tool) to gather user input?
@@ -427,7 +427,7 @@ Ensure all outputs are:
427427
This step uses an iterative quality validation loop. After completing your work, stop hook(s) will evaluate whether the outputs meet quality criteria. If criteria are not met, you will be prompted to continue refining.
428428

429429
### Quality Criteria
430-
Verify the job.yml output meets ALL quality criteria before completing:
430+
**AGENT: TAKE ACTION** - Verify the job.yml output meets ALL quality criteria before completing:
431431

432432
1. **User Understanding**: Did you fully understand the user's workflow by asking structured questions?
433433
2. **Structured Questions Used**: Did you ask structured questions (using the AskUserQuestion tool) to gather user input?

.claude/commands/uw.deepwork_jobs.implement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hooks:
99
1010
## Quality Criteria
1111
12-
Verify the implementation meets ALL quality criteria before completing:
12+
**AGENT: TAKE ACTION** - Verify the implementation meets ALL quality criteria before completing:
1313
1414
1. **Directory Structure**: Is `.deepwork/jobs/[job_name]/` created correctly?
1515
2. **Complete Instructions**: Are ALL step instruction files complete (not stubs or placeholders)?
@@ -345,7 +345,7 @@ Ensure all outputs are:
345345
This step uses an iterative quality validation loop. After completing your work, stop hook(s) will evaluate whether the outputs meet quality criteria. If criteria are not met, you will be prompted to continue refining.
346346

347347
### Quality Criteria
348-
Verify the implementation meets ALL quality criteria before completing:
348+
**AGENT: TAKE ACTION** - Verify the implementation meets ALL quality criteria before completing:
349349

350350
1. **Directory Structure**: Is `.deepwork/jobs/[job_name]/` created correctly?
351351
2. **Complete Instructions**: Are ALL step instruction files complete (not stubs or placeholders)?

.claude/commands/uw.update.job.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hooks:
99
1010
## Quality Criteria
1111
12-
Verify the update process completed successfully:
12+
**AGENT: TAKE ACTION** - Verify the update process completed successfully:
1313
1. Changes were made in src/deepwork/standard_jobs/[job_name]/ (NOT in .deepwork/jobs/)
1414
2. `deepwork install --platform claude` was run
1515
3. Files in .deepwork/jobs/ match the source files
@@ -161,7 +161,7 @@ No specific files are output by this command.
161161
This step uses an iterative quality validation loop. After completing your work, stop hook(s) will evaluate whether the outputs meet quality criteria. If criteria are not met, you will be prompted to continue refining.
162162

163163
### Quality Criteria
164-
Verify the update process completed successfully:
164+
**AGENT: TAKE ACTION** - Verify the update process completed successfully:
165165
1. Changes were made in src/deepwork/standard_jobs/[job_name]/ (NOT in .deepwork/jobs/)
166166
2. `deepwork install --platform claude` was run
167167
3. Files in .deepwork/jobs/ match the source files

.deepwork.policy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
trigger: "src/**/*"
33
safety: "README.md"
44
instructions: |
5-
Source code in src/ has been modified. Please review README.md for accuracy:
5+
**AGENT: TAKE ACTION** - Source code in src/ has been modified. Please review README.md for accuracy:
66
1. Verify project overview still reflects current functionality
77
2. Check that usage examples are still correct
88
3. Ensure installation/setup instructions remain valid
@@ -12,7 +12,7 @@
1212
trigger: "src/**/*"
1313
safety: "doc/architecture.md"
1414
instructions: |
15-
Source code in src/ has been modified. Please review doc/architecture.md for accuracy:
15+
**AGENT: TAKE ACTION** - Source code in src/ has been modified. Please review doc/architecture.md for accuracy:
1616
1. Verify the documented architecture matches the current implementation
1717
2. Check that file paths and directory structures are still correct
1818
3. Ensure component descriptions reflect actual behavior
@@ -26,7 +26,7 @@
2626
- "src/deepwork/standard_jobs/deepwork_jobs/**/*"
2727
- "src/deepwork/standard_jobs/deepwork_policy/**/*"
2828
instructions: |
29-
You modified files in `.deepwork/jobs/deepwork_jobs/` or `.deepwork/jobs/deepwork_policy/`.
29+
**AGENT: TAKE ACTION** - You modified files in `.deepwork/jobs/deepwork_jobs/` or `.deepwork/jobs/deepwork_policy/`.
3030
3131
**These are installed copies, NOT the source of truth!**
3232
@@ -48,7 +48,7 @@
4848
- "pyproject.toml"
4949
- "CHANGELOG.md"
5050
instructions: |
51-
Source code in src/ has been modified. **You MUST evaluate whether version and changelog updates are needed.**
51+
**AGENT: TAKE ACTION** - Source code in src/ has been modified. **You MUST evaluate whether version and changelog updates are needed.**
5252
5353
**Evaluate the changes:**
5454
1. Is this a bug fix, new feature, breaking change, or internal refactor?

.deepwork/jobs/add_platform/job.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ steps:
3939
hooks:
4040
after_agent:
4141
- prompt: |
42-
Verify the research output meets ALL criteria:
42+
**AGENT: TAKE ACTION** - Verify the research output meets ALL criteria:
4343
1. Both files exist in doc/platforms/<platform>/: cli_configuration.md and hooks_system.md
4444
2. Each file has a comment at the top with:
4545
- Last updated date
@@ -66,7 +66,7 @@ steps:
6666
hooks:
6767
after_agent:
6868
- prompt: |
69-
Verify the capability additions meet ALL criteria:
69+
**AGENT: TAKE ACTION** - Verify the capability additions meet ALL criteria:
7070
1. Any new hooks from the platform (for slash commands only) are added to src/deepwork/schemas/job_schema.py
7171
2. All existing adapters in src/deepwork/adapters.py are updated with the new hook fields
7272
(set to None/null if the platform doesn't support that hook)
@@ -99,7 +99,7 @@ steps:
9999
after_agent:
100100
- script: hooks/run_tests.sh
101101
- prompt: |
102-
Verify the implementation meets ALL criteria:
102+
**AGENT: TAKE ACTION** - Verify the implementation meets ALL criteria:
103103
1. Platform adapter class is added to src/deepwork/adapters.py
104104
2. Templates exist in src/deepwork/templates/<platform>/ with appropriate command structure
105105
3. Tests exist for all new functionality
@@ -125,7 +125,7 @@ steps:
125125
hooks:
126126
after_agent:
127127
- prompt: |
128-
Verify the installation meets ALL criteria:
128+
**AGENT: TAKE ACTION** - Verify the installation meets ALL criteria:
129129
1. Platform-specific directories/files are added to the deepwork repo as needed
130130
2. Running `deepwork install --platform <platform>` completes without errors
131131
3. Expected command files are created in the platform's command directory

0 commit comments

Comments
 (0)