Browse Source

Merge pull request #787 from Chewji9875/fix/deepwork-deliverable-workspace-path

fix(deepwork): enforce saving deliverables outside internal .slim scratchpad
Alvin 3 weeks ago
parent
commit
c92e4744bb
3 changed files with 4 additions and 0 deletions
  1. 1 0
      src/hooks/deepwork/index.test.ts
  2. 1 0
      src/hooks/deepwork/index.ts
  3. 2 0
      src/skills/deepwork/SKILL.md

+ 1 - 0
src/hooks/deepwork/index.test.ts

@@ -69,6 +69,7 @@ describe('deepwork command hook', () => {
     );
     expect(output.parts[0].text).toContain('git-local yet OpenCode-readable');
     expect(output.parts[0].text).toContain('.slim/deepwork/');
+    expect(output.parts[0].text).toContain('save code/doc deliverables');
     expect(output.parts[0].text).toContain('@oracle');
     expect(output.parts[0].text).toContain('simplify/readability');
     expect(output.parts[0].text).toContain('refactor scheduler state');

+ 1 - 0
src/hooks/deepwork/index.ts

@@ -10,6 +10,7 @@ function activationPrompt(task: string): string {
     'Deepwork requirements:',
     '- before planning, delegation, or creating state, inspect existing `.gitignore` and `.ignore`; add only missing entries without duplicates: `.gitignore` must contain `.slim/deepwork/`, and `.ignore` must contain `!.slim/deepwork/` and `!.slim/deepwork/**`; this keeps state git-local yet OpenCode-readable;',
     '- create/update a `.slim/deepwork/` progress file;',
+    '- save code/doc deliverables to project paths (e.g. `src/`, `docs/`); reserve `.slim/deepwork/` strictly for progress files;',
     '- keep OpenCode todos synced with the current phase;',
     '- draft a plan and get `@oracle` review before implementation;',
     '- create and review a phased implementation/delegation plan;',

+ 2 - 0
src/skills/deepwork/SKILL.md

@@ -27,6 +27,8 @@ Required behavior:
   `!.slim/deepwork/` and `!.slim/deepwork/**`;
 - keep OpenCode todos aligned with the active deepwork phase;
 - create and maintain a local markdown progress file under `.slim/deepwork/`;
+- save code/doc deliverables to project paths (e.g. `src/`, `docs/`); reserve
+  `.slim/deepwork/` strictly for progress files;
 - write valuable research findings into that file as confirmed research context
   when they are received and reconciled;
 - draft a plan before implementation;