スキル一覧に戻る
djalmaaraujo

linear-milestone-create

by djalmaaraujo

0🍴 0📅 2026年1月14日
GitHubで見るManusで実行

SKILL.md


name: linear-milestone-create description: Create a milestone within an existing Linear project and optionally create issues from plans. Lists user's projects for selection, suggests milestone names, and can associate plan-based issues with the milestone. Use when user wants to add milestones to Linear projects. allowed-tools: Read, Write, Edit, Glob, Grep, AskUserQuestion, mcp__linear-server__list_teams, mcp__linear-server__list_projects, mcp__linear-server__get_project, mcp__linear-server__update_project, mcp__linear-server__create_issue, mcp__linear-server__list_issues user-invocable: true

Create Linear Milestone

You are now executing the linear-milestone-create skill. Follow these steps immediately:

Step 1: Verify Linear MCP Installation

Before proceeding, verify the Linear MCP server is available:

  1. Attempt to list teams: Call mcp__linear-server__list_teams
  2. If successful: Proceed to Step 2
  3. If fails or unavailable: Display error and exit:
════════════════════════════════════════
Linear MCP Not Available

The Linear MCP server (linear-server) is not installed or not configured.

To use Linear integration features:
1. Install the Linear MCP server
2. Configure your Linear API credentials
3. Restart Claude Code

For installation instructions, see:
https://github.com/anthropics/linear-mcp
════════════════════════════════════════

Step 2: List User's Projects

  1. Fetch user's projects: Call mcp__linear-server__list_projects with member: "me"
  2. Check if projects exist: If no projects found, display error:
════════════════════════════════════════
No Projects Found

You don't have any Linear projects yet.

To create a project from plans, run:
  /planner:linear-project-create [prefix]

Or create a project directly in Linear.
════════════════════════════════════════
  1. Store projects list for selection

Step 3: Project Selection

  1. Use AskUserQuestion to let user select a project:
Question: "Which project would you like to add a milestone to?"
Header: "Project"
Options: [
  "[Project 1 Name] - [Team Name]",
  "[Project 2 Name] - [Team Name]",
  "[Project 3 Name] - [Team Name]",
  ... (up to 4 options, with "Other" always available)
]
multiSelect: false
  1. Store selected project ID and details

Step 4: Analyze Project for Milestone Suggestion

  1. Get project details: Call mcp__linear-server__get_project with project ID
  2. Analyze existing milestones (if any):
    • Look for naming patterns (e.g., "v1.0", "Phase 1", "Sprint 1")
    • Identify the next logical milestone name
  3. Generate suggestion:
    • If pattern found: Suggest next in sequence (e.g., "v1.1", "Phase 2", "Sprint 2")
    • If no pattern: Suggest "Milestone 1" or based on project context

Step 5: Get Milestone Name

  1. Use AskUserQuestion with suggested name:
Question: "What should the milestone be named?"
Header: "Milestone"
Options: [
  "[Suggested Name] (Recommended)",
  "[Alternative suggestion based on project]",
  "Other"
]
multiSelect: false
  1. Store milestone name

Step 6: Generate Milestone Description

Create a meaningful milestone description based on:

  • Project context and goals
  • Phase/sprint purpose
  • Expected deliverables

Example:

## Milestone: [Name]

**Purpose**: [Brief description of what this milestone accomplishes]

