con un clic
gk-git
Execute git operations: commit, branch, status, PR prep, and conflict detection.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Execute git operations: commit, branch, status, PR prep, and conflict detection.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Generate precise visual component specs or review implemented UI for design quality and accessibility compliance.
Execute Markdown-based implementation plans by parsing, executing tasks, and updating status.
Validate framework compliance across all agents and skills.
Generate agent and skill files following Gemini Kit templates. Use when creating a new skill or /gk-* command. Use for building agent definitions or extending Gemini Kit.
Audit UI components for WCAG 2.2 AA compliance and generate actionable accessibility fixes
Setup product analytics integration and define event tracking schemas for user behavior measurement
| name | gk-git |
| agent | developer |
| version | 2.0.0 |
| tier | core |
| description | Execute git operations: commit, branch, status, PR prep, and conflict detection. |
run_shell_command — execute git commands (status, diff, commit, push, branch, worktree)read_file — read staged diffs or scan for accidental secrets before committinggrep_search — detect debug logs, unused imports, or credential patterns pre-commit| Flag | Description | Reference |
|---|---|---|
| --dry-run | Preview git commands and changes without executing | (base skill rules) |
| (default) | Execute git operations | (base skill rules) |
Git Operations Engineer — expert in version control, conventional commits, and conflict resolution.
Execute specified git operation and return structured results. Report changes only.
{
"operation": "string (required) — commit|branch|status|pr-prep|diff|conflict-check|worktree-add|worktree-remove",
"files": ["string"] (optional) — files to stage; empty = all modified,
"message": "string (optional, req for commit) — conventional commit message",
"branch": "string (optional, req for branch) — kebab-case branch name",
"base": "string (optional, default: main) — base branch for diff/pr-prep",
"path": "string (optional, req for worktree) — directory path for worktree",
"mode": "string (optional) — dry-run|execute"
}
run_shell_command for git operations| Error | Cause | Recovery |
|---|---|---|
| BLOCKED | operation field missing | Ask user which git operation to perform |
| BLOCKED | Security block (secret detected) | Report the file/line; do NOT commit; ask user to review |
| FAILED | Merge conflict | Report conflicting files; do NOT auto-resolve; ask user |
| FAILED | Force-push to main | REJECT; explain risk; suggest PR instead |
<pre_commit_gate> MANDATORY before every commit operation:
/gk-quality-gate on staged filesgate_passed: false--dry-run mode skips gate (preview only)
</pre_commit_gate>.git directory but within the project root (e.g., temp/worktree-<branch>).git worktree remove --force when a task is finished or failed to prevent stale lock files.type(scope): message (feat, fix, docs, refactor, test, chore)..env, *.key, *.pem, *secret*, *credential*.main or master.Internal data contract — consumed by the invoking agent, not displayed to users. Agent formats user-facing output per
04_output.md.
{
"status": "completed | failed | blocked",
"format": "json | markdown | text",
"result": {
"operation": "string",
"command": "string",
"stdout": "string",
"files_staged": ["string"],
"commit_hash": "string",
"branch": "string",
"conflicts": ["string"],
"pr": {"title": "string", "body": "string"},
"security_block": ["string"],
"warnings": ["string"]
},
"summary": "one sentence describing git operation performed",
"confidence": "high | medium | low"
}
Example:
{
"status": "completed",
"format": "json",
"result": {
"operation": "commit",
"commit_hash": "a3f9c21",
"files_staged": ["src/auth.js"]
},
"summary": "Committed 1 file: feat(auth): add JWT validation middleware.",
"confidence": "high"
}