nicolai-bernsen/backlogd/linear
Claude Code and agent skill by nicolai-bernsen/backlogd
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
backlogd's operating model for Linear via the official MCP. Use whenever a backlogd agent touches Linear — picking up a problem, deciding Issue-vs-Project structure, decomposing work into sub-issues, setting blocks/blocked-by, transitioning workflow state, reporting progress, or surfacing blockers. Pairs with references/linear-mcp.md (exact mcp__linear__* usage) and references/linear-model.md (Linear object model + terminology).
Install
npx vskill@latest install nicolai-bernsen/backlogd/linearSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as nicolai-bernsen/backlogd/linear.
Using Linear in backlogd
backlogd runs entirely on Linear through the official Linear MCP (mcp__linear__*, OAuth — no API keys). This skill is the shared operating model every backlogd agent follows: how a problem maps onto Linear, who reads and writes what, and the rules that keep automated work correct.
It is runtime guidance for backlogd's own agents — the /backlogd:scope + /backlogd:solve scrum-master commands and the backlogd:developer.
Read this file first; reach for a reference when you act:- [`references/linear-model.md`](references/linear-model.md) — what each Linearprimitive is (Issue, Project, Milestone, Cycle, relations, workflow-statecategories) and a backlogd→Linear terminology table. Read it when you're unsure whata Linear concept means.- [`references/linear-mcp.md`](references/linear-mcp.md) — the exactmcp__linear__*tools, their parameters, and the load-bearing call rules (state-by-type,upsert/idempotency, git sync, markdown). Read it before every write.This file is the what / why (the model and the policy). The references are the how(concepts and mechanics). When they seem to disagree: the references win on mechanics,this file wins on policy.
Current state vs target
This skill describes the target operating model. Some of it is not wired yet. Where that's true, it is flagged inline:
🎯 Target — not yet wired. …
Developers writing to Linear is wired, with the NB-340 workaround documented below. The backlogd:developer writes comments on its own assigned issue (one progress/result comment edited in place, plus a personal checklist and any blocker note) and nothing else. It does not create sub-issues, set relations, or change state — the scrum-master commands (/backlogd:scope + /backlogd:solve) own all structure and state. The boundary is enforced by the developer's tool grant (get_issue / list_comments / save_comment only; see agents/developer.md).
NB-340: tool-grant hazard the orchestrator must work around
A finding from a parallel run (NB-340, closed; investigation note at docs/notes/subagent-mcp-tool-grant.md) documents that subagent runtime tool grants behave as frontmatter ∩ parent's currently-loaded deferred tools. In plain English: even if a subagent's frontmatter lists mcp__linear__save_comment, the subagent may not actually have it at runtime unless the orchestrator has loaded it first. The same hazard applies to every mcp__linear__* tool and to ToolSearch itself.
This is a Claude Code platform behaviour — not a backlogd bug — but every command that dispatches a subagent has to work around it. backlogd uses two complementary mitigations:
- Defense at the dispatched agent (NB-345).
agents/developer.mdcarries **no
tools: line** — it inherits the full tool surface from the orchestrator, sidestepping the intersection entirely. The boundary moves into the system prompt ("you have these tools at runtime, but the contract forbids their use except for save_comment on your own issue"). Trade-off: lose harness-enforced tool restriction, gain the functional capability the contract requires.
- Defense at the orchestrator (NB-346). Every
/backlogd:*command begins with
a §0 pre-load step that calls ToolSearch once with the canonical Linear MCP tool list — see Deferred tools — pre-load before dispatch below. This loads the deferred tools into the parent's context before any subagent dispatch, so a future specialist with an explicit tools: list (e.g. the NB-326 reviewer that deliberately wants a restricted grant) receives the tools it names.
Verified working (NB-368, 2026-05-29) — not asserted: after the §0 pre-load, a dispatched backlogd:reviewer (explicit tools: list, no ToolSearch of its own) received mcp__linear__save_comment as a directly-callable tool and posted its comment end-to-end. See docs/notes/subagent-mcp-tool-grant.md §8.
The two are complementary, not alternatives. NB-345 keeps today's developer working even if a session forgets the §0 pre-load; NB-346 means a future restricted-grant specialist works without dropping back to the NB-345 workaround.
agents/developer.md's missing tools: line (NB-345) is a deliberate exception, not an inconsistency: the developer needs a broad grant (Edit/Write/Bash/git and Linear) for end-to-end code writes, whereas the restricted specialists (reviewer/tester/refiner) keep their explicit lists — boundary preserved — because §0 makes that path work (verified, NB-368).
If a subagent still reports it could not post its **[backlogd developer]** (or **[backlogd reviewer]**) comment, treat that as a tool-grant skew, not a subagent failure. Re-dispatch from a fresh session; do not silently accept a missing work-log comment as a "developer issue", and do not substitute an orchestrator-authored work-log comment for the developer's — that loses the audit trail the comment exists to record.
NB-340 closed as the platform-side root cause investigation; backlogd ships both mitigations and re-evaluates if the upstream behaviour changes.
Specialist-grant contract (NB-413)
NB-340 above covers the Linear MCP tools a subagent may not have at runtime. Its sibling, NB-413, covers the runnable checks an AC requires (markdownlint, an index regen + --check, a drift test, a label/issue create) that a specialist on a narrow grant cannot execute — which used to fall silently to the orchestrator or the gate, relocating the trust boundary upward with nobody deciding it should (instances: NB-379, NB-381). The contract closes that gap without widening the restricted grants:
- Enumerated hand-off — a specialist runs every AC-required check its grant can run
and enumerates each one it cannot in a machine-readable Deferred-checks: line in its STATUS report (agents/developer.md); the gate is obligated to run each (skills/solve/gate.md). Replaces silent deferral.
- markdownlint folded into the gate — the reviewer (which holds
Bash) runs
markdownlint-cli2 on every changed .md the way CI does (pinned v0.22.1 + .markdownlint-cli2.jsonc, trusting the error count over the exit code) in every pre-commit gate, so the most common docs check never silently defers (NB-417).
The full decision + the rejected alternatives (widen every grant; the NB-353 disallowedTools: inverted grant) live in skills/reviewer/SKILL.md → Specialist-grant contract, the home of the trust model this extends.
Deferred tools — pre-load before dispatch
Every /backlogd:* command begins with a §0 "Pre-load deferred tools" step that makes a single batched ToolSearch call naming the canonical Linear MCP tool list. This is the NB-346 orchestrator-layer mitigation for the NB-340 tool-grant hazard above — defense in depth so a subagent dispatched with an explicit tools: list that names Linear tools receives them at runtime, not a stripped intersection. This is verified, not asserted (NB-368, 2026-05-29): behind §0 the named tools are materialised as directly-callable for the explicit-list child — see docs/notes/subagent-mcp-tool-grant.md §8.
Canonical pre-load list (write-capable verbs use the full set; read-only verbs may use the read-only subset but for idiom consistency every command uses the full list):
The call (identical across every /backlogd:* command's §0):
The §0 step is the first step of each command, visible to anyone reading the file — never buried mid-flow. Inspiration: EveryInc/compound-engineering-plugin's ce-code-review SKILL.md uses the same Phase-0 pre-load idiom for AskUserQuestion.
Fallback. ToolSearch is itself a deferred tool; if a future Claude Code version removes it, fall back to the prior idiom — invoke each mcp__linear__* tool at least once from the orchestrator's context before the first subagent dispatch. The identity-resolution path in each command already invokes list_teams, list_issue_statuses, and list_issue_labels, so the fallback is mostly free for the read-only tools; save_comment is the one a /backlogd:solve run may need to force via a scratch-comment nudge before its first developer dispatch.
The standing structure
- One Team — resolved at runtime. Every Issue belongs to exactly one team. backlogd
resolves the team from list_teams and caches it (along with workflow states and labels) to .backlogd/identity.json with a 24-hour TTL — see references/linear-mcp.md → "Resolve identity before you write" → "Cache identity to .backlogd/identity.json". Never hardcode a team name — every installer is on their own.
- The team's workflow. Do not hardcode the display names — resolve them at runtime and
match on the state category (type), see references/linear-mcp.md:
| Display name | Category (type) | |
|---|---|---|
| Backlog | backlog | |
| Todo | unstarted | |
| In Progress | started | |
| In Review | started | |
| Done | completed | |
| Canceled | canceled | |
| Duplicate | duplicate |
- The `problem` label is the opt-in pickup signal: an issue carrying
problemis
product-owner-filed work for backlogd. Nothing without the label is picked up.
- The `kind:ops` label is the optional route signal: an issue (problem or unit)
carrying kind:ops is ops-only — its solution is GitHub repo-ops or external content drafts, not a code diff. /backlogd:solve reads the label per-unit and routes ops units through skills/solve/ops.md (no worktree, no commit, no PR; the developer takes gh/repo-ops actions and posts an action log on the unit). /backlogd:scope applies the label when shaping a problem that is clearly repo-ops; it creates the label on the team via create_issue_label if it does not yet exist. The label is just a routing flag — no priority, no automation beyond this path. Mixed problems (some ops units, some code units) are out of scope for v1 — solve stops and asks the PO to split.
- Continuous flow — no Cycles. Problems are pulled on demand; backlogd does not run
time-boxed sprints in the core loop. Read progress from states (and, for Projects, the progress graph and health) — never a burndown.
- Engagement = Initiative. A consulting engagement is a Linear Initiative that groups
that engagement's problem-Projects (an Initiative is a hand-curated list of Projects). Name it for the engagement. The official MCP does expose an initiative-write tool — save_initiative (create/update) — so the engagement Initiative is reachable on backlogd's key-free MCP path; save_status_update({ type: "initiative" }) posts initiative-level health. See references/linear-mcp.md for both. Auto-creating/attaching the Initiative on pickup is a wiring task tracked separately (init create + status-update roll-ups); until that lands, refer to the Initiative by name and don't fail if it's absent.
Mapping a problem onto Linear — default-Issue, promote-on-discovery
You never have to predict "is this big?" up front. The rule is mechanical:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/linear/SKILL.md
Popularity
- Repository stars
- 2
- Repository forks
- 1
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nicolai-bernsen/backlogd/linear)