ck:git
Git operations with conventional commits. Use for staging, committing, pushing, PRs, merges. Auto-splits commits by type/scope. Security scans for secrets.
- License 许可
- MIT
- 最近更新
- 2026-08-29
- Stars
- ★ 88
- Forks
- 79
01 前言 Front Matter
- name
- ck:git
- version
- 1.0.0
- description
- Git operations with conventional commits. Use for staging, committing, pushing, PRs, merges. Auto-splits commits by type/scope. Security scans for secrets.
- argument-hint
- cm|cp|pr|merge [args]
02 资源文件 8
- 参考文档references/branch-management.md1.8 KB
- 参考文档references/commit-standards.md1.3 KB
- 参考文档references/gh-cli-guide.md2.5 KB
- 参考文档references/safety-protocols.md1.9 KB
- 参考文档references/workflow-commit.md1.6 KB
- 参考文档references/workflow-merge.md1.1 KB
- 参考文档references/workflow-pr.md1.4 KB
- 参考文档references/workflow-push.md1.4 KB
03 SKILL.md 正文
Git Operations
Default (No Arguments)
If invoked without arguments, ask the user to choose available git operations:
| Operation | Description |
|---|---|
cm |
Stage files & create commits |
cp |
Stage files, create commits and push |
pr |
Create Pull Request |
merge |
Merge branches |
Present options with header "Git Operation", question "What would you like to do?".
Execute git workflows via git_manager subagent to isolate verbose output.
Activate ck:context-engineering skill.
IMPORTANT:
- Sacrifice grammar for the sake of concision.
- Ensure token efficiency while maintaining high quality.
- Pass these rules to subagents.
Arguments
cm: Stage files & create commitscp: Stage files, create commits and pushpr: Create Pull Request [to-branch] [from-branch]to-branch: Target branch (default: main)from-branch: Source branch (default: current branch)
merge: Merge [to-branch] [from-branch]to-branch: Target branch (default: main)from-branch: Source branch (default: current branch)
Quick Reference
| Task | Reference |
|---|---|
| Commit | references/workflow-commit.md |
| Push | references/workflow-push.md |
| Pull Request | references/workflow-pr.md |
| Merge | references/workflow-merge.md |
| Standards | references/commit-standards.md |
| Safety | references/safety-protocols.md |
| Branches | references/branch-management.md |
| GitHub CLI | references/gh-cli-guide.md |
Core Workflow
Step 1: Stage + Analyze
git add -A && git diff --cached --stat && git diff --cached --name-only
Step 2: Security Check
Scan for secrets before commit:
git diff --cached | grep -iE "(api[_-]?key|token|password|secret|credential)"
If secrets found: STOP, warn user, suggest .gitignore.
Step 3: Split Decision
NOTE:
- Search for related issues on GitHub and add to body.
- Only use
feat,fix, orperfprefixes for files in.codexor.agentsdirectories (do not usedocs).
Split commits if:
- Different types mixed (feat + fix, code + docs)
- Multiple scopes (auth + payments)
- Config/deps + code mixed
- FILES > 10 unrelated
Single commit if:
- Same type/scope, FILES ≤ 3, LINES ≤ 50
Step 4: Commit
git commit -m "type(scope): description"
Output Format
✓ staged: N files (+X/-Y lines)
✓ security: passed
✓ commit: HASH type(scope): description
✓ pushed: yes/no
Error Handling
| Error | Action |
|---|---|
| Secrets detected | Block commit, show files |
| No changes | Exit cleanly |
| Push rejected | Suggest git pull --rebase |
| Merge conflicts | Suggest manual resolution |
References
references/workflow-commit.md- Commit workflow with split logicreferences/workflow-push.md- Push workflow with error handlingreferences/workflow-pr.md- PR creation with remote diff analysisreferences/workflow-merge.md- Branch merge workflowreferences/commit-standards.md- Conventional commit format rulesreferences/safety-protocols.md- Secret detection, branch protectionreferences/branch-management.md- Naming, lifecycle, strategiesreferences/gh-cli-guide.md- GitHub CLI commands reference
04 同仓库更多 Skills
ck:worktree
Create isolated git worktree for parallel development in monorepos.
ck:web-testing
Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.
ck:web-frameworks
Build with Next.js (App Router, RSC, SSR, ISR), Turborepo monorepos. Use for React apps, server rendering, build optimization, caching strategies, shared dependencies.
ck:web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
ck:watzup
Review recent changes and wrap up the current work session.
ck:use-mcp
Utilize MCP server tools with intelligent discovery and execution.