一键导入
sc-git
Git operations with intelligent commit messages and workflow optimization. Use when committing changes, managing branches, or optimizing git workflows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Git operations with intelligent commit messages and workflow optimization. Use when committing changes, managing branches, or optimizing git workflows.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute tests with coverage analysis, gap identification, test generation, and automated quality reporting. Use when running tests, analyzing coverage, generating missing tests, or debugging test failures.
Interactive multi-model consensus code review using PAL MCP. Reviews commits, staged changes, or branch diffs with user-directed scope and interactive decision points.
Provide clear explanations of code, concepts, and system behavior with educational clarity. Use when understanding code, learning concepts, or knowledge transfer.
Enforce KISS, Purity, SOLID, and Let It Crash principles through mandatory validation gates. Detects complexity violations, impure functions, design anti-patterns, and error handling issues.
Strict Test-Driven Development enforcer with Red-Green-Refactor workflow automation. Auto-detects frameworks, validates semantic test failures, and blocks production code until tests fail properly. Use for feature development, bug fixes with test coverage, or refactoring with safety nets.
E2E testing workflow supporting Playwright, Cypress, and Selenium. Run, debug, record, trace, generate test scaffolds, and view reports. Use when running browser tests, debugging E2E failures, or generating test scaffolds.
| name | sc-git |
| description | Git operations with intelligent commit messages and workflow optimization. Use when committing changes, managing branches, or optimizing git workflows. |
Intelligent git operations with smart commit generation.
# Status analysis
/sc:git status
# Smart commit
/sc:git commit --smart-commit
# Interactive merge
/sc:git merge feature-branch --interactive
| Flag | Type | Default | Description |
|---|---|---|---|
--smart-commit | bool | false | Generate conventional commit message |
--interactive | bool | false | Guided operation mode |
This skill does NOT require hard evidence. Git operations are self-documenting through:
/sc:git status
# Repository state with change summary
# Actionable recommendations
/sc:git commit --smart-commit
# Analyzes changes
# Generates conventional commit message
# Format: type(scope): description
/sc:git branch feature/new-feature
/sc:git checkout main
/sc:git merge feature-branch
/sc:git merge feature --interactive
# Guided merge with conflict resolution
# Step-by-step assistance
Smart commits follow Conventional Commits:
type(scope): description
[optional body]
[optional footer]
Types:
feat - New featurefix - Bug fixdocs - Documentationrefactor - Code restructuringtest - Test additionschore - Maintenance/sc:git status
# Summary of staged/unstaged changes
# Recommended next actions
/sc:git commit --smart-commit
# Scans diff, generates message:
# feat(auth): add JWT token refresh mechanism
/sc:git merge feature/auth --interactive
# Conflict detection and resolution guidance
# Step-by-step assistance
| Tool | When to Use | Purpose |
|---|---|---|
mcp__pal__precommit | Before commit | Comprehensive change validation |
mcp__pal__codereview | Before merge | Code quality review of changes |
mcp__pal__consensus | Merge conflicts | Multi-model resolution strategy |
mcp__pal__debug | Git issues | Investigate repository problems |
# Pre-commit validation (--smart-commit)
mcp__pal__precommit(
path="/path/to/repo",
step="Validating changes before commit",
findings="Security, completeness, test coverage",
include_staged=True,
include_unstaged=False
)
# Review before merge
mcp__pal__codereview(
review_type="full",
step="Reviewing feature branch before merge",
findings="Quality, security, breaking changes",
compare_to="main"
)
# Consensus on merge conflict resolution
mcp__pal__consensus(
models=[{"model": "gpt-5.2", "stance": "neutral"}, {"model": "gemini-3-pro", "stance": "neutral"}],
step="Evaluate: Which conflict resolution preserves intended behavior?"
)
| Tool | When to Use | Purpose |
|---|---|---|
mcp__rube__RUBE_SEARCH_TOOLS | GitHub/GitLab | Find repository management tools |
mcp__rube__RUBE_MULTI_EXECUTE_TOOL | PR/notifications | Create PRs, notify team, update issues |
mcp__rube__RUBE_CREATE_UPDATE_RECIPE | Git workflows | Save reusable git automation |
# Create PR and notify team after commit
mcp__rube__RUBE_MULTI_EXECUTE_TOOL(tools=[
{"tool_slug": "GITHUB_CREATE_PULL_REQUEST", "arguments": {
"repo": "myapp",
"title": "feat: Add user authentication",
"body": "## Summary\n- Added JWT auth\n- Added refresh tokens",
"base": "main",
"head": "feature/auth"
}},
{"tool_slug": "SLACK_SEND_MESSAGE", "arguments": {
"channel": "#pull-requests",
"text": "New PR ready for review: feat: Add user authentication"
}}
])
# Update issue status on merge
mcp__rube__RUBE_MULTI_EXECUTE_TOOL(tools=[
{"tool_slug": "JIRA_UPDATE_ISSUE", "arguments": {
"issue_key": "PROJ-123",
"status": "Done"
}},
{"tool_slug": "GITHUB_CREATE_ISSUE_COMMENT", "arguments": {
"repo": "myapp",
"issue_number": 456,
"body": "Merged in PR #789"
}}
])
| Flag | Type | Default | Description |
|---|---|---|---|
--pal-precommit | bool | false | Use PAL precommit validation |
--pal-review | bool | false | Use PAL codereview before merge |
--create-pr | bool | false | Create PR via Rube after commit |
--notify | string | - | Notify via Rube (slack, teams, email) |