[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BMMGYJ8YPH0WRXC2P3RHE9":3,"skill-same:01M7BMMGYJ8YPH0WRXC2P3RHE9":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7BMMGYJ8YPH0WRXC2P3RHE9","squash-merge",null,"YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-AI-模型服务\u002FYYC3-AI-模型服务-zeroclaw\u002F.claude\u002Fskills\u002Fsquash-merge\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Skill: squash-merge\n\nSquash-merge a PR into `upstream\u002Fmaster` (zeroclaw-labs\u002Fzeroclaw) with fully preserved commit history in the squash message body. Use this skill when the user explicitly mentions squash-merging, merging a specific PR number, or landing a PR by number — e.g. \"squash-merge #123\", \"merge PR 456\", \"land #789\", \"\u002Fsquash-merge 123\". Do **not** trigger on vague phrases like \"ship it\" or \"merge it\" without a PR number or clear upstream-merge context.\n\n## Why This Exists\n\nGitHub's default squash merge omits the PR number from the commit subject and formats the commit body inconsistently with project conventions. Direct-pushing a squash to master bypasses the PR merge mechanism entirely: the PR shows \"Closed\" instead of \"Merged\" (no purple badge, no linked issue auto-close, no merge commit association). This skill produces both: the purple **Merged** badge and a conventionally formatted squash commit with full commit history in the body.\n\n## Prerequisites\n\nRequires `gh` CLI ≥ 2.17.0 (for `--subject` and `--body` flags on `gh pr merge`). Verify with:\n\n```bash\ngh --version\n```\n\nIf the version is older, stop and tell the user to upgrade: `gh upgrade` or install from [cli.github.com](https:\u002F\u002Fcli.github.com).\n\n## Instructions\n\n### Step 1: Resolve the PR and Run Pre-flight Checks\n\nAccept a PR number or URL from the user. If none is given, attempt auto-detection from the current branch — but if that fails (e.g. not on a PR branch), stop and ask the user to provide the PR number explicitly.\n\nCapture the PR number into `$NUMBER` for all subsequent steps:\n\n```bash\nNUMBER=$(gh pr view \u003CPR_NUMBER_OR_URL> --repo zeroclaw-labs\u002Fzeroclaw --json number --jq '.number')\n```\n\nThen fetch PR metadata:\n\n```bash\ngh pr view \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw \\\n  --json number,title,headRefName,baseRefName,state,author,mergeable,reviewDecision\n```\n\nRun pre-flight checks. **Stop at the first failure** and explain clearly:\n\n| Check | Fail condition | What to tell the user |\n|---|---|---|\n| PR is open | `state != \"OPEN\"` | \"PR #$NUMBER is already `\u003Cstate>`, nothing to merge.\" |\n| Targets master | `baseRefName != \"master\"` | \"PR #$NUMBER targets `\u003Cbase>`, not master. Confirm before proceeding.\" |\n| No merge conflicts | `mergeable == \"CONFLICTING\"` | \"PR #$NUMBER has merge conflicts with master. The author must resolve them before this can merge.\" |\n\nThen fetch the review decision:\n\n```bash\nREVIEW_DECISION=$(gh pr view \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw \\\n  --json reviewDecision --jq '.reviewDecision \u002F\u002F \"\"')\n```\n\n- `APPROVED` or `\"\"` → proceed\n- `REVIEW_REQUIRED` → warn the user that no required review has been received, and ask if they want to proceed anyway\n- `CHANGES_REQUESTED` → stop: \"PR #$NUMBER has a changes-requested review outstanding. The reviewer must approve or dismiss their review before this can merge.\"\n\n### Step 2: Get Commit History\n\n```bash\nCOMMITS=$(gh pr view \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw \\\n  --json commits \\\n  --jq '[.commits[] | \"- \\(.oid[:7]) \\(.messageHeadline)\"] | join(\"\\n\")')\n```\n\nIf `gh` returns no commit data or hashes are missing, fall back to local git. This requires the contributor's branch to be locally available — fetch first:\n\n```bash\nBASE_REF=$(gh pr view \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw --json baseRefName --jq '.baseRefName')\nHEAD_REF=$(gh pr view \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw --json headRefName --jq '.headRefName')\n\ngit fetch upstream\ngit fetch origin\n\nCOMMITS=$(git log \"upstream\u002F${BASE_REF}..origin\u002F${HEAD_REF}\" --format=\"- %h %s\")\n```\n\nIf `origin\u002F${HEAD_REF}` doesn't exist (contributor's branch is on their own fork), the fallback cannot be used — stick with the `gh` API output.\n\n**Single-commit PRs:** If `$COMMITS` is exactly one line, use the full commit body instead of the bullet list. Get it with:\n\n```bash\nSHA=$(gh pr view \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw --json commits --jq '.commits[-1].oid')\nCOMMITS=$(git log -1 --format=\"%b\" \"$SHA\")\n```\n\nLeave `$COMMITS` empty if there is no commit body. A one-item bullet list adds no information.\n\nNote: commits from the API are in API order, which is typically chronological but not guaranteed for rebased histories. Use the `git log` fallback if ordering looks wrong.\n\n### Step 3: Derive the Squash Commit Subject\n\nBefore deriving the final merge command, sanitize `$COMMITS`: strip bot\u002FAI\n`Co-authored-by` trailers and generated tool footers, while preserving human\nco-author trailers only when they credit incorporated contributor work under the\nsuperseding and privacy rules. Then verify the body before asking for merge\nconfirmation:\n\n```bash\nprintf '%s\\n' \"$COMMITS\" | rg -i '(^[[:space:]]*(Co-authored-by|Co-Authored-By):.*(Claude|Codex|ChatGPT|Copilot|GitHub Copilot|Gemini|\\[bot\\]|dependabot|github-actions|web-flow|blacksmith|noreply@(anthropic|openai)\\.com)|^[[:space:]]*(Created with Claude Code|Generated with Claude Code)[[:space:]]*$)'\n```\n\nIf this prints anything, stop and strip the remaining bot attribution or\ngenerated footer before continuing.\n\n```bash\nPR_TITLE=$(gh pr view \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw --json title --jq '.title')\nSUBJECT=\"${PR_TITLE} (#${NUMBER})\"\n```\n\nThe title should follow conventional commit format, e.g. `feat(scope): description` or `fix: short message`. If it does not, flag it to the user and suggest a corrected title. Do not proceed until the subject is in conventional commit format.\n\n### Step 4: Confirm — MANDATORY, NO EXCEPTIONS\n\n**This step is non-negotiable.** A squash merge into `upstream\u002Fmaster` cannot be undone without a revert commit.\n\nPresent the following to the user with `$NUMBER`, `$SUBJECT`, and `$COMMITS` substituted with their actual values — never show variable names or placeholder text:\n\n---\n\n**About to run:**\n```\ngh pr merge $NUMBER --repo zeroclaw-labs\u002Fzeroclaw --squash \\\n  --subject \"$SUBJECT\" \\\n  --body \"$COMMITS\"\n```\n\n**Effect:**\n- PR #$NUMBER will be permanently merged (state → Merged, purple badge)\n- Issues referenced with closing keywords will auto-close\n- Squash commit subject: `$SUBJECT`\n- Squash commit body:\n  ```\n  $COMMITS\n  ```\n- Bot\u002FAI attribution has been stripped from the squash commit body.\n\nRun this command? (yes\u002Fno)\n\n---\n\nDo not infer consent from silence, prior approval of the commit message, or any earlier step. The user must respond with an unambiguous \"yes\" (or \"y\", \"go\", \"do it\") **in direct reply to this prompt**. Any other response — including silence, redirection, or \"yes but first...\" — means stop.\n\n### Step 5: Execute\n\nOnly after explicit confirmation in Step 4:\n\n```bash\ngh pr merge \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw --squash \\\n  --subject \"$SUBJECT\" \\\n  --body \"$COMMITS\"\n```\n\nIf the command exits non-zero, stop and report the full error output verbatim. Do not retry or attempt to work around failures.\n\n### Step 6: Verify\n\n```bash\ngh pr view \"$NUMBER\" --repo zeroclaw-labs\u002Fzeroclaw \\\n  --json state,mergedAt,mergeCommit \\\n  --jq '\"State: \\(.state) | Merged at: \\(.mergedAt) | Commit: \\(if .mergeCommit then .mergeCommit.oid[:7] else \"N\u002FA\" end)\"'\n```\n\nIf `state` is not `MERGED`, report the discrepancy and stop — do not assume success.\n\nReport to the user: merge commit SHA and PR URL.\n\n**Never delete contributor branches.** Do not suggest, offer, or run any branch deletion command — not on the upstream remote, not on forks. Branch cleanup is the contributor's responsibility and is always a human decision.\n\n## Rules\n\n- **Require a PR number or explicit squash-merge context before triggering** — do not invoke on vague phrases without a clear target.\n- **Never push squash commits directly to `upstream\u002Fmaster`** — always use `gh pr merge`. Direct push produces \"Closed\" not \"Merged\", breaks issue auto-close, and loses PR association.\n- **Never use `gh pr merge --squash` without `--subject` and `--body`** — the auto-generated message omits the PR number and uses inconsistent formatting.\n- **Never let GitHub auto-generate the squash message** — no web UI merge, no merge button clicks.\n- **Always strip bot\u002FAI attribution from the squash body** before confirmation.\n  Preserve intentional human co-author trailers only under the superseding and\n  privacy rules.\n- **Always assign PR title and commit body to shell variables** — never interpolate untrusted content directly into quoted command arguments.\n- **Always run pre-flight checks** (merge conflicts, review decision) before confirming — do not skip them even if the user says \"just merge it.\"\n- **Always confirm before merging, no exceptions** — show the user the exact expanded command with real values and require an explicit yes. Never infer consent.\n- **If the merge command fails, stop and report verbatim** — do not retry or work around failures automatically.\n- **Never delete branches** — not on upstream, not on forks. Branch cleanup is always the contributor's decision. Never suggest a deletion command.\n- **Self-merge note:** Maintainers routinely merge their own PRs. If the user is the PR author, proceed normally — just note it in the confirmation summary so it's visible in the audit trail.\n",{},"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-AI-模型服务\u002FYYC3-AI-模型服务-zeroclaw\u002F.claude\u002Fskills\u002Fsquash-merge",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill squash-merge",{"tool":37,"command":38},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill squash-merge",{"tool":40,"command":41},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill squash-merge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-AI-模型服务\u002FYYC3-AI-模型服务-zeroclaw\u002F.claude\u002Fskills\u002Fsquash-merge\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]