Agent skill
refine-linear-task
Refine and enhance Linear task descriptions. Use when user says "refine this Linear task", "improve task description", "make this task clearer", "enhance Linear issue", or needs to improve clarity, completeness, and actionability of Linear issues.
Install this agent skill to your Project
npx add-skill https://github.com/Uniswap/ai-toolkit/tree/next/packages/plugins/uniswap-integrations/skills/refine-linear-task
SKILL.md
Linear Task Refiner
Analyze and refine Linear task descriptions to improve clarity, completeness, and actionability through AI-assisted enhancement.
When to Activate
- User wants to refine a Linear task
- User mentions improving task descriptions
- User asks to make a task clearer or more actionable
- User wants to add acceptance criteria to a task
- User mentions Linear issue refinement
Overview
This skill takes a Linear issue identifier and refines its description by:
- Analyzing the current task description for gaps and ambiguities
- Researching relevant codebase context to inform the refinement
- Generating an improved description with clear structure
- Presenting the changes for user approval
- Updating the Linear issue (with user consent)
Inputs
Parse from request:
- issue_identifier: The Linear issue ID (e.g., "DEV-123", "dai-456")
- --focus: Optional focus for refinement (security, performance, testing, accessibility)
- --update: Auto-update after approval (default: false)
Quick Process
Phase 1: Fetch and Analyze Current Task
- Fetch Issue Details via Linear MCP tools
- Display Current State: Show issue details and description
- Analyze for Gaps: Evaluate against criteria:
- Clarity: Is the problem/goal clearly stated?
- Context: Is there sufficient background information?
- Scope: Are boundaries clearly defined?
- Acceptance Criteria: Are success conditions defined?
- Technical Details: Are implementation hints provided?
- Dependencies: Are related tasks/blockers mentioned?
Phase 2: Research Codebase Context
If the task relates to existing code:
- Identify Relevant Areas: Search for mentioned files, functions, components
- Gather Technical Context: Use Explore agent for patterns, tests, architecture
- Summarize Findings: Document relevant files, patterns, considerations
Phase 3: Generate Refined Description
Create comprehensive, well-structured description:
- Problem Statement: Clear, specific description of what and why
- Context: Background information, related decisions
- Scope: In-scope and out-of-scope items explicitly listed
- Acceptance Criteria: Specific, testable success conditions
- Technical Notes: Implementation hints, relevant patterns
- Dependencies: Related tasks, blockers
- References: Documentation, design docs, related issues
Phase 4: Present and Confirm
- Show Comparison: Clear before/after comparison
- Summarize Improvements: List specific enhancements made
- Request Approval: Approve, Edit, or Cancel
Phase 5: Update Linear (with approval)
- Update Issue Description via Linear MCP
- Add Comment (optional): Note the refinement
- Confirm Success: Provide issue URL
Focus Areas
--focus security
- Analyze for security implications
- Add security-related acceptance criteria
- Note potential vulnerabilities or risks
--focus performance
- Consider performance impact
- Add performance-related acceptance criteria
- Include benchmarks or targets
--focus testing
- Emphasize test requirements
- Add test-specific acceptance criteria
- Note edge cases to cover
--focus accessibility
- Consider a11y implications
- Add accessibility acceptance criteria
- Reference WCAG guidelines if applicable
Output Format
Return structured summary:
- Issue: Identifier and title
- Status: Updated / Not Updated
- Improvements Made: List of specific improvements
- Gap Analysis Summary: Before/after comparison table
- Next Steps: Review, assign, begin implementation
Best Practices
- Start with Context: Always fetch and display current state first
- Research Before Refining: Use codebase exploration for accuracy
- Be Specific: Replace vague language with concrete, actionable items
- Make Criteria Testable: Each acceptance criterion should be verifiable
- Respect Original Intent: Enhance and clarify, don't fundamentally change
- Note Assumptions: Explicitly note any assumptions made
Examples
"Refine Linear task DEV-123"
"Improve the description for DAI-456"
"Make task DEV-789 more actionable with acceptance criteria"
"Refine DEV-104 with focus on security"
Error Handling
- Issue Not Found: Verify identifier, access, and deletion status
- No Linear Access: Check MCP server config and API key
- Update Failed: Show error, offer manual copy option
Integration
Works well with implementation workflow:
- Refine:
/refine-linear-task DEV-123- Clarify what needs to be done - Explore: Understand the codebase
- Plan: Create implementation plan
- Execute: Implement the solution
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
review-plan
Review implementation plans for completeness and feasibility. Use when user says "review this plan before I start", "is this implementation plan complete", "check if this plan aligns with our patterns", "give me feedback on my implementation strategy", or "validate this plan before we execute it".
plan-implementation
Create implementation plans for features and changes. Use when user says "plan how to implement user authentication", "how should I add dark mode to the app", "what's the best way to refactor the database layer", "create a plan for migrating to the new API", or "I need to implement [feature] - help me plan it out".
execute-plan
Execute implementation plans step-by-step. Use when user says "execute the plan", "implement the plan we created", "start building based on the plan", "go ahead and implement it", "proceed with the implementation", "execute as a stack", "create a PR stack while implementing", "implement with one PR per step", or references a plan file and wants to begin coding.
generate-commit-message
Generate well-structured git commit messages. Use when user says "generate commit message", "write a commit", "what should my commit message be", "create commit message for these changes", or needs help crafting conventional commit messages.
plan-swarm
Refine plans through multi-agent expert discussion. Use when user says "get multiple expert opinions on this plan", "I want different perspectives on this approach", "have the agents discuss this strategy", "refine the plan through collaborative review", or "what would different specialists think about this design".
create-pr
Create or update pull requests with conventional commits. Use when user says "create a PR for these changes", "submit this for review", "open a pull request", "push these changes and create a PR", "I'm ready to submit this work", or "create PR and link to issue
Didn't find tool you were looking for?