@duypham93/openkit 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/agents/architect-agent.md +10 -9
  2. package/agents/ba-agent.md +8 -7
  3. package/agents/code-reviewer.md +4 -3
  4. package/agents/fullstack-agent.md +5 -4
  5. package/agents/master-orchestrator.md +15 -15
  6. package/agents/pm-agent.md +8 -7
  7. package/agents/qa-agent.md +9 -8
  8. package/agents/tech-lead-agent.md +9 -8
  9. package/assets/install-bundle/opencode/agents/ArchitectAgent.md +13 -7
  10. package/assets/install-bundle/opencode/agents/BAAgent.md +11 -5
  11. package/assets/install-bundle/opencode/agents/CodeReviewer.md +7 -1
  12. package/assets/install-bundle/opencode/agents/FullstackAgent.md +9 -2
  13. package/assets/install-bundle/opencode/agents/MasterOrchestrator.md +19 -11
  14. package/assets/install-bundle/opencode/agents/PMAgent.md +11 -5
  15. package/assets/install-bundle/opencode/agents/QAAgent.md +13 -6
  16. package/assets/install-bundle/opencode/agents/TechLeadAgent.md +12 -6
  17. package/assets/install-bundle/opencode/commands/brainstorm.md +13 -6
  18. package/assets/install-bundle/opencode/commands/delivery.md +15 -8
  19. package/assets/install-bundle/opencode/commands/execute-plan.md +15 -8
  20. package/assets/install-bundle/opencode/commands/migrate.md +16 -9
  21. package/assets/install-bundle/opencode/commands/quick-task.md +14 -7
  22. package/assets/install-bundle/opencode/commands/task.md +16 -8
  23. package/assets/install-bundle/opencode/commands/write-plan.md +15 -8
  24. package/commands/brainstorm.md +10 -9
  25. package/commands/delivery.md +12 -12
  26. package/commands/execute-plan.md +12 -11
  27. package/commands/migrate.md +13 -13
  28. package/commands/quick-task.md +11 -11
  29. package/commands/task.md +12 -12
  30. package/commands/write-plan.md +12 -11
  31. package/package.json +1 -1
  32. package/src/global/paths.js +6 -0
  33. package/src/global/workspace-shim.js +187 -0
  34. package/src/global/workspace-state.js +7 -1
  35. package/tests/cli/openkit-cli.test.js +71 -0
@@ -5,7 +5,13 @@ mode: subagent
5
5
 
6
6
  # Tech Lead Agent - Delivery Planner
7
7
 
8
- You are the Tech Lead for OpenKit full-delivery and migration work. `context/core/workflow.md` defines lane behavior, stage order, and approvals; this file defines only the runtime contract for `TechLeadAgent`.
8
+ You are the Tech Lead for OpenKit full-delivery and migration work. `.opencode/openkit/context/core/workflow.md` defines lane behavior, stage order, and approvals; this file defines only the runtime contract for `TechLeadAgent`.
9
+
10
+ ## Global runtime path rule
11
+
12
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs, templates, and workflow tools.
13
+ - Read canonical OpenKit files from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
14
+ - Use `.opencode/openkit/workflow-state.json` when resuming or validating handoff context.
9
15
 
10
16
  ## Required Inputs
11
17
 
@@ -16,10 +22,10 @@ You are the Tech Lead for OpenKit full-delivery and migration work. `context/cor
16
22
 
17
23
  ## Required Context Reads
18
24
 
19
- - `context/core/workflow.md`
20
- - `context/core/code-quality.md`
21
- - `context/core/project-config.md`
22
- - `docs/templates/implementation-plan-template.md` when present
25
+ - `.opencode/openkit/context/core/workflow.md`
26
+ - `.opencode/openkit/context/core/code-quality.md`
27
+ - `.opencode/openkit/context/core/project-config.md`
28
+ - `.opencode/openkit/docs/templates/implementation-plan-template.md` when present
23
29
  - the approved architecture, spec, and brief artifacts that define scope and acceptance
24
30
 
25
31
  ## Role-Local Responsibilities
@@ -33,7 +39,7 @@ You are the Tech Lead for OpenKit full-delivery and migration work. `context/cor
33
39
  ## Expected Output Artifact
34
40
 
