一键导入
git-status
Comprehensive git repository status with actionable insights. Shows working directory, branch info, recent activity, and potential issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive git repository status with actionable insights. Shows working directory, branch info, recent activity, and potential issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | git-status |
| description | Comprehensive git repository status with actionable insights. Shows working directory, branch info, recent activity, and potential issues. |
| user-invocable | true |
| disable-model-invocation | true |
| model | haiku |
| allowed-tools | Bash(git *) |
| iso_class | none |
Comprehensive git repository status with actionable insights.
/git-status
None (operates on current repository)
| Option | Default | Description |
|---|---|---|
| --commits | 5 | Number of recent commits to show |
| --verbose | false | Include file diff stats |
| --check-remote | true | Check remote sync status |
Analyze the current git state and provide:
## Git Status Report
### Current State
- Branch: `[BRANCH_NAME]`
- Status: [CLEAN / HAS_CHANGES]
- Remote: [UP_TO_DATE / AHEAD / BEHIND]
### Changes
#### Staged (X files)
- [file list]
#### Modified (X files)
- [file list]
#### Untracked (X files)
- [file list]
### Recent Commits
1. [hash] [message] - [author] ([time])
2. ...
### Recommendations
- [Actionable suggestions]
| Requirement | Error Message | Resolution |
|---|---|---|
| git installed | "Git is not installed" | Install git from https://git-scm.com |
| In git repository | "Not a git repository" | Navigate to a git repo or run git init |
| Valid git state | "Corrupted git repository" | Run git fsck to diagnose |
| Error Condition | Behavior | User Action |
|---|---|---|
| No remote configured | Report "No remote configured - showing local status only" | Add remote with git remote add origin <url> |
| Remote unreachable | Report "Cannot reach remote - showing cached status" | Check network connection |
| Detached HEAD | Report current commit hash and warn about detached state | Create branch with git checkout -b <name> |
| Merge in progress | Report merge status and conflicting files | Complete or abort merge |
| Rebase in progress | Report rebase status and current step | Continue or abort rebase |
| Lock file exists | Report "Repository locked by another process" | Wait or remove .git/index.lock |
Clean up merged and stale branches from local and remote repositories. Use when branch list is cluttered or after merging PRs.
Generate document index files (manifest, bundles, graph, router) for project documentation. Creates docs/.index/ with searchable registry, feature-grouped bundles, cross-reference dependency graph, and query routing. Supports flat mode (generic projects, script-driven) and grouped mode (projects with doc_id frontmatter, Claude-curated).
Comprehensive markdown document review - anchors, accuracy, SSOT, cross-references, and redundancy analysis.
Enforce complete implementation of all tiers/difficulty levels for tiered features. Prevents partial implementations.
Create well-structured GitHub issues using the 5W1H framework with proper labels and acceptance criteria.
Automate GitHub issue workflow - select issue, create branch, implement, build, test, and create PR.