一键导入
gitkraken-cli
How to use GitKraken CLI MCP tools for git, issue, and PR operations. Commit composition and message policy live in the conventional-commit skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How to use GitKraken CLI MCP tools for git, issue, and PR operations. Commit composition and message policy live in the conventional-commit skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Run the canonical build plus all nine per-project test commands from docs/TESTING.md. Never uses solution-level dotnet test.
Create or re-baseline lean, repository-grounded implementation plans and persistent dev docs when users ask for an implementation plan, technical plan, feature plan, refactor plan, or dev-docs workstream.
Senior CTO review workflow for repository-grounded implementation-plan workstreams used before coding.
Apply project EF Core conventions for repositories, DbContext setup, query filters, migrations, and seeded lookup data.
Create a self-contained HTML artifact focused on a high-quality SVG architecture or system diagram with minimal supporting prose.
Create a pragmatic self-contained HTML plan that organizes the user's plan content visually without expanding the scope unnecessarily.
基于 SOC 职业分类
| 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.
Git Operations via MCP
Use GitKraken MCP tools instead of raw
gitCLI commands. Commit composition and messages follow theconventional-commitskill.
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.
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.
| 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 |
| 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 |
| 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 |
| 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 |
directory is always required — use the workspace root: /home/amir/ISLAMU/Github/Event.provider defaults to "github" — always pass it explicitly for clarity.repository_organization = "IslamuOrg", repository_name = "Event".conventional-commit skill — load it before staging or committing.git_status before committing — verify what will be staged.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.gitlens_start_work when starting from a GitHub issue — it creates the branch and links the issue.type/scope-description matching conventional-commit types (e.g., feat/api-taxonomy-crud, fix/persistence-soft-delete).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.
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"
)
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")
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)
1. git_stash(directory=..., name="wip-taxonomy", include_untracked=true)
2. git_checkout(directory=..., branch="main")
3. git_pull(directory=...)
.agents/skills/conventional-commit/SKILL.md — commit composition and message policy (MUST load before commits)docs/CONTRIBUTING.md — contributor workflowEnforcement Level: GUIDE