--- name: plan-project description: Plan a project on a Slatebox slate as a smart plan board (launch plan, customer go-live, hiring plan or roadmap) with tasks, lengths and dependencies that keep their rules when people drag them, and return the slate link. Falls back to a Mermaid Gantt chart when no board fits or when the person asks for Gantt or Mermaid. Use when someone asks for a project plan, a timeline, a schedule, a roadmap, a release or launch plan, a hiring plan or a Gantt chart. --- # Plan a project Slatebox has smart plan boards: a board on a slate whose tasks sit on real dates, wait on each other and follow rules (for example "a slip pushes the tasks that wait on it"). Build the plan as one of these boards first. Draw a Mermaid Gantt chart only when no board fits. ## Steps 1. Collect what you need. Ask only for what is missing and matters: - the goal and the finish date or length (for example "six weeks"); - the start date (default: next Monday; say which date you used); - the main phases, teams, people or constraints if the person mentioned them. 2. Decide the path. - If the person asks for a Gantt chart or for Mermaid by name, skip to "Fallback: Gantt chart". - Otherwise call `list_components` (with the `shareId` if the person gave a slate link). Pick the plan board that fits: - `launch-plan`: tasks on real dates toward one launch or release day (a launch, a release, a timeline, a schedule with a deadline); - `customer-go-live`: us and the customer toward one go-live date (onboarding, an implementation, a rollout); - `hiring-plan`: hires on a timeline, with runway (hiring, recruiting, headcount); - `now-next-later`: a loose roadmap with no dates (now, next, later). - Use only an `id` that `list_components` returned, and only one whose `fits` is not false for the slate. If none fits, use the fallback. - Call `get_component` with the chosen `id` to read its lanes, rules and the edits it takes. 3. Find the slate. If the person gave a slate link, its `shareId` is the part after `/canvas/`. If not, call `create_slate` with `kind: "diagram"` and a one-line `brief` naming the plan, for example `Hiring plan: two engineers`, and use the `shareId` it returns. Call `get_slate` with the `shareId` and keep its `revision`. 4. Add the board. Call `edit_slate` with: - `shareId`; - `plan`: `{"message": "Add a hiring plan", "operations": [{"kind": "add_component", "component": "", "topic": "", "expectedRevision": }]}`; - `userMessage`: what the person asked for, in their words. The answer names the new board's `boardId` and its `workshop` (title, lanes and `revision`). 5. Fill the board with the plan. Draft 2 to 4 lanes (teams or phases) and up to 12 tasks with a length in days. Call `edit_slate` with one `workshop_edits` operation: `{"message": "Fill the plan", "operations": [{"kind": "workshop_edits", "boardId": "", "expectedRevision": , "edits": [...]}]}`. Useful edits, if `get_component` lists them for the board: - `{"kind": "rename_lane", "lane": "", "label": "Recruiting"}` to name the lanes; - `{"kind": "add_card", "lane": "", "label": "Screen candidates", "duration": 7, "waitsOn": ["Post the role"]}` for each task; - `{"kind": "link_tasks", "card": "", "waitsOn": ""}` where one task must wait for another; - `{"kind": "set_launch_day", "day": 42}` to set the launch or go-live day (days from the start). Remove the board's sample cards with `remove_card` if the answer shows any. Send `mode: "preview"` first when you add more than 10 cards, and show the person what will change. 6. If a call answers `409 edit_refused` or `409 move_refused`, tell the person the sentence it returns; that is the board's rule speaking. On `slate_changed`, read the slate again and retry once. On `confirmation_required`, show the reasons and repeat with `confirm` and the same `idempotencyKey` only if they agree. ## Fallback: Gantt chart Use this only when no plan board fits, or when the person asked for a Gantt chart or Mermaid. 1. Draft 2 to 6 sections (phases), 2 to 6 tasks in each. Give every task a length, and use `after ` where one task must wait for another. 2. Write it as Mermaid `gantt`: ```mermaid gantt title Hiring plan: two engineers dateFormat YYYY-MM-DD section Prepare Write job description :a1, 2026-12-07, 3d Post the role :a2, after a1, 2d section Interview Screen candidates :b1, after a2, 7d Onsite interviews :b2, after b1, 7d section Close Make offers :c1, after b2, 3d Onboarding prep :c2, after c1, 5d ``` - Every task needs an id (`a1`) so others can depend on it. - Use `d` for days and `w` for weeks. - Mark fixed dates with `milestone` if the person names them (for example a launch day). 3. Call `import_mermaid` with `mermaid` and a short `name` such as "Hiring plan". Leave out `shareId` for a new slate, or pass one to add the plan beside what that slate holds. 4. On `400 mermaid_invalid`, fix the named line and call once more. On `confirmation_required`, show the person the reasons and repeat with `confirm` and the same `idempotencyKey` only if they agree. To read a Gantt plan back later, call `export_mermaid` with the slate's `shareId` and `format: "gantt"`. ## Finish Give a short summary: which board you used (or that you drew a Gantt chart, and why), its lanes or phases, the number of tasks, the start and end dates, and the critical path in one line. In hosts that show apps, call `show_slate` with the `shareId` to show it in the conversation. End with the slate link, for example `https://app.slatebox.com/canvas/`. Mention that people can drag tasks on the slate to change dates, and on a plan board the rules hold as they do.