35
41
  - implementation plan at `docs/plans/YYYY-MM-DD-<feature>.md`
36
- - start from `docs/templates/implementation-plan-template.md` when available so `FullstackAgent` receives a stable execution contract
42
+ - start from `.opencode/openkit/docs/templates/implementation-plan-template.md` when available so `FullstackAgent` receives a stable execution contract
37
43
 
38
44
  ## Approval-Ready Conditions
39
45
 
@@ -6,6 +6,13 @@ description: "Starts Migration or Full Delivery design exploration with the brai
6
6
 
7
7
  Use `/brainstorm` when work is already in `Migration` or `Full Delivery` mode and the team needs to refine design direction before implementation planning.
8
8
 
9
+ ## Global OpenKit path rule
10
+
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
+
9
16
  ## Preconditions
10
17
 
11
18
  - The current `mode` must be `full` or `migration`
@@ -14,11 +21,11 @@ Use `/brainstorm` when work is already in `Migration` or `Full Delivery` mode an
14
21
 
15
22
  ## Canonical docs to load
16
23
 
17
- - `AGENTS.md`
18
- - `context/navigation.md`
19
- - `context/core/workflow.md`
20
- - `context/core/project-config.md`
21
- - `.opencode/workflow-state.json` when resuming
24
+ - `.opencode/openkit/AGENTS.md`
25
+ - `.opencode/openkit/context/navigation.md`
26
+ - `.opencode/openkit/context/core/workflow.md`
27
+ - `.opencode/openkit/context/core/project-config.md`
28
+ - `.opencode/openkit/workflow-state.json` when resuming
22
29
  - skill `brainstorming`
23
30
 
24
31
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
@@ -39,6 +46,6 @@ For operator checks, use the current workflow-state utility surface: `status`, `
39
46
 
40
47
  ## Validation guidance
41
48
 
42
- - Use `node .opencode/workflow-state.js show` or `node .opencode/workflow-state.js validate` when resumable state needs confirmation
49
+ - Use `node .opencode/openkit/workflow-state.js show` or `node .opencode/openkit/workflow-state.js validate` when resumable state needs confirmation
43
50
  - Brainstorming output is design and workflow evidence, not app build/lint/test evidence
44
51
  - If the repository has no app-native validation commands for the eventual implementation, record that constraint honestly in downstream artifacts
@@ -6,6 +6,13 @@ description: "Starts the Full Delivery lane for feature work and higher-risk cha
6
6
 
7
7
  Use `/delivery` when work needs the full lane from the start or when quick or migration work has already escalated.
8
8
 
9
+ ## Global OpenKit path rule
10
+
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
+
9
16
  ## Preconditions
10
17
 
11
18
  - The request satisfies one or more full-lane triggers in `context/core/workflow.md`
@@ -13,13 +20,13 @@ Use `/delivery` when work needs the full lane from the start or when quick or mi
13
20
 
14
21
  ## Canonical docs to load
15
22
 
16
- - `AGENTS.md`
17
- - `context/navigation.md`
18
- - `context/core/workflow.md`
19
- - `context/core/lane-selection.md`
20
- - `context/core/approval-gates.md`
21
- - `context/core/project-config.md`
22
- - `.opencode/workflow-state.json` when resuming
23
+ - `.opencode/openkit/AGENTS.md`
24
+ - `.opencode/openkit/context/navigation.md`
25
+ - `.opencode/openkit/context/core/workflow.md`
26
+ - `.opencode/openkit/context/core/lane-selection.md`
27
+ - `.opencode/openkit/context/core/approval-gates.md`
28
+ - `.opencode/openkit/context/core/project-config.md`
29
+ - `.opencode/openkit/workflow-state.json` when resuming
23
30
 
24
31
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
25
32
 
@@ -40,6 +47,6 @@ For operator checks, use the current workflow-state utility surface: `status`, `
40
47
 
41
48
  ## Validation guidance
42
49
 
43
- - Use `node .opencode/workflow-state.js show` or `node .opencode/workflow-state.js validate` when resumable full-mode state needs confirmation
50
+ - Use `node .opencode/openkit/workflow-state.js show` or `node .opencode/openkit/workflow-state.js validate` when resumable full-mode state needs confirmation
44
51
  - Keep implementation and QA validation honest to the repository's actual tooling
