From linear-integration
This skill should be used when the user asks to "find bugs", "review for bugs", "find logic errors", "check for race conditions", "find resource leaks", "audit error handling", "find null safety issues", or wants a systematic codebase review focused on functional bugs that files findings as Linear issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/linear-integration:create-linear-bug-issuesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Review the codebase for functional bugs, then file each finding as a Linear issue.
Review the codebase for functional bugs, then file each finding as a Linear issue.
This skill dispatches a deep codebase analysis focused exclusively on bugs — logic errors, race conditions, resource leaks, null safety issues, error handling gaps, and incorrect state management. Each finding is documented with code snippets and filed as a Linear issue.
Before reviewing code, collect the Linear team, project, and user information.
Fetch all data in parallel using mcp__claude_ai_Linear__list_teams, mcp__claude_ai_Linear__list_projects,
mcp__claude_ai_Linear__list_users, and mcp__claude_ai_Linear__list_issue_labels.
Ask the user all three questions in a single AskUserQuestion call with these questions:
Important: AskUserQuestion requires at least 2 options per question. If a question would have only 1 option,
auto-select that option and omit it from the AskUserQuestion call. If all questions can be auto-selected, skip the
AskUserQuestion call entirely and inform the user of the auto-selected values.
Check existing labels from the fetched label data for the chosen team. If a label named bug does not already
exist, create it using mcp__claude_ai_Linear__create_issue_label:
bug (color: #e74c3c) — Functional bugs or logic errorsDispatch a subagent to review the codebase. Use the feature-dev:code-explorer subagent type for deep analysis.
Bug Finder Agent: Review all source files for functional bugs, logic errors, race conditions, resource leaks, null safety issues, error handling gaps, and incorrect state management. For each finding, produce:
After the agent completes:
For each approved finding, create a Linear issue using mcp__claude_ai_Linear__save_issue with:
title: <concise finding title>
team: <user-selected team>
project: <user-selected project>
assignee: <user-selected assignee, or omit if "No assignee" was chosen>
labels: ["bug"]
priority: <mapped from importance: Critical=1, High=2, Medium=3, Low=4>
state: Todo
description: |
## Description
<what the issue is and context>
## Impact
<what goes wrong if left unfixed>
## Importance
<Critical | High | Medium | Low> - <brief justification>
## Problem Code
**File:** `<file_path>`
```
Suggested Fix
<code snippet showing the corrected code>
After all issues are created, present a final summary with the Linear issue identifiers and links.
## Finding Quality Standards
Each finding must meet these criteria before filing:
- **Specific**: Point to exact code, not vague observations.
- **Actionable**: Include a concrete fix, not just a complaint.
- **Impactful**: Explain real consequences, not theoretical purity concerns.
- **Non-trivial**: Skip style-only nits. Focus on findings that affect correctness or reliability.
## Priority Mapping
| Importance | Linear Priority | Criteria |
|------------|----------------|----------|
| Critical | 1 (Urgent) | Data loss, security flaw, crash in production path |
| High | 2 (High) | Incorrect behavior under common conditions, race condition |
| Medium | 3 (Normal) | Edge-case bugs, minor resource leaks |
| Low | 4 (Low) | Defensive coding gaps unlikely to trigger in practice |
npx claudepluginhub pambrose/pambrose-claude-plugins --plugin linear-integrationRuns a structured 14-dimension bug hunt using Draft context (architecture, tech-stack, product) to eliminate false positives. Generates severity-ranked reports with code evidence, data flow traces, and optional regression tests.
Proactively hunts for bugs by analyzing codebase risk (complexity, coverage, structure), then spawns investigators that write reproducing tests to validate suspected bugs. Advisory only — produces findings and tickets, no fixes.
Validates GitHub/GitLab issues against the codebase with root cause analysis and reproduction scenarios. Useful for issue triage and bug validation.