From draft
Work the Foundry/Draft agent queue — fetch the workflow context, claim the top story, implement it, and finish it. Invoke when the user wants to start working Draft tickets.
How this skill is triggered — by the user, by Claude, or both
Slash command
/draft:workThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run the Foundry/Draft agent loop for this session, using the `draft`
Run the Foundry/Draft agent loop for this session, using the draft
MCP tools (mcp__draft__*) bundled with this plugin.
The MCP server reads its config from the environment:
DRAFT_API_KEY (required) — the workspace agent API key. If a tool
call reports it's unset, tell the user to export it and stop.DRAFT_API_URL (optional) — defaults to
https://draft.foundryworks.dev.Call mcp__draft__context. It returns Draft's own authoritative
instructions for operating within a workspace: the board model, the
story state machine, claim/start/comment/transition/finish mechanics,
and any workspace- or project-specific notes. Those instructions
are the source of truth — follow them. They can change server-side,
so fetch them fresh each run rather than relying on memory.
Call mcp__draft__queue and take the highest-priority item (the
context explains the ordering). Then drive it to completion with the
matching tools, exactly as the context instructions describe:
mcp__draft__claim_story — claim ownership (resolves your own user
id for you).mcp__draft__transition_story with action: "start".mcp__draft__comment — post a short plan comment.mcp__draft__add_link — attach the PR or commit URL if the project
has a connected repo.mcp__draft__transition_story with action: "finish".mcp__draft__get_story, mcp__draft__list_comments, and
mcp__draft__story_activity are there for reading detail along the
way — e.g. check for reviewer replies before you finish.
If $ARGUMENTS names a specific story number, pick that up instead of
the top of the queue.
When mcp__draft__queue shows no available work, say so and stop.
Otherwise continue to the next item — but check in with the user
rather than looping indefinitely if a story turns out far larger than
expected or needs a decision you can't make.
mcp__draft__context response is canonical. If anything in this
file conflicts with it, the API wins.accepted — that's the human reviewer's
call. finish is the right terminal state for agent work.transition_story with action: "block", plus a comment
explaining what you need) rather than abandoning it.DRAFT_API_URL with an
Authorization: Bearer $DRAFT_API_KEY header — but prefer the tools.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub foundryworks-dev/foundry-draft-cc-plugin --plugin draft