45
52
  - Do not overstate automation when the repository still lacks app-native build, lint, or test commands
@@ -6,6 +6,13 @@ description: "Executes an approved Full Delivery or Migration implementation pla
6
6
 
7
7
  Use `/execute-plan` when an approved Full Delivery or Migration implementation plan is ready to be carried out.
8
8
 
9
+ ## Global OpenKit path rule
10
+
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
+
9
16
  ## Preconditions
10
17
 
11
18
  - The current `mode` must be `full` or `migration`
@@ -14,13 +21,13 @@ Use `/execute-plan` when an approved Full Delivery or Migration implementation p
14
21
 
15
22
  ## Canonical docs to load
16
23
 
17
- - `AGENTS.md`
18
- - `context/navigation.md`
19
- - `context/core/workflow.md`
20
- - `context/core/project-config.md`
21
- - `context/core/session-resume.md`
22
- - `context/core/workflow-state-schema.md`
23
- - `.opencode/workflow-state.json`
24
+ - `.opencode/openkit/AGENTS.md`
25
+ - `.opencode/openkit/context/navigation.md`
26
+ - `.opencode/openkit/context/core/workflow.md`
27
+ - `.opencode/openkit/context/core/project-config.md`
28
+ - `.opencode/openkit/context/core/session-resume.md`
29
+ - `.opencode/openkit/context/core/workflow-state-schema.md`
30
+ - `.opencode/openkit/workflow-state.json`
24
31
 
25
32
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
26
33
 
@@ -39,6 +46,6 @@ For operator checks, use the current workflow-state utility surface: `status`, `
39
46
 
40
47
  ## Validation guidance
41
48
 
42
- - Run `node .opencode/workflow-state.js validate` when you need to confirm workflow-state integrity before execution
49
+ - Run `node .opencode/openkit/workflow-state.js validate` when you need to confirm workflow-state integrity before execution
43
50
  - Use repo-native app build, lint, or test commands only if they actually exist and are documented
44
51
  - If the repository still lacks app-native validation tooling, report manual checks or other real evidence instead of inventing automation
@@ -6,6 +6,13 @@ description: "Starts the Migration lane for upgrades, framework migrations, and
6
6
 
7
7
  Use `/migrate` when work is primarily a project migration or upgrade effort such as framework version jumps, dependency replacement, legacy API removal, or compatibility remediation.
8
8
 
9
+ ## Global OpenKit path rule
10
+
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs, templates, and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
+
9
16
  Core migration principle:
10
17
 
11
18
  - preserve behavior first, decouple blockers where necessary, and migrate incrementally instead of rewriting the product
@@ -20,15 +27,15 @@ Core migration principle:
20
27
 
21
28
  ## Canonical docs to load
22
29
 
23
- - `AGENTS.md`
24
- - `context/navigation.md`
25
- - `context/core/workflow.md`
26
- - `context/core/lane-selection.md`
27
- - `context/core/approval-gates.md`
28
- - `context/core/project-config.md`
29
- - `docs/templates/migration-baseline-checklist.md`
30
- - `docs/templates/migration-verify-checklist.md`
31
- - `.opencode/workflow-state.json` when resuming
30
+ - `.opencode/openkit/AGENTS.md`
31
+ - `.opencode/openkit/context/navigation.md`
32
+ - `.opencode/openkit/context/core/workflow.md`
33
+ - `.opencode/openkit/context/core/lane-selection.md`
34
+ - `.opencode/openkit/context/core/approval-gates.md`
35
+ - `.opencode/openkit/context/core/project-config.md`
36
+ - `.opencode/openkit/docs/templates/migration-baseline-checklist.md`
37
+ - `.opencode/openkit/docs/templates/migration-verify-checklist.md`
38
+ - `.opencode/openkit/workflow-state.json` when resuming
32
39
 
33
40
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
34
41
 
@@ -6,6 +6,13 @@ description: "Starts the Quick Task lane for narrow, low-risk work."
6
6
 
7
7
  Use `/quick-task` when the user wants to enter the quick lane directly for bounded small-to-medium work that stays within the quick-lane limits, remains lower risk, and uses a short verification path.
8
8
 
9
+ ## Global OpenKit path rule
10
+
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/` or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
+
9
16
  ## Preconditions
