用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill git-workflow-orchestrator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | git-workflow-orchestrator |
| description | >- Use when this capability is needed. |
Coordinate git-branch-creator, git-commit-creator, git-push-creator, and git-pr-creator as sequential phases. After the last phase, return the pull request URL when available.
Use it for requests like:
Do not use it for:
main or develop) as the branch to push (push-creator blocks it)Opening a PR needs a GitHub token with the same resolution as git-pr-creator: GITHUB_TOKEN or GH_TOKEN, then repo-root github-pr.local.json (preferred for Copilot + Cursor skill layouts), then legacy .github/skills/git-pr-creator/config/github-pr.local.json. Details: git-pr-creator README.
Script-driven: run-git-ship-workflow.ps1 checks the token before Phase 1 when -DryRun is not set, then sets GH_TOKEN for subprocesses.
Agent-driven: Confirm a token is configured before Phase 4 (or at workflow start); if missing, stop and point to the git-pr-creator README.
Run each underlying skill in order. After every phase, state SUCCESS or FAILED and paste relevant script output. Stop on first failure.
Phase 1 — Branch — Follow git-branch-creator (staging question N/A; use its script with the requested branch name).
create-branch.ps1 exits 0, or user is already on the intended branch and you document SKIPPED with reason.Phase 2 — Commit — Follow git-commit-creator (staging prompt, preview, proposed message OK / Not OK, then commit).
git status --short if ambiguous).Phase 3 — Push — Follow git-push-creator (push-branch.ps1).
Phase 4 — PR — Follow git-pr-creator (create-pr.ps1).
gh pr create).When the user supplies a final commit message and wants one command, run:
pwsh -NoProfile -File ./.github/skills/git-workflow-orchestrator/scripts/run-git-ship-workflow.ps1 `
-BranchName "<name>" `
-CommitMessage "<message>" `
[-SkipBranch] `
[-BaseBranch <branch>] `
[-PrBase <branch>] `
[-ApproveInstall] [-ApproveAuth] `
[-AllowDuplicatePrefix] `
[-DryRun] `
[-ReportTokens]
-CommitMessage is required (stages all changes and commits in one step).-SkipBranch omits Phase 1 (use when already on the target branch).-BaseBranch is omitted, the script auto-detects the core branch (main preferred, then develop).-PrBase is omitted, it defaults to the resolved -BaseBranch value.-ApproveInstall / -ApproveAuth for headless gh setup when needed.Phase banners and subprocess output use the host stream so they stay visible when the script is invoked from tools that assign function output. On success, the script also emits PR_URL: <url> on the success stream for redirection or piping.
Interpret the script’s phase lines and final PR_URL: line for the user.
After all phases, respond with a compact table:
| Phase | Name | Status | Notes |
| ----- | ------ | -------- | ----- |
| 1 | Branch | SUCCESS | ... |
| 2 | Commit | SUCCESS | ... |
| 3 | Push | SUCCESS | ... |
| 4 | PR | SUCCESS | ... |
PR: <paste URL verbatim from gh output>
Use FAILED and stop populating later phases if a step errors. Include a short Notes reason on failure.
Activate by saying "with token reporting", "show tokens used", or "report_tokens: true".
Before Phase 1 — snapshot current session token count from the Claude Code session log:
# macOS / Linux
find "$HOME/.claude/projects" -name "*.jsonl" -type f 2>/dev/null \
| xargs ls -t 2>/dev/null | head -1
# Windows (PowerShell)
Get-ChildItem "$env:USERPROFILE\.claude\projects" -Recurse -Filter "*.jsonl" `
-ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending `
| Select-Object -First 1 -ExpandProperty FullName
Read the last line of the JSONL file and extract the cumulative token total. Save as TOKENS_BEFORE.
After Phase 4 — read again, save as TOKENS_AFTER. Report the delta as tokens consumed during this workflow run.
If the session log is not readable, skip token reporting and note it in the summary.
-ReportTokens)The PowerShell subprocess has no access to Claude's session log. Instead it records per-phase wall-clock timing and appends it to the workflow summary:
=== Phase timing ===
Phase 1 Branch : 1.2s
Phase 2 Commit : 0.8s
Phase 3 Push : 3.1s
Phase 4 PR : 4.7s
Total : 9.8s
Note: token count unavailable in script-driven mode.
| Phase | Name | Status | Notes |
| ----- | ------ | ------- | ----- |
| 1 | Branch | SUCCESS | ... |
| 2 | Commit | SUCCESS | ... |
| 3 | Push | SUCCESS | ... |
| 4 | PR | SUCCESS | ... |
PR: <url>
Tokens used during orchestration: ~12,400 (input: 9,800 / output: 2,600)
.github/skills/*/scripts/; do not reimplement git operations in the orchestrator narrative.main or develop) via this workflow (push-creator will refuse; report FAILED if attempted).Source: dneprokos/skills-examples — distributed by TomeVault.
基于 SOC 职业分类