[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JPMJ50CEC40DZF5MH9XTJQ":3,"skill-same:01M6JPMJ50CEC40DZF5MH9XTJQ":85},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":14,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6JPMJ50CEC40DZF5MH9XTJQ","git-workflow",null,"Write commit messages, PR descriptions, and manage branching strategy following conventional commits.","SWEStash\u002Fswe-workflow-skills","SWEStash","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272895713?v=4","01M6JNRQ84JN5WFK9S1V5H4G46","SWE Stash","01M6JNRQCM45X8WPNHY30TSAB0",1,"MIT","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fml\u002Fskills\u002Fgit-workflow\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"workflow","git workflow","git","branching","review","triggers","message","manage","conventional commits","write","commit messages","squash","rebase","commits","how","messages","pull","pr description","pr","commit","2026-11-10 10:12:30",false,"---\nname: git-workflow\ndescription: \"Write commit messages, PR descriptions, and manage branching strategy following conventional commits.\"\nwhen_to_use: \"Triggers: write a commit message, commit this, PR description, pull request, branching strategy, git workflow, squash commits, rebase, conventional commits, how should I commit this, review staged changes.\"\n---\n\n# Git Workflow\n\nHelp write clear commit messages, structured PR descriptions, and manage branching conventions. Good git history is documentation — it tells the story of why the codebase evolved the way it did.\n\n## Workflow: Commit Messages\n\n### Step 1: Analyze the Changes\n\nStart from `git diff --staged --stat` for what's staged. If the summary is empty\nor not enough to understand the change, run `git diff --staged` for the full diff.\n\nIdentify:\n- **What changed?** (files modified, functions added\u002Fremoved, logic altered)\n- **Why did it change?** (feature, bugfix, refactor, dependency update)\n- **Is this one logical change or multiple?** If multiple, suggest splitting into separate commits.\n\n**This step is not a gate on writing the message.** Read the diff **and** draft in\nthe **same response** — \"write me a commit message\" is a request for a message, and\nsomeone who says the changes are staged has already authorized the read. Never open\nwith a request to go run a command and come back, and **never close with one\neither**: \"if you'd rather I do this properly, let me read the diff and return\" is\nthe same round-trip moved to the end, and it tells the developer the message you\njust handed them was the inferior option.\n\n**The diff is the basis, not an optional cross-check.** When you genuinely cannot\nread it, still deliver the message, and carry the requirement forward as a stated\ngap rather than an offer: *\"Drafted from your description — check it against\n`git diff --staged` before committing, since the scope line depends on what's\nactually in there.\"* That is a deferred requirement. \"Want me to look?\" is not.\n\n**Brevity applies to the message, not to the judgment.** However short the message,\nthe scope call above still ships with it: say whether this looked like one logical\nchange, and name the split if it wasn't. That's the part the developer can't\nrecover from the diff themselves — it's the reason they asked you rather than\nwriting the line by hand.\n\n### Step 2: Write the Commit Message\n\nUse the Conventional Commits format — see [references\u002Fconventions.md](references\u002Fconventions.md):\n\n```\n\u003Ctype>(\u003Cscope>): \u003Cshort description>\n\n\u003Cbody — explain WHY, not WHAT>\n\n\u003Cfooter — references, breaking changes>\n```\n\n**The subject line** (first line):\n- Type: `feat`, `fix`, `refactor`, `test`, `docs`, `chore`, `perf`, `ci`, `build`\n- Scope: The module, component, or area affected (optional but recommended)\n- Description: Present tense, lowercase, no period, **72 characters total** including\n  the `type(scope):` prefix — the commitlint default, and what keeps `git log --oneline`\n  readable in an 80-column terminal. (The older 50-char rule predates Conventional\n  Commits: a `fix(skills): ` prefix spends 13 characters before you write a word.)\n- It should complete the sentence: \"If applied, this commit will...\"\n\nWhere a tool generates the changelog (release-please, changesets, semantic-release),\n**this line is the changelog entry** a consumer reads at upgrade time — and on a\nsquash-merge repo, that means the **PR title** is. Write it for the person deciding\nwhether to upgrade, not for yourself: `fix(api): reject expired tokens on refresh`\ntells them something; `fix(api): address review feedback` is true and useless. The\ntype prefix picks the changelog section too, so a mislabeled type hides the entry or\nfiles it under the wrong heading.\n\n**The body** — governed by one test:\n\n> **Delete any sentence a reader could reconstruct from the diff.**\n\nThe diff is attached to the message. Every line spent restating it is a line the\nreviewer must read to discover it says nothing, which is why over-long messages\nmake review *worse*, not more thorough. What survives the test is what the diff\ncannot show:\n\n- **Why now** — the trigger, the bug report, the constraint that forced it\n- **What was rejected** — the approach you didn't take, and what ruled it out\n- **The non-obvious consequence** — what this breaks, enables, or quietly changes\n- **Why nobody noticed** — for bugs, often the most valuable sentence in the message\n\nAnd what fails it: file-by-file enumerations, \"renamed X to Y\", \"added a test for\nZ\", restating the type signature, narrating the steps you took.\n\nLength follows from that, not from the size of the change:\n\n| Change | Body |\n|---|---|\n| Mechanical — rename, format, dep bump, generated file, typo | **None.** The subject is the whole message. |\n| Ordinary — a feature or fix whose reasoning is visible in the code | A sentence or two, or none. |\n| Subtle — a non-obvious bug, a rejected alternative, a surprising constraint | However long the reasoning actually is. |\n\nA long message is not a failure. An *unearned* long message is. Do not compress a\nmessage that carries real reasoning just to make it short — that loses the only\npart worth keeping.\n\nWrap at 72 characters.\n\n**The footer** (optional):\n- Reference issues: `Closes #123`, `Fixes #456`\n- Breaking changes: `BREAKING CHANGE: description`\n- Co-authors: `Co-authored-by: Name \u003Cemail>`\n\nCommit types are not just style — in automated release flows they drive the version:\n`fix` → PATCH, `feat` → MINOR, `feat!`\u002F`BREAKING CHANGE:` → MAJOR. A mislabeled type\nmis-versions the next release (see `release-management`).\n\n### Step 3: Validate — Re-read the Message You Just Wrote\n\nNot a checklist to nod at: **read the drafted message back against the rules\nabove, line by line, before you commit.** These constraints are trivially easy to\nstate and trivially easy to skip — a subject line drifts past its limit, a\nbody accumulates a restatement paragraph, and nothing ever catches it because the\nmessage is never re-read.\n\n- [ ] **Read the subject as a stranger.** Does it name the behavior change on its own?\n      That's the real test; 72 characters is the ceiling, not the goal. Over it, cut\n      words — and if it can't be cut, ask whether it's more than one change.\n- [ ] **Apply the recoverability test to each body sentence.** Could the reader\n      get this from the diff? Then delete it. Whatever's left is the message.\n- [ ] Is this a single logical change? (If not, split it)\n- [ ] Does the subject describe the behavior change, not the implementation?\n- [ ] Would someone understand why this commit exists 6 months from now?\n- [ ] Are related issue numbers referenced?\n- [ ] Does the message use vocabulary a reader can resolve? Phase names,\n      checkpoint IDs, and task codes belong in a commit only when a tracked\n      document defines them — otherwise write what they mean.\n\nThen **invoke `verification-before-completion`** — committing is publishing, and\nthat skill owns the publish gate.\n\n**Exit condition** — name it, by name, in the response where you commit:\n*\"Invoking `verification-before-completion` on the staged diff before this commit.\"*\n\nDon't substitute your own reading of the diff for the call. Knowing roughly what\nthat gate looks for is precisely what makes skipping it feel harmless.\n\n## Workflow: PR Descriptions\n\n### Step 1: Analyze the Branch\n\nStart from the branch state vs the default branch (`main`, or `master` in older\nrepos): `git log \u003Cbase>..HEAD --oneline` and `git diff \u003Cbase>...HEAD --stat`. Understand the full scope of changes\nacross all commits — run the full `git diff \u003Cbase>...HEAD` when the stat summary\nisn't enough.\n\n### Step 2: Write the PR Description\n\nUse the template at [templates\u002Fpull-request.md](templates\u002Fpull-request.md). Key sections:\n\n- **What**: What this PR does (1-2 sentences)\n- **Why**: Why this change is needed (link to issue\u002Ftask)\n- **How**: Brief description of the approach taken and key decisions\n- **Testing**: How the changes were tested\n- **Screenshots**: For UI changes (before\u002Fafter)\n- **Checklist**: Standard items (tests pass, docs updated, etc.)\n\nThe PR description should let a reviewer understand the change without reading every line of code first.\n\nThe same recoverability test governs here, and it bites hardest on **Changes**:\nthat section is for the handful of changes a reviewer would otherwise miss, not a\ntranscription of the file list they can already see. If a bullet only names a file\nand what obviously happened to it, cut the bullet. **Why**, **How**, and the\nreviewer notes are where a PR description earns its length — a reviewer who reads\nthree paragraphs of restatement before reaching the one real trade-off is worse\noff than one who read nothing.\n\n### Step 3: Self-Review\n\nBefore requesting review, invoke `verification-before-completion` — opening a PR\nis a completion claim, and that skill owns the evidence gate. Then:\n- [ ] Read through the entire diff one more time\n- [ ] Does anything here change what the docs describe? A renamed flag, env var,\n      endpoint, config key, script, or install step means the README and `docs\u002F`\n      are part of this diff — grep them for what you changed\n- [ ] Are there any debugging leftovers?\n- [ ] Any stray working artifacts (PLAN.md, NOTES.md, scratch files, one-off test scripts) that shouldn't ship?\n- [ ] Are there any changes that don't belong in this PR?\n- [ ] Is the PR a reasonable size? (Under 400 lines changed is ideal. Over 800 is a red flag.)\n\nIf the PR is too large, suggest splitting it into stacked PRs or smaller logical units.\n\n## Workflow: Branching Strategy\n\nHelp set up or improve branching conventions. Ask about team size and release cadence, then recommend:\n\n**For small teams (1-5 devs) or continuous deployment:**\n- `main` — always deployable\n- Branch naming: `feat\u002F\u003Cdescription>`, `fix\u002F\u003Cdescription>` — short-lived (1-3 days)\n- Merge to main via PR — **squash-merge by default** (one clean commit per logical\n  change on main); one approval is the right review bar at this size\n- Deploy from main\n\n**For medium teams (5-15 devs) or scheduled releases:**\n- `main` — production\n- `develop` — integration branch\n- `feat\u002Fdescription`, `fix\u002Fdescription` — branch from develop\n- `release\u002Fx.y.z` — stabilization branch before release\n- `hotfix\u002Fdescription` — urgent fixes branching from main\n\n**For large teams or complex release cycles:**\n- Consider trunk-based development with feature flags\n- Short-lived branches (\u003C 1 day) merged to main\n- Feature flags control what's visible to users\n\nSee [references\u002Fconventions.md](references\u002Fconventions.md) for branch naming conventions.\n\n## Principles Applied\n\n- **KISS**: One commit = one logical change. Don't bundle unrelated changes.\n- **DRY**: If you're writing the same commit message pattern repeatedly, you might be making commits too granular or too broad.\n- **Functional Independence**: Each PR should be independently deployable when possible. Avoid PRs that depend on other unmerged PRs.\n\n## Rationalizations to Reject\n\n| Excuse | Reality |\n|--------|---------|\n| \"A thorough message is better than a short one\" | Thorough about the *reasoning*, yes. Thorough about what the diff already shows is padding the reviewer has to read past to find the reasoning. |\n| \"The subject needs all of this to be clear\" | If the change can't be named in 72 characters, that's usually a signal it's more than one change. Split it, or move the detail to the body. |\n| \"I'll list the changes so reviewers know what to look at\" | They have the diff and the file list. Point at the *non-obvious* change; enumerating the rest buries it. |\n| \"This is a big change, so it needs a big message\" | Length tracks unrecoverable reasoning, not lines touched. A 2,000-line mechanical rename needs one line. |\n| \"Documenting the decision here saves writing an ADR\" | A commit message is the worst place to look up a decision — nobody greps git log. Write the ADR (`architecture-design`) and reference it. |\n| \"The phase\u002Ftask ID gives it traceability\" | Only if a tracked doc defines it. Otherwise it traces to a conversation the reader wasn't in. |\n| \"I'll just commit and fix the message later\" | Amending after a push rewrites history others have pulled. The message is part of the commit, not a follow-up. |\n| \"I should read the diff before I can write anything\" | Read it *and* draft, in the same reply. Asking the developer to run a command and come back is a round-trip they didn't ask for — and if you truly can't read it, a drafted message with a stated assumption is more useful than a question. |\n\n## Red Flags — Stop and Re-Read\n\n- You wrote the body without re-reading the subject line's character count.\n- A body paragraph could be reconstructed by anyone with the diff open.\n- The message enumerates files or functions that changed.\n- You're about to commit without having read `git diff --staged` this session.\n- The message contains a phase, checkpoint, task code, or finding number, and no\n  tracked document defines it.\n- You're writing a commit body for a rename, a formatting pass, or a dep bump.\n- Your reply to \"write me a commit message\" contains no commit message.\n\n## Cross-Skill References\n\n- `release-management` — cutting the release these commits accumulate into: semver, changelog, tagging, publishing\n- `code-reviewing` — reviewing the PR the description introduces\n- `code-slop-cleanup` — tighten the diff (AI artifacts, debug leftovers, stray files) before the self-review\n- `verification-before-completion` — run the proving commands before pushing or opening the PR\n","# Git Workflow\n\nHelp write clear commit messages, structured PR descriptions, and manage branching conventions. Good git history is documentation — it tells the story of why the codebase evolved the way it did.\n\n## Workflow: Commit Messages\n\n### Step 1: Analyze the Changes\n\nStart from `git diff --staged --stat` for what's staged. If the summary is empty\nor not enough to understand the change, run `git diff --staged` for the full diff.\n\nIdentify:\n- **What changed?** (files modified, functions added\u002Fremoved, logic altered)\n- **Why did it change?** (feature, bugfix, refactor, dependency update)\n- **Is this one logical change or multiple?** If multiple, suggest splitting into separate commits.\n\n**This step is not a gate on writing the message.** Read the diff **and** draft in\nthe **same response** — \"write me a commit message\" is a request for a message, and\nsomeone who says the changes are staged has already authorized the read. Never open\nwith a request to go run a command and come back, and **never close with one\neither**: \"if you'd rather I do this properly, let me read the diff and return\" is\nthe same round-trip moved to the end, and it tells the developer the message you\njust handed them was the inferior option.\n\n**The diff is the basis, not an optional cross-check.** When you genuinely cannot\nread it, still deliver the message, and carry the requirement forward as a stated\ngap rather than an offer: *\"Drafted from your description — check it against\n`git diff --staged` before committing, since the scope line depends on what's\nactually in there.\"* That is a deferred requirement. \"Want me to look?\" is not.\n\n**Brevity applies to the message, not to the judgment.** However short the message,\nthe scope call above still ships with it: say whether this looked like one logical\nchange, and name the split if it wasn't. That's the part the developer can't\nrecover from the diff themselves — it's the reason they asked you rather than\nwriting the line by hand.\n\n### Step 2: Write the Commit Message\n\nUse the Conventional Commits format — see [references\u002Fconventions.md](references\u002Fconventions.md):\n\n```\n\u003Ctype>(\u003Cscope>): \u003Cshort description>\n\n\u003Cbody — explain WHY, not WHAT>\n\n\u003Cfooter — references, breaking changes>\n```\n\n**The subject line** (first line):\n- Type: `feat`, `fix`, `refactor`, `test`, `docs`, `chore`, `perf`, `ci`, `build`\n- Scope: The module, component, or area affected (optional but recommended)\n- Description: Present tense, lowercase, no period, **72 characters total** including\n  the `type(scope):` prefix — the commitlint default, and what keeps `git log --oneline`\n  readable in an 80-column terminal. (The older 50-char rule predates Conventional\n  Commits: a `fix(skills): ` prefix spends 13 characters before you write a word.)\n- It should complete the sentence: \"If applied, this commit will...\"\n\nWhere a tool generates the changelog (release-please, changesets, semantic-release),\n**this line is the changelog entry** a consumer reads at upgrade time — and on a\nsquash-merge repo, that means the **PR title** is. Write it for the person deciding\nwhether to upgrade, not for yourself: `fix(api): reject expired tokens on refresh`\ntells them something; `fix(api): address review feedback` is true and useless. The\ntype prefix picks the changelog section too, so a mislabeled type hides the entry or\nfiles it under the wrong heading.\n\n**The body** — governed by one test:\n\n> **Delete any sentence a reader could reconstruct from the diff.**\n\nThe diff is attached to the message. Every line spent restating it is a line the\nreviewer must read to discover it says nothing, which is why over-long messages\nmake review *worse*, not more thorough. What survives the test is what the diff\ncannot show:\n\n- **Why now** — the trigger, the bug report, the constraint that forced it\n- **What was rejected** — the approach you didn't take, and what ruled it out\n- **The non-obvious consequence** — what this breaks, enables, or quietly changes\n- **Why nobody noticed** — for bugs, often the most valuable sentence in the message\n\nAnd what fails it: file-by-file enumerations, \"renamed X to Y\", \"added a test for\nZ\", restating the type signature, narrating the steps you took.\n\nLength follows from that, not from the size of the change:\n\n| Change | Body |\n|---|---|\n| Mechanical — rename, format, dep bump, generated file, typo | **None.** The subject is the whole message. |\n| Ordinary — a feature or fix whose reasoning is visible in the code | A sentence or two, or none. |\n| Subtle — a non-obvious bug, a rejected alternative, a surprising constraint | However long the reasoning actually is. |\n\nA long message is not a failure. An *unearned* long message is. Do not compress a\nmessage that carries real reasoning just to make it short — that loses the only\npart worth keeping.\n\nWrap at 72 characters.\n\n**The footer** (optional):\n- Reference issues: `Closes #123`, `Fixes #456`\n- Breaking changes: `BREAKING CHANGE: description`\n- Co-authors: `Co-authored-by: Name \u003Cemail>`\n\nCommit types are not just style — in automated release flows they drive the version:\n`fix` → PATCH, `feat` → MINOR, `feat!`\u002F`BREAKING CHANGE:` → MAJOR. A mislabeled type\nmis-versions the next release (see `release-management`).\n\n### Step 3: Validate — Re-read the Message You Just Wrote\n\nNot a checklist to nod at: **read the drafted message back against the rules\nabove, line by line, before you commit.** These constraints are trivially easy to\nstate and trivially easy to skip — a subject line drifts past its limit, a\nbody accumulates a restatement paragraph, and nothing ever catches it because the\nmessage is never re-read.\n\n- [ ] **Read the subject as a stranger.** Does it name the behavior change on its own?\n      That's the real test; 72 characters is the ceiling, not the goal. Over it, cut\n      words — and if it can't be cut, ask whether it's more than one change.\n- [ ] **Apply the recoverability test to each body sentence.** Could the reader\n      get this from the diff? Then delete it. Whatever's left is the message.\n- [ ] Is this a single logical change? (If not, split it)\n- [ ] Does the subject describe the behavior change, not the implementation?\n- [ ] Would someone understand why this commit exists 6 months from now?\n- [ ] Are related issue numbers referenced?\n- [ ] Does the message use vocabulary a reader can resolve? Phase names,\n      checkpoint IDs, and task codes belong in a commit only when a tracked\n      document defines them — otherwise write what they mean.\n\nThen **invoke `verification-before-completion`** — committing is publishing, and\nthat skill owns the publish gate.\n\n**Exit condition** — name it, by name, in the response where you commit:\n*\"Invoking `verification-before-completion` on the staged diff before this commit.\"*\n\nDon't substitute your own reading of the diff for the call. Knowing roughly what\nthat gate looks for is precisely what makes skipping it feel harmless.\n\n## Workflow: PR Descriptions\n\n### Step 1: Analyze the Branch\n\nStart from the branch state vs the default branch (`main`, or `master` in older\nrepos): `git log \u003Cbase>..HEAD --oneline` and `git diff \u003Cbase>...HEAD --stat`. Understand the full scope of changes\nacross all commits — run the full `git diff \u003Cbase>...HEAD` when the stat summary\nisn't enough.\n\n### Step 2: Write the PR Description\n\nUse the template at [templates\u002Fpull-request.md](templates\u002Fpull-request.md). Key sections:\n\n- **What**: What this PR does (1-2 sentences)\n- **Why**: Why this change is needed (link to issue\u002Ftask)\n- **How**: Brief description of the approach taken and key decisions\n- **Testing**: How the changes were tested\n- **Screenshots**: For UI changes (before\u002Fafter)\n- **Checklist**: Standard items (tests pass, docs updated, etc.)\n\nThe PR description should let a reviewer understand the change without reading every line of code first.\n\nThe same recoverability test governs here, and it bites hardest on **Changes**:\nthat section is for the handful of changes a reviewer would otherwise miss, not a\ntranscription of the file list they can already see. If a bullet only names a file\nand what obviously happened to it, cut the bullet. **Why**, **How**, and the\nreviewer notes are where a PR description earns its length — a reviewer who reads\nthree paragraphs of restatement before reaching the one real trade-off is worse\noff than one who read nothing.\n\n### Step 3: Self-Review\n\nBefore requesting review, invoke `verification-before-completion` — opening a PR\nis a completion claim, and that skill owns the evidence gate. Then:\n- [ ] Read through the entire diff one more time\n- [ ] Does anything here change what the docs describe? A renamed flag, env var,\n      endpoint, config key, script, or install step means the README and `docs\u002F`\n      are part of this diff — grep them for what you changed\n- [ ] Are there any debugging leftovers?\n- [ ] Any stray working artifacts (PLAN.md, NOTES.md, scratch files, one-off test scripts) that shouldn't ship?\n- [ ] Are there any changes that don't belong in this PR?\n- [ ] Is the PR a reasonable size? (Under 400 lines changed is ideal. Over 800 is a red flag.)\n\nIf the PR is too large, suggest splitting it into stacked PRs or smaller logical units.\n\n## Workflow: Branching Strategy\n\nHelp set up or improve branching conventions. Ask about team size and release cadence, then recommend:\n\n**For small teams (1-5 devs) or continuous deployment:**\n- `main` — always deployable\n- Branch naming: `feat\u002F\u003Cdescription>`, `fix\u002F\u003Cdescription>` — short-lived (1-3 days)\n- Merge to main via PR — **squash-merge by default** (one clean commit per logical\n  change on main); one approval is the right review bar at this size\n- Deploy from main\n\n**For medium teams (5-15 devs) or scheduled releases:**\n- `main` — production\n- `develop` — integration branch\n- `feat\u002Fdescription`, `fix\u002Fdescription` — branch from develop\n- `release\u002Fx.y.z` — stabilization branch before release\n- `hotfix\u002Fdescription` — urgent fixes branching from main\n\n**For large teams or complex release cycles:**\n- Consider trunk-based development with feature flags\n- Short-lived branches (\u003C 1 day) merged to main\n- Feature flags control what's visible to users\n\nSee [references\u002Fconventions.md](references\u002Fconventions.md) for branch naming conventions.\n\n## Principles Applied\n\n- **KISS**: One commit = one logical change. Don't bundle unrelated changes.\n- **DRY**: If you're writing the same commit message pattern repeatedly, you might be making commits too granular or too broad.\n- **Functional Independence**: Each PR should be independently deployable when possible. Avoid PRs that depend on other unmerged PRs.\n\n## Rationalizations to Reject\n\n| Excuse | Reality |\n|--------|---------|\n| \"A thorough message is better than a short one\" | Thorough about the *reasoning*, yes. Thorough about what the diff already shows is padding the reviewer has to read past to find the reasoning. |\n| \"The subject needs all of this to be clear\" | If the change can't be named in 72 characters, that's usually a signal it's more than one change. Split it, or move the detail to the body. |\n| \"I'll list the changes so reviewers know what to look at\" | They have the diff and the file list. Point at the *non-obvious* change; enumerating the rest buries it. |\n| \"This is a big change, so it needs a big message\" | Length tracks unrecoverable reasoning, not lines touched. A 2,000-line mechanical rename needs one line. |\n| \"Documenting the decision here saves writing an ADR\" | A commit message is the worst place to look up a decision — nobody greps git log. Write the ADR (`architecture-design`) and reference it. |\n| \"The phase\u002Ftask ID gives it traceability\" | Only if a tracked doc defines it. Otherwise it traces to a conversation the reader wasn't in. |\n| \"I'll just commit and fix the message later\" | Amending after a push rewrites history others have pulled. The message is part of the commit, not a follow-up. |\n| \"I should read the diff before I can write anything\" | Read it *and* draft, in the same reply. Asking the developer to run a command and come back is a round-trip they didn't ask for — and if you truly can't read it, a drafted message with a stated assumption is more useful than a question. |\n\n## Red Flags — Stop and Re-Read\n\n- You wrote the body without re-reading the subject line's character count.\n- A body paragraph could be reconstructed by anyone with the diff open.\n- The message enumerates files or functions that changed.\n- You're about to commit without having read `git diff --staged` this session.\n- The message contains a phase, checkpoint, task code, or finding number, and no\n  tracked document defines it.\n- You're writing a commit body for a rename, a formatting pass, or a dep bump.\n- Your reply to \"write me a commit message\" contains no commit message.\n\n## Cross-Skill References\n\n- `release-management` — cutting the release these commits accumulate into: semver, changelog, tagging, publishing\n- `code-reviewing` — reviewing the PR the description introduces\n- `code-slop-cleanup` — tighten the diff (AI artifacts, debug leftovers, stray files) before the self-review\n- `verification-before-completion` — run the proving commands before pushing or opening the PR\n",{"name":5,"description":7,"when_to_use":49},"Triggers: write a commit message, commit this, PR description, pull request, branching strategy, git workflow, squash commits, rebase, conventional commits, how should I commit this, review staged changes.","main","800dc9ad0ca2914d6ad15b8c5159d9b57bb104c2","plugins\u002Fml\u002Fskills\u002Fgit-workflow","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills","https:\u002F\u002Fgithub.com\u002FSWEStash","A stash of things we felt like building","2026-11-12 00:14:33",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add SWEStash\u002Fswe-workflow-skills --skill git-workflow",{"tool":63,"command":64},"bunx","bunx skills add SWEStash\u002Fswe-workflow-skills --skill git-workflow",{"tool":66,"command":67},"pnpm","pnpm dlx skills add SWEStash\u002Fswe-workflow-skills --skill git-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fml\u002Fskills\u002Fgit-workflow\u002FSKILL.md",true,[71,77,81],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fevals.json","REFERENCE","参考文档",7776,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fml\u002Fskills\u002Fgit-workflow\u002Fevals\u002Fevals.json",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fconventions.md",4469,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fml\u002Fskills\u002Fgit-workflow\u002Freferences\u002Fconventions.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"templates\u002Fpull-request.md",1883,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fml\u002Fskills\u002Fgit-workflow\u002Ftemplates\u002Fpull-request.md",[86,126,152,172,205,234],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":107,"publishedAt":44},"01M6JQFADV3T1MS9V1BNZS1232","writing-skills","Use when authoring, editing, or reviewing a skill in this library — a new SKILL.md, one that under-triggers, or hardening an existing one. Covers description and listing-budget rules, frontmatter, progressive disclosure, the 3-eval rule, and pressure-testing against rationalizations.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[92,95,98,99,104],{"categoryNo":93,"categoryName":94,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":96,"categoryName":97,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":100,"categoryName":101,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",{"categoryNo":105,"categoryName":106,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000040","财务",[108,109,110,111,33,112,113,114,115,116,117,118,29,119,120,121,122,123,124,125],"writing","writing skills","testing","eval","edit","Budget","authoring","new skill","library","frontmatter","editing","use","Existing","Rules","write a skill","when","listing","progressive disclosure",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":133,"publishedAt":44},"01M6JQF5DGMXPMQQVZBP8DH9SY","working-agreement","Define and validate how a multi-session project is run — where plans, status and decisions live, session routines, new work, milestone close. README\u002FCONTRIBUTING → project-documentation.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fworking-agreement\u002FSKILL.md",[132],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[134,135,136,137,138,139,140,141,38,142,143,144,145,146,147,148,149,150,29,151],"working agreement","project","definition of done","done","milestone","documentation","work","progress","contributing","close","run","sync","status","live","do","README","session","routines",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":159,"publishedAt":44},"01M6JQF0SMRHN82RBSWMABC4J0","verification-before-completion","Evidence gate before any claim that work is done, fixed, passing, or deployed. Route here when a message declares the work finished or asks to commit, push, merge, ship, or close it out, including a brief sign-off, and before git-workflow or release-management act on it. Writing the commit message or PR text itself → git-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[158],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[160,161,162,163,164,165,108,24,137,43,166,167,140,30,143,168,169,26,170,171],"verification","verification before completion","brief","ready","fix","claim","text","route","merge","release","act","ship",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":185,"publishedAt":44},"01M6JQEVGE9NJZ11DV60AE6VWC","ui-ux-design","Design user experiences from an engineer's perspective — user flows, wireframes, interaction patterns, responsive strategy, navigation, loading\u002Ferror\u002Fempty states. Triggers: design the UI, user flow, wireframe, how should this screen look, loading state, error state, empty state, responsive design, navigation, page layout, form design, mockup.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-ux-design\u002FSKILL.md",[178,181,182],{"categoryNo":179,"categoryName":180,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":183,"categoryName":184,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000032","设计师",[186,187,188,189,190,191,192,193,194,195,196,197,38,198,199,200,201,202,203,204],"design","ux","ui","ui ux design","error","states","loading","flows","engineer","interaction","layout","responsive design","screen","flow","patterns","mockup","responsive","form","page",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":215,"publishedAt":44},"01M6JQEN4HVFTZWQYWGTDS76K9","threat-modeling","Design-time security analysis of a system or feature before it's built — trust boundaries, attack surface, STRIDE per element, abuse cases, prioritized mitigations that become security requirements. Triggers: threat model, STRIDE, trust boundary, attack surface, what could go wrong security-wise, security design review, abuse case, secure this design, security requirements. Reviewing EXISTING code\u002Fconfig for vulnerabilities → security-audit; use this skill while the design is still on the whiteboard.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[211,212],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":213,"categoryName":214,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000030","开发工程师",[216,217,218,219,220,221,186,222,223,224,225,28,226,227,228,229,230,231,232,233],"modeling","threat modeling","threat","model","time","element","whiteboard","security analysis","analysis","code","threat model","audit","security-audit","secure","config","go","security","trust",{"skillNo":235,"name":236,"nameZh":6,"description":237,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":238,"categories":239,"keywords":245,"publishedAt":44},"01M6JQEFT7VT3FQM16170EG9FW","test-suite-design","Design comprehensive test suites for existing code — strategy across unit\u002Fintegration\u002Fe2e, fixtures, factories, helpers. Triggers: add tests, write tests for, increase coverage, test this module, testing strategy, test plan, what tests do I need, test infrastructure, test helpers, this has no tests. Not for TDD — use tdd-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite-design\u002FSKILL.md",[240,241,242,243,244],{"categoryNo":93,"categoryName":94,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":179,"categoryName":180,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":213,"categoryName":214,"taxonomyType":102,"taxonomyTypeDesc":103},{"categoryNo":183,"categoryName":184,"taxonomyType":102,"taxonomyTypeDesc":103},[186,246,247,248,249,250,110,251,252,24,225,253,254,33,255,256,148,257,258,29],"test suite","test","test suite design","coverage","unit","write tests","testing strategy","across","plan","add","infrastructure","test plan","for"]