| name | gitkraken-cli |
| description | How to use GitKraken CLI MCP tools for git, issue, and PR operations. Commit composition and message policy live in the conventional-commit skill. |
| type | workflow |
| enforcement | guide |
| priority | high |
ABOUTME: GitKraken CLI MCP tool usage patterns for git operations.
ABOUTME: Tool mechanics only; commit policy is delegated to conventional-commit.
GitKraken CLI MCP Tools
Git Operations via MCP
Use GitKraken MCP tools instead of raw git CLI commands.
Commit composition and messages follow the conventional-commit skill.
Purpose
Provide structured git workflows using the GitKraken CLI MCP server. These tools offer richer integration than raw git commands — branch management, PR creation, issue linking, worktrees, stashing, and repository status/history inspection.
When This Skill Activates
- Any git operation: commit, branch, push, pull, stash, checkout
- PR creation, review, or management
- Issue lookup or linking
- Keywords: commit, branch, push, pull, PR, merge, stash, blame, worktree
Prerequisite for Commits
Always load the conventional-commit skill before staging or committing. This skill explains which GitKraken tool to call; conventional-commit decides how changes are split and how messages are written.
Available Tools
Core Git Operations
| Tool | Purpose | Key Parameters |
|---|
git_status | Working tree status | directory |
git_add_or_commit | Stage files or create commits | directory, action (add/commit), files[], message |
git_log_or_diff | View history or changes | directory, action (log/diff), revision_range, since, until, authors[] |
git_branch | List or create branches | directory, action (list/create), branch_name |
git_checkout | Switch branches | directory, branch |
git_fetch | Fetch from remote | directory |
git_pull | Pull from remote | directory |
git_push | Push to remote | directory |
git_stash | Stash changes | directory, name, include_untracked, staged_only |
git_blame | Line-by-line attribution | directory, file |
git_worktree | Manage worktrees | directory, action (list/add), path, branch |
GitLens Features
| Tool | Purpose | When to Use |
|---|
gitlens_commit_composer | AI-assisted commit organization | Large changesets that need proposed commit groups; verify against conventional-commit before accepting |
gitlens_launchpad | Prioritized PR dashboard | Checking open PRs, finding what needs attention |
gitlens_start_review | PR review in dedicated worktree | Code review workflows |
gitlens_start_work | Branch from issue with linking | Starting work on a tracked issue |
Issue Management
| Tool | Purpose | Key Parameters |
|---|
issues_assigned_to_me | List my issues | provider |
issues_get_detail | Get issue details | provider, issue_id, repository_name, repository_organization |
issues_add_comment | Comment on issue | provider, issue_id, comment |
Pull Request Management
| Tool | Purpose | Key Parameters |
|---|
pull_request_create | Create PR | provider, repository_name, repository_organization, title, source_branch, target_branch |
pull_request_get_detail | Get PR details | provider, pull_request_id, repository_name, repository_organization |
pull_request_get_comments | List PR comments | provider, pull_request_id, repository_name, repository_organization |
pull_request_create_review | Submit PR review | provider, pull_request_id, review, approve |
pull_request_assigned_to_me | List my PRs | provider |
Non-Inferable Rules (Must Follow)
directory is always required — use the workspace root: /home/amir/ISLAMU/Github/Event.
provider defaults to "github" — always pass it explicitly for clarity.
- Repository coordinates:
repository_organization = "IslamuOrg", repository_name = "Event".
- Commit composition and messages follow
conventional-commit skill — load it before staging or committing.
- Always
git_status before committing — verify what will be staged.
- Never
git_push --force unless user explicitly requests it.
git_add_or_commit with action: "add" stages files; action: "commit" creates the commit from staged changes.
gitlens_commit_composer is advisory — review its proposed groups against conventional-commit; do not accept oversized or partially related commits.
- Prefer
gitlens_start_work when starting from a GitHub issue — it creates the branch and links the issue.
- Branch naming: use
type/scope-description matching conventional-commit types (e.g., feat/api-taxonomy-crud, fix/persistence-soft-delete).
Common Workflows
Commit Workflow
1. Load conventional-commit → decide the next atomic file group and message
2. git_status(directory=...) → review changes
3. git_add_or_commit(directory=..., action="add", files=[...]) → stage that specific file group
4. git_add_or_commit(directory=..., action="commit", message="feat(api/taxonomy): implement category CRUD endpoints")
For large changesets, call gitlens_commit_composer(directory=...) to propose groups, then accept only groups that satisfy conventional-commit atomicity rules.
PR Workflow
1. git_push(directory=...) → push branch
2. pull_request_create(
provider="github",
repository_name="Event",
repository_organization="IslamuOrg",
title="feat(api/taxonomy): implement category CRUD endpoints",
source_branch="feat/api-taxonomy-crud",
target_branch="main"
)
Start Work from Issue
1. issues_get_detail(provider="github", issue_id="42", repository_name="Event", repository_organization="IslamuOrg")
2. gitlens_start_work(directory=..., issue_url="https://github.com/IslamuOrg/Event/issues/42")
Review PR
1. pull_request_get_detail(provider="github", pull_request_id="99", repository_name="Event", repository_organization="IslamuOrg", pull_request_files=true)
2. pull_request_get_comments(...)
3. pull_request_create_review(..., review="LGTM — clean implementation", approve=true)
Stash and Switch
1. git_stash(directory=..., name="wip-taxonomy", include_untracked=true)
2. git_checkout(directory=..., branch="main")
3. git_pull(directory=...)
Resources
Related Documentation
.agents/skills/conventional-commit/SKILL.md — commit composition and message policy (MUST load before commits)
docs/CONTRIBUTING.md — contributor workflow
Enforcement Level: GUIDE