[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CYBZ37M25PJ78NGDB1EPTB":3,"skill-same:01M7CYBZ37M25PJ78NGDB1EPTB":53},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7CYBZ37M25PJ78NGDB1EPTB","git-workflow",null,"Conventional Commits, trunk vs. branch by change size, how a package's versions relate to the CMS majors it supports, and replying to or resolving feedback on an open PR. Use when committing, branching, switching branches with work still in progress, deciding how to structure either, or responding to review comments (human or automatic) in an Umbraco project. Not for release pipelines.","mattbrailsford\u002Fumbraco-devkit","mattbrailsford","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F527305?v=4","01M7CY974D4XX1P90YSXQC1T39","Matt Brailsford","01M7CY9751PSRA3EHBH03G936J",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fgit-workflow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: git-workflow\ndescription: >-\n  Conventional Commits, trunk vs. branch by change size, how a package's versions relate\n  to the CMS majors it supports, and replying to or resolving feedback on an open PR. Use\n  when committing, branching, switching branches with work still in progress, deciding how\n  to structure either, or responding to review comments (human or automatic) in an Umbraco\n  project. Not for release pipelines.\n\n---\n\n# Git workflow\n\nWrite commits and branches that read clearly weeks later. Direct, specific, no filler.\n\n## Branching — when to branch, when not\n\n**Trunk-based (commit straight to the default branch)** when:\n- Single-file or single-concept fix.\n- Typo, doc tweak, version bump, comment, lint fix.\n- Test-only addition that doesn't change behavior.\n- Reviews itself in 30 seconds, one commit.\n\n**Short-lived branch** when:\n- More than ~2 commits expected.\n- New feature or capability, even a small one.\n- A schema\u002Fmigration change.\n- Anything that could break the default branch for someone else.\n- A feature with a plan folder. All of its `PLAN.md` tasks go on that one feature branch (see\n  \"Branch\u002Fworktree per feature\" below), not a branch per task.\n\nBranch naming: `\u003Ctype>\u002F\u003Cshort-slug>` — `feat\u002Forder-fulfillment`, `fix\u002Fmissing-null-check`,\n`chore\u002Fbump-deps` — for a project supporting a single CMS version line. **Supporting more\nthan one Umbraco CMS major at once? Prefix with the version instead** (see \"Umbraco packages\nand version tracking\" below) — `v17\u002Ffix\u002Fmissing-null-check`, `v18\u002Ffeat\u002Forder-fulfillment`.\nPrefer the `vN\u002F` **prefix** form for a new project (it sorts and greps better than a suffix);\nmatch whatever a project with existing history already does otherwise. `feat\u002F`, `feature\u002F`,\nand `topic\u002F` are the same kind of prefix (some projects put all work, fixes included, under\n`vN\u002Ftopic\u002F`). Read a branch under any of them the same way, for example when matching it to a\nplan folder. Keep branches\nshort-lived; open the PR early, even as draft.\n\n## Branch\u002Fworktree per feature (the feature-* pipeline)\n\nIf a project runs `feature-explore` → `feature-design` → `feature-plan` → `feature-build`, the branch (or\nworktree) for a feature is cut at one specific moment: the start of `feature-build`, not\nbefore. The reasoning:\n\n- **Discovery and design cost nothing to abandon.** `feature-explore`\u002F`feature-design`\u002F`feature-plan`\n  never touch git — the plan folder is just files on disk. A feature that gets explored then\n  dropped never created a branch, so there's nothing to clean up.\n- **The plan folder and the branch share one name.** The feature's plan-folder slug (e.g.\n  `docs\u002Fplans\u002Forder-fulfillment\u002F`) is passed straight through as the branch\u002Fworktree name, so\n  the two are always identifiable from each other without a separate lookup.\n- **The docs travel with the code.** A worktree is a fresh checkout of a commit — anything not\n  yet committed when the worktree is created never appears in it. So the moment\n  `feature-build` decides to actually build, it commits the plan folder to trunk first (one\n  commit — `docs: add plan folder for \u003Cfeature-slug>`), *then* cuts the branch\u002Fworktree from\n  that commit. The docs land in the feature branch's history as a result, without needing any\n  file-copying step.\n- **This skill doesn't pick the naming convention or decide worktree-vs-plain-branch — a\n  project's own `WorktreeCreate` hook does, if it has one.** Claude Code ships a native\n  `WorktreeCreate`\u002F`WorktreeRemove` hook pair for exactly this\n  (https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks) — a project can already have a hook that names\n  branches `feature\u002F\u003Cname>`, puts worktrees under `.worktrees\u002F`, and copies over whatever local\n  files it needs. `feature-build` just triggers worktree creation with the feature slug as the\n  name and lets that hook do its job. **Don't build a second, bespoke hook mechanism inside\n  this plugin** — reuse the one Claude Code already has. If a project has no such hook,\n  `feature-build` falls back to a plain `git checkout -b \u003Cfeature-slug>` off trunk, using the\n  branch-naming rules above if the project wants a `\u003Ctype>\u002F` or `vN\u002F` prefix on top of the slug.\n- **The commit-to-trunk step still needs a yes.** It's a real commit on the trunk branch, so\n  the \"always ask before touching main\" rule below applies to it exactly as it would to any\n  other trunk commit — don't skip the confirmation just because the change is \"only docs.\"\n\n## If you are an AI agent: always ask before touching main or a support branch\n\n\"Trunk-based\" above is about when a *human* would commit straight to the default branch — it\nis not permission for an agent to do the same thing unattended. Before running `git commit`\nor `git merge` directly against the default branch or a `support\u002F*`-style branch, **stop and\nask the user to confirm first**, however trivial the change looks. A mis-scoped \"trivial\"\ncommit on a protected branch is cheap to avoid by asking, expensive to unwind after.\n\n## Commits — Conventional Commits, kept honest\n\n**Use Conventional Commits.** It costs nothing to adopt, buys machine-parseable changelogs\nand automated version bumps the moment you want them, and `fix(profile): ...` is easier to\nscan six months later than `Fix: some things`. **The one carve-out:** don't retrofit an\nestablished repo's *existing* history — start applying it going forward, and match a repo's\nalready-active, deliberate house style if it has one that isn't Conventional Commits.\n\n```\n\u003Ctype>(\u003Coptional scope>): \u003Cimperative summary, lower-case, no period>\n\n\u003Cbody — what changed and why, wrapped at ~72 cols>\n\n\u003Cfooter — refs, breaking changes>\n```\n\n**Types:** `feat`, `fix`, `chore`, `docs`, `refactor`, `test`, `perf`, `build`, `ci`,\n`revert`.\n\n**Summary rules:** 50 chars or fewer when possible, hard cap 72. Imperative mood (`add`, not\n`added`\u002F`adds`). No trailing period. Scope is optional, use it when there's an obvious area.\n\n**Body rules:** include one if the change isn't self-evident from the diff. Explain *what*\nand *why*, never restate the diff line by line. Reference issues with `Refs #123` \u002F\n`Closes #123`.\n\n**Good:**\n```\nfix(profile): resolve connection by alias before validating capability\n\nThe capability check ran before the connection lookup, so a missing\nconnection surfaced as \"capability not supported\" instead of \"connection\nnot found\" — misleading for anyone debugging a typo'd alias.\n\nRefs #142\n```\n\n**Bad:** `fix stuff` · `WIP` · `Update ProfileService.cs` (says nothing the diff doesn't) ·\n`Added some changes and refactored a couple of things` (vague, past tense).\n\n## Issues — `gh issue create`\n\nA useful issue answers: **what's wrong \u002F what's wanted, what's the context, what does done\nlook like.** Body from `templates\u002Fissue.md`, filled in — don't hand-write the structure:\n\n```bash\ngh issue create \\\n  --title \"feat(profile): resolve connection by alias before validating capability\" \\\n  --body \"$(cat \u003C\u003C'EOF'\n## Context\n...\nEOF\n)\"\n```\n\nAdd labels if the repo uses them (`--label bug`), and an assignee if known (`--assignee @me`).\n\n## Pull requests — `gh pr create`\n\nThis skill owns opening the PR — push, title, base branch, draft status. It does **not** write\nthe description body: that's always `pr-describe`'s job, every time, no exceptions. This\noverrides Claude Code's own built-in `gh pr create --body \"...\"` recipe with a hand-written\nbody — that default does not apply in this project. To open a PR, invoke `pr-describe`: it\nwrites the body, then opens the PR with the command below, following the rules in this\nsection. Always `--body-file`, never `--body`:\n\n```bash\ngh pr create \\\n  --title \"feat(profile): resolve connection by alias before validating capability\" \\\n  --body-file \u003Cpath to pr-describe's output>\n```\n\nTitle follows whatever commit convention the project uses (see above — Conventional Commits\nor the looser `Area: description` style), same as a commit summary, and should reflect *all*\nthe commits on the branch, not just the latest. If the branch isn't pushed yet, push it first\n(see \"Pushing to the right remote name\" below). Use `--draft` for a draft PR, `--base \u003Cbranch>`\nfor a non-default target (see \"Resolving the base branch\" below).\n\n**Pushing to the right remote name.** A local branch doesn't always push to a remote ref with\nthe same name — a local `wip\u002F...` branch can already track a differently-named\n`v17\u002Fbugfix\u002F23806-...` ref. Check before the first push:\n\n```bash\ngit rev-parse --abbrev-ref HEAD\ngit config --get \"branch.\u003Clocal-name>.merge\"   # e.g. refs\u002Fheads\u002Fv17\u002Fbugfix\u002F23806-... — strip refs\u002Fheads\u002F\n```\n\nAn unset `branch.\u003Cname>.merge` means the remote name matches the local one:\n`git push -u origin HEAD`. Otherwise push explicitly to the tracked name:\n`git push -u origin HEAD:\u003Cremote-branch>`.\n\n**Resolving the base branch.** A `v{N}\u002F...`-prefixed branch targets `v{N}\u002Fdev` — confirm it\nexists first (`git ls-remote --exit-code --heads origin v{N}\u002Fdev`), falling back to the\nproject's default branch if it doesn't. Anything else targets the default branch directly.\n\nBefore settling on that, check whether this is a **stacked PR**: a branch built on top of\nanother work branch rather than off the resolved base. Compare how far back each merge-base\nsits — `git merge-base HEAD \u003Cresolved-base>` landing far behind `git merge-base HEAD\n\u003Cother-open-branch>` is the tell, and the user may simply say so. When it's stacked, the base\nbecomes that other branch instead, and `pr-describe` opens the description with `Stacked on\n#\u003Cparent-pr-number>.` ahead of everything else — the parent PR merges first, and this one's\nbase moves to the normal resolved base once that happens.\n\n**Reviewing someone else's PR against this repo** (most packages here are open source, so\nthis is routine, not an edge case): if the author is outside the core maintainer team, use\n`pr-review` instead of reviewing it by hand — it wraps `reviewer` and adds the\nchecks that only matter because the diff came from outside.\n\n**Replying to feedback on your own PR** (a human reviewer, or an automatic one like GitHub\nCopilot's review): read and address every comment before touching any thread — don't resolve\none in isolation while others sit unread. Fetch them first:\n\n```bash\ngh api graphql -f query='query {\n  repository(owner: \"\u003Cowner>\", name: \"\u003Crepo>\") {\n    pullRequest(number: \u003Cn>) {\n      reviewThreads(first: 50) {\n        nodes { id isResolved comments(first: 1) { nodes { body } } }\n      }\n    }\n  }\n}'\n```\n\nReply to a specific comment (not a new top-level PR comment — `in_reply_to` keeps it in the\nsame thread):\n\n```bash\ngh api repos\u002F\u003Cowner>\u002F\u003Crepo>\u002Fpulls\u002Fcomments -f body=\"\u003Creply>\" -F in_reply_to=\u003Ccomment_id>\n```\n\nThere's no `pulls\u002Fcomments\u002F{id}\u002Freplies` REST endpoint, despite what the dashboard's \"Reply\"\nbutton implies — the call above, against the comments collection, is the one that works.\nResolve the thread once it's actually addressed, with the thread's `id` from the query above\n(not the comment id), over GraphQL — there's no REST equivalent:\n\n```bash\ngh api graphql -f query='mutation {\n  resolveReviewThread(input: {threadId: \"\u003Cthread_node_id>\"}) { thread { isResolved } }\n}'\n```\n\nReplying and resolving are as visible to everyone watching the PR as the original review\ncomment was — treat each one as its own small decision, same as any other comment or push, not\nsomething to batch silently alongside an unrelated commit.\n\n## Sanity rules\n\n- Don't push to the default branch with `--force`. Ever.\n- Don't `--no-verify` to skip hooks unless explicitly asked.\n- Never commit secrets — re-check the diff for `.env` files, tokens, and keys before staging.\n- Never commit large binaries or `node_modules`\u002F`bin`\u002F`obj` — confirm `.gitignore` covers\n  them.\n- If `git status` shows untracked files you didn't expect, investigate before staging — it\n  could be someone else's in-progress work.\n- Never carry changes across a branch switch with a bare `git stash` \u002F `git stash pop`. The\n  stash list is a single shared stack across every worktree and concurrent Claude session on\n  the machine, so a plain `pop` can restore someone else's in-progress stash instead of your\n  own. Save with `git stash push -u -m \u003Clabel>`, restore by name\n  (`git stash apply stash^{\u002F\u003Clabel>}`, or the exact `stash@{n}` from `git stash list` if two\n  entries share wording), and only `git stash drop` once you've confirmed it applied the right\n  one. A throwaway commit (`git commit -m wip`, amended or dropped later) is simpler and safer\n  than stashing at all when the change is cheap to re-create.\n\n## Umbraco packages and version tracking\n\nTwo numbers matter for a package that supports Umbraco: **its own release version**, and\n**which CMS major(s) it supports right now** — and which lifecycle phase each one is in\n(active feature development, security-patches-only, or end-of-life). Umbraco's own\n[LTS\u002FEOL policy](https:\u002F\u002Fumbraco.com\u002Fproducts\u002Fknowledge-center\u002Flong-term-support-and-end-of-life\u002F)\nis the reference point for what those phases mean. Decide deliberately how the two numbers\nrelate to each other — don't let one drift into implying the other by accident.\n\n**If more than one CMS major is supported at once**, decide early — before it's forced by a\nmerge conflict — how the codebase carries that:\n\n- **Branch-per-major** (recommended default): each major gets its own long-lived line, and a\n  fix that applies to more than one is ported deliberately. Avoids runtime version-check\n  complexity, at the cost of porting shared fixes across branches (`change-backport` does one\n  port). Naming:\n  `support\u002FN.x` alongside a single `main` is the older shape; `vN\u002Fdev` + `vN\u002Fmain` per line\n  (with `vN\u002Ffeature\u002F…`, `vN\u002Frelease\u002F…`, `vN\u002Fhotfix\u002F…` underneath) is the newer one worth\n  defaulting to — it makes which lines exist and their state visible from the branch list\n  alone.\n- **Single branch with runtime version checks** (`if (umbracoMajorVersion >= N) { ... }`):\n  keeps everything in one place, but the checks accumulate and untested branches-not-taken\n  creep in. Reasonable only for a package needing a handful of such checks at most.\n\n### Does the package's own version number track the CMS major?\n\nOnce you're branching per major, this falls out almost for free — but pick it deliberately,\ndon't let the `vN\u002F` branch name silently answer the question for you:\n\n- **Version-aligned (default recommendation):** the package's major version tracks the CMS\n  major it targets — release from `v17\u002Fmain`, tag `17.x.x`; a new CMS major gets a new package\n  major, whether or not the code underneath actually changed. This is the dominant pattern\n  among well-known, actively-maintained Umbraco community packages — uSync, Skybrud.Redirects,\n  and Diplo GodMode all do this, and say so explicitly in their own release notes or README.\n  It's the most discoverable option for someone skimming NuGet (\"v17 → works with Umbraco 17\"),\n  and once you're already cutting a `vN\u002Fmain` branch per major, it costs nothing extra to\n  follow through on. The tradeoff: you'll sometimes bump a major version for a release that\n  changed nothing meaningful, purely to keep pace with a new CMS major.\n- **Independent SemVer:** the package's own version reflects only its own change history; CMS\n  compatibility is declared as a NuGet dependency range instead (e.g.\n  `Umbraco.Cms.Core [17.0.0, 19.0.0)`), the same way any library depending on another would.\n  This is the technically \"purer\" SemVer reading — Contentment does this — but it's the\n  minority pattern here, and a bare version number no longer tells a consumer which CMS major\n  it targets. Reach for this when the package rarely needs real code changes across a CMS\n  major bump, so a major version bump would otherwise be spent on nothing.\n\nWhichever you pick, when a change only applies to one CMS major, say so explicitly in the\ncommit body and PR description — a reviewer on a multi-version project can't infer that from\nthe diff alone.\n\nThis skill deliberately stops here. A full release pipeline — calendar-based release\nbranches, multi-product release manifests, automated changelog generation, coordinated\nreleases across more than one package — is a \"build on top\" concern once a project's needs\nactually require it. See the README's **Building on top** section for what that looks like\nin practice.\n","# Git workflow\n\nWrite commits and branches that read clearly weeks later. Direct, specific, no filler.\n\n## Branching — when to branch, when not\n\n**Trunk-based (commit straight to the default branch)** when:\n- Single-file or single-concept fix.\n- Typo, doc tweak, version bump, comment, lint fix.\n- Test-only addition that doesn't change behavior.\n- Reviews itself in 30 seconds, one commit.\n\n**Short-lived branch** when:\n- More than ~2 commits expected.\n- New feature or capability, even a small one.\n- A schema\u002Fmigration change.\n- Anything that could break the default branch for someone else.\n- A feature with a plan folder. All of its `PLAN.md` tasks go on that one feature branch (see\n  \"Branch\u002Fworktree per feature\" below), not a branch per task.\n\nBranch naming: `\u003Ctype>\u002F\u003Cshort-slug>` — `feat\u002Forder-fulfillment`, `fix\u002Fmissing-null-check`,\n`chore\u002Fbump-deps` — for a project supporting a single CMS version line. **Supporting more\nthan one Umbraco CMS major at once? Prefix with the version instead** (see \"Umbraco packages\nand version tracking\" below) — `v17\u002Ffix\u002Fmissing-null-check`, `v18\u002Ffeat\u002Forder-fulfillment`.\nPrefer the `vN\u002F` **prefix** form for a new project (it sorts and greps better than a suffix);\nmatch whatever a project with existing history already does otherwise. `feat\u002F`, `feature\u002F`,\nand `topic\u002F` are the same kind of prefix (some projects put all work, fixes included, under\n`vN\u002Ftopic\u002F`). Read a branch under any of them the same way, for example when matching it to a\nplan folder. Keep branches\nshort-lived; open the PR early, even as draft.\n\n## Branch\u002Fworktree per feature (the feature-* pipeline)\n\nIf a project runs `feature-explore` → `feature-design` → `feature-plan` → `feature-build`, the branch (or\nworktree) for a feature is cut at one specific moment: the start of `feature-build`, not\nbefore. The reasoning:\n\n- **Discovery and design cost nothing to abandon.** `feature-explore`\u002F`feature-design`\u002F`feature-plan`\n  never touch git — the plan folder is just files on disk. A feature that gets explored then\n  dropped never created a branch, so there's nothing to clean up.\n- **The plan folder and the branch share one name.** The feature's plan-folder slug (e.g.\n  `docs\u002Fplans\u002Forder-fulfillment\u002F`) is passed straight through as the branch\u002Fworktree name, so\n  the two are always identifiable from each other without a separate lookup.\n- **The docs travel with the code.** A worktree is a fresh checkout of a commit — anything not\n  yet committed when the worktree is created never appears in it. So the moment\n  `feature-build` decides to actually build, it commits the plan folder to trunk first (one\n  commit — `docs: add plan folder for \u003Cfeature-slug>`), *then* cuts the branch\u002Fworktree from\n  that commit. The docs land in the feature branch's history as a result, without needing any\n  file-copying step.\n- **This skill doesn't pick the naming convention or decide worktree-vs-plain-branch — a\n  project's own `WorktreeCreate` hook does, if it has one.** Claude Code ships a native\n  `WorktreeCreate`\u002F`WorktreeRemove` hook pair for exactly this\n  (https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks) — a project can already have a hook that names\n  branches `feature\u002F\u003Cname>`, puts worktrees under `.worktrees\u002F`, and copies over whatever local\n  files it needs. `feature-build` just triggers worktree creation with the feature slug as the\n  name and lets that hook do its job. **Don't build a second, bespoke hook mechanism inside\n  this plugin** — reuse the one Claude Code already has. If a project has no such hook,\n  `feature-build` falls back to a plain `git checkout -b \u003Cfeature-slug>` off trunk, using the\n  branch-naming rules above if the project wants a `\u003Ctype>\u002F` or `vN\u002F` prefix on top of the slug.\n- **The commit-to-trunk step still needs a yes.** It's a real commit on the trunk branch, so\n  the \"always ask before touching main\" rule below applies to it exactly as it would to any\n  other trunk commit — don't skip the confirmation just because the change is \"only docs.\"\n\n## If you are an AI agent: always ask before touching main or a support branch\n\n\"Trunk-based\" above is about when a *human* would commit straight to the default branch — it\nis not permission for an agent to do the same thing unattended. Before running `git commit`\nor `git merge` directly against the default branch or a `support\u002F*`-style branch, **stop and\nask the user to confirm first**, however trivial the change looks. A mis-scoped \"trivial\"\ncommit on a protected branch is cheap to avoid by asking, expensive to unwind after.\n\n## Commits — Conventional Commits, kept honest\n\n**Use Conventional Commits.** It costs nothing to adopt, buys machine-parseable changelogs\nand automated version bumps the moment you want them, and `fix(profile): ...` is easier to\nscan six months later than `Fix: some things`. **The one carve-out:** don't retrofit an\nestablished repo's *existing* history — start applying it going forward, and match a repo's\nalready-active, deliberate house style if it has one that isn't Conventional Commits.\n\n```\n\u003Ctype>(\u003Coptional scope>): \u003Cimperative summary, lower-case, no period>\n\n\u003Cbody — what changed and why, wrapped at ~72 cols>\n\n\u003Cfooter — refs, breaking changes>\n```\n\n**Types:** `feat`, `fix`, `chore`, `docs`, `refactor`, `test`, `perf`, `build`, `ci`,\n`revert`.\n\n**Summary rules:** 50 chars or fewer when possible, hard cap 72. Imperative mood (`add`, not\n`added`\u002F`adds`). No trailing period. Scope is optional, use it when there's an obvious area.\n\n**Body rules:** include one if the change isn't self-evident from the diff. Explain *what*\nand *why*, never restate the diff line by line. Reference issues with `Refs #123` \u002F\n`Closes #123`.\n\n**Good:**\n```\nfix(profile): resolve connection by alias before validating capability\n\nThe capability check ran before the connection lookup, so a missing\nconnection surfaced as \"capability not supported\" instead of \"connection\nnot found\" — misleading for anyone debugging a typo'd alias.\n\nRefs #142\n```\n\n**Bad:** `fix stuff` · `WIP` · `Update ProfileService.cs` (says nothing the diff doesn't) ·\n`Added some changes and refactored a couple of things` (vague, past tense).\n\n## Issues — `gh issue create`\n\nA useful issue answers: **what's wrong \u002F what's wanted, what's the context, what does done\nlook like.** Body from `templates\u002Fissue.md`, filled in — don't hand-write the structure:\n\n```bash\ngh issue create \\\n  --title \"feat(profile): resolve connection by alias before validating capability\" \\\n  --body \"$(cat \u003C\u003C'EOF'\n## Context\n...\nEOF\n)\"\n```\n\nAdd labels if the repo uses them (`--label bug`), and an assignee if known (`--assignee @me`).\n\n## Pull requests — `gh pr create`\n\nThis skill owns opening the PR — push, title, base branch, draft status. It does **not** write\nthe description body: that's always `pr-describe`'s job, every time, no exceptions. This\noverrides Claude Code's own built-in `gh pr create --body \"...\"` recipe with a hand-written\nbody — that default does not apply in this project. To open a PR, invoke `pr-describe`: it\nwrites the body, then opens the PR with the command below, following the rules in this\nsection. Always `--body-file`, never `--body`:\n\n```bash\ngh pr create \\\n  --title \"feat(profile): resolve connection by alias before validating capability\" \\\n  --body-file \u003Cpath to pr-describe's output>\n```\n\nTitle follows whatever commit convention the project uses (see above — Conventional Commits\nor the looser `Area: description` style), same as a commit summary, and should reflect *all*\nthe commits on the branch, not just the latest. If the branch isn't pushed yet, push it first\n(see \"Pushing to the right remote name\" below). Use `--draft` for a draft PR, `--base \u003Cbranch>`\nfor a non-default target (see \"Resolving the base branch\" below).\n\n**Pushing to the right remote name.** A local branch doesn't always push to a remote ref with\nthe same name — a local `wip\u002F...` branch can already track a differently-named\n`v17\u002Fbugfix\u002F23806-...` ref. Check before the first push:\n\n```bash\ngit rev-parse --abbrev-ref HEAD\ngit config --get \"branch.\u003Clocal-name>.merge\"   # e.g. refs\u002Fheads\u002Fv17\u002Fbugfix\u002F23806-... — strip refs\u002Fheads\u002F\n```\n\nAn unset `branch.\u003Cname>.merge` means the remote name matches the local one:\n`git push -u origin HEAD`. Otherwise push explicitly to the tracked name:\n`git push -u origin HEAD:\u003Cremote-branch>`.\n\n**Resolving the base branch.** A `v{N}\u002F...`-prefixed branch targets `v{N}\u002Fdev` — confirm it\nexists first (`git ls-remote --exit-code --heads origin v{N}\u002Fdev`), falling back to the\nproject's default branch if it doesn't. Anything else targets the default branch directly.\n\nBefore settling on that, check whether this is a **stacked PR**: a branch built on top of\nanother work branch rather than off the resolved base. Compare how far back each merge-base\nsits — `git merge-base HEAD \u003Cresolved-base>` landing far behind `git merge-base HEAD\n\u003Cother-open-branch>` is the tell, and the user may simply say so. When it's stacked, the base\nbecomes that other branch instead, and `pr-describe` opens the description with `Stacked on\n#\u003Cparent-pr-number>.` ahead of everything else — the parent PR merges first, and this one's\nbase moves to the normal resolved base once that happens.\n\n**Reviewing someone else's PR against this repo** (most packages here are open source, so\nthis is routine, not an edge case): if the author is outside the core maintainer team, use\n`pr-review` instead of reviewing it by hand — it wraps `reviewer` and adds the\nchecks that only matter because the diff came from outside.\n\n**Replying to feedback on your own PR** (a human reviewer, or an automatic one like GitHub\nCopilot's review): read and address every comment before touching any thread — don't resolve\none in isolation while others sit unread. Fetch them first:\n\n```bash\ngh api graphql -f query='query {\n  repository(owner: \"\u003Cowner>\", name: \"\u003Crepo>\") {\n    pullRequest(number: \u003Cn>) {\n      reviewThreads(first: 50) {\n        nodes { id isResolved comments(first: 1) { nodes { body } } }\n      }\n    }\n  }\n}'\n```\n\nReply to a specific comment (not a new top-level PR comment — `in_reply_to` keeps it in the\nsame thread):\n\n```bash\ngh api repos\u002F\u003Cowner>\u002F\u003Crepo>\u002Fpulls\u002Fcomments -f body=\"\u003Creply>\" -F in_reply_to=\u003Ccomment_id>\n```\n\nThere's no `pulls\u002Fcomments\u002F{id}\u002Freplies` REST endpoint, despite what the dashboard's \"Reply\"\nbutton implies — the call above, against the comments collection, is the one that works.\nResolve the thread once it's actually addressed, with the thread's `id` from the query above\n(not the comment id), over GraphQL — there's no REST equivalent:\n\n```bash\ngh api graphql -f query='mutation {\n  resolveReviewThread(input: {threadId: \"\u003Cthread_node_id>\"}) { thread { isResolved } }\n}'\n```\n\nReplying and resolving are as visible to everyone watching the PR as the original review\ncomment was — treat each one as its own small decision, same as any other comment or push, not\nsomething to batch silently alongside an unrelated commit.\n\n## Sanity rules\n\n- Don't push to the default branch with `--force`. Ever.\n- Don't `--no-verify` to skip hooks unless explicitly asked.\n- Never commit secrets — re-check the diff for `.env` files, tokens, and keys before staging.\n- Never commit large binaries or `node_modules`\u002F`bin`\u002F`obj` — confirm `.gitignore` covers\n  them.\n- If `git status` shows untracked files you didn't expect, investigate before staging — it\n  could be someone else's in-progress work.\n- Never carry changes across a branch switch with a bare `git stash` \u002F `git stash pop`. The\n  stash list is a single shared stack across every worktree and concurrent Claude session on\n  the machine, so a plain `pop` can restore someone else's in-progress stash instead of your\n  own. Save with `git stash push -u -m \u003Clabel>`, restore by name\n  (`git stash apply stash^{\u002F\u003Clabel>}`, or the exact `stash@{n}` from `git stash list` if two\n  entries share wording), and only `git stash drop` once you've confirmed it applied the right\n  one. A throwaway commit (`git commit -m wip`, amended or dropped later) is simpler and safer\n  than stashing at all when the change is cheap to re-create.\n\n## Umbraco packages and version tracking\n\nTwo numbers matter for a package that supports Umbraco: **its own release version**, and\n**which CMS major(s) it supports right now** — and which lifecycle phase each one is in\n(active feature development, security-patches-only, or end-of-life). Umbraco's own\n[LTS\u002FEOL policy](https:\u002F\u002Fumbraco.com\u002Fproducts\u002Fknowledge-center\u002Flong-term-support-and-end-of-life\u002F)\nis the reference point for what those phases mean. Decide deliberately how the two numbers\nrelate to each other — don't let one drift into implying the other by accident.\n\n**If more than one CMS major is supported at once**, decide early — before it's forced by a\nmerge conflict — how the codebase carries that:\n\n- **Branch-per-major** (recommended default): each major gets its own long-lived line, and a\n  fix that applies to more than one is ported deliberately. Avoids runtime version-check\n  complexity, at the cost of porting shared fixes across branches (`change-backport` does one\n  port). Naming:\n  `support\u002FN.x` alongside a single `main` is the older shape; `vN\u002Fdev` + `vN\u002Fmain` per line\n  (with `vN\u002Ffeature\u002F…`, `vN\u002Frelease\u002F…`, `vN\u002Fhotfix\u002F…` underneath) is the newer one worth\n  defaulting to — it makes which lines exist and their state visible from the branch list\n  alone.\n- **Single branch with runtime version checks** (`if (umbracoMajorVersion >= N) { ... }`):\n  keeps everything in one place, but the checks accumulate and untested branches-not-taken\n  creep in. Reasonable only for a package needing a handful of such checks at most.\n\n### Does the package's own version number track the CMS major?\n\nOnce you're branching per major, this falls out almost for free — but pick it deliberately,\ndon't let the `vN\u002F` branch name silently answer the question for you:\n\n- **Version-aligned (default recommendation):** the package's major version tracks the CMS\n  major it targets — release from `v17\u002Fmain`, tag `17.x.x`; a new CMS major gets a new package\n  major, whether or not the code underneath actually changed. This is the dominant pattern\n  among well-known, actively-maintained Umbraco community packages — uSync, Skybrud.Redirects,\n  and Diplo GodMode all do this, and say so explicitly in their own release notes or README.\n  It's the most discoverable option for someone skimming NuGet (\"v17 → works with Umbraco 17\"),\n  and once you're already cutting a `vN\u002Fmain` branch per major, it costs nothing extra to\n  follow through on. The tradeoff: you'll sometimes bump a major version for a release that\n  changed nothing meaningful, purely to keep pace with a new CMS major.\n- **Independent SemVer:** the package's own version reflects only its own change history; CMS\n  compatibility is declared as a NuGet dependency range instead (e.g.\n  `Umbraco.Cms.Core [17.0.0, 19.0.0)`), the same way any library depending on another would.\n  This is the technically \"purer\" SemVer reading — Contentment does this — but it's the\n  minority pattern here, and a bare version number no longer tells a consumer which CMS major\n  it targets. Reach for this when the package rarely needs real code changes across a CMS\n  major bump, so a major version bump would otherwise be spent on nothing.\n\nWhichever you pick, when a change only applies to one CMS major, say so explicitly in the\ncommit body and PR description — a reviewer on a multi-version project can't infer that from\nthe diff alone.\n\nThis skill deliberately stops here. A full release pipeline — calendar-based release\nbranches, multi-product release manifests, automated changelog generation, coordinated\nreleases across more than one package — is a \"build on top\" concern once a project's needs\nactually require it. See the README's **Building on top** section for what that looks like\nin practice.\n",{"name":5,"description":7},"main","a2f9c28bc56802b4e6db01e03972e497b30ad001","plugins\u002Fumbraco-devkit\u002Fskills\u002Fgit-workflow",1,"https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit","https:\u002F\u002Fgithub.com\u002Fmattbrailsford","https:\u002F\u002Fmattbrailsford.dev","AI Staff Engineer @umbraco ","2026-11-12 18:33:53",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add mattbrailsford\u002Fumbraco-devkit --skill git-workflow",{"tool":39,"command":40},"bunx","bunx skills add mattbrailsford\u002Fumbraco-devkit --skill git-workflow",{"tool":42,"command":43},"pnpm","pnpm dlx skills add mattbrailsford\u002Fumbraco-devkit --skill git-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fgit-workflow\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"templates\u002Fissue.md","REFERENCE","参考文档",328,"https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fgit-workflow\u002Ftemplates\u002Fissue.md",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CYGRPVNP8H9YNHGMZ6CP3C","user-stories","Writes, splits and refines user stories with Given\u002FWhen\u002FThen acceptance criteria in STORIES.md, feeding bdd-specs. Use when turning a feature request or a vague ask into a testable backlog entry.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fuser-stories\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CYGJB26N83DXKMDEKY2X48","umbraco-security","What Umbraco provides for keeping a package secure, on the server and in the backoffice: Management API authorization and policies, settings that hold secrets, endpoints outside the Management API, sanitizeHTML and escapeHTML, DOMPurify rules for custom elements, and umbHttpClient instead of handling tokens in the browser. Use when writing or reviewing a Management API controller, a secret setting, a custom endpoint, a backoffice template that uses unsafeHTML, or frontend code that calls an API.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-security\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CYGBEZ2Q4AXDDNADWW4Q9H","umbraco-performance","Keeping a package fast on the sites that install it: the published cache over the services layer, tree traversal, caching lookups and clearing them, data type config and converter cache levels, output cache eviction, light hot paths, and backoffice screens that don't over-fetch. Use when writing, changing or reviewing code that runs per request, per save, per indexed item or at startup (property value converters, notification handlers, indexing), code that loops over every content item (a full rebuild, an import, a sync), or a list or search screen. Not for a site's own templates.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-performance\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CYG59CZN1K2KERB0SSDGSY","umbraco-package-conventions","Backend conventions for an Umbraco package: async naming, internal by default, Attempt-based results for routine failures, public-API backwards compatibility, and where extension methods live. Use when naming a method, choosing visibility, shaping a service's result, changing a public signature (including adding a dependency to a public class's constructor), or organizing extension methods. For extension mechanisms, see `umbraco-extensibility`.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-package-conventions\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CYG0J10QH8J2GS825WTTET","umbraco-marketplace","Gets a finished package listed on the Umbraco Marketplace: the NuGet tag, the dependency Marketplace reads version support from, the v14+ compatibility gotcha, and umbraco-marketplace.json. Use when a package is ready to publish, or when reviewing its packaging.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-marketplace\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CYFT7MSYW4GRDSQRDPG020","umbraco-extensibility","Umbraco's extension mechanisms (Composers, collection builders, notification handlers, attribute discovery) and a catalogue of backend CMS extension points: property value converters, Management API endpoints, content finders, health checks, search indexing, package migrations, background jobs, and more. Use when making a feature extensible or choosing which extension point fits. Not for property editor UI, dashboards, sections or trees, which the official Backoffice Skills plugin covers.","https:\u002F\u002Fgithub.com\u002Fmattbrailsford\u002Fumbraco-devkit\u002Fblob\u002Fmain\u002Fplugins\u002Fumbraco-devkit\u002Fskills\u002Fumbraco-extensibility\u002FSKILL.md",[],[]]