|
7 | 7 | - hooks: |
8 | 8 | - type: command |
9 | 9 | command: ".deepwork/jobs/add_platform/hooks/run_tests.sh" |
10 | | - - type: prompt |
11 | | - prompt: | |
12 | | - Verify the implementation meets ALL criteria: |
13 | | - 1. Platform adapter class is added to src/deepwork/adapters.py |
14 | | - 2. Templates exist in src/deepwork/templates/<platform>/ with appropriate command structure |
15 | | - 3. Tests exist for all new functionality |
16 | | - 4. Test coverage is 100% for new code (run: uv run pytest --cov) |
17 | | - 5. All tests pass |
18 | | - 6. README.md is updated with: |
19 | | - - New platform listed in supported platforms |
20 | | - - Installation instructions for the platform |
21 | | - - Any platform-specific notes |
22 | | -
|
23 | | - If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`. |
| 10 | + SubagentStop: |
| 11 | + - hooks: |
| 12 | + - type: command |
| 13 | + command: ".deepwork/jobs/add_platform/hooks/run_tests.sh" |
24 | 14 |
|
25 | 15 | --- |
26 | 16 |
|
27 | 17 | # add_platform.implement |
28 | 18 |
|
29 | | -**Step 3/4** in **add_platform** workflow |
| 19 | +**Step 3/4** in **integrate** workflow |
| 20 | + |
| 21 | +> Full workflow to integrate a new AI platform into DeepWork |
30 | 22 |
|
31 | 23 | > Adds a new AI platform to DeepWork with adapter, templates, and tests. Use when integrating Cursor, Windsurf, or other AI coding tools. |
32 | 24 |
|
@@ -272,7 +264,7 @@ The templates use Jinja2 and should produce files that match exactly what the pl |
272 | 264 |
|
273 | 265 | A workflow for adding support for a new AI platform (like Cursor, Windsurf, etc.) to DeepWork. |
274 | 266 |
|
275 | | -This job guides you through four phases: |
| 267 | +The **integrate** workflow guides you through four phases: |
276 | 268 | 1. **Research**: Capture the platform's CLI configuration and hooks system documentation |
277 | 269 | 2. **Add Capabilities**: Update the job schema and adapters with any new hook events |
278 | 270 | 3. **Implement**: Create the platform adapter, templates, tests (100% coverage), and README updates |
@@ -317,19 +309,11 @@ Use branch format: `deepwork/add_platform-[instance]-YYYYMMDD` |
317 | 309 | - Do NOT proceed without required inputs; ask the user if any are missing |
318 | 310 | - Do NOT modify files outside the scope of this step's defined outputs |
319 | 311 |
|
320 | | -## Quality Validation |
321 | | -
|
322 | | -Stop hooks will automatically validate your work. The loop continues until all criteria pass. |
323 | | -
|
324 | | -
|
325 | 312 | **Validation script**: `.deepwork/jobs/add_platform/hooks/run_tests.sh` (runs automatically) |
326 | | -
|
327 | | -**To complete**: Include `<promise>✓ Quality Criteria Met</promise>` in your final response only after verifying ALL criteria are satisfied. |
328 | | -
|
329 | 313 | ## On Completion |
330 | 314 |
|
331 | 315 | 1. Verify outputs are created |
332 | | -2. Inform user: "Step 3/4 complete, outputs: templates/, tests/, README.md" |
| 316 | +2. Inform user: "integrate step 3/4 complete, outputs: templates/, tests/, README.md" |
333 | 317 | 3. **Continue workflow**: Use Skill tool to invoke `/add_platform.verify` |
334 | 318 |
|
335 | 319 | --- |
|
0 commit comments