@duypham93/openkit 0.2.3 → 0.2.5

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 (37) hide show
  1. package/README.md +14 -0
  2. package/agents/architect-agent.md +13 -7
  3. package/agents/ba-agent.md +11 -5
  4. package/agents/code-reviewer.md +7 -1
  5. package/agents/fullstack-agent.md +9 -2
  6. package/agents/master-orchestrator.md +19 -11
  7. package/agents/pm-agent.md +11 -5
  8. package/agents/qa-agent.md +13 -6
  9. package/agents/tech-lead-agent.md +12 -6
  10. package/assets/install-bundle/opencode/agents/ArchitectAgent.md +13 -7
  11. package/assets/install-bundle/opencode/agents/BAAgent.md +11 -5
  12. package/assets/install-bundle/opencode/agents/CodeReviewer.md +7 -1
  13. package/assets/install-bundle/opencode/agents/FullstackAgent.md +9 -2
  14. package/assets/install-bundle/opencode/agents/MasterOrchestrator.md +19 -11
  15. package/assets/install-bundle/opencode/agents/PMAgent.md +11 -5
  16. package/assets/install-bundle/opencode/agents/QAAgent.md +13 -6
  17. package/assets/install-bundle/opencode/agents/TechLeadAgent.md +12 -6
  18. package/assets/install-bundle/opencode/commands/brainstorm.md +13 -6
  19. package/assets/install-bundle/opencode/commands/delivery.md +15 -8
  20. package/assets/install-bundle/opencode/commands/execute-plan.md +15 -8
  21. package/assets/install-bundle/opencode/commands/migrate.md +16 -9
  22. package/assets/install-bundle/opencode/commands/quick-task.md +14 -7
  23. package/assets/install-bundle/opencode/commands/task.md +16 -8
  24. package/assets/install-bundle/opencode/commands/write-plan.md +15 -8
  25. package/commands/brainstorm.md +13 -6
  26. package/commands/delivery.md +15 -8
  27. package/commands/execute-plan.md +15 -8
  28. package/commands/migrate.md +16 -9
  29. package/commands/quick-task.md +14 -7
  30. package/commands/task.md +16 -8
  31. package/commands/write-plan.md +15 -8
  32. package/docs/operator/README.md +9 -0
  33. package/package.json +1 -1
  34. package/src/global/paths.js +6 -0
  35. package/src/global/workspace-shim.js +104 -0
  36. package/src/global/workspace-state.js +3 -0
  37. package/tests/cli/openkit-cli.test.js +5 -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
@@ -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
package/commands/task.md CHANGED
@@ -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
@@ -21,6 +21,15 @@ Use it to find the right live docs quickly. Do not treat it as a canonical repla
21
21
  - Use `/task` unless you already know the work must start in `Quick Task`, `Migration`, or `Full Delivery`
22
22
  - Use `context/navigation.md` when you need to locate deeper workflow or standards references
23
23
 
24
+ ## Minimal First Session
25
+
26
+ - `npm install -g @duypham93/openkit`
27
+ - `openkit run`
28
+ - Wait for OpenCode to open with `master-orchestrator`
29
+ - Press `Ctrl+P`
30
+ - Run `/task <what you want to do>`
31
+ - Fall back to `/quick-task`, `/migrate`, or `/delivery` only when the lane is obvious
32
+
24
33
  ## Operator Routes
25
34
 
26
35
  - Workflow contract: `context/core/workflow.md`