10
17
 
11
18
  - The request must satisfy quick-lane criteria in `context/core/workflow.md`
@@ -13,12 +20,12 @@ Use `/quick-task` when the user wants to enter the quick lane directly for bound
13
20
 
14
21
  ## Canonical docs to load
15
22
 
16
- - `AGENTS.md`
17
- - `context/navigation.md`
18
- - `context/core/workflow.md`
19
- - `context/core/lane-selection.md`
20
- - `context/core/project-config.md`
21
- - `.opencode/workflow-state.json` when resuming
23
+ - `.opencode/openkit/AGENTS.md`
24
+ - `.opencode/openkit/context/navigation.md`
25
+ - `.opencode/openkit/context/core/workflow.md`
26
+ - `.opencode/openkit/context/core/lane-selection.md`
27
+ - `.opencode/openkit/context/core/project-config.md`
28
+ - `.opencode/openkit/workflow-state.json` when resuming
22
29
 
23
30
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
24
31
 
@@ -42,4 +49,4 @@ For operator checks, use the current workflow-state utility surface: `status`, `
42
49
 
43
50
  - Keep quick-task validation short and real, following `context/core/project-config.md`
44
51
  - If no app-native test or lint command exists, document the manual or artifact-based verification path clearly
45
- - Use `node .opencode/workflow-state.js validate` only for workflow-state checks, not as a substitute for application testing
52
+ - Use `node .opencode/openkit/workflow-state.js validate` only for workflow-state checks, not as a substitute for application testing
@@ -6,6 +6,14 @@ description: "Default entry command. Lets the Master Orchestrator classify work
6
6
 
7
7
  Use `/task` when the user wants the default entrypoint and expects the Master Orchestrator to choose the lane.
8
8
 
9
+ ## Global OpenKit path rule
10
+
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/workflow-state.json`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - For workflow-state CLI operations in global mode, use `node .opencode/openkit/workflow-state.js <command>`.
15
+ - Use the target repository only for product/application code, local build tooling, and project-specific docs.
16
+
9
17
  ## Preconditions
10
18
 
11
19
  - A user request exists with enough information to summarize the initial goal, scope, and risk
@@ -13,12 +21,12 @@ Use `/task` when the user wants the default entrypoint and expects the Master Or
13
21
 
14
22
  ## Canonical docs to load
15
23
 
16
- - `AGENTS.md`
17
- - `context/navigation.md`
18
- - `context/core/workflow.md`
19
- - `context/core/lane-selection.md`
20
- - `context/core/project-config.md`
21
- - `.opencode/workflow-state.json` when resuming
24
+ - `.opencode/openkit/AGENTS.md`
25
+ - `.opencode/openkit/context/navigation.md`
26
+ - `.opencode/openkit/context/core/workflow.md`
27
+ - `.opencode/openkit/context/core/lane-selection.md`
28
+ - `.opencode/openkit/context/core/project-config.md`
29
+ - `.opencode/openkit/workflow-state.json` when resuming
22
30
 
23
31
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
24
32
 
@@ -41,6 +49,6 @@ For operator checks, use the current workflow-state utility surface: `status`, `
41
49
 
42
50
  ## Validation guidance
43
51
 
44
- - Use `node .opencode/workflow-state.js status` or `node .opencode/workflow-state.js show` to inspect resumable state before rerouting when needed
45
- - Use `node .opencode/workflow-state.js validate` if the saved state looks stale or manually edited
52
+ - Use `node .opencode/openkit/workflow-state.js status` or `node .opencode/openkit/workflow-state.js show` to inspect resumable state before rerouting when needed
53
+ - Use `node .opencode/openkit/workflow-state.js validate` to validate stale or manually edited state when needed
46
54
  - Do not imply repo-native app build, lint, or test commands exist when this repository has not defined them
@@ -6,6 +6,13 @@ description: "Triggers the writing-plans skill to create bite-sized tasks from s
6
6
 
7
7
  Use `/write-plan` to create an implementation plan for work currently in `Full Delivery` or `Migration` mode.
8
8
 
9
+ ## Global OpenKit path rule
10
+
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs, templates, and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
+
9
16
  ## Preconditions
10
17
 
11
18
  - The current `mode` must be `full` or `migration`
@@ -15,13 +22,13 @@ Use `/write-plan` to create an implementation plan for work currently in `Full D
15
22
 
