[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79N8MWT2P8F3QEY4R3QGRGQ":3,"skill-same:01M79N8MWT2P8F3QEY4R3QGRGQ":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":13,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M79N8MWT2P8F3QEY4R3QGRGQ","finishing-work",null,"Sync back to a clean, current main after a PR merges — confirm the merge landed, switch to main, fast-forward pull, prune remote-tracking branches, and verify a clean repo state. Use when finishing work, asked to \"I just merged, clean this up\", \"sync back to main after merge\", \"finish this branch\", or \"get back to a clean main\". Never deletes branches or worktrees itself — hands off to `\u002Fgit-cleanup` for that.","AndreHahm\u002Fandres-cc-marketplace","AndreHahm","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F80748019?v=4","01M79N2VZJT9MAJ7K695C9VXQ4","01M79N2W06PFX8BSCQ592M8K8K",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffinishing-work\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: finishing-work\ndescription: >-\n  Sync back to a clean, current main after a PR merges — confirm the merge landed, switch to main,\n  fast-forward pull, prune remote-tracking branches, and verify a clean repo state. Use when finishing\n  work, asked to \"I just merged, clean this up\", \"sync back to main after merge\", \"finish this branch\",\n  or \"get back to a clean main\". Never deletes branches or worktrees itself — hands off to `\u002Fgit-cleanup`\n  for that.\nargument-hint: (optional) PR number or URL — defaults to the current branch's PR if omitted\nallowed-tools: Bash(gh pr view:*), Bash(gh repo view:*), Bash(git checkout:*), Bash(git pull:*), Bash(git fetch:*), Bash(git status:*), Bash(git worktree list:*), Bash(git branch --show-current:*), Bash(git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD:*)\n---\n\n# Finishing Work\n\nGet local `main` back to a clean, current state right after a PR merges — without assuming the merge\nactually happened, and without doing the branch\u002Fworktree deletion itself (that stays a deliberate,\nuser-invoked step via `\u002Fgit-cleanup`).\n\n## When to Use\n\nRight after a PR merges: confirming the merge, returning to a synced `main`, and verifying nothing was\nleft dirty. Triggers: \"I just merged, clean this up\", \"sync back to main after merge\", \"finish this\nbranch\", \"get back to a clean main\".\n\n## When NOT to Use\n\n- **Actually deleting the merged branch or its worktree** — that's `\u002Fgit-cleanup`'s job. This skill only\n  syncs local state and tells you to run it.\n- **The PR hasn't merged yet** — step 1 below checks this and stops if it hasn't; don't skip straight to\n  syncing main on the assumption it landed.\n\n## Instructions\n\n1. **Confirm the PR actually merged**: capture the current branch with `git branch --show-current` (used\n   only to detect the mismatch below — step 4's own worktree check uses `headRefName`, not this value).\n   Run `gh pr view $ARGUMENTS --json state,mergedAt,headRefName,url`. If `state` isn't `MERGED` (still\n   open, or closed without merging), tell the user exactly which state it's in and stop — don't sync\n   main on an assumption. If `$ARGUMENTS` was given, check whether the returned `headRefName` differs\n   from the branch just captured, or the returned `url`'s `\u003Cowner>\u002F\u003Crepo>` segment differs from\n   `gh repo view --json nameWithOwner --jq .nameWithOwner` (the current repository) — on either\n   mismatch, stop and ask via `AskUserQuestion` whether to proceed anyway rather than silently\n   continuing on an unrelated PR's merge state.\n2. **Return to main**: resolve the actual default branch rather than assuming `main` —\n   `git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD` (falling back to `main` if that fails, e.g. no `origin`\n   remote configured), then `git checkout \u003Cresolved-branch>`, then `git pull --ff-only`. If the checkout\n   or pull fails, tell the user why and stop rather than force anything — three distinct reasons, not just\n   one: a diverged local branch; the resolved branch already checked out in another worktree (git refuses\n   with \"already used by worktree\"); or **this session is itself sandboxed to a worktree checkout** rather\n   than the primary checkout — a worktree-sandboxed session cannot `cd` out to the primary repo root, so\n   even a successful-looking checkout here would switch the *worktree's own* branch, not the primary\n   checkout's, leaving the actual goal (a synced primary `main`) unmet. Tell the user plainly which of the\n   three applies, and — for the sandboxed case specifically — that they need to run `finishing-work` (and\n   subsequently `\u002Fgit-cleanup`) from a session started in the primary checkout instead. `allowed-tools`\n   grants `Bash(git checkout:*)` broadly for this step since the resolved branch name is dynamic and can't\n   be statically pinned — this skill never runs the file-restore form (`git checkout -- \u003Cpath>`), only\n   branch checkout.\n3. **Prune**: `git fetch --prune` to drop stale remote-tracking refs for branches deleted on the remote.\n4. **Verify clean state**: `git status --porcelain` on the current worktree must come back empty. Also\n   run `git worktree list` and compare against the PR's `headRefName` from step 1 (not the\n   `git branch --show-current` value, which only served step 1's own mismatch check) — if another\n   worktree is still checked out on that specific branch, flag it (especially if it has uncommitted\n   changes) without touching it.\n5. **Hand off**: tell the user local `main` is synced and current, and that `\u002Fgit-cleanup` is the next\n   step to review and delete the merged branch (and worktree, if any). Never invoke `git-cleanup`\n   automatically — it has `disable-model-invocation: true` by design and only runs on direct user\n   invocation. **If this session is sandboxed to a worktree checkout**, remind them here too:\n   `\u002Fgit-cleanup` needs to run from a session started in the primary checkout, not from inside the\n   worktree — the same constraint step 2 above stops on, not a separate one.\n\n## Testing & Validation\n\n**Verify this skill activates on:**\n- \"I just merged PR #42, clean this up\"\n- \"sync back to main after merge\" \u002F \"finish this branch\"\n\n**Verify it does NOT activate on:**\n- \"delete my old branches\" → `\u002Fgit-cleanup`\n- \"start a new branch for X\" → `starting-work`\n\n**Quality gates:**\n- [ ] Step 1 always checks actual PR state via `gh pr view` — never assumes merged from context alone\n- [ ] A not-yet-merged PR always stops the flow before touching `main`\n- [ ] Step 1 always binds the merge confirmation to a specific branch and repository (`headRefName`,\n      `nameWithOwner`) — never assumes `$ARGUMENTS` refers to the current branch\u002Frepo without checking,\n      and always stops to ask on a mismatch rather than continuing silently\n- [ ] Step 5 always tells the user to run `\u002Fgit-cleanup` themselves — never invokes it via `Skill()`\n- [ ] A session sandboxed to a worktree checkout is told plainly, at both step 2 and step 5, that it\n      cannot complete the sync\u002Fhand-off from there — never left to discover the `cd` failure on its own\n- [ ] A diverged local default branch at step 2 always stops rather than force-syncing\n","# Finishing Work\n\nGet local `main` back to a clean, current state right after a PR merges — without assuming the merge\nactually happened, and without doing the branch\u002Fworktree deletion itself (that stays a deliberate,\nuser-invoked step via `\u002Fgit-cleanup`).\n\n## When to Use\n\nRight after a PR merges: confirming the merge, returning to a synced `main`, and verifying nothing was\nleft dirty. Triggers: \"I just merged, clean this up\", \"sync back to main after merge\", \"finish this\nbranch\", \"get back to a clean main\".\n\n## When NOT to Use\n\n- **Actually deleting the merged branch or its worktree** — that's `\u002Fgit-cleanup`'s job. This skill only\n  syncs local state and tells you to run it.\n- **The PR hasn't merged yet** — step 1 below checks this and stops if it hasn't; don't skip straight to\n  syncing main on the assumption it landed.\n\n## Instructions\n\n1. **Confirm the PR actually merged**: capture the current branch with `git branch --show-current` (used\n   only to detect the mismatch below — step 4's own worktree check uses `headRefName`, not this value).\n   Run `gh pr view $ARGUMENTS --json state,mergedAt,headRefName,url`. If `state` isn't `MERGED` (still\n   open, or closed without merging), tell the user exactly which state it's in and stop — don't sync\n   main on an assumption. If `$ARGUMENTS` was given, check whether the returned `headRefName` differs\n   from the branch just captured, or the returned `url`'s `\u003Cowner>\u002F\u003Crepo>` segment differs from\n   `gh repo view --json nameWithOwner --jq .nameWithOwner` (the current repository) — on either\n   mismatch, stop and ask via `AskUserQuestion` whether to proceed anyway rather than silently\n   continuing on an unrelated PR's merge state.\n2. **Return to main**: resolve the actual default branch rather than assuming `main` —\n   `git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD` (falling back to `main` if that fails, e.g. no `origin`\n   remote configured), then `git checkout \u003Cresolved-branch>`, then `git pull --ff-only`. If the checkout\n   or pull fails, tell the user why and stop rather than force anything — three distinct reasons, not just\n   one: a diverged local branch; the resolved branch already checked out in another worktree (git refuses\n   with \"already used by worktree\"); or **this session is itself sandboxed to a worktree checkout** rather\n   than the primary checkout — a worktree-sandboxed session cannot `cd` out to the primary repo root, so\n   even a successful-looking checkout here would switch the *worktree's own* branch, not the primary\n   checkout's, leaving the actual goal (a synced primary `main`) unmet. Tell the user plainly which of the\n   three applies, and — for the sandboxed case specifically — that they need to run `finishing-work` (and\n   subsequently `\u002Fgit-cleanup`) from a session started in the primary checkout instead. `allowed-tools`\n   grants `Bash(git checkout:*)` broadly for this step since the resolved branch name is dynamic and can't\n   be statically pinned — this skill never runs the file-restore form (`git checkout -- \u003Cpath>`), only\n   branch checkout.\n3. **Prune**: `git fetch --prune` to drop stale remote-tracking refs for branches deleted on the remote.\n4. **Verify clean state**: `git status --porcelain` on the current worktree must come back empty. Also\n   run `git worktree list` and compare against the PR's `headRefName` from step 1 (not the\n   `git branch --show-current` value, which only served step 1's own mismatch check) — if another\n   worktree is still checked out on that specific branch, flag it (especially if it has uncommitted\n   changes) without touching it.\n5. **Hand off**: tell the user local `main` is synced and current, and that `\u002Fgit-cleanup` is the next\n   step to review and delete the merged branch (and worktree, if any). Never invoke `git-cleanup`\n   automatically — it has `disable-model-invocation: true` by design and only runs on direct user\n   invocation. **If this session is sandboxed to a worktree checkout**, remind them here too:\n   `\u002Fgit-cleanup` needs to run from a session started in the primary checkout, not from inside the\n   worktree — the same constraint step 2 above stops on, not a separate one.\n\n## Testing & Validation\n\n**Verify this skill activates on:**\n- \"I just merged PR #42, clean this up\"\n- \"sync back to main after merge\" \u002F \"finish this branch\"\n\n**Verify it does NOT activate on:**\n- \"delete my old branches\" → `\u002Fgit-cleanup`\n- \"start a new branch for X\" → `starting-work`\n\n**Quality gates:**\n- [ ] Step 1 always checks actual PR state via `gh pr view` — never assumes merged from context alone\n- [ ] A not-yet-merged PR always stops the flow before touching `main`\n- [ ] Step 1 always binds the merge confirmation to a specific branch and repository (`headRefName`,\n      `nameWithOwner`) — never assumes `$ARGUMENTS` refers to the current branch\u002Frepo without checking,\n      and always stops to ask on a mismatch rather than continuing silently\n- [ ] Step 5 always tells the user to run `\u002Fgit-cleanup` themselves — never invokes it via `Skill()`\n- [ ] A session sandboxed to a worktree checkout is told plainly, at both step 2 and step 5, that it\n      cannot complete the sync\u002Fhand-off from there — never left to discover the `cd` failure on its own\n- [ ] A diverged local default branch at step 2 always stops rather than force-syncing\n",{"name":5,"description":7,"allowed-tools":23,"argument-hint":24},"Bash(gh pr view:*), Bash(gh repo view:*), Bash(git checkout:*), Bash(git pull:*), Bash(git fetch:*), Bash(git status:*), Bash(git worktree list:*), Bash(git branch --show-current:*), Bash(git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD:*)","(optional) PR number or URL — defaults to the current branch's PR if omitted","main","1bf12900cac6f28e346abd2912bdb78d306de723",".agents\u002Fskills\u002Ffinishing-work","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace","https:\u002F\u002Fgithub.com\u002FAndreHahm","2026-11-15 04:26:16",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add AndreHahm\u002Fandres-cc-marketplace --skill finishing-work",{"tool":37,"command":38},"bunx","bunx skills add AndreHahm\u002Fandres-cc-marketplace --skill finishing-work",{"tool":40,"command":41},"pnpm","pnpm dlx skills add AndreHahm\u002Fandres-cc-marketplace --skill finishing-work","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffinishing-work\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M79R0K918Z0XDM74R0EY5H3P","demo","Fixture skill used by scripts.marketplace_ci sync tests.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Ftests\u002Fmarketplace_ci\u002Ffixtures\u002Fplugins\u002Fsample-kit\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M79R08VMDJA2FPJKH3ZM309K","export-demo","Fixture skill used by scripts.marketplace_ci export tests.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Ftests\u002Fmarketplace_ci\u002Ffixtures\u002Fclaude\u002Fskills\u002Fexport-demo\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M79R042FS581DS2JNW5AZ1MK","work-to-development","Validate an accepted Linear Issue's readiness for implementation (criteria, dependencies, duplicate\u002Fexisting artifacts) and request governed branch\u002Fworktree creation through git-kit:starting-work — recording work-started Git\u002FGitHub evidence and a deliberate Linear Started transition only after Git identity is read back and verified. Use when asked to start work on a Linear issue, begin development for an accepted issue, or prepare an accepted issue for implementation. Never creates a branch directly — always delegates to git-kit.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkmanagement-kit\u002Fskills\u002Fwork-to-development\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M79QZZD4EHB82P72P4N92BKT","work-linking","Create and maintain stable cross-system links and authority labels between Notion and Linear records, and detect\u002Frepair drift between them. Use when asked to link a Notion record to a Linear record, check for drift between Notion and Linear, or repair a broken\u002Fstale link. Repairs only the bounded non-authoritative copy or link — never chooses by newest timestamp, and never creates a reverse-write loop against either system's own authority.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkmanagement-kit\u002Fskills\u002Fwork-linking\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M79QZVFA3GTVNZMJ51NESVSP","status-and-learning","Produce a dated, explicitly non-live Linear-to-Notion progress summary, or capture an outcome\u002Flearning after work completes. Use when asked to summarize progress to Notion, report portfolio status, or capture what was learned from a completed piece of work — not to disposition open follow-up items (see open-item-management for that). Never runs automatically or continuously — every summary is a deliberate, approved snapshot, not a live sync.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkmanagement-kit\u002Fskills\u002Fstatus-and-learning\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M79QZNSKSABK7X2PT93X8QT5","repository-gates","Discover, delegate, record, and invalidate this repository's actual Git\u002FGitHub lifecycle gates (pre-commit, pre-push, PR required checks, Codex delta review, review requirements, merge rights) and the repository-policy provider profile that maps governed operations to git-kit. Use when asked what gates apply to this repository, to discover repository policy before starting Wave 2 work, or to check whether prior gate evidence is still valid after new commits. Discovery and delegation only — never executes a gate's own internal logic, and never invents a gate the repository doesn't actually define (in particular, never assumes a \"Review Changes\" gate exists).","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkmanagement-kit\u002Fskills\u002Frepository-gates\u002FSKILL.md",[],[]]