Plan to linear

From aspiers/ai-config · View interactive version

Plan to linear is an AI agent skill from the GitHub repository aspiers/ai-config. Decompose an approved implementation plan into self-contained Linear issues with zero guesswork. Use when breaking down a plan into actionable Linear tasks via the MCP server.

How to use this skill

Skill file

Plan to Linear

You are taking an approved implementation plan and decomposing it into Linear

issues via the Linear MCP server. Each issue must be 100% self-contained

so that any agent picking it up has zero questions and needs zero assumptions.

It should also reference the plan and other relevant resources it was based

on.

Prerequisites

The Linear MCP server must be configured. If it is not available, tell the

user to set it up.

Claude Code:

claude mcp add --transport http linear-server https://mcp.linear.app/mcp

Then run /mcp to authenticate.

OpenCode — add to opencode.json (project or global):

{
  "mcp": {
    "linear": {
      "type": "remote",
      "url": "https://mcp.linear.app/mcp"
    }
  }
}

Then run opencode mcp auth linear to authenticate.

Workflow

1. Find the plan

The plan may be provided as:

conversation)

— use get_issue to retrieve it)

If neither is provided, check the existing conversation for a recently

referenced plan. If none exists, ask the user to provide one.

Read the plan thoroughly before proceeding.

2. Discover the Linear workspace

Before creating issues, gather workspace context:

3. Explore the codebase if needed

Before proposing issues, check how detailed the plan is in terms of:

If these are already established in the plan, then they should be used directly.

Otherwise, explore the codebase to discover them. This detail is critical —

issues need concrete file paths and function references, not vague

descriptions.

4. Propose Issues

Break the plan into granular implementation tasks. For each proposed issue,

show:

[1] <title>
    Parent: (none | issue number — for sub-issue grouping)
    Blocked by: (none | issue numbers)
    Files: <file paths>
    Summary: <2-3 sentences>

[2] <title>
    Parent: [1]
    Blocked by: (none)
    Files: <file paths>
    Summary: <2-3 sentences>
Structuring with Sub-issues

Use sub-issues (parent/child) for logical grouping — when several issues

are parts of one coherent unit of work. The parent issue describes the overall

goal; children are the individual implementation steps.

For example, a "User profile display name" feature might have a parent issue

with children for schema migration, service layer, API route, and tests.

Use blocking relations (blocks/blockedBy) for ordering — when one

issue must complete before another can start, regardless of whether they share

a parent.

These are orthogonal: sub-issues within the same parent can block each other

(e.g., migration child blocks service-layer child), and blocking can cross

parent boundaries.

5. Refine with User

Present the proposed issues and ask for feedback:

Iterate until the user approves.

6. Decide on Organisation

Issues need to be grouped so they can be found and filtered together. Linear

offers several mechanisms; the right choice depends on the workspace's

conventions and the scope of the work.

Consider the following options (not mutually exclusive):

issues. Use list_projects to see if a suitable project already exists, or

create one with save_project.

issues to the appropriate milestone via save_issue(milestone: ...).

concerns or when a project would be overkill. Prefer reusing existing

labels (from list_issue_labels) in a manner consistent with how other

issues in the workspace use them. Only create a new label with

create_issue_label if no suitable one exists.

that may provide sufficient organisation without any of the above.

If the right approach is obvious (e.g., the plan names a project, or the

user has already specified one), use it directly.

Otherwise, ask the user which organisation strategy to use, presenting the

options above with a brief explanation. Do not assume.

7. Create Issues

Create issues using the save_issue MCP tool. The creation order matters

because you need IDs from parent issues and blocking issues before you can

reference them.

Creation order:

  1. Parent issues first (if using sub-issue grouping)
  2. Blocking issues before the issues they block
  3. Leaf issues last

For each issue, call save_issue with:

save_issue(
  title: "Issue title",
  team: "<team-name-or-id>",
  description: "<full markdown description — see template below>",
  priority: 3,           # 1=Urgent, 2=High, 3=Normal, 4=Low
  parentId: "<parent-id>",    # if this is a sub-issue
  blockedBy: ["<issue-id>"],  # issues that must complete first
  project: "<project-name>",  # if using a project
  milestone: "<milestone>",   # if using milestones
  labels: ["<label>"],        # if using labels
)

Setting blocking relations:

Use whichever direction is natural at creation time. Both fields are

append-only (existing relations are never removed).

After creating all issues, show a summary with issue identifiers, titles,

parent relationships, and the dependency graph.

Issue Quality Standard

Every issue MUST follow these rules. No exceptions.

100% Self-contained

An issue includes ALL context an agent needs to complete the work without

reading the plan, without asking questions, and without exploring the codebase

to figure out what to do. The issue IS the spec for that task.

References relevant context

The issue should reference the plan file(s) and other relevant resources it

was based on or needs.

No assumptions

Bad: "Update the service to handle the new field"

Good: "In src/services/user/UserService.ts, add a displayName parameter

(type: string, max 50 chars) to the updateProfile method."

No guesswork

Bad: "Add validation for the input"

Good: "In src/routes/api/user.ts, add validation to the request body using

the existing userUpdateSchema from src/lib/schemas/user.ts. On validation

failure, return HTTP 400 with a structured error response using the project's

error helper. Test: send a request with displayName exceeding 50 chars and

verify 400 response."

Clear dependencies

Bad: "This needs the database migration to be done first"

Good: "Blocked by LIN-123 (Add display_name column to users table). This

issue expects the display_name column (type: varchar(50), nullable,

default null) to exist on the users table."

Acceptance criteria

Bad: "Implement the feature"

Good: "Done when: (1) POST /api/user with { displayName: 'Test' } updates

the display_name column in the database, (2) GET /api/user returns the

displayName field in the response, (3) Sending displayName longer than 50

chars returns HTTP 400, (4) Unit test covers all three cases and passes,

(5) All changes committed to git as logically grouped commit(s)."

Scoped to one concern

If an issue touches multiple files for different reasons, split it. A schema

migration is one issue. The service change is another. The API route change is

another. The tests are another (or colocated with the service issue if tightly

coupled).

Issue Description Template

Every issue description MUST follow this structure:

## Context

[Why this task exists. Reference the broader goal, plan file path, and any relevant issue IDs and resources.]

## Task

[Exactly what to do. Specific files, functions, line numbers where known, exact changes.]

## Files

[Every file path that will be read or modified, with what happens to each:]
- `src/path/to/file.ts` — modify: add X method
- `src/path/to/other.ts` — read: reference existing Y pattern
- `test/path/to/file.test.ts` — create: tests for X

## Dependencies

[What must be complete before this. What this produces for downstream issues:]
- Blocked by: LIN-123 (<title>) — needs <specific thing>
- Produces: <what downstream issues will consume>

## Acceptance Criteria

[Concrete, testable conditions. Not "implement X" but "when Y happens, Z results":]
1. <specific testable condition>
2. <specific testable condition>
3. <specific testable condition>
4. All changes committed to git as logically grouped commit(s)

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.