16
23
  ## Canonical docs to load
17
24
 
18
- - `AGENTS.md`
19
- - `context/navigation.md`
20
- - `context/core/workflow.md`
21
- - `context/core/project-config.md`
22
- - `.opencode/workflow-state.json`
23
- - `docs/templates/implementation-plan-template.md`
24
- - `docs/templates/migration-report-template.md` when migration work benefits from one running artifact
25
+ - `.opencode/openkit/AGENTS.md`
26
+ - `.opencode/openkit/context/navigation.md`
27
+ - `.opencode/openkit/context/core/workflow.md`
28
+ - `.opencode/openkit/context/core/project-config.md`
29
+ - `.opencode/openkit/workflow-state.json`
30
+ - `.opencode/openkit/docs/templates/implementation-plan-template.md`
31
+ - `.opencode/openkit/docs/templates/migration-report-template.md` when migration work benefits from one running artifact
25
32
  - skill `writing-plans`
26
33
 
27
34
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
@@ -47,4 +54,4 @@ For operator checks, use the current workflow-state utility surface: `status`, `
47
54
  - The plan should name the strongest real validation path available in the repository
48
55
  - In migration mode, use `migration_report` when handoffs would benefit from a single running narrative instead of scattered notes
49
56
  - If no repo-native app build, lint, or test command exists, say that explicitly in the plan instead of guessing a stack command
50
- - Use `node .opencode/workflow-state.js validate` only to confirm workflow state, not to stand in for implementation verification
57
+ - Use `node .opencode/openkit/workflow-state.js validate` only to confirm workflow state, not to stand in for implementation verification
@@ -8,9 +8,10 @@ Use `/brainstorm` when work is already in `Migration` or `Full Delivery` mode an
8
8
 
9
9
  ## Global OpenKit path rule
10
10
 
11
- - In globally installed OpenKit sessions, resolve OpenKit-owned docs from `OPENKIT_KIT_ROOT` instead of assuming the target repository contains `AGENTS.md`, `context/`, or `.opencode/`.
12
- - Resolve resumable workflow state from `OPENKIT_WORKFLOW_STATE`.
13
- - Use `node "${OPENKIT_KIT_ROOT}/.opencode/workflow-state.js" --state "${OPENKIT_WORKFLOW_STATE}" <command>` for workflow-state checks in global mode.
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
14
15
 
15
16
  ## Preconditions
16
17
 
@@ -20,11 +21,11 @@ Use `/brainstorm` when work is already in `Migration` or `Full Delivery` mode an
20
21
 
21
22
  ## Canonical docs to load
22
23
 
23
- - `AGENTS.md`
24
- - `context/navigation.md`
25
- - `context/core/workflow.md`
26
- - `context/core/project-config.md`
27
- - `.opencode/workflow-state.json` when resuming
24
+ - `.opencode/openkit/AGENTS.md`
25
+ - `.opencode/openkit/context/navigation.md`
26
+ - `.opencode/openkit/context/core/workflow.md`
27
+ - `.opencode/openkit/context/core/project-config.md`
28
+ - `.opencode/openkit/workflow-state.json` when resuming
28
29
  - skill `brainstorming`
29
30
 
30
31
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
@@ -45,6 +46,6 @@ For operator checks, use the current workflow-state utility surface: `status`, `
45
46
 
46
47
  ## Validation guidance
47
48
 
48
- - Use the workflow-state utility against `OPENKIT_WORKFLOW_STATE` when resumable state needs confirmation
49
+ - Use `node .opencode/openkit/workflow-state.js show` or `node .opencode/openkit/workflow-state.js validate` when resumable state needs confirmation
49
50
  - Brainstorming output is design and workflow evidence, not app build/lint/test evidence
50
51
  - If the repository has no app-native validation commands for the eventual implementation, record that constraint honestly in downstream artifacts
@@ -8,10 +8,10 @@ Use `/delivery` when work needs the full lane from the start or when quick or mi
8
8
 
9
9
  ## Global OpenKit path rule
10
10
 
