/bytedesk-goals:plan_goal [short description of the work to plan as a goal]from bytedesk-goals
Run a planning session that turns a fuzzy intent into a self-contained, goal-based spec saved at docs/goals/<theme>.md, then exits plan mode by handing off a runnable `/goal docs/goals/<theme>.md`. Use when the user wants to capture/spec a piece of work as a runnable goal artifact, hand work to a fresh session, or says "plan a goal", "make a goal doc", "spec this as a goal", or "/plan_goal".
Ships in bytedesk-goals. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a fuzzy intent into a self-contained, goal-based spec that a FRESH session — with no memory of this planning conversation — can execute end-to-end. The deliverable is a file at docs/goals/<goal-themed-name>.md, and the session ends by exiting plan mode with a runnable /goal docs/goals/<goal-themed-name>.md handoff.
/goal <path> in a fresh context.AskUserQuestion (don't guess). Pin down:
docs/goals/<goal-themed-name>.md (create docs/goals/ if missing). Name it after the theme/outcome in kebab-case (e.g. elena-autonomous-deploy.md), not after a ticket number.docs/goals/<theme>.plan.json (schema below) capturing identity, ordering, and lane hints. See [[run_goals]] for how the manifest is executed.ExitPlanMode) with a short summary whose final line is the literal handoff:
/goal docs/goals/<goal-themed-name>.md/run_goals docs/goals/<theme>.plan.jsonWrite alongside the goal docs at docs/goals/<theme>.plan.json. It does not restate success criteria — each doc owns those; the manifest only carries identity, dependency order, and lane hints consumed by [[run_goals]].
{
"plan": "<theme-slug>",
"created": "<YYYY-MM-DD>",
"jiraEpicKey": "<BDP-N>", // optional; set by /plan_epic when this plan delivers an Epic
"integration": { // optional; autonomous landing for parallel batches
"autoMergeTo": "develop", // omit/empty => stop at green (human merges). Set => auto-merge ONLY through a green gate.
"gate": "scripts/testing/local-test.sh pr-ready" // full suite run once on the integrated result
},
"goals": [
{
"id": "<kebab-id>", // unique; referenced by dependsOn
"doc": "docs/goals/<name>.md", // self-contained goal doc
"title": "<short title>",
"dependsOn": ["<id>", "..."], // ids that must LAND (merge to base) before this STARTS; this goal branches from the updated base
"mode": "sequential", // "sequential" (default, safe) | "parallel" (opt-in worktree fan-out)
"needsHumanGate": false, // true if it needs interactive approval / deploy / merge mid-run (forces sequential)
"touches": ["<path>", "..."], // paths it writes; overlap => can't share a parallel batch
"jiraTaskKey": "<BDP-N>" // optional; set by /plan_epic, synced via bytedesk-jira-task
}
]
}
Defaults and intent:
mode defaults to sequential — only set "parallel" for goals you've vetted as genuinely independent. [[run_goals]] runs sequential goals in-session (full /goal fidelity, each lands before the next) and converges parallel goals at an integration gate before anything lands.dependsOn is a LAND-dependency: a dependent goal does not start until its deps have merged to the base, then it branches from the updated base. So if goal B needs goal A's code, declare dependsOn: ["A"] — run_goals will land A before starting B. Use it whenever a goal builds on another's changes, not just for loose ordering.needsHumanGate: true for any goal whose Constraints include human approval/merge/deploy (it forces sequential); touches to the top-level paths each goal writes.integration.autoMergeTo turns on autonomous merge-to-develop for parallel batches — but only ever through a green integration gate (combine branches + run the full suite once). Leave it unset to stop at "green — PRs ready" for a human merge.jiraEpicKey/jiraTaskKey empty here — [[plan_epic]] populates them when the plan is epic-backed.A fresh context has none of this conversation. The doc must stand on its own:
# Goal: <one-line outcome> [(<ticket key> if any)]
> Self-contained goal statement for a fresh session. Clear context, then run this.
## GOAL
<2-4 sentences: the objective and the single clear outcome.>
**Success criteria (verifiable):**
<Concrete, checkable conditions. Ideally an exact command/observable state and a
real end-to-end verification, e.g. "ship version X and confirm Y".>
## Why / the problem to solve
<The motivation + the specific friction or root cause this goal addresses.>
## Context already in place (don't re-derive)
- <Proven mechanisms, exact paths, commands, prior art.>
- <Current state of the system relevant to the goal.>
- <Read-first pointers: memory files, ADRs, Jira keys, docs.>
- <If goal touches `src/ByteDesk.*` or `infra/k8s/**`: read `docs/architecture/anchors.yaml` partition + plan `workspace.dsl` co-commit via `/bytedesk-architecture-sync`.>
## Key files / commands
- <path> — <what it is>
- `<command>` — <what it does>
## Constraints
- <Hard requirements, things never to do, deadlines, security/least-privilege.>
## Already done (do not redo)
- <What's shipped/merged/verified so far.>
- <The remaining gap this goal closes.>
docs/goals/<theme>.plan.json manifest that wires them together for [[run_goals]].dependsOn, needsHumanGate, and touches truthfully — they are what lets [[run_goals]] parallelize safely vs. serialize / run in-session. A wrong touches causes write collisions; a missing needsHumanGate sends an approval-bound goal to a headless subagent that will stall.On ExitPlanMode, the plan you present must end with the exact runnable handoff so the user can clear context and run it:
/goal docs/goals/<goal-themed-name>.md
/run_goals docs/goals/<theme>.plan.json
Do not start implementing — the planning session is complete once the artifact(s) and (for multi-goal plans) the manifest are written and the handoff is presented.
When invoked via /goals plan <intent>, /goals regenerates the goal board (docs/goals/README.md) on return so the new artifact shows immediately — this skill just writes the artifact and presents the handoff (ADR-0059).
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/bytedesk-confluenceByteDesk Confluence knowledge operations. Use this skill for any interaction with the ByteDesk Platform Confluence space — searching for existing docs, creating new pages, linking pages to Jira tickets, and retrieving operational runbooks or architecture notes before making decisions. Invoke when the user says "search confluence", "find docs", "create confluence page", "document this in confluence", "link to jira", "check the docs", "write runbook", "what does confluence say about", or when making a decision that depends on project context not in the codebase./bytedesk-jira-taskFull Jira task lifecycle manager for the ByteDesk Platform (BDP) project. Use this skill whenever you need to create, update, transition, or link Jira issues in the BDP project — including creating tasks before coding, moving items to In Progress, adding progress comments, linking child tasks to parent Epics, and transitioning to Done after merging. Invoke proactively whenever work begins, scope changes, or code lands. Also use when the user says "create jira", "start a task", "mark done", "open a ticket", "update jira", "transition to in progress", or any similar phrase.Other plugins' skills for the same job
/bytedesk-skill-syncKeep Codex/Grok skill state (.agents/skills) in parity with the canonical Claude skills (.claude/skills). Use when a skill was edited under .claude/skills and Codex/Grok need the update, when "sync skills to .agents", "skill parity", "port the skill to codex/grok", "update agents skills", or after landing any change to a skill the agents also use. Reports drift (--check) or mirrors it (--apply). Root docs (CLAUDE.md/AGENTS.md) are report-only because AGENTS.md carries intentional Codex/Grok divergences.npx claudepluginhub bytedeskai/bytedesk-marketplace --plugin bytedesk-goals