AgentSkillsCN

tools-linear

采用 PostHog 特性标记、使用追踪、升级提示,以及与 Stripe 兼容的支付钩子,打造常见的免费增值/付费功能实现模式。当您需要为未来可能收费的功能添加特性时,可使用此技能。

SKILL.md
--- frontmatter
name: tools-linear
description: Issue tracking and project management with Linear MCP. Use when creating issues, managing tasks, updating status, or working with Linear projects. Provides conventions for sizing, status, comments, and labels.

Linear Skill

Conventions and patterns for using the Linear MCP server effectively.

When to Use This Skill

  • Creating or updating Linear issues
  • Managing project tasks and priorities
  • Adding comments or context to issues
  • Querying issues by status, assignee, or project

MCP Tools

Use the Linear MCP server tools:

ToolPurpose
linear_create_issueCreate new issues
linear_update_issueUpdate existing issues
linear_search_issuesFind issues by query
linear_get_issueGet issue details
linear_add_commentAdd comments to issues
linear_get_teamsList available teams
linear_get_projectsList projects

Field Conventions

Title

Format: <type>: <brief description>

Types:

  • feat - New feature or enhancement
  • fix - Bug fix
  • chore - Maintenance, refactoring, dependencies
  • docs - Documentation
  • perf - Performance improvement

Examples:

code
feat: Add user authentication flow
fix: Resolve null pointer in checkout
chore: Upgrade React to v19
docs: Update API documentation

Description

Structure descriptions consistently:

markdown
## Context
[Why this issue exists - background and motivation]

## Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2
- [ ] Criterion 3

## Technical Notes
[Optional: implementation hints, constraints, dependencies]

Estimate (Sizing)

Use fibonacci-style story points:

PointsMeaningRough Time
0Trivial< 30 min
1Small1-2 hours
2Medium-smallHalf day
3Medium1 day
5Medium-large2-3 days
8Large1 week
13Very largeConsider splitting

Default to smaller estimates. If unsure between 3 and 5, pick 3.

Priority

PriorityWhen to Use
UrgentProduction down, security issue, blocking release
HighCurrent sprint commitment, customer-facing bugs
MediumPlanned work, improvements (default)
LowNice-to-have, tech debt, future consideration

Status Workflow

Standard workflow states:

code
Backlog → Todo → In Progress → In Review → Done
                     ↓
                  Blocked

Status conventions:

  • Backlog: Triaged but not scheduled
  • Todo: Committed for current cycle
  • In Progress: Actively being worked on (limit WIP)
  • In Review: PR submitted, awaiting review
  • Blocked: Waiting on external dependency
  • Done: Shipped and verified

Labels

Use labels sparingly. Recommended categories:

CategoryExamples
Areafrontend, backend, api, infra
Typebug, enhancement, tech-debt
Effortquick-win, spike

Comments

When to Comment

Add comments for:

  • Status updates when blocked
  • Technical findings during implementation
  • Links to relevant PRs or docs
  • Decision rationale

Comment Format

markdown
**[Status Update]**
Blocked waiting on API credentials from vendor. ETA tomorrow.

---

**[Technical Note]**
Found that the existing auth middleware can be reused. See `src/middleware/auth.ts`.

---

**[Decision]**
Going with approach A because of X. Considered B but rejected due to Y.

Linking PRs

When a PR is created, add a comment:

markdown
**[PR Submitted]**
https://github.com/org/repo/pull/123

Ready for review.

Workflow Patterns

Creating an Issue

code
1. Use linear_get_teams to find team ID
2. Create issue with:
   - Descriptive title (type: description)
   - Structured description with acceptance criteria
   - Appropriate estimate (default to smaller)
   - Priority (default: Medium)
   - Status: Backlog or Todo

Starting Work

code
1. Move issue to "In Progress"
2. Begin implementation
3. Add comments for significant findings

Submitting for Review

code
1. Create PR (see Git conventions)
2. Add comment linking PR to issue
3. Move issue to "In Review"

Completing Work

code
1. Merge PR
2. Move issue to "Done"
3. Add final comment if needed (lessons learned, follow-up items)

Important: No Git Branches

Do NOT use Linear's git branch integration. We manage branches manually.

When working on an issue:

  1. Create branches using standard git commands
  2. Name branches using your team's convention (not Linear's auto-naming)
  3. Link work to issues via PR descriptions or comments only

Query Examples

Find My Open Issues

code
Search: assignee:me is:open

Find Blocked Issues

code
Search: status:Blocked

Find High Priority Bugs

code
Search: priority:High label:bug

Find Unestimated Issues

code
Search: estimate:none project:"Current Sprint"

Anti-Patterns

Avoid

  • Leaving issues in "In Progress" indefinitely
  • Creating issues without acceptance criteria
  • Using 13-point estimates (split the issue instead)
  • Updating status without context (add a comment)
  • Creating issues for work already done

Prefer

  • Small, focused issues (< 8 points)
  • Clear acceptance criteria
  • Regular status updates via comments
  • Closing issues when done (not leaving in review)

Quick Reference

ActionApproach
Create issueTitle with type prefix, structured description
Size issueFibonacci points, default smaller
Update statusMove through workflow, add context comments
Link PRComment with PR URL when submitted
Close issueMove to Done after PR merged and verified