/aspark:backlogfrom aspark
Seeds a project backlog from docs/ by having a Product Owner agent propose ordered feature items traced to source sections. User edits the list, then confirms to file each as a GitHub issue.
Ships in aspark. 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.
An advisory-then-writing ceremony with one gate. The Product Owner proposes
an ordered backlog from the project's own documents; the user edits it; only on
explicit confirmation are issues created. Nothing is written to .spark/, and
no spec is created here: specs belong to /story-time.
Optional: --label <name> (repeatable) or a steer such as "only the MVP". No
other input is needed.
Gather the sources yourself. The product-owner agent cannot read the
repo's remote or run gh. Read:
docs/ (Markdown/text documents only; read each section's heading and
lead paragraph, not full bodies, and note file names and headings, as
source references need them. Skip binary or non-text files and name what
was skipped in the step 9 report),.spark/constitution.md and ROADMAP.md if present.docs/ (or it holds no readable documents) and no
constitution, name /charter as the first step and stop there. Never
invoke it yourself, and write nothing. Same rule as /next-steps.Read the tracker (best effort). Resolve the repo from origin (as step 6 does; no unambiguous origin counts as "cannot see") and try
gh issue list --repo <owner/repo> --state all --json number,title,state,body,closedAt --limit 200 and gh pr list --repo <owner/repo> --state all --json number,title,state,body,mergedAt --limit 200
(same call shape as /next-steps, aSPARK issue #110). If gh is missing,
unauthenticated, the repo is unresolved or a call fails, say once, in one
line, "Could not see the tickets, proposed items are not checked for
duplicates", and behave as without this step (every item is new).
Delegate to the Product Owner. Pick the model first: if
.spark/constitution.md §11 names a model for product-owner, pass exactly
that as the agent call's model; if it names none, or there is no
constitution or no §11, pass no model, so the agent's own default
(sonnet) applies. Then invoke the product-owner agent in its
propose backlog mode (## Proposing a Backlog in its definition) with the
document excerpts (file + section headings), the issues and merged PRs from
step 2 (or "tickets not visible"), the constitution excerpt or "none", ROADMAP.md if present, and the user's steer.
Show the list as a plan. Present it as a numbered, ordered table: title,
problem statement, size (S/M/L), dependencies, source reference
docs/<file>#<section>. Drop any item that arrives without a source
reference, or whose reference names no file and heading you gathered in
step 1: nothing is invented. This check is an instruction to you and
the agent, not an enforcement; look at every row yourself.
Mark each row against the tracker data from step 2 (skip when it
could not be read) with a Status column:
new: no open or closed issue, and no merged PR, matches the item's
title and scope.covered by #N: an open issue matches title and scope. Not filed.done in #N / PR #M: a closed issue or merged PR delivered it. Not filed.partly covered by #N: an open issue covers only part. Say which of
the two you propose: a comment on #N (user posts it; this ceremony
never edits or closes issues) or a narrower new item for the
uncovered part (retitled, state what is left out). Neither is filed
unless the user picks it.
Match on title and scope, not on title alone; when unsure, mark
covered by #N and say why. The Source: line of an issue this
ceremony filed earlier also counts as a match, so re-running right after
filing yields only covered rows (nothing new). This matching is an
instruction to you, not an enforcement: check every row yourself.
Only new items (and a chosen narrower item) are offered for filing by
default; the user may explicitly override a row.Let the user edit. They may drop, merge, reorder or reword items. Apply the edits (re-invoke the agent for merges/rewording if useful) and re-show the list. Repeat until the user confirms the final list or abandons it. Abandoning writes nothing.
Resolve the repo and labels, once, before filing.
origin (git remote get-url origin / gh repo view), as
in /story-time. Echo the resolved owner/repo to the user. No
unambiguous origin → STOP and say so; never guess.labels: list in the optional .spark/backlog.yml; arguments win.
Echo them (or "no labels"). Apply them with --label; do not assume any
particular automation behind them.Ask for explicit confirmation to file, naming the count, repo and
labels. If the repo is public, say so here, once: the content of docs/
goes into the issue bodies. Only a yes in this conversation permits step 8.
File in order. For each item run
gh issue create --repo <owner/repo> --title '<title>' --body-file -
(plus --label per label), feeding the body on stdin from a
single-quoted heredoc (<<'ASPARK_BACKLOG_BODY'). Never put text from
docs/ inside double quotes: the shell would run any backtick or $(...)
in it. If any body line equals the delimiter, pick another one: that line
would end the heredoc and the shell would run the rest. In the
single-quoted title, write each ' as '\''. Record each returned issue
number; in later bodies, refer to dependencies already filed as #<n>,
otherwise by title.
The body is exactly:
## Problem
<short problem statement>
**Size:** <S|M|L>
**Depends on:** <#n, titles, or none>
**Source:** <docs/<file>#<section>, or the constitution / ROADMAP.md section>
generation: 0
This is the shape /story-time <n> imports as the idea. If gh is
missing, unauthenticated or a call fails, stop, report the real error
and list the issues created so far. Never retry silently or claim success.
If the user fixes the cause in this conversation, offer to file only the
items not yet created, re-confirming per step 7, so nothing is duplicated.
Close with a report stating: repo, issues created (number + title), items skipped as covered/done (with #N), the "Could not see the tickets" line if it applied,
labels applied, items dropped for lack of a source, files in docs/
skipped as non-text in step 1 (or "none"), and that
/story-time <n> or /spark starts any of them.
covered, done or partly covered unless the
user explicitly overrides that row. Never edit or close existing issues..spark/.docs/<file>#<section> source (or the constitution's
section or ROADMAP entry named as such); otherwise it is not proposed.generation: 0 line./story-time <n> or /spark per issue, on the user's go.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub a-lottes/aspark --plugin aspark12 skills in this plugin
/campaignStart a campaign draft: build `.spark/campaigns/<name>/campaign.md` from an existing campaign kind, asking only what the kind leaves open. Only when the user types /campaign.
/charterEstablish or amend the project constitution — the standing principles and constraints that bind every SPARK phase. Use once at project start to give the team its ground rules, or any time a project-wide decision (stack choice, quality bar, non-negotiable) changes and should apply to all future features.
/demo-dayHands-on QA in a real browser: the QA Tester clicks through the running app, verifies every acceptance criterion from the spec, explores beyond the happy path and files reproducible bugs. Use after /peer-review passes, or to re-test after fixes. Requires a running app and browser tooling.
Other plugins' skills for the same job