sc-commit-push-pr
Commit staged changes, push to remote, and create PRs for GitHub and Azure DevOps
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Commit staged changes, push to remote, and create PRs for GitHub and Azure DevOps
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Set up a repo-local just task runner with a root Justfile, optional .just/ helper scripts, and curated help, build, fmt, lint, test, and ci recipes. Use when a repo needs just, a Justfile, .just helpers, or when the user mentions task automation, "just build", "just lint", "just fmt", or dropping in a just system.
Create or harden CLIs intended primarily for AI or system consumption and secondarily for humans. Use when designing or implementing a JSON-first CLI with an MCP-ready contract seam, where every command supports machine output, errors are typed and actionable, mutating commands are auditable via corresponding read commands, and external integrations need simulator-backed testing. Do not use for human-first shell utilities, one-off scripts, or text-only CLIs.
Design stateful simulators for AI-facing CLIs that integrate with devices, networks, services, or databases. Use when a CLI needs realistic simulator-backed testing, configurable fault injection, persistent state, and a swappable adapter boundary so the same business logic runs against live and simulated backends. Do not use for shallow mocks, stateless test doubles, or CLIs with no external integration.
Critically review an existing CLI, MCP wrapper, or CLI plan for AI-first contract quality. Use when evaluating whether a CLI is JSON-first, has an MCP-ready contract seam without JSON reshaping, auditably models state changes, uses stateful simulator-backed testing for external integrations, and returns typed actionable errors. Do not use for general style review or human-first shell UX review.
Run CI quality gates with optional auto-fix and PR creation.
Run Codex tasks via the ai_cli Task Tool runner.
| name | sc-commit-push-pr |
| version | 0.12.0 |
| description | Commit staged changes, push to remote, and create PRs for GitHub and Azure DevOps |
Orchestrates the commit, push, and PR creation workflow using background agents.
| Command | Description |
|---|---|
/sc-commit-push-pr | Full pipeline: commit, push, and create PR if needed |
/sc-create-pr | Create PR from title/body (standalone) |
| Step | Agent | Input | Output |
|---|---|---|---|
| Commit & Push | commit-push | source/destination branches | PR status, URL, or conflict list |
| Create PR | create-pr | title, body, source, destination | PR info |
/sc-commit-push-pr FlowStage important files
Invoke commit-push agent via Agent Runner
Handle response:
pr_exists: true → Return PR URL to userneeds_pr_text: true → Prompt user for title/body, then invoke create-prerror.code == "GIT.MERGE_CONFLICT" → Guide user through conflict resolution/sc-create-pr FlowAccept title/body from user
Invoke create-pr agent via Agent Runner
Return PR URL to user
gh CLI for PR operationsAZURE_DEVOPS_PATProvider is auto-detected from git remote on each run.
Create .sc/shared-settings.yaml:
git:
protected_branches:
- main
- develop
Or let the skill auto-detect from git-flow configuration.
Set environment variables:
GITHUB_TOKEN (or gh auth login)AZURE_DEVOPS_PAT| Error Code | Meaning | Recovery |
|---|---|---|
GIT.MERGE_CONFLICT | Merge conflicts detected | Resolve conflicts, re-run |
GIT.AUTH | Authentication failure | Check credentials |
PR.CREATE_FAILED | API error creating PR | Check permissions |
CONFIG.PROTECTED_BRANCH_NOT_SET | Missing config | Create shared-settings.yaml |
| Type | Path | Purpose |
|---|---|---|
| Logs | .claude/state/logs/sc-commit-push-pr/ | Runtime events, preflight results |
| Shared Settings | .sc/shared-settings.yaml | Protected branch configuration |
| Package Settings | .sc/sc-commit-push-pr/settings.yaml | Optional preferences |