[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CWER9BS1M3P4CNP0SMCNJX":3,"skill-same:01M6CWER9BS1M3P4CNP0SMCNJX":123},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6CWER9BS1M3P4CNP0SMCNJX","spec-commit-push-pr",null,"Internal landing helper for public workflows that already hold explicit commit and landing authorization; commits scoped changes, pushes, and creates or updates a PR with a value-first description.","leo-kuang-ai\u002Fspec-first","leo-kuang-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8476392?v=4","01M6CWDM2YRT5M8C3G3QC3YGR5","leokuang","01M6CWDM6X46EFBXT1M1GDB5XC",111,"MIT","https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"spec","commit","pr","push","commit push pr","commit push","spec commit push pr","workflows","pipeline","authorization","first","commits","archive","public","landing","2026-11-10 10:12:30",false,"---\nname: spec-commit-push-pr\ndescription: Internal landing helper for public workflows that already hold explicit commit and landing authorization; commits scoped changes, pushes, and creates or updates a PR with a value-first description.\nuser-invocable: false\nargument-hint: \"[PR ref] [mode:pipeline] [archive:on|off]\"\n---\n\n# Git Commit, Push, and PR\n\nGo from working changes to an open pull request, rewrite an existing PR description, or generate a description without touching git state.\n\n## Invocation And Authorization Boundary\n\nThis is an internal-only helper. A public workflow may delegate the full commit\u002Fpush\u002FPR path only after the current user or a visible upstream handoff has established both `commit_authorization: authorized` and `landing_authorization: authorized`. `workflow invocation does not authorize commit, push, or PR creation`; `mode:pipeline`, tool permission, a feature branch, a green test suite, or an existing PR are execution facts, not authority. Missing commit authority stops before staging\u002Fcommit with `commit_authorization_missing`; missing landing authority stops before push or PR mutation with `landing_authorization_missing`.\n\nDescription-only generation remains non-mutating, but applying a description with `gh pr edit` is a landing mutation and still requires explicit landing authority. This helper never broadens the caller's run-owned file scope or absorbs unrelated dirty paths.\n\n**Asking the user:** When this skill says \"ask the user\", use the platform's blocking question tool: `AskUserQuestion` in Claude Code (call `ToolSearch` with `select:AskUserQuestion` first if its schema isn't loaded) or `request_user_input` in Codex. Fall back to presenting the question in chat only when no blocking tool exists in the harness or the call errors (e.g., Codex edit modes) — not because a schema load is required. Never silently skip the question.\n\n## Mode detection\n\nThree flavors of intent. Pick one and follow the matching path; otherwise default to the full workflow.\n\n- **Description-only generation.** If the user asked for *just* a PR description with no commit or push intent (e.g., \"write a PR description\", \"draft a PR description for this branch\", \"describe this PR\", or pasted a PR URL\u002Fnumber alone), skip Steps 4-5 AND Step 1's decision tree (its stop gates are full-workflow only and would terminate common cases like \"feature branch, all pushed, open PR -> stop\"). Use the data from the Context section above instead. Then go to Step 6 to compose. If the user pasted a PR URL\u002Fnumber, pass it to Step 6 as the PR ref so Pre-A resolves the right commit range (otherwise Pre-A defaults to current-branch mode). Print the result back to the user; apply via `gh pr edit`\u002F`gh pr create` only if the user asks.\n- **Description update on existing PR.** If the user is asking to update, refresh, or rewrite an existing PR description (with no mention of committing or pushing), follow the Description Update workflow below. The user may also provide a focus (e.g., \"update the PR description and add the benchmarking results\"). Note any focus for DU-3.\n- **Full workflow.** Otherwise, follow the Full workflow below.\n\n**`mode:pipeline` modifier:** Set by orchestrated callers such as `spec-lfg`. Run the resolved mode non-interactively and suppress every blocking ask. The existing-PR rewrite question defaults to **not rewriting**; in description-update mode the preview ask is skipped and the rewrite applies directly because the update invocation is already the apply intent. Any other suppressed ask takes its conservative documented default: keep the current branch when possible, and stop\u002Freport instead of guessing when a base, PR, or branch state cannot be resolved. After an authorized full-workflow landing, return a structured `watch_handoff` containing the PR number\u002FURL, head SHA, base ref\u002FSHA when available, and the caller's existing authorization source and scope. This handoff lets the pipeline owner enter its bounded review\u002FCI\u002Fhead\u002Fbase-currency watch; it grants no new authority. Ordinary standalone and description-only runs do not start or recommend a watch by default.\n\nThe landing disclosure for `mode:pipeline` includes bounded PR-feedback fixes and only a repo-policy-approved, non-rewriting branch-currency update. This helper never authorizes or performs merge, rebase, force-push, or history rewrite as part of that handoff. If the repository policy is absent or currency requires rewriting history, return `branch-currency-update-required` to the caller.\n\n## Context\n\n**On platforms other than Claude Code**, skip to the \"Context fallback\" section below and run the command there to gather context.\n\n**In Claude Code**, the six labeled sections below contain pre-populated data. Use them directly -- do not re-run these commands.\n\n**Git status:**\n!`git status`\n\n**Working tree diff:**\n!`git diff HEAD`\n\n**Current branch:**\n!`git branch --show-current`\n\n**Recent commits:**\n!`git log --oneline -10`\n\n**Remote default branch:**\n!`git rev-parse --abbrev-ref origin\u002FHEAD`\n\n**Existing PR check:**\n!`gh pr view --json url,title,state`\n\n### Context fallback\n\n**In Claude Code, skip this section — the data above is already available.**\n\nRun these commands separately to gather context without interleaving unrelated output:\n\n```bash\ngit status\ngit diff HEAD\ngit branch --show-current\ngit log --oneline -10\ngit rev-parse --abbrev-ref origin\u002FHEAD 2>\u002Fdev\u002Fnull || echo 'DEFAULT_BRANCH_UNRESOLVED'\ngh pr view --json url,title,state 2>\u002Fdev\u002Fnull || echo 'NO_OPEN_PR'\n```\n\n---\n\n## Description Update workflow\n\n### DU-1: Confirm intent\n\nAsk the user: \"Update the PR description for this branch?\" If declined, stop.\n\n### DU-2: Find the PR\n\nUse the current branch and existing PR check from context. If the current branch is empty (detached HEAD), report no branch and stop. If the PR check returned `state: OPEN`, note the PR `url` and proceed to DU-3. Otherwise, report no open PR and stop.\n\n### DU-3: Write and apply the updated description\n\n**Read `references\u002Fpr-description-writing.md` once now** — the core principle at the top governs every step. DU-3 walks through Pre-A then Steps A through H without re-reading. Run Pre-A in PR mode using the existing PR's URL from DU-2 (it resolves the commit range, diff, and current body). Then continue with Steps A through H from the already-loaded reference to compose the title and body. If the user provided focus (e.g., \"include the benchmarking results\"), apply it as steering — do not let it override the writing principles or fabricate content the diff does not support.\n\n**Evidence decision:** the writing reference preserves any existing `## Demo` or `## Screenshots` block from the current body by default. If the user's focus asks to refresh or remove evidence, honor that. If no evidence block exists and one would benefit the reader, ask for an existing URL\u002Fpath or state that evidence capture is not available in this workflow.\n\n**Compare and confirm.** Briefly explain what the new description covers differently from the old one. Ask the user to confirm before applying. If the user provided focus, confirm it was addressed.\n\nIf confirmed, apply with `gh pr edit`. Substitute `\u003CTITLE>` verbatim; if it contains `\"`, `` ` ``, `$`, or `\\`, escape them or switch to single quotes.\n\nThe body **must** be written to a temp file and passed via `--body-file \u003Cpath>`. Never use `--body-file -`, stdin pipes, heredoc-to-stdin, or `--body \"$(cat ...)\"` — wrappers and stdin handling can silently produce an empty PR body while `gh` still exits 0 and returns a URL.\n\n```bash\nBODY_FILE=$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fspec-pr-body.XXXXXX\")\n```\n\nUse the platform's file-write tool to write the composed body markdown to `$BODY_FILE` verbatim. Do not embed the body in a shell heredoc, stdin pipe, command substitution, or inline shell string.\n\n```bash\ngh pr edit --title \"\u003CTITLE>\" --body-file \"$BODY_FILE\"\n```\n\nReport the PR URL.\n\n---\n\n## Full workflow\n\n### Step 1: Gather context\n\nUse the context above. All data needed for this step and Step 3 is already available -- do not re-run those commands.\n\nThe remote default branch value returns something like `origin\u002Fmain`. Strip the `origin\u002F` prefix. If it returned `DEFAULT_BRANCH_UNRESOLVED`, an error, or a bare `HEAD`, try:\n\n```bash\ngh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'\n```\n\nIf both fail, fall back to `main`.\n\nIf the current branch is empty (detached HEAD), explain that a branch is required. Ask whether to create a feature branch now.\n- If yes, derive a branch name from the change content, validate it with `git check-ref-format --branch \"$BRANCH_NAME\"`, create with `git checkout -b \"$BRANCH_NAME\"`, and use that for the rest of the workflow.\n- If no, stop.\n\nIf the working tree is clean (no staged, modified, or untracked files), determine the next action:\n\n1. Run `git rev-parse --abbrev-ref --symbolic-full-name @{u}` to check upstream.\n2. If upstream exists, run `git log \u003Cupstream>..HEAD --oneline` for unpushed commits.\n\nDecision tree:\n\n- **On default branch, unpushed commits or no upstream** -- pushing default directly is not supported. Ask whether to create a feature branch. If yes, read `references\u002Fbranch-creation.md`, follow its decision flow, then continue from Step 5. If no, stop.\n- **On default branch, all pushed, no open PR** -- report no feature branch work. Stop.\n- **Feature branch, no upstream** -- skip Step 4, continue from Step 5.\n- **Feature branch, unpushed commits** -- skip Step 4, continue from Step 5.\n- **Feature branch, all pushed, no open PR** -- skip Steps 4-5, continue from Step 6.\n- **Feature branch, all pushed, open PR** -- report up to date. Stop.\n\n### Step 2: Determine conventions\n\nPriority order for commit messages and PR titles:\n\n1. **Repo conventions in context** -- follow project instructions if they specify conventions. Do not re-read; they load at session start.\n2. **Recent commit history** -- match the pattern in the last 10 commits.\n3. **Default** -- `type(scope): description` (conventional commits).\n\nWhen using conventional commits, choose the type that most precisely describes the change. Where `fix:` and `feat:` both seem to fit, default to `fix:`: a change that remedies broken or missing behavior is `fix:` even when implemented by adding code. Reserve `feat:` for capabilities the user could not previously accomplish. Other types (`chore:`, `refactor:`, `docs:`, `perf:`, `test:`, `ci:`, `build:`, `style:`) remain primary when they fit better. The user may override for a specific change.\n\n### Step 3: Check for existing PR\n\nUse the current branch and existing PR check from context. If the branch is empty, report detached HEAD and stop.\n\nIf the PR check returned `state: OPEN`, note the URL -- this is the existing-PR flow. Continue to Step 4 and 5 (commit any pending work and push), then go to Step 7 to ask whether to rewrite the description. Only run Step 6 if the user confirms the rewrite. Otherwise (no open PR), continue through Steps 6, 7, and 8 in order.\n\n### Step 4: Branch, stage, and commit\n\n1. If on the default branch, branch creation must handle stale local base state, unpushed commits on local `\u003Cbase>`, and uncommitted checkout collisions. Read `references\u002Fbranch-creation.md` and follow its decision flow, then continue to step 2 below.\n2. Scan changed files for naturally distinct concerns. If files clearly group into separate logical changes, create separate commits (2-3 max). Group at the file level only (no `git add -p`). When ambiguous, one commit is fine.\n3. Stage and commit each group. Avoid `git add -A` or `git add .`. Follow conventions from Step 2 and use `-F` for the message body:\n   ```bash\n   COMMIT_MSG=$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fspec-commit-message.XXXXXX\")\n   cat > \"$COMMIT_MSG\" \u003C\u003C'EOF'\n   commit message here\n   EOF\n   git add file1 file2 file3\n   git commit -F \"$COMMIT_MSG\"\n   ```\n\n### Step 5: Push\n\n```bash\ngit push -u origin HEAD\n```\n\n### Step 6: Generate the PR title and body\n\nThe working-tree diff from Step 1 only shows uncommitted changes at invocation time. The PR description must cover **all commits** in the PR.\n\n**Read `references\u002Fpr-description-writing.md` once now** — the core principle at the top governs every step. Step 6 walks through it in order (Pre-A through H) with one interruption (the evidence decision below). Do not re-read the file later; refer to it by step letter.\n\n**Resolve the commit range and diff.** Run Step Pre-A from the reference (current-branch mode by default; PR mode if a PR ref was passed in from description-only mode). Pre-A handles base detection, in-repo SHA fetching with the `refs\u002Fpull\u002FN\u002Fhead` fallback, and the API-only fallback for fork-PRs and any local-git failure. Use Pre-A's commit list and diff (not Step 1's working-tree diff or `git log -10`) for both the evidence decision below and the rest of the reference.\n\n**Evidence decision (before composition).** Before running the full decision, two short-circuits:\n\n1. **User explicitly asked for evidence.** If the user's invocation requested it (\"ship with a demo\", \"include a screenshot\"), proceed directly to capture. If capture turns out to be not possible (no runnable surface, missing credentials, docs-only diff) or clearly not useful, note that briefly and proceed without evidence — do not force capture for its own sake.\n\n2. **Agent judgment on authored changes.** If you authored the commits in this session and know the change produces no material claim a reviewer needs evidence for (internal plumbing, backend refactor without user-facing effect, type-level changes, inert documentation, pure refactors), skip the prompt without asking. Classify by runtime purpose, not extension: markdown or YAML that acts as runtime agent instructions, configuration, generated product content, policy code, or deployment behavior is not auto-skippable.\n\nOtherwise, run the full decision: if the branch diff changes behavior or makes a material claim a reviewer cannot establish from the diff alone (UI, CLI output, API behavior with runnable code, generated artifacts, workflow output, ranking\u002Fscoring logic, deployment\u002Fconfig behavior) and evidence is not otherwise blocked (unavailable credentials, paid services, deploy-only infrastructure, hardware), ask: \"This PR has behavior or risk that would benefit from evidence. Include existing evidence in the PR description?\"\n\n- **Use existing evidence** -- ask for the URL or markdown embed, then splice it in as a `## Demo` section.\n- **Skip** -- proceed with no evidence section.\n\nWhen evidence would not change reviewer confidence (inert documentation, changelog-only edits, release metadata, test-only changes, or pure internal refactors), skip without asking.\n\n**Concept teaching gate (before composition).** Use the repo root from context; if it is empty or shows a literal command string, resolve it at runtime with `git rev-parse --show-toplevel`. Read `\u003Crepo-root>\u002F.spec-first\u002Fconfig.local.yaml` with the native file-read tool. Only an active, non-commented `pr_teaching_section:` key counts; lines starting with `#` are comments, and the shipped template documents optional keys as commented examples. The gate is off only when the active value is exactly `false`; a missing file, missing key, or any other value means the default is on. The same read resolves `pr_teaching_archive:` as archive eligibility only: an active value of exactly `true` makes archival available but does not authorize a repo write. A current-user `archive:on` invocation, or a visible upstream handoff that explicitly includes the exact explainer path set, establishes `archive_authorization: authorized`; config, teaching-section eligibility, commit authority, and landing authority do not. `archive:off` disables archival for the run.\n\n- Gate **on** -- judge concept novelty and compose the section per Step B2 of the reference. The gate is single: when it is off, skip judgment, the section, Step 8 trailer and offer, and archival entirely.\n- Gate **off** -- compose the description without any concept handling.\n\n**Compose the title and body.** Continue with Steps A through H from the already-loaded reference (commit classification, evidence handling, concept judgment when the gate is on, narrative framing, sizing, writing voice and principles, visual communication, title format, body assembly, the plain-text Spec-First footer, and the compression pass). For an existing PR, the current body was already read in Pre-A.\n\n### Step 7: Create or update the PR\n\nApply via `gh pr create` (new PR) or `gh pr edit` (existing PR). Substitute `\u003CTITLE>` verbatim; if it contains `\"`, `` ` ``, `$`, or `\\`, escape them or switch to single quotes.\n\nThe body **must** be written to a temp file and passed via `--body-file \u003Cpath>`. Never use `--body-file -`, stdin pipes, heredoc-to-stdin, or `--body \"$(cat ...)\"` — wrappers and stdin handling can silently produce an empty PR body while `gh` still exits 0 and returns a URL.\n\n```bash\nBODY_FILE=$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fspec-pr-body.XXXXXX\")\n```\n\nUse the platform's file-write tool to write the composed body markdown to `$BODY_FILE` verbatim. Do not embed the body in a shell heredoc, stdin pipe, command substitution, or inline shell string; arbitrary PR body text can contain delimiter-like or shell-sensitive content.\n\n**Explainer archival.** This runs only in full workflow, with archive eligibility on, `archive_authorization: authorized`, a composed `## New concepts` section, and a body that will be applied by this run. Before any directory\u002Ffile write, derive the final slug for every concept, show the exact repo-relative `docs\u002Fexplainers\u002FYYYY-MM-DD-\u003Cconcept-slug>.md` paths (including which existing files would be overwritten), and add only those accepted paths to the caller exact write set. Missing authorization or an unaccepted path preview skips archival with `archive_authorization_missing`; it does not block the PR. A declined existing-PR rewrite, or a pipeline-defaulted no rewrite, skips archival entirely so no unlinked doc commit is left behind. All paths resolve from the repo root, never the CWD. With two taught concepts, write one file per concept and stage both in the single commit. Execute these transitions immediately before the `gh` create\u002Fedit call:\n\n1. `git check-ignore -q docs\u002Fexplainers\u002FYYYY-MM-DD-\u003Cconcept-slug>.md` from the repo root. The check works on not-yet-created paths. If the path is ignored, print a one-line warning and skip archival entirely, writing nothing and never using `git add -f`.\n2. Only after the authorized preview, write the file, creating `docs\u002Fexplainers\u002F` if needed, with YAML frontmatter `title`, `date`, `input_shape: concept`, `subject`, and the teaching content. Overwrite an existing file only when that exact overwrite appeared in the accepted preview.\n3. `git add` those file(s) only, commit with `docs(explainer): teach \u003Cconcept>[, \u003Cconcept>]`, and push. If the commit reports nothing to commit, the doc is already committed from a prior run; keep the link and continue.\n4. Splice a head-branch blob URL per doc into the `## New concepts` section, then rewrite `$BODY_FILE` with the final composed body before applying.\n\nIf the doc write, commit, or push fails, warn and continue to PR creation or edit without the link. Never strand the flow between commit and PR.\n\n#### New PR (no existing PR from Step 3)\n\n```bash\ntest -s \"$BODY_FILE\" || { echo \"ERROR: PR body file is empty\"; exit 1; }\nif grep -q '\u003Cthe composed body markdown goes here, verbatim>' \"$BODY_FILE\"; then echo \"ERROR: PR body placeholder was not replaced\"; exit 1; fi\nPR_URL=$(gh pr create --title \"\u003CTITLE>\" --body-file \"$BODY_FILE\")\nprintf '%s\\n' \"$PR_URL\"\ngh pr view \"$PR_URL\" --json body --jq '.body' | grep -q '[^[:space:]]' || { echo \"ERROR: PR body was empty after create\"; exit 1; }\n```\n\nKeep the title under 72 characters; the writing reference already emits a conventional-commit title in that range.\n\n#### Existing PR (found in Step 3)\n\nThe new commits are already on the PR from Step 5. Report the PR URL, then ask whether to rewrite the description.\n\n- If **no** -- skip Step 6 entirely and finish. Do not run composition or evidence capture when the user declined the rewrite.\n- If **yes**, perform these three actions in order. They are separate steps with a hand-off boundary between them -- do not stop between actions.\n  1. Run Step 6 to compose the new title and body.\n  2. **Preview and confirm.** Read the first two sentences of the Summary, plus the total line count. Ask the user (per the \"Asking the user\" convention at the top of this skill): \"New title: `\u003Ctitle>` (`\u003CN>` chars). Summary leads with: `\u003Cfirst two sentences>`. Total body: `\u003CL>` lines. Apply?\" The first two sentences of the Summary carry most of the reviewer's attention. If the user declines, they may pass focus text back for a regenerate; do not apply.\n  3. If confirmed, apply with `gh pr edit`:\n\n     ```bash\n     test -s \"$BODY_FILE\" || { echo \"ERROR: PR body file is empty\"; exit 1; }\n     if grep -q '\u003Cthe composed body markdown goes here, verbatim>' \"$BODY_FILE\"; then echo \"ERROR: PR body placeholder was not replaced\"; exit 1; fi\n     gh pr edit --title \"\u003CTITLE>\" --body-file \"$BODY_FILE\"\n     gh pr view --json body --jq '.body' | grep -q '[^[:space:]]' || { echo \"ERROR: PR body was empty after edit\"; exit 1; }\n     ```\n\n  Then report the PR URL (Step 8).\n\n### Step 8: Report\n\nOutput the PR URL.\n\nFor an authorized full-workflow `mode:pipeline` landing, also return:\n\n```yaml\nwatch_handoff:\n  pr_number: \u003Cnumber>\n  pr_url: \u003Curl>\n  head_sha: \u003Csha>\n  base_ref: \u003Cref-or-null>\n  base_sha: \u003Csha-or-null>\n  authorization_source: \u003Cvisible-upstream-source>\n  authorization_scope: \u003Cvisible-upstream-scope>\n```\n\nThis is a fact-only handoff to the caller. It does not start a watch, retain\nraw provider content, or authorize merge, rebase, force-push, history rewrite,\nadditional data egress, credentials, or external communication.\n\nIf a body applied by this run contains a `## New concepts` section, print one line after the PR URL in every mode: `New concepts: \u003Cname>[, \u003Cname>]`. In interactive full-workflow runs, follow it with one line per taught concept: `Run spec-explain \u003Cname> to go deeper.` Do not print the trailer when this run applied no body, including a rewrite that was declined or pipeline-defaulted to no, or when no PR exists.\n","# Git Commit, Push, and PR\n\nGo from working changes to an open pull request, rewrite an existing PR description, or generate a description without touching git state.\n\n## Invocation And Authorization Boundary\n\nThis is an internal-only helper. A public workflow may delegate the full commit\u002Fpush\u002FPR path only after the current user or a visible upstream handoff has established both `commit_authorization: authorized` and `landing_authorization: authorized`. `workflow invocation does not authorize commit, push, or PR creation`; `mode:pipeline`, tool permission, a feature branch, a green test suite, or an existing PR are execution facts, not authority. Missing commit authority stops before staging\u002Fcommit with `commit_authorization_missing`; missing landing authority stops before push or PR mutation with `landing_authorization_missing`.\n\nDescription-only generation remains non-mutating, but applying a description with `gh pr edit` is a landing mutation and still requires explicit landing authority. This helper never broadens the caller's run-owned file scope or absorbs unrelated dirty paths.\n\n**Asking the user:** When this skill says \"ask the user\", use the platform's blocking question tool: `AskUserQuestion` in Claude Code (call `ToolSearch` with `select:AskUserQuestion` first if its schema isn't loaded) or `request_user_input` in Codex. Fall back to presenting the question in chat only when no blocking tool exists in the harness or the call errors (e.g., Codex edit modes) — not because a schema load is required. Never silently skip the question.\n\n## Mode detection\n\nThree flavors of intent. Pick one and follow the matching path; otherwise default to the full workflow.\n\n- **Description-only generation.** If the user asked for *just* a PR description with no commit or push intent (e.g., \"write a PR description\", \"draft a PR description for this branch\", \"describe this PR\", or pasted a PR URL\u002Fnumber alone), skip Steps 4-5 AND Step 1's decision tree (its stop gates are full-workflow only and would terminate common cases like \"feature branch, all pushed, open PR -> stop\"). Use the data from the Context section above instead. Then go to Step 6 to compose. If the user pasted a PR URL\u002Fnumber, pass it to Step 6 as the PR ref so Pre-A resolves the right commit range (otherwise Pre-A defaults to current-branch mode). Print the result back to the user; apply via `gh pr edit`\u002F`gh pr create` only if the user asks.\n- **Description update on existing PR.** If the user is asking to update, refresh, or rewrite an existing PR description (with no mention of committing or pushing), follow the Description Update workflow below. The user may also provide a focus (e.g., \"update the PR description and add the benchmarking results\"). Note any focus for DU-3.\n- **Full workflow.** Otherwise, follow the Full workflow below.\n\n**`mode:pipeline` modifier:** Set by orchestrated callers such as `spec-lfg`. Run the resolved mode non-interactively and suppress every blocking ask. The existing-PR rewrite question defaults to **not rewriting**; in description-update mode the preview ask is skipped and the rewrite applies directly because the update invocation is already the apply intent. Any other suppressed ask takes its conservative documented default: keep the current branch when possible, and stop\u002Freport instead of guessing when a base, PR, or branch state cannot be resolved. After an authorized full-workflow landing, return a structured `watch_handoff` containing the PR number\u002FURL, head SHA, base ref\u002FSHA when available, and the caller's existing authorization source and scope. This handoff lets the pipeline owner enter its bounded review\u002FCI\u002Fhead\u002Fbase-currency watch; it grants no new authority. Ordinary standalone and description-only runs do not start or recommend a watch by default.\n\nThe landing disclosure for `mode:pipeline` includes bounded PR-feedback fixes and only a repo-policy-approved, non-rewriting branch-currency update. This helper never authorizes or performs merge, rebase, force-push, or history rewrite as part of that handoff. If the repository policy is absent or currency requires rewriting history, return `branch-currency-update-required` to the caller.\n\n## Context\n\n**On platforms other than Claude Code**, skip to the \"Context fallback\" section below and run the command there to gather context.\n\n**In Claude Code**, the six labeled sections below contain pre-populated data. Use them directly -- do not re-run these commands.\n\n**Git status:**\n!`git status`\n\n**Working tree diff:**\n!`git diff HEAD`\n\n**Current branch:**\n!`git branch --show-current`\n\n**Recent commits:**\n!`git log --oneline -10`\n\n**Remote default branch:**\n!`git rev-parse --abbrev-ref origin\u002FHEAD`\n\n**Existing PR check:**\n!`gh pr view --json url,title,state`\n\n### Context fallback\n\n**In Claude Code, skip this section — the data above is already available.**\n\nRun these commands separately to gather context without interleaving unrelated output:\n\n```bash\ngit status\ngit diff HEAD\ngit branch --show-current\ngit log --oneline -10\ngit rev-parse --abbrev-ref origin\u002FHEAD 2>\u002Fdev\u002Fnull || echo 'DEFAULT_BRANCH_UNRESOLVED'\ngh pr view --json url,title,state 2>\u002Fdev\u002Fnull || echo 'NO_OPEN_PR'\n```\n\n---\n\n## Description Update workflow\n\n### DU-1: Confirm intent\n\nAsk the user: \"Update the PR description for this branch?\" If declined, stop.\n\n### DU-2: Find the PR\n\nUse the current branch and existing PR check from context. If the current branch is empty (detached HEAD), report no branch and stop. If the PR check returned `state: OPEN`, note the PR `url` and proceed to DU-3. Otherwise, report no open PR and stop.\n\n### DU-3: Write and apply the updated description\n\n**Read `references\u002Fpr-description-writing.md` once now** — the core principle at the top governs every step. DU-3 walks through Pre-A then Steps A through H without re-reading. Run Pre-A in PR mode using the existing PR's URL from DU-2 (it resolves the commit range, diff, and current body). Then continue with Steps A through H from the already-loaded reference to compose the title and body. If the user provided focus (e.g., \"include the benchmarking results\"), apply it as steering — do not let it override the writing principles or fabricate content the diff does not support.\n\n**Evidence decision:** the writing reference preserves any existing `## Demo` or `## Screenshots` block from the current body by default. If the user's focus asks to refresh or remove evidence, honor that. If no evidence block exists and one would benefit the reader, ask for an existing URL\u002Fpath or state that evidence capture is not available in this workflow.\n\n**Compare and confirm.** Briefly explain what the new description covers differently from the old one. Ask the user to confirm before applying. If the user provided focus, confirm it was addressed.\n\nIf confirmed, apply with `gh pr edit`. Substitute `\u003CTITLE>` verbatim; if it contains `\"`, `` ` ``, `$`, or `\\`, escape them or switch to single quotes.\n\nThe body **must** be written to a temp file and passed via `--body-file \u003Cpath>`. Never use `--body-file -`, stdin pipes, heredoc-to-stdin, or `--body \"$(cat ...)\"` — wrappers and stdin handling can silently produce an empty PR body while `gh` still exits 0 and returns a URL.\n\n```bash\nBODY_FILE=$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fspec-pr-body.XXXXXX\")\n```\n\nUse the platform's file-write tool to write the composed body markdown to `$BODY_FILE` verbatim. Do not embed the body in a shell heredoc, stdin pipe, command substitution, or inline shell string.\n\n```bash\ngh pr edit --title \"\u003CTITLE>\" --body-file \"$BODY_FILE\"\n```\n\nReport the PR URL.\n\n---\n\n## Full workflow\n\n### Step 1: Gather context\n\nUse the context above. All data needed for this step and Step 3 is already available -- do not re-run those commands.\n\nThe remote default branch value returns something like `origin\u002Fmain`. Strip the `origin\u002F` prefix. If it returned `DEFAULT_BRANCH_UNRESOLVED`, an error, or a bare `HEAD`, try:\n\n```bash\ngh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'\n```\n\nIf both fail, fall back to `main`.\n\nIf the current branch is empty (detached HEAD), explain that a branch is required. Ask whether to create a feature branch now.\n- If yes, derive a branch name from the change content, validate it with `git check-ref-format --branch \"$BRANCH_NAME\"`, create with `git checkout -b \"$BRANCH_NAME\"`, and use that for the rest of the workflow.\n- If no, stop.\n\nIf the working tree is clean (no staged, modified, or untracked files), determine the next action:\n\n1. Run `git rev-parse --abbrev-ref --symbolic-full-name @{u}` to check upstream.\n2. If upstream exists, run `git log \u003Cupstream>..HEAD --oneline` for unpushed commits.\n\nDecision tree:\n\n- **On default branch, unpushed commits or no upstream** -- pushing default directly is not supported. Ask whether to create a feature branch. If yes, read `references\u002Fbranch-creation.md`, follow its decision flow, then continue from Step 5. If no, stop.\n- **On default branch, all pushed, no open PR** -- report no feature branch work. Stop.\n- **Feature branch, no upstream** -- skip Step 4, continue from Step 5.\n- **Feature branch, unpushed commits** -- skip Step 4, continue from Step 5.\n- **Feature branch, all pushed, no open PR** -- skip Steps 4-5, continue from Step 6.\n- **Feature branch, all pushed, open PR** -- report up to date. Stop.\n\n### Step 2: Determine conventions\n\nPriority order for commit messages and PR titles:\n\n1. **Repo conventions in context** -- follow project instructions if they specify conventions. Do not re-read; they load at session start.\n2. **Recent commit history** -- match the pattern in the last 10 commits.\n3. **Default** -- `type(scope): description` (conventional commits).\n\nWhen using conventional commits, choose the type that most precisely describes the change. Where `fix:` and `feat:` both seem to fit, default to `fix:`: a change that remedies broken or missing behavior is `fix:` even when implemented by adding code. Reserve `feat:` for capabilities the user could not previously accomplish. Other types (`chore:`, `refactor:`, `docs:`, `perf:`, `test:`, `ci:`, `build:`, `style:`) remain primary when they fit better. The user may override for a specific change.\n\n### Step 3: Check for existing PR\n\nUse the current branch and existing PR check from context. If the branch is empty, report detached HEAD and stop.\n\nIf the PR check returned `state: OPEN`, note the URL -- this is the existing-PR flow. Continue to Step 4 and 5 (commit any pending work and push), then go to Step 7 to ask whether to rewrite the description. Only run Step 6 if the user confirms the rewrite. Otherwise (no open PR), continue through Steps 6, 7, and 8 in order.\n\n### Step 4: Branch, stage, and commit\n\n1. If on the default branch, branch creation must handle stale local base state, unpushed commits on local `\u003Cbase>`, and uncommitted checkout collisions. Read `references\u002Fbranch-creation.md` and follow its decision flow, then continue to step 2 below.\n2. Scan changed files for naturally distinct concerns. If files clearly group into separate logical changes, create separate commits (2-3 max). Group at the file level only (no `git add -p`). When ambiguous, one commit is fine.\n3. Stage and commit each group. Avoid `git add -A` or `git add .`. Follow conventions from Step 2 and use `-F` for the message body:\n   ```bash\n   COMMIT_MSG=$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fspec-commit-message.XXXXXX\")\n   cat > \"$COMMIT_MSG\" \u003C\u003C'EOF'\n   commit message here\n   EOF\n   git add file1 file2 file3\n   git commit -F \"$COMMIT_MSG\"\n   ```\n\n### Step 5: Push\n\n```bash\ngit push -u origin HEAD\n```\n\n### Step 6: Generate the PR title and body\n\nThe working-tree diff from Step 1 only shows uncommitted changes at invocation time. The PR description must cover **all commits** in the PR.\n\n**Read `references\u002Fpr-description-writing.md` once now** — the core principle at the top governs every step. Step 6 walks through it in order (Pre-A through H) with one interruption (the evidence decision below). Do not re-read the file later; refer to it by step letter.\n\n**Resolve the commit range and diff.** Run Step Pre-A from the reference (current-branch mode by default; PR mode if a PR ref was passed in from description-only mode). Pre-A handles base detection, in-repo SHA fetching with the `refs\u002Fpull\u002FN\u002Fhead` fallback, and the API-only fallback for fork-PRs and any local-git failure. Use Pre-A's commit list and diff (not Step 1's working-tree diff or `git log -10`) for both the evidence decision below and the rest of the reference.\n\n**Evidence decision (before composition).** Before running the full decision, two short-circuits:\n\n1. **User explicitly asked for evidence.** If the user's invocation requested it (\"ship with a demo\", \"include a screenshot\"), proceed directly to capture. If capture turns out to be not possible (no runnable surface, missing credentials, docs-only diff) or clearly not useful, note that briefly and proceed without evidence — do not force capture for its own sake.\n\n2. **Agent judgment on authored changes.** If you authored the commits in this session and know the change produces no material claim a reviewer needs evidence for (internal plumbing, backend refactor without user-facing effect, type-level changes, inert documentation, pure refactors), skip the prompt without asking. Classify by runtime purpose, not extension: markdown or YAML that acts as runtime agent instructions, configuration, generated product content, policy code, or deployment behavior is not auto-skippable.\n\nOtherwise, run the full decision: if the branch diff changes behavior or makes a material claim a reviewer cannot establish from the diff alone (UI, CLI output, API behavior with runnable code, generated artifacts, workflow output, ranking\u002Fscoring logic, deployment\u002Fconfig behavior) and evidence is not otherwise blocked (unavailable credentials, paid services, deploy-only infrastructure, hardware), ask: \"This PR has behavior or risk that would benefit from evidence. Include existing evidence in the PR description?\"\n\n- **Use existing evidence** -- ask for the URL or markdown embed, then splice it in as a `## Demo` section.\n- **Skip** -- proceed with no evidence section.\n\nWhen evidence would not change reviewer confidence (inert documentation, changelog-only edits, release metadata, test-only changes, or pure internal refactors), skip without asking.\n\n**Concept teaching gate (before composition).** Use the repo root from context; if it is empty or shows a literal command string, resolve it at runtime with `git rev-parse --show-toplevel`. Read `\u003Crepo-root>\u002F.spec-first\u002Fconfig.local.yaml` with the native file-read tool. Only an active, non-commented `pr_teaching_section:` key counts; lines starting with `#` are comments, and the shipped template documents optional keys as commented examples. The gate is off only when the active value is exactly `false`; a missing file, missing key, or any other value means the default is on. The same read resolves `pr_teaching_archive:` as archive eligibility only: an active value of exactly `true` makes archival available but does not authorize a repo write. A current-user `archive:on` invocation, or a visible upstream handoff that explicitly includes the exact explainer path set, establishes `archive_authorization: authorized`; config, teaching-section eligibility, commit authority, and landing authority do not. `archive:off` disables archival for the run.\n\n- Gate **on** -- judge concept novelty and compose the section per Step B2 of the reference. The gate is single: when it is off, skip judgment, the section, Step 8 trailer and offer, and archival entirely.\n- Gate **off** -- compose the description without any concept handling.\n\n**Compose the title and body.** Continue with Steps A through H from the already-loaded reference (commit classification, evidence handling, concept judgment when the gate is on, narrative framing, sizing, writing voice and principles, visual communication, title format, body assembly, the plain-text Spec-First footer, and the compression pass). For an existing PR, the current body was already read in Pre-A.\n\n### Step 7: Create or update the PR\n\nApply via `gh pr create` (new PR) or `gh pr edit` (existing PR). Substitute `\u003CTITLE>` verbatim; if it contains `\"`, `` ` ``, `$`, or `\\`, escape them or switch to single quotes.\n\nThe body **must** be written to a temp file and passed via `--body-file \u003Cpath>`. Never use `--body-file -`, stdin pipes, heredoc-to-stdin, or `--body \"$(cat ...)\"` — wrappers and stdin handling can silently produce an empty PR body while `gh` still exits 0 and returns a URL.\n\n```bash\nBODY_FILE=$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fspec-pr-body.XXXXXX\")\n```\n\nUse the platform's file-write tool to write the composed body markdown to `$BODY_FILE` verbatim. Do not embed the body in a shell heredoc, stdin pipe, command substitution, or inline shell string; arbitrary PR body text can contain delimiter-like or shell-sensitive content.\n\n**Explainer archival.** This runs only in full workflow, with archive eligibility on, `archive_authorization: authorized`, a composed `## New concepts` section, and a body that will be applied by this run. Before any directory\u002Ffile write, derive the final slug for every concept, show the exact repo-relative `docs\u002Fexplainers\u002FYYYY-MM-DD-\u003Cconcept-slug>.md` paths (including which existing files would be overwritten), and add only those accepted paths to the caller exact write set. Missing authorization or an unaccepted path preview skips archival with `archive_authorization_missing`; it does not block the PR. A declined existing-PR rewrite, or a pipeline-defaulted no rewrite, skips archival entirely so no unlinked doc commit is left behind. All paths resolve from the repo root, never the CWD. With two taught concepts, write one file per concept and stage both in the single commit. Execute these transitions immediately before the `gh` create\u002Fedit call:\n\n1. `git check-ignore -q docs\u002Fexplainers\u002FYYYY-MM-DD-\u003Cconcept-slug>.md` from the repo root. The check works on not-yet-created paths. If the path is ignored, print a one-line warning and skip archival entirely, writing nothing and never using `git add -f`.\n2. Only after the authorized preview, write the file, creating `docs\u002Fexplainers\u002F` if needed, with YAML frontmatter `title`, `date`, `input_shape: concept`, `subject`, and the teaching content. Overwrite an existing file only when that exact overwrite appeared in the accepted preview.\n3. `git add` those file(s) only, commit with `docs(explainer): teach \u003Cconcept>[, \u003Cconcept>]`, and push. If the commit reports nothing to commit, the doc is already committed from a prior run; keep the link and continue.\n4. Splice a head-branch blob URL per doc into the `## New concepts` section, then rewrite `$BODY_FILE` with the final composed body before applying.\n\nIf the doc write, commit, or push fails, warn and continue to PR creation or edit without the link. Never strand the flow between commit and PR.\n\n#### New PR (no existing PR from Step 3)\n\n```bash\ntest -s \"$BODY_FILE\" || { echo \"ERROR: PR body file is empty\"; exit 1; }\nif grep -q '\u003Cthe composed body markdown goes here, verbatim>' \"$BODY_FILE\"; then echo \"ERROR: PR body placeholder was not replaced\"; exit 1; fi\nPR_URL=$(gh pr create --title \"\u003CTITLE>\" --body-file \"$BODY_FILE\")\nprintf '%s\\n' \"$PR_URL\"\ngh pr view \"$PR_URL\" --json body --jq '.body' | grep -q '[^[:space:]]' || { echo \"ERROR: PR body was empty after create\"; exit 1; }\n```\n\nKeep the title under 72 characters; the writing reference already emits a conventional-commit title in that range.\n\n#### Existing PR (found in Step 3)\n\nThe new commits are already on the PR from Step 5. Report the PR URL, then ask whether to rewrite the description.\n\n- If **no** -- skip Step 6 entirely and finish. Do not run composition or evidence capture when the user declined the rewrite.\n- If **yes**, perform these three actions in order. They are separate steps with a hand-off boundary between them -- do not stop between actions.\n  1. Run Step 6 to compose the new title and body.\n  2. **Preview and confirm.** Read the first two sentences of the Summary, plus the total line count. Ask the user (per the \"Asking the user\" convention at the top of this skill): \"New title: `\u003Ctitle>` (`\u003CN>` chars). Summary leads with: `\u003Cfirst two sentences>`. Total body: `\u003CL>` lines. Apply?\" The first two sentences of the Summary carry most of the reviewer's attention. If the user declines, they may pass focus text back for a regenerate; do not apply.\n  3. If confirmed, apply with `gh pr edit`:\n\n     ```bash\n     test -s \"$BODY_FILE\" || { echo \"ERROR: PR body file is empty\"; exit 1; }\n     if grep -q '\u003Cthe composed body markdown goes here, verbatim>' \"$BODY_FILE\"; then echo \"ERROR: PR body placeholder was not replaced\"; exit 1; fi\n     gh pr edit --title \"\u003CTITLE>\" --body-file \"$BODY_FILE\"\n     gh pr view --json body --jq '.body' | grep -q '[^[:space:]]' || { echo \"ERROR: PR body was empty after edit\"; exit 1; }\n     ```\n\n  Then report the PR URL (Step 8).\n\n### Step 8: Report\n\nOutput the PR URL.\n\nFor an authorized full-workflow `mode:pipeline` landing, also return:\n\n```yaml\nwatch_handoff:\n  pr_number: \u003Cnumber>\n  pr_url: \u003Curl>\n  head_sha: \u003Csha>\n  base_ref: \u003Cref-or-null>\n  base_sha: \u003Csha-or-null>\n  authorization_source: \u003Cvisible-upstream-source>\n  authorization_scope: \u003Cvisible-upstream-scope>\n```\n\nThis is a fact-only handoff to the caller. It does not start a watch, retain\nraw provider content, or authorize merge, rebase, force-push, history rewrite,\nadditional data egress, credentials, or external communication.\n\nIf a body applied by this run contains a `## New concepts` section, print one line after the PR URL in every mode: `New concepts: \u003Cname>[, \u003Cname>]`. In interactive full-workflow runs, follow it with one line per taught concept: `Run spec-explain \u003Cname> to go deeper.` Do not print the trailer when this run applied no body, including a rewrite that was declined or pipeline-defaulted to no, or when no PR exists.\n",{"name":5,"description":7,"argument-hint":39,"user-invocable":35},"[PR ref] [mode:pipeline] [archive:on|off]","master","74655dc86b1270bb52239e0f8bc9517de7a7071c","skills\u002Fspec-commit-push-pr",13,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first","http:\u002F\u002Fspec-first.cn\u002F","https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai","作为一个初学者或者进阶者，这并没有什么错。当一个有能力的程序员而不是领导者，这也没有什么错。真正的错误是，当你知道应该如何去提高时仍然选择做一名初学者。","2026-11-13 19:40:36",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add leo-kuang-ai\u002Fspec-first --skill spec-commit-push-pr",{"tool":55,"command":56},"bunx","bunx skills add leo-kuang-ai\u002Fspec-first --skill spec-commit-push-pr",{"tool":58,"command":59},"pnpm","pnpm dlx skills add leo-kuang-ai\u002Fspec-first --skill spec-commit-push-pr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002FSKILL.md",true,[63,69,73,77,81,85,91,95,99,103,107,111,115,119],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"evals\u002Fcases\u002Fdescription-only-non-mutating.yaml","REFERENCE","参考文档",711,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Fevals\u002Fcases\u002Fdescription-only-non-mutating.yaml",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"evals\u002Fcases\u002Fno-landing-auth-stops-before-push.yaml",806,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Fevals\u002Fcases\u002Fno-landing-auth-stops-before-push.yaml",{"path":74,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Feval.yaml",383,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Fevals\u002Feval.yaml",{"path":78,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Ffixtures\u002Frepos\u002Fmini-ledger\u002Fpackage.json",96,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Fevals\u002Ffixtures\u002Frepos\u002Fmini-ledger\u002Fpackage.json",{"path":82,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Ffixtures\u002Frepos\u002Fmini-ledger\u002FREADME.md",365,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Fevals\u002Ffixtures\u002Frepos\u002Fmini-ledger\u002FREADME.md",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Ffixtures\u002Frepos\u002Fmini-ledger\u002Fsrc\u002Fserver.js","SCRIPT","脚本",665,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Fevals\u002Ffixtures\u002Frepos\u002Fmini-ledger\u002Fsrc\u002Fserver.js",{"path":92,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Ffixtures\u002Fscripts\u002Fcheck-desc-only.sh",348,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Fevals\u002Ffixtures\u002Fscripts\u002Fcheck-desc-only.sh",{"path":96,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Ffixtures\u002Fscripts\u002Fcheck-landing-gate.sh",530,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Fevals\u002Ffixtures\u002Fscripts\u002Fcheck-landing-gate.sh",{"path":100,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fagent-patterns.md",12349,"https:\u002F\u002Fgithub.com\u002Filderaj\u002Fagent-plugin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex--cloudflare\u002Fskills\u002Fbuilding-ai-agent-on-cloudflare\u002Freferences\u002Fagent-patterns.md",{"path":104,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fbranch-creation.md",4021,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Freferences\u002Fbranch-creation.md",{"path":108,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Fexamples.md",4273,"https:\u002F\u002Fgithub.com\u002Filderaj\u002Fagent-plugin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex--cloudflare\u002Fskills\u002Fbuilding-ai-agent-on-cloudflare\u002Freferences\u002Fexamples.md",{"path":112,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fpr-description-writing.md",25956,"https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-commit-push-pr\u002Freferences\u002Fpr-description-writing.md",{"path":116,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Fstate-patterns.md",8247,"https:\u002F\u002Fgithub.com\u002Filderaj\u002Fagent-plugin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex--cloudflare\u002Fskills\u002Fbuilding-ai-agent-on-cloudflare\u002Freferences\u002Fstate-patterns.md",{"path":120,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Ftroubleshooting.md",8032,"https:\u002F\u002Fgithub.com\u002Filderaj\u002Fagent-plugin-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex--cloudflare\u002Fskills\u002Fbuilding-ai-agent-on-cloudflare\u002Freferences\u002Ftroubleshooting.md",[124,148,169,182,196,214],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":34},"01M6CWKQCYJXDCW4MEF3FSJE26","using-spec-first","Standalone entry governor for spec-first. Use before substantial work in a spec-first repo or when the user asks what to run next; choose one public `spec-*` workflow, standalone skill, terminal command, or Direct Lane. Do not use to reroute active public workflows or bounded workers, or for lightweight facts, current-context explanations, narrow lookups, user-supplied single-document cleanup, or clearly scoped low-risk edits.","https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fusing-spec-first\u002FSKILL.md",[],[19,29,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,26,147],"using spec first","terminal","work","active","next","do","use","context","command","repo","choose","direct","risk","lane","run","cleanup","workflow",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":34},"01M6CWKK43ZJKQXKVJB3BWWPR1","spec-write-tasks","Public workflow entrypoint (spec-write-tasks): compile a settled local spec-plan into an optional derived task pack for spec-work, or validate an existing local task pack before execution. Use for explicit plan-splitting\u002Ftask-doc requests or high-complexity work suitability; do not use for plan authoring, implementation execution, unresolved scope, small low-risk plans, progress\u002Fapproval state, remote\u002Fgeneric task lists, or generated runtime mirror edits. Keep the plan as single source of truth; tasks are derived and optional.","https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-write-tasks\u002FSKILL.md",[],[19,155,156,157,158,159,136,160,161,137,162,133,163,164,143,165,166,167,147,168],"tasks","write","spec write tasks","local","task","complexity","plan authoring","generated","plan","doc","execution","compile","validate","state",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":34},"01M6CWKEK6CVPQW8EMCNSDPHBJ","spec-write-skill","公开 workflow：创建、修改或迁移项目拥有的 Agent Skill package，或对现有\u002F外部 package 做用户明确要求、零执行的只读验证与 readiness 报告时使用；也用于按已接受的 audit finding 修复 source skill。不要用于一次性回答、解释\u002F总结\u002F翻译、普通代码 review、第三方 Skill 纯安装或导入、跨仓批量修改，或直接修补 generated runtime mirrors。","https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-write-skill\u002FSKILL.md",[],[176,19,156,177,178,162,179,180,147,181],"spec write skill","write skill","audit","翻译","package","review",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":34},"01M6CWKBDEZ7QFF1ZH3DP52SHA","spec-worktree","Internal helper for caller-owned git worktree isolation. Governed callers are spec-dogfood and spec-work; every caller must provide the forward invocation and intake contract.","https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-worktree\u002FSKILL.md",[],[19,189,190,191,192,193,194,133,195],"worktree","spec worktree","intake","git","Bash","dogfood","git worktree",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":34},"01M6CWK5W4VREMNXGQQKXXSQ3N","spec-work","Execute a settled plan, validated task pack, spec path, or concrete implementation request end-to-end. Use spec-debug for open-ended bugs; stop when target repo, scope, source ownership, or required authorization is unresolved. Not for explicitly requested GitHub PR-review-feedback handling — route those to spec-resolve-pr-feedback.","https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-work\u002FSKILL.md",[],[133,203,19,204,205,206,207,208,159,209,210,211,137,140,21,212,163,213,164,181],"spec work","stop","github","to spec","debug","route","github pr","implementation","auto","feedback","open",{"skillNo":215,"name":216,"nameZh":6,"description":217,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":218,"categories":219,"keywords":220,"publishedAt":34},"01M6CWK1MFTSNV9MYD4C8WGB8B","spec-test-xcode","Build and test iOS apps on simulator using XcodeBuildMCP. Use after making iOS code changes, before creating a PR, or when verifying app behavior and checking for crashes on simulator.","https:\u002F\u002Fgithub.com\u002Fleo-kuang-ai\u002Fspec-first\u002Fblob\u002Fmaster\u002Fskills\u002Fspec-test-xcode\u002FSKILL.md",[],[19,221,222,21,223,224,225,226,137,227,228],"test","spec test xcode","code","ios","build and test","behavior","default","build"]