/anchor:backlogfrom anchor
List and rank the forge issues assigned to you, work already in flight first, so you can pick what to work on next — each issue is checked against the open CRs and branches carrying it, each CR for its draft state and whether you've run /anchor:review on it, and stale issues are flagged for an /anchor:issue batch. Use whenever finding, browsing, surveying, or choosing the next issue/ticket or CR to pick up, even when the user doesn't say "backlog" — e.g. "what's next?", "what should I work on?", "anything due soon?", "show my open issues", "what's in flight?", "is my backlog stale?". For filing or updating a single issue, use the `issue` skill instead.
Ships in anchor. 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.
Survey what is filed and what is already in flight, and point at the next thing to do. "What's next?" is rarely "which issue to start": a CR waiting on your review, or a reviewed draft waiting to be marked ready, is usually the cheapest step toward shipping something. scripts/backlog.sh gathers the facts and ranks them. This skill reads the scope from the query, presents what the script found, and proposes edits for stale issues. It writes nothing to the forge.
Don't narrate your work (${CLAUDE_PLUGIN_ROOT}/guides/execute-quietly.md). Surface a question you need answered, the survey, and the next step. Report what you found, never what you didn't: no line saying an issue isn't stale, that a search for shipped work came up empty, or that there are no edits to propose. When there's nothing to say about a step, say nothing.
%%{ init: { 'look': 'handDrawn' } }%%
flowchart TD
Start(["/backlog [query]"]) --> Scope["Step 1: Scope"]
Scope --> Survey["Step 2: Survey"]
Survey --> Present["Step 3: Present and recommend"]
Present --> Stale{Stale issues?}
Stale -->|Yes| Groom["Step 4: Propose edits"]
Stale -->|No| Done([Done])
Groom --> Done
Map the query to the script's flags. With no query, or a bare "what's next?", pass none: the default (assigned to me, open) is the point, so never add a filter the user didn't ask for.
| The user says… | Flags |
|---|---|
| "everything open", "the whole backlog" | --assignee any |
| "unassigned…", "up for grabs" | --assignee none |
| "assigned to " | --assignee <login> |
| "…bugs", "…labeled X" | --label X (repeatable) |
| "closed too", "including done" | --state all |
| "untouched for a month" | --stale-days <n> (default 60) |
If the user names another repo, resolve it with bash "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-target.sh" <name>. On resolved, pass --repo <TARGET_LOCAL> when it's set, else --project <TARGET_PROJECT> (GitHub) or --project <TARGET_URL> (GitLab). On ambiguous, ask with AskUserQuestion from TARGET_CANDIDATES. On cwd, say the name didn't resolve rather than quietly surveying the cwd repo.
bash "${CLAUDE_PLUGIN_ROOT}/scripts/backlog.sh" [flags] [--repo <path> | --project <repo>]
Its header documents every key. ISSUE= lines arrive ranked, CR= lines arrive with those waiting on you first, and NEXT= is the recommended step. Take the order, the links, and NEXT as given rather than re-deriving them. DETAILS= names a file holding the descriptions of the top-ranked issues (20 unless the user asks to summarize more, --details <n>): read it before presenting, since the summaries in Step 3 come from it. Don't view issues one at a time to get what it already holds, or to fill in the ones past it. If a link looks wrong, say so in a note under the table. On BACKLOG_AUTH=1, ask the user to refresh their credentials: an auth failure is not an empty backlog.
Open with one line naming the scope (Assigned to you · open).
In flight, when there are CR= lines, gets one row per CR: the CR linked to its URL with its title, draft or ready, its /anchor:review state, its issues, and what it waits on, in words: run /anchor:review, mark ready, or waiting on reviewers, on the author, on merge.
Issues gets the ranked table: #, Title, Summary, In flight (the CR and what it needs, the branch, or —), Due, Updated (relative). Add Labels only where any are set. Summary is what the issue asks for, from its description in DETAILS, in a phrase of about ten words that says something the title doesn't. Where the description is _No description._, or the issue is past the ones DETAILS holds, write —.
Then the next step, from NEXT, with its one-line reason:
NEXT | Say |
|---|---|
review <cr> own:none | /anchor:review <cr>: yours, and never reviewed |
review <cr> own:partial | /anchor:review <cr>: yours, pushed to since its last review |
review <cr> theirs:… | /anchor:review <cr>: a teammate's ready CR you haven't reviewed |
ready <cr> own | /anchor:ready <cr>: reviewed and still a draft |
branch <#n> <branch> | pick <branch> back up |
issue <#n> - | start <#n>, followed by two or three sentences from its description: the problem, and what done looks like |
none | nothing open in scope; offer the obvious widening |
When OVERDUE= is present, name those issues in the same line, since they may outrank the work in flight, and let the user choose. Recommend only: run the next skill only when the user says to.
An issue is stale when its flags or stage say so. Where none is, and the search below finds nothing, end at the next step: this step adds no output. Otherwise propose one edit for each:
| Flag or stage | Proposed edit |
|---|---|
landed | close it, citing the CR that closed it |
dup:#<n> | close it as a duplicate of #n, once a glance confirms it's the same ask |
overdue:<date> | move it to the next milestone, or re-date it |
idle:<days>d | ask whether it's still wanted |
old-branch | ask whether to resume the branch or drop it |
The script can't see one kind: an issue whose ask the code already satisfies, shipped by a CR that never referenced it. Where a title names something concrete (a command, a skill, a flag, a file), look for it (grep, git log --grep) and include the issue only if you can cite the file or commit.
Offer the edits with AskUserQuestion (multi-select, one option per edit, plus None), and hand the chosen ones to /anchor:issue as one batch ("Several issues at once"). That skill backs each issue up and gets approval of the exact text before writing it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (chris-peterson/anchor) — no native marketplace selected
npx claudepluginhub p/chris-peterson-anchor13 skills in this plugin
/amendFold the staged changes into the last commit — commit's flow with the amend already chosen, so tests and the review still run before it amends and pushes. Use when amending, fixing up HEAD, or folding a change into the previous commit./commitStage changes, run tests, review the diff and drafted commit message with the user, then commit and push once they approve. Use when work is ready to commit or push; the diff review is a step of this skill, so don't offer to show the changes as a separate step beforehand./issueFile a new forge issue (or update an existing one) that leads with WHY the work is needed, or review edits to several issues as one batch. Use when filing, creating, drafting, or updating an issue or ticket, or editing several at once (retitle, relabel, close, rewrite bodies). To find, browse, or pick which issue to work on next, use the `backlog` skill instead.