Linear Git
Automates linear Git workflows like GitLab Flow, enforcing sequential commits and simplifying branching/merging processes.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add linear-git npx -- -y @trustedskills/linear-git
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"linear-git": {
"command": "npx",
"args": [
"-y",
"@trustedskills/linear-git"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill, Linear Git, automates workflows based on the Linear project management system and integrates with Git repositories. It allows an AI agent to create branches linked to Linear issues, generate pull requests from those issues, and display commit information including Linear issue references. The tool leverages the linear-cli command-line interface to streamline common tasks within a linear Git workflow like GitLab Flow.
When to use it
- When you need to quickly create a new branch associated with a specific Linear issue (e.g., "LIN-123").
- To automatically generate a pull request from a Linear issue, simplifying the code review process.
- For displaying commit history and ensuring commits are properly linked to Linear issues.
- When you want to create a draft pull request for early feedback.
Key capabilities
- Branch creation: Creates new Git branches associated with Linear issues (e.g.,
linear-cli g checkout LIN-123). - Pull Request generation: Generates GitHub pull requests directly from Linear issues (e.g.,
linear-cli g pr LIN-123). - Base branch specification: Allows specifying the base branch for pull request creation (e.g.,
linear-cli g pr LIN-123 --base main). - Context awareness: Retrieves information about the Linear issue associated with the current Git branch (
linear-cli context). - Commit display: Shows commit history, including Linear issue references (e.g.,
linear-cli g commits).
Example prompts
- "Create a branch for Linear issue LIN-123."
- "Generate a pull request from Linear issue LIN-123 and make it a draft."
- "Show me the commit history with Linear issue references."
Tips & gotchas
- This skill relies on the
linear-clicommand-line tool being properly configured and authenticated. - The base branch for pull requests can be explicitly specified using the
--baseflag. - Output can be formatted as JSON using the
--output jsonflag for programmatic use.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.