Linear create issue

From theexperiencecompany/gaia · View interactive version

Linear create issue is an AI agent skill from the GitHub repository theexperiencecompany/gaia. Create Linear issues intelligently - search for duplicates, learn team patterns, evaluate sub-issue breakdown, then create with proper context.

How to use this skill

Skill file

Linear Create Issue

When to Use

Tools

Discovery & Context

Creation

Workflow

Step 1: Search for Duplicates (MANDATORY)

Before creating anything, search for existing issues:

LINEAR_CUSTOM_SEARCH_ISSUES(query="<keywords from user request>")

If similar issues exist:

Step 2: Learn Team Patterns

Understand how the team structures issues:

  1. Get workspace context:

```

LINEAR_CUSTOM_GET_WORKSPACE_CONTEXT()

```

This reveals team names, available states, labels, and projects.

  1. Read recent team issues (2-3):

```

LINEAR_CUSTOM_SEARCH_ISSUES(query="recent")

```

Study the results to learn:

  1. Match the team's style when writing the title and description.

Step 3: Evaluate Sub-Issue Potential

If the user's request is broad or multi-faceted:

If the request is specific and focused, skip sub-issues entirely.

Step 4: Resolve All Entities

Use RESOLVE_CONTEXT to convert names to IDs:

LINEAR_CUSTOM_RESOLVE_CONTEXT(
    team_name="engineering",
    user_name="john",
    label_names=["bug", "critical"],
    project_name="Q1 Sprint",
    state_name="backlog"
)

This returns: team_id, user_id, label_ids, project_id, state_id

For cycle_id (adding to current sprint):

LINEAR_CUSTOM_GET_ACTIVE_SPRINT()

Step 5: Create the Issue

LINEAR_CUSTOM_CREATE_ISSUE(
    team_id=resolved_team_id,
    title="Formatted like team's convention",
    description="Structured like team's existing issues",
    assignee_id=resolved_user_id,
    priority=2,
    label_ids=resolved_label_ids,
    project_id=resolved_project_id,
    state_id=resolved_state_id,
    cycle_id=sprint_cycle_id,
    sub_issues=[
        {"title": "Sub-task 1", "priority": 2},
        {"title": "Sub-task 2", "priority": 2}
    ]
)

Step 6: Confirm Results

Report back clearly:

Priority Mapping

Important Rules

  1. Always search first: Never create without checking for duplicates
  2. Learn before creating: Read team patterns to match style
  3. Never guess IDs: Always use RESOLVE_CONTEXT to convert names
  4. Suggest structure: Offer sub-issues for broad tasks
  5. Confirm results: Show what was created with identifiers and URLs
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.