11
- - In globally installed OpenKit sessions, resolve OpenKit-owned docs from `OPENKIT_KIT_ROOT` instead of assuming the target repository contains `AGENTS.md`, `context/`, or `.opencode/`.
12
- - For example, `context/core/workflow.md` means `${OPENKIT_KIT_ROOT}/context/core/workflow.md`.
13
- - Resolve resumable workflow state from `OPENKIT_WORKFLOW_STATE`.
14
- - Use `node "${OPENKIT_KIT_ROOT}/.opencode/workflow-state.js" --state "${OPENKIT_WORKFLOW_STATE}" <command>` for workflow-state checks in global mode.
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
15
 
16
16
  ## Preconditions
17
17
 
@@ -20,13 +20,13 @@ Use `/delivery` when work needs the full lane from the start or when quick or mi
20
20
 
21
21
  ## Canonical docs to load
22
22
 
23
- - `AGENTS.md`
24
- - `context/navigation.md`
25
- - `context/core/workflow.md`
26
- - `context/core/lane-selection.md`
27
- - `context/core/approval-gates.md`
28
- - `context/core/project-config.md`
29
- - `.opencode/workflow-state.json` when resuming
23
+ - `.opencode/openkit/AGENTS.md`
24
+ - `.opencode/openkit/context/navigation.md`
25
+ - `.opencode/openkit/context/core/workflow.md`
26
+ - `.opencode/openkit/context/core/lane-selection.md`
27
+ - `.opencode/openkit/context/core/approval-gates.md`
28
+ - `.opencode/openkit/context/core/project-config.md`
29
+ - `.opencode/openkit/workflow-state.json` when resuming
30
30
 
31
31
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
32
32
 
@@ -47,6 +47,6 @@ For operator checks, use the current workflow-state utility surface: `status`, `
47
47
 
48
48
  ## Validation guidance
49
49
 
50
- - Use the workflow-state utility against `OPENKIT_WORKFLOW_STATE` when resumable full-mode state needs confirmation
50
+ - Use `node .opencode/openkit/workflow-state.js show` or `node .opencode/openkit/workflow-state.js validate` when resumable full-mode state needs confirmation
51
51
  - Keep implementation and QA validation honest to the repository's actual tooling
52
52
  - Do not overstate automation when the repository still lacks app-native build, lint, or test commands
@@ -8,9 +8,10 @@ Use `/execute-plan` when an approved Full Delivery or Migration implementation p
8
8
 
9
9
  ## Global OpenKit path rule
10
10
 
11
- - In globally installed OpenKit sessions, resolve OpenKit-owned docs from `OPENKIT_KIT_ROOT` instead of assuming the target repository contains `AGENTS.md`, `context/`, `docs/`, or `.opencode/`.
12
- - Resolve resumable workflow state from `OPENKIT_WORKFLOW_STATE`.
13
- - Use `node "${OPENKIT_KIT_ROOT}/.opencode/workflow-state.js" --state "${OPENKIT_WORKFLOW_STATE}" <command>` for workflow-state checks in global mode.
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
14
15
 
15
16
  ## Preconditions
16
17
 
@@ -20,13 +21,13 @@ Use `/execute-plan` when an approved Full Delivery or Migration implementation p
20
21
 
21
22
  ## Canonical docs to load
22
23
 
23
- - `AGENTS.md`
24
- - `context/navigation.md`
25
- - `context/core/workflow.md`
26
- - `context/core/project-config.md`
27
- - `context/core/session-resume.md`
28
- - `context/core/workflow-state-schema.md`
29
- - `.opencode/workflow-state.json`
24
+ - `.opencode/openkit/AGENTS.md`
25
+ - `.opencode/openkit/context/navigation.md`
26
+ - `.opencode/openkit/context/core/workflow.md`
27
+ - `.opencode/openkit/context/core/project-config.md`
28
+ - `.opencode/openkit/context/core/session-resume.md`
29
+ - `.opencode/openkit/context/core/workflow-state-schema.md`
30
+ - `.opencode/openkit/workflow-state.json`
30
31
 
31
32
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
32
33
 
@@ -45,6 +46,6 @@ For operator checks, use the current workflow-state utility surface: `status`, `
45
46
 
46
47
  ## Validation guidance
47
48
 
