@open-agent-toolkit/cli 0.0.61 → 0.0.65

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 (58) hide show
  1. package/assets/docs/cli-utilities/tool-packs.md +74 -4
  2. package/assets/docs/reference/file-locations.md +1 -1
  3. package/assets/docs/reference/oat-directory-structure.md +2 -0
  4. package/assets/docs/workflows/ideas/index.md +6 -0
  5. package/assets/docs/workflows/ideas/lifecycle.md +12 -0
  6. package/assets/docs/workflows/projects/lifecycle.md +21 -0
  7. package/assets/docs/workflows/skills/index.md +8 -2
  8. package/assets/public-package-versions.json +4 -4
  9. package/assets/skills/oat-brainstorm/SKILL.md +600 -0
  10. package/assets/skills/oat-brainstorm/references/destinations.md +167 -0
  11. package/assets/skills/oat-brainstorm/references/dogfood-results.md +731 -0
  12. package/assets/skills/oat-brainstorm/references/visual-companion.md +316 -0
  13. package/assets/skills/oat-brainstorm/scripts/frame-template.html +214 -0
  14. package/assets/skills/oat-brainstorm/scripts/helper.js +88 -0
  15. package/assets/skills/oat-brainstorm/scripts/server.cjs +354 -0
  16. package/assets/skills/oat-brainstorm/scripts/start-server.sh +176 -0
  17. package/assets/skills/oat-brainstorm/scripts/stop-server.sh +56 -0
  18. package/assets/skills/oat-brainstorm/templates/brainstorm-doc.md +79 -0
  19. package/assets/skills/oat-idea-ideate/SKILL.md +8 -4
  20. package/assets/skills/oat-pjm-add-backlog-item/SKILL.md +2 -1
  21. package/assets/skills/oat-pjm-update-repo-reference/SKILL.md +2 -1
  22. package/assets/skills/oat-project-complete/SKILL.md +49 -2
  23. package/assets/skills/oat-project-document/SKILL.md +2 -1
  24. package/assets/skills/oat-project-pr-final/SKILL.md +2 -1
  25. package/assets/skills/oat-project-spec/SKILL.md +2 -2
  26. package/assets/skills/oat-project-summary/SKILL.md +2 -1
  27. package/dist/commands/config/index.d.ts.map +1 -1
  28. package/dist/commands/config/index.js +12 -0
  29. package/dist/commands/init/tools/brainstorm/index.d.ts +22 -0
  30. package/dist/commands/init/tools/brainstorm/index.d.ts.map +1 -0
  31. package/dist/commands/init/tools/brainstorm/index.js +145 -0
  32. package/dist/commands/init/tools/brainstorm/install-brainstorm.d.ts +19 -0
  33. package/dist/commands/init/tools/brainstorm/install-brainstorm.d.ts.map +1 -0
  34. package/dist/commands/init/tools/brainstorm/install-brainstorm.js +37 -0
  35. package/dist/commands/init/tools/index.d.ts +3 -1
  36. package/dist/commands/init/tools/index.d.ts.map +1 -1
  37. package/dist/commands/init/tools/index.js +76 -6
  38. package/dist/commands/init/tools/shared/skill-manifest.d.ts +7 -0
  39. package/dist/commands/init/tools/shared/skill-manifest.d.ts.map +1 -1
  40. package/dist/commands/init/tools/shared/skill-manifest.js +11 -0
  41. package/dist/commands/tools/remove/index.d.ts.map +1 -1
  42. package/dist/commands/tools/remove/index.js +2 -1
  43. package/dist/commands/tools/shared/install-sync-context.d.ts.map +1 -1
  44. package/dist/commands/tools/shared/install-sync-context.js +3 -1
  45. package/dist/commands/tools/shared/scan-tools.d.ts.map +1 -1
  46. package/dist/commands/tools/shared/scan-tools.js +3 -1
  47. package/dist/commands/tools/shared/types.d.ts +1 -1
  48. package/dist/commands/tools/shared/types.d.ts.map +1 -1
  49. package/dist/commands/tools/update/index.d.ts.map +1 -1
  50. package/dist/commands/tools/update/index.js +2 -1
  51. package/dist/commands/tools/update/update-tools.d.ts.map +1 -1
  52. package/dist/commands/tools/update/update-tools.js +6 -1
  53. package/dist/config/oat-config.d.ts +1 -1
  54. package/dist/config/oat-config.d.ts.map +1 -1
  55. package/dist/config/oat-config.js +1 -0
  56. package/dist/config/resolve.d.ts.map +1 -1
  57. package/dist/config/resolve.js +1 -0
  58. package/package.json +2 -2
