一键导入
git
Use when the user asks to commit, push, create a PR, or merge branches. Handles conventional commits, secret scanning, and auto-splits commits by type/scope.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user asks to commit, push, create a PR, or merge branches. Handles conventional commits, secret scanning, and auto-splits commits by type/scope.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | git |
| description | Use when the user asks to commit, push, create a PR, or merge branches. Handles conventional commits, secret scanning, and auto-splits commits by type/scope. |
| category | dev-tools |
| keywords | ["git","commits","staging","PR","merge"] |
| argument-hint | cm|cp|pr|merge [args] |
These rules apply on every platform, whether or not the git-manager subagent is loaded:
reset --hard, checkout -- <file>, branch delete, or merge into a protected branch (main, master, production, prod, release/*). Confirm via AskUserQuestion on Claude Code; on platforms without it (e.g. Codex — see using-morkit/references/codex-tools.md), ask the user inline in plain text and wait for a reply. Never skip the confirmation.If invoked without arguments, use AskUserQuestion (or, on platforms without it, a plain-text prompt) to present 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 as options via AskUserQuestion with header "Git Operation", question "What would you like to do?".
Execute git workflows via the git-manager subagent to isolate verbose output.
Platform note (delegation): if your platform has no named-agent registry (e.g. Codex — its plugin system does not yet load the agents/ directory), do not try to spawn git-manager. Instead read agents/git-manager.md, apply its safety rules (also listed above), and run the workflow inline. See using-morkit/references/codex-tools.md → "Named agent dispatch".
IMPORTANT:
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 — required, no defaultfrom-branch: Source branch (default: current branch)| 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 |
Run before staging anything — see references/workflow-commit.md for the full check.
Check file names for secrets:
git status --short | awk '/^\?\? /{print $2}' | grep -iE '(\.env($|\.[^.]+$)|\.pem$|\.key$|\.p12$|credentials\.json|secrets\.json)'
Check content for secret patterns (strong regex from references/safety-protocols.md):
git diff | grep -iE "(AKIA[0-9A-Z]{16}|api[_-]?key|token|password|secret|credential|private[_-]?key|mongodb://|postgres://|mysql://|redis://|-----BEGIN|client_secret|oauth_token)"
If either check matches: STOP, warn user, suggest .gitignore. Do not proceed.
Use specific files when possible; avoid git add -A:
git diff --cached --stat && git diff --cached --name-only
See references/workflow-commit.md for full logic. Summary:
git commit -m "type(scope): description"
✓ staged: N files (+X/-Y lines)
✓ security: passed
✓ commit: HASH type(scope): description
✓ pushed: yes/no
| Error | Action |
|---|---|
| Secrets detected | Block commit, show files |
| No changes | Exit cleanly |
| Push rejected | Suggest git pull --rebase |
| Merge conflicts | Suggest manual resolution |
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 (canonical regex), branch protectionreferences/branch-management.md - Naming, lifecycle, strategiesreferences/gh-cli-guide.md - GitHub CLI commands referenceSync task changes into a convention-driven knowledge pack (catalog.json + repos/*.md) and keep a weekly ledger of synced tasks. Manual, batch cadence — run by PM/team lead. Scans gRPC (.proto), REST (Gin), models (GORM), Makefile from source; human-gated via checkbox proposal. No prose auto-edits.
Generate or update full project documentation suite (SRS / API / DB / system-architecture / code-standards / codebase-summary / design-guidelines — user picks via /morkit:init multi-select gate). Orchestrates 7 sub-skills with conflict-minimal updates from OpenSpec changes, brainstorm plans, or codebase scans. Standards: BrSE ITO Japan (SRS), arc42-lite (arch), Conventional Commits (standards), MADR (guidelines). Supports init / update / sync.
Bridge skill — author a valid ProjectModel JSON (per normalized_schema) from greenfield inputs (parsed customer docs + brainstorm report + user-story list + risk register + clarification answers), then validate it so /morkit:init can render docs/srs.md and friends with no hand-authored JSON. The missing brainstorm→init link for the greenfield pipeline.
Generate or update Software Requirements Specification (SRS) following BrSE standards for ITO Japan. Renders the BrSE template-updated structure (13 sections + 2 appendices: Doc Control, Overview, Business Flow with UC detail, FR detail, Business Rules, Roles & Permissions, NFR with IPA-6 categories + Security/PII, Data Items with retention, External Interfaces, Reports, Acceptance/UAT, Traceability, Open Q&A, Constraints/Assumptions/Risks, Screen Index, Glossary). Init mode generates srs.md + per-screen specs from ProjectModel JSON; update mode applies a Delta to existing docs preserving manual edits.
Stateful guide for /morkit:greenfield — walks the BA/BrSE documentation pipeline G0→G7, runs the owning skill per stage, enforces the 4 human gates, and resumes from state.json. Thin glue: holds NO business logic — every stage delegates to an existing skill (brainstorming, generate-user-stories, gap-risk-analysis, clarification-loop, build-project-model) or to /morkit:init for the final SRS + design docs. Turns customer docs into a validated ProjectModel and a full docs/ set with no hand-authored JSON.
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.