48
- - Run the workflow-state utility against `OPENKIT_WORKFLOW_STATE` when you need to confirm workflow-state integrity before execution
49
+ - Run `node .opencode/openkit/workflow-state.js validate` when you need to confirm workflow-state integrity before execution
49
50
  - Use repo-native app build, lint, or test commands only if they actually exist and are documented
50
51
  - If the repository still lacks app-native validation tooling, report manual checks or other real evidence instead of inventing automation
@@ -8,10 +8,10 @@ Use `/migrate` when work is primarily a project migration or upgrade effort such
8
8
 
9
9
  ## Global OpenKit path rule
10
10
 
11
- - In globally installed OpenKit sessions, resolve OpenKit-owned docs from `OPENKIT_KIT_ROOT` instead of assuming the target repository contains `AGENTS.md`, `context/`, `docs/templates/`, or `.opencode/`.
12
- - For example, `context/core/workflow.md` means `${OPENKIT_KIT_ROOT}/context/core/workflow.md`, and `docs/templates/migration-baseline-checklist.md` means `${OPENKIT_KIT_ROOT}/docs/templates/migration-baseline-checklist.md`.
13
- - Resolve resumable workflow state from `OPENKIT_WORKFLOW_STATE`.
14
- - Use `node "${OPENKIT_KIT_ROOT}/.opencode/workflow-state.js" --state "${OPENKIT_WORKFLOW_STATE}" <command>` for workflow-state checks in global mode.
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs, templates, and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
15
 
16
16
  Core migration principle:
17
17
 
@@ -27,15 +27,15 @@ Core migration principle:
27
27
 
28
28
  ## Canonical docs to load
29
29
 
30
- - `AGENTS.md`
31
- - `context/navigation.md`
32
- - `context/core/workflow.md`
33
- - `context/core/lane-selection.md`
34
- - `context/core/approval-gates.md`
35
- - `context/core/project-config.md`
36
- - `docs/templates/migration-baseline-checklist.md`
37
- - `docs/templates/migration-verify-checklist.md`
38
- - `.opencode/workflow-state.json` when resuming
30
+ - `.opencode/openkit/AGENTS.md`
31
+ - `.opencode/openkit/context/navigation.md`
32
+ - `.opencode/openkit/context/core/workflow.md`
33
+ - `.opencode/openkit/context/core/lane-selection.md`
34
+ - `.opencode/openkit/context/core/approval-gates.md`
35
+ - `.opencode/openkit/context/core/project-config.md`
36
+ - `.opencode/openkit/docs/templates/migration-baseline-checklist.md`
37
+ - `.opencode/openkit/docs/templates/migration-verify-checklist.md`
38
+ - `.opencode/openkit/workflow-state.json` when resuming
39
39
 
40
40
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
41
41
 
@@ -8,10 +8,10 @@ Use `/quick-task` when the user wants to enter the quick lane directly for bound
8
8
 
9
9
  ## Global OpenKit path rule
10
10
 
11
- - In globally installed OpenKit sessions, treat `AGENTS.md`, `context/`, `docs/`, and `.opencode/` as kit-owned assets under `OPENKIT_KIT_ROOT`, not as files in the target repository.
12
- - Resolve canonical docs like `context/core/workflow.md` as `${OPENKIT_KIT_ROOT}/context/core/workflow.md`.
13
- - Resolve resumable workflow state from `OPENKIT_WORKFLOW_STATE`.
14
- - Use `node "${OPENKIT_KIT_ROOT}/.opencode/workflow-state.js" --state "${OPENKIT_WORKFLOW_STATE}" <command>` for workflow-state checks in global mode.
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/` or repo-root `.opencode/`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - Use `node .opencode/openkit/workflow-state.js <command>` for workflow-state checks in global mode.
15
15
 
16
16
  ## Preconditions
17
17
 
@@ -20,12 +20,12 @@ Use `/quick-task` when the user wants to enter the quick lane directly for bound
20
20
 
21
21
  ## Canonical docs to load
22
22
 
23
- - `AGENTS.md`
24
- - `context/navigation.md`
25
- - `context/core/workflow.md`
26
- - `context/core/lane-selection.md`
27
- - `context/core/project-config.md`
28
- - `.opencode/workflow-state.json` when resuming
23
+ - `.opencode/openkit/AGENTS.md`
24
+ - `.opencode/openkit/context/navigation.md`
25
+ - `.opencode/openkit/context/core/workflow.md`
26
+ - `.opencode/openkit/context/core/lane-selection.md`
27
+ - `.opencode/openkit/context/core/project-config.md`
28
+ - `.opencode/openkit/workflow-state.json` when resuming
29
29
 
30
30
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
31
31
 
@@ -49,4 +49,4 @@ For operator checks, use the current workflow-state utility surface: `status`, `
49
49
 