@@ -0,0 +1,167 @@
1
+ # Destinations Playbook
2
+
3
+ Per-destination lookup that `oat-brainstorm` consults at destination-identification time. Centralizes trigger phrases, required fields, confirmation patterns, and handoff targets so `SKILL.md` stays focused on flow.
4
+
5
+ ## Matching rules
6
+
7
+ - **Trigger phrases** below are concrete substring/paraphrase patterns, not regex. The skill matches loosely (case-insensitive, paraphrase-tolerant) and asks before committing when ambiguous.
8
+ - **Confirmation pattern** values:
9
+ - `full` — present payload field-by-field with example wording from this stanza; user confirms or revises before write.
10
+ - `minimal` — confirm only the slug / path / which artifact, then write.
11
+ - `none` — write directly (the downstream skill surfaces its own review step).
12
+ - **"If user wants to keep brainstorming after this is offered"** rule applies in every stanza: surface the destination, then ask "feel good about wrapping up here, or want to keep brainstorming and add more detail?". If keep going, return to the conversation flow with the destination noted; the skill may proactively probe for required fields not yet covered.
13
+
14
+ ---
15
+
16
+ ### Destination: Inline only
17
+
18
+ **Pack required:** always available
19
+ **Trigger phrases:** "let's just talk it through", "no need to write this down", "this is just a quick chat", "off the record", explicit decline of any artifact destination.
20
+ **Required template fields:** none — closing summary is one paragraph.
21
+ **Optional template fields:** none.
22
+ **Confirmation pattern:** `none`
23
+ **Handoff target:** no downstream skill. Skill emits a one-paragraph closing summary capturing chosen direction (or "no direction selected"), key decisions, and any open questions, then ends mode assertion.
24
+ **If user wants to keep brainstorming after this is offered:** return to free brainstorming flow; no destination is "noted" since this destination is by definition no-artifact.
25
+
26
+ ---
27
+
28
+ ### Destination: Doc-to-path
29
+
30
+ **Pack required:** always available
31
+ **Trigger phrases:** "write this to a file", "save this as a doc", "put this in `<path>`", "write to my vault", "doc this somewhere", explicit user-supplied path.
32
+ **Required template fields:** `title`, `summary`, `approachesConsidered`, `chosenDirection` (or explicit "no direction"), `transcriptSessionNote`. Template: `templates/brainstorm-doc.md` (in this skill).
33
+ **Optional template fields:** `motivation`, `vision`, `openQuestions`, `nextSteps`.
34
+ **Confirmation pattern:** `minimal` (path only)
35
+ **Handoff target:** no downstream skill. Skill validates path (file not dir; parent exists or offer to create — explicit confirmation if outside repo; file already exists → ask overwrite vs different name; unwritable → surface OS error), renders `templates/brainstorm-doc.md` with payload values, writes the file. Reports the absolute path written.
36
+ **If user wants to keep brainstorming after this is offered:** return to flow with destination = doc-to-path. Skill notes the user-supplied path and may proactively probe for `motivation`, `vision`, or richer `chosenDirection` if those template sections feel sparse.
37
+
38
+ ---
39
+
40
+ ### Destination: Capture as new idea
41
+
42
+ **Pack required:** `ideas` (i.e., `oat config get tools.ideas` returns `true`)
43
+ **Trigger phrases:** "capture as an idea", "this is an idea worth keeping", "let's track this as an idea", "save this as an idea", "make a new idea for this".
44
+ **Required template fields:** `title` (slug-friendly), `summary`, `motivation` (Why Is It Interesting?), `vision` (What Would It Look Like?), `transcriptSessionNote`. Template: `.oat/templates/ideas/idea-discovery.md` (consumed via `oat-idea-new`).
45
+ **Optional template fields:** `approachesConsidered`, `chosenDirection`, `openQuestions`, `nextSteps`.
46
+ **Confirmation pattern:** `minimal` (slug only)
47
+ **Handoff target:** `oat-idea-new` Steps 3-7 (initialize ideas dir, scaffold discovery, update backlog, check scratchpad, set active-idea pointer). Seed the scaffolded `discovery.md` first session with payload contents (What's the Idea?, Why Is It Interesting?, What Would It Look Like?, first session in Notes & Discussion). After scaffold, offer to chain into `oat-idea-ideate` Step 4 or stop.
48
+ **If user wants to keep brainstorming after this is offered:** return to flow with destination = capture-as-new-idea. Skill probes for `motivation` and `vision` if shallow.
49
+
50
+ ---
51
+
52
+ ### Destination: Extend existing idea
53
+
54
+ **Pack required:** `ideas`
55
+ **Trigger phrases:** "add to the `<idea-slug>` idea", "this builds on idea X", "fold this into existing idea", "another session for `<idea-slug>`".
56
+ **Required template fields:** which idea (slug or path), `transcriptSessionNote`. Existing idea's `discovery.md` is appended-to via `oat-idea-ideate` Step 4 (Start New Session).
57
+ **Optional template fields:** `chosenDirection`, `openQuestions`, `nextSteps` — surfaced if user wants the new session entry to record decisions.
58
+ **Confirmation pattern:** `minimal` (which idea)
59
+ **Handoff target:** `oat-idea-ideate` Step 4 (Start New Session) on the chosen idea path. Append `transcriptSessionNote` from the brainstorming payload as the new session's body.
60
+ **If user wants to keep brainstorming after this is offered:** return to flow with destination = extend-existing-idea. Skill may probe for whether the conversation should land a chosen direction or stay exploratory.
61
+
62
+ ---
63
+
64
+ ### Destination: Summarize idea directly
65
+
66
+ **Pack required:** `ideas`
67
+ **Trigger phrases:** "summarize this idea", "give me the summary", "what's the headline of this idea?", "wrap this idea into a summary doc".
68
+ **Required template fields:** same set as "Capture as new idea" (capture-as-new-idea path runs silently first), then summary input is whatever was synthesized. Template: `.oat/templates/ideas/idea-summary.md` (consumed via `oat-idea-summarize`).
69
+ **Optional template fields:** none — the summary is rendered from the synthesized payload.
70
+ **Confirmation pattern:** `none` at this layer (the downstream `oat-idea-summarize` surfaces the summary for accept/refine review).
71
+ **Handoff target:** capture-as-new-idea path silently (skill reads `.agents/skills/oat-idea-new/SKILL.md` and runs Steps 3-7), then immediately reads `.agents/skills/oat-idea-summarize/SKILL.md` and runs it end-to-end. The `oat-idea-summarize` skill's own accept/refine review serves as the user gate.
72
+ **If user wants to keep brainstorming after this is offered:** return to flow with destination = summarize-idea-directly. Skill may probe for chosen direction since the summary will read better with one.
73
+
74
+ ---
75
+
76
+ ### Destination: Scoped backlog item
77
+
78
+ **Pack required:** `project-management` (i.e., `oat config get tools.project-management` returns `true`)
79
+ **Trigger phrases:** "track this as a backlog item", "make a ticket", "log this", "open a backlog entry", "add this to the backlog", "create a bl-XXXX for this".
80
+ **Required template fields:** `title` (1-line summary), `description` (problem + proposed approach), `acceptance criteria` (bullet list), `scope` (xs / s / m / l / xl), `priority` (p0 / p1 / p2 / p3). Template: `.oat/templates/backlog-item.md` (consumed via `oat-pjm-add-backlog-item`).
81
+ **Optional template fields:** related items, target release, owner.
82
+ **Confirmation pattern:** `full`
83
+ Example wording (rendered field-by-field):
84
+
85
+ ```
86
+ I have what I need to track this as a backlog item. Here is the proposed payload:
87
+
88
+ Title: <title>
89
+ Description:
90
+ <description, 2-3 sentences>
91
+ Acceptance Criteria:
92
+ - <criterion 1>
93
+ - <criterion 2>
94
+ Scope: <xs|s|m|l|xl>
95
+ Priority: <p0|p1|p2|p3>
96
+
97
+ Confirm to write this to a new bl-XXXX file, or tell me what to change.
98
+ ```
99
+
100
+ **Handoff target:** `oat-pjm-add-backlog-item` from its Step 1, with the confirmed payload pre-filling the early prompts. The downstream skill owns ID generation, file writing, and backlog-index regeneration.
101
+ **If user wants to keep brainstorming after this is offered:** return to flow with destination = scoped-backlog-item. Skill probes for missing acceptance criteria, scope sizing, or priority signal — these are the most common gaps when a brainstorm pivots to ticket creation.
102
+
103
+ ---
104
+
105
+ ### Destination: Promote to new OAT project
106
+
107
+ **Pack required:** `workflows` (i.e., `oat config get tools.workflows` returns `true`)
108
+ **Trigger phrases:** "let's make this a project", "promote this to a project", "scaffold a project for this", "this is project-sized — let's start one".
109
+ **Required template fields:** `title`, `summary` (Initial Request), `approachesConsidered` (Solution Space), `chosenDirection` (Chosen Direction), key decisions, `openQuestions`. Template: `.oat/templates/discovery.md` (consumed via `oat project new`).
110
+ **Optional template fields:** `motivation`, `vision`, `nextSteps`.
111
+ **Confirmation pattern:** `minimal` (slug + workflow mode)
112
+ Skill proposes `quick` vs `spec-driven` mode based on `chosenDirection` and scope signals from the conversation. User picks; skill confirms slug.
113
+ **Handoff target:** Run `oat project new <slug> --mode <mode>` to scaffold. Write field-filled `discovery.md` only (Initial Request, Solution Space with approaches, Chosen Direction, Key Decisions, Open Questions). Mark `oat_status: complete`, `oat_ready_for: oat-project-quick-start` (for quick mode) or `oat-project-design` (for spec-driven). Update project `state.md` (phase=discovery, status=complete). Print pointer to next skill. **Stop — do NOT inline-execute the next phase.** Project promotion writes `discovery.md` only, never `design.md`.
114
+ **If user wants to keep brainstorming after this is offered:** return to flow with destination = promote-to-new-project. Skill probes for missing chosen direction, key decisions, and explicit open questions — these become artifact fields that read poorly when shallow.
115
+
116
+ ---
117
+
118
+ ### Destination: Active project — fold-back to upstream artifact
119
+
120
+ **Pack required:** `workflows` AND an active project pointer is set (`oat config get activeProject`) AND its `state.md` is readable.
121
+ **Trigger phrases:** "fold this into the active project", "this is feedback for the active project", "integrate this into design", "add this to discovery", explicit "for the active project" mention. Also offered as the first option when the active-project 3-way router fires after convergence (related → fold-back).
122
+ **Required template fields:** which artifact (`design.md` if exists, else `discovery.md`; user signal can override), the synthesized payload's `chosenDirection`, key decisions, `transcriptSessionNote` (transcript appendix). Template: appended in-place using `## Brainstorming Update: YYYY-MM-DD — <topic>` heading.
123
+ **Optional template fields:** `openQuestions`, `nextSteps` — appended if surfaced during convergence.
124
+ **Confirmation pattern:** `minimal` (which artifact + dirty-tree handling)
125
+
126
+ The fold-back commit safety contract is non-negotiable:
127
+
128
+ 1. Preflight `git status --porcelain -- "$ARTIFACT_PATH"` _before_ any artifact mutation.
129
+ 2. If clean: append the synthesis section, then `git add -- "$ARTIFACT_PATH"` (explicit `--` form, never `-A`, never globs) followed by `git commit -m "chore(oat): integrate brainstorm into <artifact> for <project-name>"`.
130
+ 3. If dirty: present the user with three options before any mutation — (a) commit current artifact changes first then fold-back as new scoped commit, (b) include current changes in the fold-back commit (warn that prior edits are mixed in; user explicitly accepts), or (c) abort fold-back and switch destination to "active project: brainstorming reference file" instead.
131
+ 4. Handoff prompt prints only after the scoped commit succeeds. If `git commit` fails (pre-commit hooks reject, signing fails, etc.), surface the error and do NOT print the handoff prompt.
132
+
133
+ **Handoff target:** Append synthesis to the chosen upstream artifact, commit immediately (per safety contract above), then print the handoff prompt template:
134
+
135
+ ```
136
+ Run `<skill-name>` with this context:
137
+
138
+ "A brainstorming session surfaced changes that needed to be folded
139
+ into <artifact>. I've committed the update (commit <hash>: <subject>).
140
+ Integrate the new content into the existing plan as new tasks (or a
141
+ new phase if substantial). Don't refresh the existing plan — preserve
142
+ review tables and any in-progress task state."
143
+ ```
144
+
145
+ Skill name resolved per workflow mode + PR status (read from `state.md` frontmatter):
146
+
147
+ | Mode | PR status | Handoff target |
148
+ | ----------- | ---------------------------- | ------------------------- |
149
+ | spec-driven | none / closed | `oat-project-plan` |
150
+ | quick | none / closed | `oat-project-quick-start` |
151
+ | either | open (`oat_pr_status: open`) | `oat-project-revise` |
152
+
153
+ After printing the prompt, the skill stops. The user runs the plan-authoring skill at their own pace. The brainstorming skill never auto-chains into plan authoring — the deliberate transition is the point.
154
+
155
+ **If user wants to keep brainstorming after this is offered:** return to flow with destination = fold-back. Skill probes for richer chosen direction or key decisions, since these become the appended section and read poorly when shallow. Re-run preflight `git status` when convergence resumes — the working tree may have changed mid-conversation.
156
+
157
+ ---
158
+
159
+ ### Destination: Active project — brainstorming reference file
160
+
161
+ **Pack required:** `workflows` AND an active project pointer is set.
162
+ **Trigger phrases:** "this is supplementary for the active project", "save this with the project but don't change the design", "park this as a reference for the project", "stash this in the project's brainstorming folder". Also offered as the third option when the active-project 3-way router fires (related but supplementary → reference file).
163
+ **Required template fields:** `title` (slug-friendly), filename (defaults to `YYYY-MM-DD-<topic>.md`), the synthesized payload (rendered using the same shape as `templates/brainstorm-doc.md`).
164
+ **Optional template fields:** `motivation`, `vision`, `openQuestions`, `nextSteps` — same as doc-to-path destination.
165
+ **Confirmation pattern:** `minimal` (filename + commit hash). After the file is written, the skill commits it on the active branch and reports the short commit hash alongside the absolute path (for example: "Wrote `<absolute-path>` and committed as `<hash>`.").
166
+ **Handoff target:** no downstream skill invocation. Write the synthesized payload to `<active-project>/brainstorming/YYYY-MM-DD-<topic>.md` using the doc-to-path template shape. The `brainstorming/` subdirectory is created if it doesn't exist (parallel to `pr/` and `reviews/`). The reference file is a **durable tracked artifact**: after writing, the skill stages only the new file via `git add -- <reference-path>` and commits it with `chore(oat): capture brainstorming reference for <project-name>` — mirroring the scoped-staging discipline of the fold-back commit safety contract so the working tree is clean when the skill exits.
167
+ **If user wants to keep brainstorming after this is offered:** return to flow with destination = active-project-reference-file. Available regardless of active project's phase or PR status; no special probing.