← Files GoalpostARCHIVED FILE

skills/draft/SKILL.md

2.76 KB · Dec 1, 2026 · 00:15 UTC

↓ Download file

---
name: draft
description: "Draft a new Goalpost change batch from the current conversation: pick the document, read its latest approved state, and propose the operations for the user's confirmation before saving. Use when the user asks to capture, write up, or record something from the conversation in a Goalpost document."
---

# Goalpost — draft a change batch

The user wants to turn the current conversation into a Goalpost
change batch. Walk them through it without rushing to save:

1. **Confirm the workspace and document.** Call
   `get_current_workspace` once so you can name the workspace in your
   reply. Then `list_documents` and ask the user to pick the document
   this draft belongs in — unless the conversation has already named
   one unambiguously. If the user wants a brand-new document, call
   `create_document` first and surface its `webappUrl`.

2. **Read the baseline.** Call `get_latest_approved_change_batch` for the
   chosen document. If it returns a change batch, that's your reference
   for any existing items you'll edit or move. If it returns
   `null`, this is the document's first change batch — every item will
   be an `ADD_ITEM`.

3. **Propose the operations array first, don't save it yet.** Before
   calling `create_change_batch`, write out the operations you intend to
   include in a numbered list in your reply. Group them logically
   (new sections, then edits, then moves, then removals). Use the
   convention from the goalpost skill: `REPLACE_ITEM` for content
   edits to baseline items, `MOVE_ITEM` for relocations,
   `ADD_ITEM` for new content, `REMOVE_ITEM` only when the user
   has explicitly asked for a deletion. Mint fresh `item_<uuid>`
   ids for ADD/REPLACE. List new items in the order they should
   appear, each after its parent; each goes last under its parent
   unless you name a sibling with `after_item_id` or `before_item_id`.
   Never write an `order_key`: the server mints them. Keep section
   numbering ("1.", "3.2") out of section titles and text — the tree
   carries the order (see the goalpost skill).

4. **Ask the user to confirm or revise.** Wait for their go-ahead on
   the operations list before saving. If they want changes, revise
   the list in-place; don't accumulate alternatives.

5. **Save the draft.** Call `create_change_batch` with the agreed
   operations array. Surface the returned `webappUrl` so the user
   can review the rendered document in the webapp. Mention that
   the draft can be extended with `append_change_batch_operations`,
   revised one item at a time with the item tools, and sent for review
   via `submit_for_approval`.

If at any point a tool returns a validation error (bad parent_item_id,
duplicate id, etc.), explain what went wrong in plain language, fix
the operations array, and try again.

SHA-256: 0c8888d0ab556773adcf51d8af0260157b2f7026bb4445ed001bfbcbe8a08da1