50
50
  - Keep quick-task validation short and real, following `context/core/project-config.md`
51
51
  - If no app-native test or lint command exists, document the manual or artifact-based verification path clearly
52
- - Use the workflow-state utility against `OPENKIT_WORKFLOW_STATE` only for workflow-state checks, not as a substitute for application testing
52
+ - Use `node .opencode/openkit/workflow-state.js validate` only for workflow-state checks, not as a substitute for application testing
package/commands/task.md CHANGED
@@ -8,10 +8,10 @@ Use `/task` when the user wants the default entrypoint and expects the Master Or
8
8
 
9
9
  ## Global OpenKit path rule
10
10
 
11
- - In globally installed OpenKit sessions, do not assume the target repository contains `AGENTS.md`, `context/`, `docs/`, or `.opencode/` from the OpenKit kit.
12
- - Resolve canonical OpenKit docs under the absolute kit root from `OPENKIT_KIT_ROOT`. For example, `context/core/workflow.md` means `${OPENKIT_KIT_ROOT}/context/core/workflow.md`.
13
- - Resolve workflow state from `OPENKIT_WORKFLOW_STATE`, not from the target repository, unless you are intentionally operating inside the OpenKit repository itself.
14
- - For workflow-state CLI operations in global mode, use `node "${OPENKIT_KIT_ROOT}/.opencode/workflow-state.js" --state "${OPENKIT_WORKFLOW_STATE}" <command>`.
11
+ - In globally installed OpenKit sessions, treat `.opencode/openkit/` as the repo-local compatibility surface for OpenKit-owned docs and workflow tools.
12
+ - Read canonical OpenKit docs from `.opencode/openkit/...`, not from repo-root `context/`, repo-root `AGENTS.md`, or repo-root `.opencode/workflow-state.json`.
13
+ - Use `.opencode/openkit/workflow-state.json` for resumable workflow state.
14
+ - For workflow-state CLI operations in global mode, use `node .opencode/openkit/workflow-state.js <command>`.
15
15
  - Use the target repository only for product/application code, local build tooling, and project-specific docs.
16
16
 
17
17
  ## Preconditions
@@ -21,12 +21,12 @@ Use `/task` when the user wants the default entrypoint and expects the Master Or
21
21
 
22
22
  ## Canonical docs to load
23
23
 
24
- - `AGENTS.md`
25
- - `context/navigation.md`
26
- - `context/core/workflow.md`
27
- - `context/core/lane-selection.md`
28
- - `context/core/project-config.md`
29
- - `.opencode/workflow-state.json` when resuming
24
+ - `.opencode/openkit/AGENTS.md`
25
+ - `.opencode/openkit/context/navigation.md`
26
+ - `.opencode/openkit/context/core/workflow.md`
27
+ - `.opencode/openkit/context/core/lane-selection.md`
28
+ - `.opencode/openkit/context/core/project-config.md`
29
+ - `.opencode/openkit/workflow-state.json` when resuming
30
30
 
31
31
  For operator checks, use the current workflow-state utility surface: `status`, `doctor`, `show`, and `validate`.
32
32
 
@@ -49,6 +49,6 @@ For operator checks, use the current workflow-state utility surface: `status`, `
49
49
 
50
50
  ## Validation guidance
51
51
 
52
- - Use the workflow-state utility against `OPENKIT_WORKFLOW_STATE` to inspect resumable state before rerouting when needed
53
- - Use the workflow-state utility against `OPENKIT_WORKFLOW_STATE` to validate stale or manually edited state when needed
52
+ - Use `node .opencode/openkit/workflow-state.js status` or `node .opencode/openkit/workflow-state.js show` to inspect resumable state before rerouting when needed
53
+ - Use `node .opencode/openkit/workflow-state.js validate` to validate stale or manually edited state when needed
54
54
  - Do not imply repo-native app build, lint, or test commands exist when this repository has not defined them