**Scope**: [What's included in this milestone]

**Success Criteria**:
- [Criterion 1]
- [Criterion 2]
- [Criterion 3]

Step 7: Create Milestone

Linear handles milestones through project milestones or roadmap features. Use the appropriate method:

  1. Update project with milestone using mcp__linear-server__update_project:

    • Add milestone to project roadmap/milestones if supported
    • Or create a label/tag for milestone tracking
  2. Alternative approach if direct milestone not available:

    • Create a parent issue representing the milestone
    • Use labels to group milestone issues
  3. Store milestone identifier for issue association

Step 7b: Check for Spec Files

Check for spec files that could provide milestone context:

  1. Use Glob: Find all plans/*-spec.md files
  2. For each spec found:
    • Read the Configuration section to extract prefix
    • Store spec file info
  3. Store specs list for potential usage

Step 8: Ask About Plan-Based Issues

  1. Read plans/PROGRESS.md to find available plan prefixes

  2. Parse prefixes: Extract unique prefixes from plan names (e.g., "auth", "appt", "checkout")

  3. Check for matching specs: Note which prefixes have spec files

  4. Use AskUserQuestion:

Question: "Would you like to create issues from plans for this milestone?"
Header: "Issues"
Options: [
  "Yes - Select plans to include",
  "No - Milestone only"
]
multiSelect: false
  1. If "No": Skip to Step 11
  2. If "Yes": Continue to Step 9

Step 9: Select Plan Prefix

  1. Use AskUserQuestion to select prefix (indicate if spec exists):
Question: "Which plan prefix should be used for milestone issues?"
Header: "Prefix"
Options: [
  "auth (5 plans, has spec)",
  "appt (3 plans)",
  "checkout (2 plans, has spec)",
  "Other"
]
multiSelect: false
  1. Store selected prefix

Step 9b: Ask About Spec Usage (if spec exists for selected prefix)

If a spec exists for the selected prefix:

Question: "A spec file exists for this prefix. How would you like to use it for the milestone?"
Header: "Spec Usage"
Options: [
  "Use spec for milestone description (Recommended)",
    description: "Include relevant spec sections in the milestone description"
  "Summarize spec",
    description: "Generate a condensed summary of the spec"
  "Ignore spec",
    description: "Use plan content only for issues"
]
multiSelect: false

Store selection as milestone_spec_usage.

Step 10: Create Issues from Plans

For each plan with the selected prefix:

  1. Read plan file: Read plans/[prefix]-NN-name.md
  2. Create issue:
    mcp__linear-server__create_issue:
      title: [plan filename without .md]
      description: [full plan content]
      team: [project's team ID]
      project: [project ID]
      milestone: [milestone identifier if supported]
    
  3. Get issue URL from response
  4. Update plan file with linear_issue: [url]
  5. If project not already linked: Add linear_project: [project_url] too

Step 11: Update Plan Files

For each plan that had an issue created:

  1. Read the plan file
  2. Find the # Configuration section
  3. Add/update fields:

Before:

# Configuration

depends_on: "auth-00-setup.md"

# Plan: auth-01-database.md

After:

# Configuration

depends_on: "auth-00-setup.md"
linear_project: https://linear.app/team/project/PROJECT-ID
linear_issue: https://linear.app/team/issue/AUTH-123

# Plan: auth-01-database.md
  1. Write updated content back to file

Step 12: Report Results

Display creation summary:

════════════════════════════════════════
Linear Milestone Created Successfully

Project: [project name]
Milestone: [milestone name]

[If issues created:]
Issues Created: [N]

Plan → Issue Mapping:
- auth-00-setup.md → AUTH-100
  https://linear.app/team/issue/AUTH-100
- auth-01-database.md → AUTH-101
  https://linear.app/team/issue/AUTH-101

Plan files updated with linear_issue URLs.
[End if]

View project: https://linear.app/team/project/PROJECT-ID
════════════════════════════════════════

Reference Information

What This Skill Does

This skill creates milestones in existing Linear projects:

  1. Validates MCP: Ensures Linear MCP is available
  2. Lists Projects: Shows user's projects for selection
  3. Analyzes Patterns: Suggests milestone name based on existing milestones
  4. Creates Milestone: Adds milestone to selected project
  5. Checks for Specs: Identifies prefixes that have spec files
  6. Asks Spec Usage: If spec exists, asks how to use it for milestone description
  7. Optional Issues: Can create issues from plans for the milestone
  8. Updates Plans: Adds linear_project and linear_issue URLs to plan files

Spec Integration

When selecting plans for a milestone, the skill shows which prefixes have spec files:

  • auth (5 plans, has spec) - indicates spec file exists
  • appt (3 plans) - no spec file

If the selected prefix has a spec, users can choose how to use it:

OptionDescription
Use spec for milestone descriptionInclude spec sections in milestone description
Summarize specCondensed summary for milestone
Ignore specUse plan content only

This provides context from the spec for better milestone documentation.

Milestone Naming Suggestions

The skill analyzes existing milestones to suggest the next one:

Existing PatternSuggestion
v1.0, v1.1v1.2
Phase 1, Phase 2Phase 3
Sprint 1Sprint 2
Q1 2024Q2 2024
NoneMilestone 1

Linear Milestone Support

Linear's milestone support may vary. The skill handles this by:

  • Using project milestones if available
  • Using roadmap features as alternative
  • Creating parent issues with labels as fallback

Configuration Format

Plan files are updated with:

linear_project: https://linear.app/team/project/PROJECT-ID
linear_issue: https://linear.app/team/issue/ISSUE-ID

Integration with Other Skills

  • Works alongside linear-project-create for existing projects
  • Uses same issue creation logic as linear-issue-create
  • Can add issues to projects created by linear-project-create

Error Handling

  • No Linear MCP: Clear error with installation instructions
  • No projects found: Suggests creating a project first
  • No plans found: Continues with milestone-only creation
  • API errors: Reports specific errors, continues where possible

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です