[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MJX5QFMEVRJ5MZKGV37E6":3,"skill-same:01M77MJX5QFMEVRJ5MZKGV37E6":58},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M77MJX5QFMEVRJ5MZKGV37E6","github-release",null,"Guides IA through releasing a new version of a GitHub library end-to-end. Handles SemVer versioning and Keep a Changelog formatting automatically.","Reihantt6\u002Fsns-myagent","Reihantt6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219822095?v=4","01M77KK94PV8B7C2D9XWXNS8DJ","Mohamad Reihan tegar prasetya","01M77KK958QFMTHYXGXFV7KZ79",2,"MIT","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-release\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: github-release\ndescription: >\n  Guides IA through releasing a new version of a GitHub library end-to-end.\n  Handles SemVer versioning and Keep a Changelog formatting automatically.\ncompatibility: \"requires: gh CLI and git\"\n---\n\n# GitHub Release Skill\n\nThis skill automates the full release workflow for a single-package GitHub repository,\nfrom analysis through changelog authoring and PR creation. It relies exclusively on\n`gh` (GitHub CLI) and `git` no other tools needed.\n\nSteps 1 - 4 are **read-only reconnaissance** nothing is written to the repo until\nStep 5, once the version number is confirmed.\n\n## When to Use This Skill\n\nUse this skill whenever the user wants to cut a new release, publish a new version,\nbump a version, create a release branch, generate a changelog, or open a release PR\non a GitHub repository. Trigger even if the user says something casual like \"let's\nship a new version\" or \"time to release\".\n\n---\n\n## Prerequisites\n\nExamples below include both Bash and PowerShell variants; Windows users should prefer\nthe PowerShell blocks.\n\nBefore starting, verify the environment:\n\n```bash\ngh auth status                        # must be authenticated\ngh repo view --json nameWithOwner     # must be inside a GitHub repo\ngit status                            # working tree should be clean\n```\n\nIf any check fails, stop and tell the user what to fix before continuing.\n\nThen ask the user one question:\n\n> *\"Which directory contains your library's public-facing source code?\n> (e.g. `src\u002F`, `lib\u002F`, `pkg\u002F` - used to focus the diff on what consumers\n> actually see. Press Enter to scan the whole repo.)\"*\n\nStore the answer as `PUBLIC_PATH`. If empty, `PUBLIC_PATH` is `.` (repo root).\nExclude these paths from all diffs regardless: `tests\u002F`, `test\u002F`, `spec\u002F`,\n`__tests__\u002F`, `docs\u002F`, `*.lock`, `*-lock.json`, `*.sum`, generated files\n(files with a \"do not edit\" header comment), and build artefacts.\n\n---\n\n## The 9-Step Release Workflow\n\nWork through every step in order. Show the user what command you're about to run and\nits output. Pause and ask for confirmation only when explicitly noted.\n\n---\n\n### Step 1 - Ensure main is up to date\n\n```bash\ngit checkout main\ngit pull origin main\n```\n\nStay on `main` for now. The release branch is created in Step 5, after the version\nis confirmed.\n\n---\n\n### Step 2 - Grab the latest version tag\n\n> **Why not `gh release list`?** GitHub Releases are an optional layer on top of Git\n> tags. Many repos tag releases with `git tag` without ever creating a GitHub Release,\n> so `gh release list` can return empty even when version tags exist. Reading tags\n> directly from git is the reliable source of truth.\n\n```bash\n# Fetch all tags from remote to ensure local view is current\ngit fetch --tags\n\n# Find the latest version tag, sorted semantically\n# --sort=-version:refname handles 1.10.0 > 1.9.0 correctly (unlike alphabetical)\nPREV_TAG=$(git tag --sort=-version:refname | grep -E '^v?[0-9]+\\.[0-9]+\\.[0-9]+' | head -1)\necho \"Latest tag: $PREV_TAG\"\n```\n\n```PowerShell\n# Fetch all tags from remote to ensure local view is current\ngit fetch --tags\n\n# Find the latest version tag, sorted semantically\n# --sort=-version:refname handles 1.10.0 > 1.9.0 correctly (unlike alphabetical)\n$prevTag = git tag --sort='-version:refname' | `\n  Select-String '^[vV]?\\d+\\.\\d+\\.\\d+' | `\n  Select-Object -First 1 -ExpandProperty Line\n\nif ($prevTag) {\n  $prevSha = git rev-list -n 1 $prevTag\n} else {\n  $prevSha = git rev-list --max-parents=0 HEAD\n}\n\nWrite-Output \"Latest tag: $prevTag\"\n```\n\nThen verify the tag exists on the remote (not just locally):\n\n```bash\ngit ls-remote --tags origin | grep \"refs\u002Ftags\u002F$PREV_TAG$\"\n```\n\nIf the remote check returns nothing, warn the user that the tag appears to be local-only\nand hasn't been pushed - they may want to push it before continuing.\n\n- `PREV_TAG` is the tag name exactly as found (e.g. `v1.4.2`). Strip any leading `v`\n  when doing arithmetic; preserve it when naming things.\n- If **no tags exist at all**, treat `PREV_TAG` as `(none)`, set `PREV_SHA` to the\n  first commit, and default the new version to `1.0.0` (skip Step 4 versioning logic;\n  go straight to Step 5).\n- If the tag does not point to a real commit (orphaned tag), fall back to\n  `git rev-list --max-parents=0 HEAD` and warn the user.\n\n```bash\nPREV_SHA=$(git rev-list -n 1 \"$PREV_TAG\" 2>\u002Fdev\u002Fnull || git rev-list --max-parents=0 HEAD)\n```\n\n---\n\n### Step 3 - Analyse what changed since the last release\n\nThis step uses **two complementary signals**. The code diff is the primary source of\ntruth; commit messages provide supporting context about intent.\n\n#### 3a - Code diff (primary signal)\n\n```bash\n# Focused diff on the public source path, excluding noise\ngit diff \"$PREV_SHA\"..HEAD -- \"$PUBLIC_PATH\" \\\n  ':(exclude)tests\u002F' ':(exclude)test\u002F' ':(exclude)spec\u002F' \\\n  ':(exclude)__tests__\u002F' ':(exclude)docs\u002F' \\\n  ':(exclude)*.lock' ':(exclude)*-lock.json' ':(exclude)*.sum'\n```\n\n```PowerShell\n# Focused diff on the public source path, excluding noise\ngit diff \"$($prevSha)..HEAD\" -- $publicPath `\n  ':(exclude)tests\u002F' ':(exclude)test\u002F' ':(exclude)spec\u002F' `\n  ':(exclude)__tests__\u002F' ':(exclude)docs\u002F' `\n  ':(exclude)*.lock' ':(exclude)*-lock.json' ':(exclude)*.sum'\n```\n\nRead the full diff output. For each changed file, identify:\n\n1. **Removed symbols** - functions, classes, methods, constants, exported names that\n   existed before and are now gone. ? Strong signal for MAJOR.\n2. **Changed signatures** - functions that exist in both versions but with different\n   parameters, return types, or thrown errors. ? Strong signal for MAJOR.\n3. **New exported symbols** - public functions, classes, constants that didn't exist\n   before. ? Signal for MINOR.\n4. **Internal-only changes** - modifications that don't touch any public interface\n   (private helpers, unexported functions, algorithm internals). ? PATCH.\n5. **Bug fixes** - corrections to logic that was provably wrong (e.g. off-by-one,\n   null check, wrong condition), without changing the public API. ? PATCH.\n\nIf the diff is very large (thousands of lines), first run the stat summary to\nprioritise which files to read in full:\n\n```bash\ngit diff \"$PREV_SHA\"..HEAD --stat -- \"$PUBLIC_PATH\"\n```\n\nFocus your detailed reading on files with the most changes and files whose names\nsuggest they define public interfaces (e.g. `index.*`, `api.*`, `exports.*`,\n`public.*`, `mod.*`, `__init__.*`).\n\n#### 3b - Commit log (secondary signal)\n\n```bash\ngit log \"$PREV_SHA\"..HEAD --oneline --no-merges\n```\n\nUse this to:\n- Understand the **intent** behind code changes that aren't self-explanatory from\n  the diff alone (e.g. a one-line security fix labelled as such).\n- Catch changes that may be in paths outside `PUBLIC_PATH` but are still user-visible\n  (e.g. a CLI flag change in a `cmd\u002F` directory).\n- Fill in context for changelog entries where the code alone doesn't tell the whole\n  story.\n\nSee `references\u002Fcommit-classification.md` for mapping message patterns to change types.\n\n#### 3c - Reconcile the two signals\n\nWhen signals agree ? use that classification with confidence.\n\nWhen signals conflict ? **prefer the code diff**. Examples:\n- Commit says `fix: typo` but the diff shows a removed public method ? treat as MAJOR.\n- Commit says `feat: new API` but the diff only touches private internals ? treat as PATCH.\n- Commit says `chore: refactor` but the diff adds new exported symbols ? treat as MINOR.\n\nDocument any conflicts you notice - flag them to the user during the changelog review\nin Step 6.\n\n---\n\n### Step 4 - Determine the next SemVer version\n\nApply these rules to your analysis from Step 3 (full rules in `references\u002Fsemver-rules.md`):\n\n| Condition | Bump |\n|---|---|\n| Any breaking change to public API (removal, signature change, behaviour change) | MAJOR |\n| New exported symbol or feature, no breaking changes | MINOR |\n| Bug fix, perf improvement, security fix, docs, chore only | PATCH |\n\nWhen a release contains a mix, the **highest precedence wins**:\n`MAJOR > MINOR > PATCH`.\n\nCompute `NEXT_VERSION`:\n- Split `PREV_TAG` into `MAJOR.MINOR.PATCH` integers.\n- Apply the appropriate bump.\n- Format as `vMAJOR.MINOR.PATCH`.\n\n**Present the proposed version to the user** with a brief rationale that cites\nspecific code findings, not just commit messages. Example:\n\n> *\"I'm proposing v2.1.0. The diff shows two new exported functions (`NewClient` and\n> `WithTimeout`) in `src\u002Fclient.go`, and no existing public symbols were removed or\n> changed. Commit messages corroborate this as feature additions.\"*\n\nAsk: *\"Does this version look right, or would you like to adjust it?\"*\nWait for confirmation before proceeding.\n\n---\n\n### Step 5 - Create the release branch\n\nNow that the version is confirmed, create the branch with the correct name from the start:\n\n```bash\ngit checkout -b release\u002FvX.Y.Z\ngit push -u origin release\u002FvX.Y.Z\n```\n\n---\n\n### Step 6 - Update CHANGELOG.md\n\nRead the existing `CHANGELOG.md` (or create it if absent). Follow the\n[Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002Fen\u002F1.1.0\u002F) format strictly.\n\n**Structure to insert** at the top (just below the `# Changelog` header):\n\n```markdown\n## [X.Y.Z] - YYYY-MM-DD\n\n### Added\n- ...\n\n### Changed\n- ...\n\n### Deprecated\n- ...\n\n### Removed\n- ...\n\n### Fixed\n- ...\n\n### Security\n- ...\n```\n\nRules:\n- Use today's date in `YYYY-MM-DD` format.\n- Omit sections that have no entries - don't leave empty headings.\n- Write entries in **plain English from a user's perspective**, derived primarily\n  from what the code diff shows, supplemented by commit message context.\n  Good: *\"Added `WithTimeout` option to HTTP client constructor.\"*\n  Bad: *\"feat: add timeout cfg param\"*\n- Map findings to sections:\n  - New exported symbol ? Added\n  - Breaking removal ? Removed\n  - Breaking change to existing API ? Changed (flag it as breaking)\n  - Bug\u002Flogic fix, perf ? Fixed\n  - Security fix ? Security\n  - Internal refactor, docs, chore, test ? omit unless user-visible\n- If a commit message revealed intent that the code diff alone wouldn't convey\n  (e.g. a security fix disguised as a one-line change), include that context in\n  the changelog entry.\n- Also update the diff link at the bottom of the file:\n  ```markdown\n  [X.Y.Z]: https:\u002F\u002Fgithub.com\u002FOWNER\u002FREPO\u002Fcompare\u002FvPREV...vNEXT\n  ```\n\n**Show the user the proposed changelog section before writing it to disk.**\nIf any signal conflicts were found in Step 3c, flag them here so the user can verify.\nAsk: *\"Does this changelog look accurate? Any entries to add, remove, or reword?\"*\nIncorporate feedback, then write to disk.\n\n---\n\n### Step 7 - Commit and push\n\n```bash\ngit add CHANGELOG.md\ngit commit -m \"chore: release vX.Y.Z\"\ngit push origin release\u002FvX.Y.Z\n```\n\nConfirm the push succeeded before moving on.\n\n---\n\n### Step 8 - Open a Pull Request\n\n**?? IMPORTANT:** Always use `--body-file` to pass PR body text, never `--body` with inline text.\nInline escape sequences like `\\n` are not interpreted as newlines by PowerShell and will appear\nas literal text in the PR. Using a file ensures proper markdown formatting.\n\n```bash\ngh pr create \\\n  --base main \\\n  --head release\u002FvX.Y.Z \\\n  --title \"Release vX.Y.Z\" \\\n  --body \"$(cat \u003C\u003C'EOF'\n## Release vX.Y.Z\n\nThis PR prepares the **vX.Y.Z** release.\n\n### What's included\n\u003C!-- paste the changelog section here -->\n\n### Checklist\n- [ ] Changelog reviewed\n- [ ] Version bump verified\n- [ ] CI passing\n\nAfter merging, create the tag on the merge commit:\n\\`\\`\\`\ngit tag vX.Y.Z \u003Cmerge-commit-sha>\ngit push origin vX.Y.Z\n\\`\\`\\`\nEOF\n)\"\n```\n\n````PowerShell\n# Create PR body using here-string (preserves actual newlines, not escape sequences)\n$prBody = @\"\n## Release vX.Y.Z\n\nThis PR prepares the **vX.Y.Z** release.\n\n### What's included\n\u003Cpaste changelog here>\n\n### Checklist\n- [ ] Changelog reviewed\n- [ ] Version bump verified\n- [ ] CI passing\n\nAfter merging, create the tag on the merge commit:\n```\ngit tag vX.Y.Z \u003Cmerge-commit-sha>\ngit push origin vX.Y.Z\n```\n\"@\n\n# Write to file and use --body-file (do NOT use inline --body with escape sequences)\n$prBody | Out-File -FilePath release_pr_body.md -Encoding utf8 -NoNewline\ngh pr create --base main --head release\u002FvX.Y.Z --title \"Release vX.Y.Z\" --body-file release_pr_body.md\n````\n\nPaste the changelog section into the PR body's \"What's included\" block (or leave placeholder for manual review).\n\n\n---\n\n### Step 9 - Hand off to the user\n\nTell the user:\n\n> **Release PR is open! ??**\n>\n> New version: **vX.Y.Z**\n>\n> Once the PR is reviewed and merged, you'll need to **create the tag yourself** on\n> the merge commit:\n>\n> ```bash\n> git tag vX.Y.Z \u003Cmerge-commit-sha>\n> git push origin vX.Y.Z\n> ```\n>\n> Then go to GitHub Releases and publish the release from that tag. You can copy the\n> changelog section directly into the release notes.\n\n---\n\n## Error handling\n\n| Situation | What to do |\n|---|---|\n| `gh auth status` fails | Stop; tell user to run `gh auth login` |\n| Not inside a git repo | Stop; tell user to `cd` into their repo |\n| Working tree is dirty | Warn; ask if they want to stash or abort |\n| No commits since last tag | Tell user there's nothing to release |\n| Tag exists but points to no commit | Use first commit as diff base; warn user |\n| Latest tag exists locally but not on remote | Warn user; ask if they want to push the tag first or continue anyway |\n| Diff is empty for `PUBLIC_PATH` but commits exist | Warn; all changes may be internal; ask if they still want to proceed |\n| `git push` fails (e.g. protected branch rules) | Report the error verbatim; suggest they check branch protection settings |\n\n---\n\n## Troubleshooting in PowerShell\n\n- If a command that works locally prints gh usage or treats a subcommand as separate token, ensure you're\n  invoking the gh.exe on PATH (Get-Command gh) and avoid passing unexpanded nested substitutions; use the PowerShell\n  patterns above.\n- Recommend tests: gh --version; git fetch --tags; run the PowerShell snippet to set $prevTag and run git diff --name-only $prevSha..HEAD -- src\u002F\n\n---\n\n## Limitations\n\n- Requires the `gh` CLI to be installed and authenticated.\n- Requires git tags to determine current version.\n\n---\n\n## Reference files\n\n- `references\u002Fsemver-rules.md` - Extended SemVer decision rules and edge cases\n- `references\u002Fcommit-classification.md` - Heuristics for classifying commit messages into change types\n","# GitHub Release Skill\n\nThis skill automates the full release workflow for a single-package GitHub repository,\nfrom analysis through changelog authoring and PR creation. It relies exclusively on\n`gh` (GitHub CLI) and `git` no other tools needed.\n\nSteps 1 - 4 are **read-only reconnaissance** nothing is written to the repo until\nStep 5, once the version number is confirmed.\n\n## When to Use This Skill\n\nUse this skill whenever the user wants to cut a new release, publish a new version,\nbump a version, create a release branch, generate a changelog, or open a release PR\non a GitHub repository. Trigger even if the user says something casual like \"let's\nship a new version\" or \"time to release\".\n\n---\n\n## Prerequisites\n\nExamples below include both Bash and PowerShell variants; Windows users should prefer\nthe PowerShell blocks.\n\nBefore starting, verify the environment:\n\n```bash\ngh auth status                        # must be authenticated\ngh repo view --json nameWithOwner     # must be inside a GitHub repo\ngit status                            # working tree should be clean\n```\n\nIf any check fails, stop and tell the user what to fix before continuing.\n\nThen ask the user one question:\n\n> *\"Which directory contains your library's public-facing source code?\n> (e.g. `src\u002F`, `lib\u002F`, `pkg\u002F` - used to focus the diff on what consumers\n> actually see. Press Enter to scan the whole repo.)\"*\n\nStore the answer as `PUBLIC_PATH`. If empty, `PUBLIC_PATH` is `.` (repo root).\nExclude these paths from all diffs regardless: `tests\u002F`, `test\u002F`, `spec\u002F`,\n`__tests__\u002F`, `docs\u002F`, `*.lock`, `*-lock.json`, `*.sum`, generated files\n(files with a \"do not edit\" header comment), and build artefacts.\n\n---\n\n## The 9-Step Release Workflow\n\nWork through every step in order. Show the user what command you're about to run and\nits output. Pause and ask for confirmation only when explicitly noted.\n\n---\n\n### Step 1 - Ensure main is up to date\n\n```bash\ngit checkout main\ngit pull origin main\n```\n\nStay on `main` for now. The release branch is created in Step 5, after the version\nis confirmed.\n\n---\n\n### Step 2 - Grab the latest version tag\n\n> **Why not `gh release list`?** GitHub Releases are an optional layer on top of Git\n> tags. Many repos tag releases with `git tag` without ever creating a GitHub Release,\n> so `gh release list` can return empty even when version tags exist. Reading tags\n> directly from git is the reliable source of truth.\n\n```bash\n# Fetch all tags from remote to ensure local view is current\ngit fetch --tags\n\n# Find the latest version tag, sorted semantically\n# --sort=-version:refname handles 1.10.0 > 1.9.0 correctly (unlike alphabetical)\nPREV_TAG=$(git tag --sort=-version:refname | grep -E '^v?[0-9]+\\.[0-9]+\\.[0-9]+' | head -1)\necho \"Latest tag: $PREV_TAG\"\n```\n\n```PowerShell\n# Fetch all tags from remote to ensure local view is current\ngit fetch --tags\n\n# Find the latest version tag, sorted semantically\n# --sort=-version:refname handles 1.10.0 > 1.9.0 correctly (unlike alphabetical)\n$prevTag = git tag --sort='-version:refname' | `\n  Select-String '^[vV]?\\d+\\.\\d+\\.\\d+' | `\n  Select-Object -First 1 -ExpandProperty Line\n\nif ($prevTag) {\n  $prevSha = git rev-list -n 1 $prevTag\n} else {\n  $prevSha = git rev-list --max-parents=0 HEAD\n}\n\nWrite-Output \"Latest tag: $prevTag\"\n```\n\nThen verify the tag exists on the remote (not just locally):\n\n```bash\ngit ls-remote --tags origin | grep \"refs\u002Ftags\u002F$PREV_TAG$\"\n```\n\nIf the remote check returns nothing, warn the user that the tag appears to be local-only\nand hasn't been pushed - they may want to push it before continuing.\n\n- `PREV_TAG` is the tag name exactly as found (e.g. `v1.4.2`). Strip any leading `v`\n  when doing arithmetic; preserve it when naming things.\n- If **no tags exist at all**, treat `PREV_TAG` as `(none)`, set `PREV_SHA` to the\n  first commit, and default the new version to `1.0.0` (skip Step 4 versioning logic;\n  go straight to Step 5).\n- If the tag does not point to a real commit (orphaned tag), fall back to\n  `git rev-list --max-parents=0 HEAD` and warn the user.\n\n```bash\nPREV_SHA=$(git rev-list -n 1 \"$PREV_TAG\" 2>\u002Fdev\u002Fnull || git rev-list --max-parents=0 HEAD)\n```\n\n---\n\n### Step 3 - Analyse what changed since the last release\n\nThis step uses **two complementary signals**. The code diff is the primary source of\ntruth; commit messages provide supporting context about intent.\n\n#### 3a - Code diff (primary signal)\n\n```bash\n# Focused diff on the public source path, excluding noise\ngit diff \"$PREV_SHA\"..HEAD -- \"$PUBLIC_PATH\" \\\n  ':(exclude)tests\u002F' ':(exclude)test\u002F' ':(exclude)spec\u002F' \\\n  ':(exclude)__tests__\u002F' ':(exclude)docs\u002F' \\\n  ':(exclude)*.lock' ':(exclude)*-lock.json' ':(exclude)*.sum'\n```\n\n```PowerShell\n# Focused diff on the public source path, excluding noise\ngit diff \"$($prevSha)..HEAD\" -- $publicPath `\n  ':(exclude)tests\u002F' ':(exclude)test\u002F' ':(exclude)spec\u002F' `\n  ':(exclude)__tests__\u002F' ':(exclude)docs\u002F' `\n  ':(exclude)*.lock' ':(exclude)*-lock.json' ':(exclude)*.sum'\n```\n\nRead the full diff output. For each changed file, identify:\n\n1. **Removed symbols** - functions, classes, methods, constants, exported names that\n   existed before and are now gone. ? Strong signal for MAJOR.\n2. **Changed signatures** - functions that exist in both versions but with different\n   parameters, return types, or thrown errors. ? Strong signal for MAJOR.\n3. **New exported symbols** - public functions, classes, constants that didn't exist\n   before. ? Signal for MINOR.\n4. **Internal-only changes** - modifications that don't touch any public interface\n   (private helpers, unexported functions, algorithm internals). ? PATCH.\n5. **Bug fixes** - corrections to logic that was provably wrong (e.g. off-by-one,\n   null check, wrong condition), without changing the public API. ? PATCH.\n\nIf the diff is very large (thousands of lines), first run the stat summary to\nprioritise which files to read in full:\n\n```bash\ngit diff \"$PREV_SHA\"..HEAD --stat -- \"$PUBLIC_PATH\"\n```\n\nFocus your detailed reading on files with the most changes and files whose names\nsuggest they define public interfaces (e.g. `index.*`, `api.*`, `exports.*`,\n`public.*`, `mod.*`, `__init__.*`).\n\n#### 3b - Commit log (secondary signal)\n\n```bash\ngit log \"$PREV_SHA\"..HEAD --oneline --no-merges\n```\n\nUse this to:\n- Understand the **intent** behind code changes that aren't self-explanatory from\n  the diff alone (e.g. a one-line security fix labelled as such).\n- Catch changes that may be in paths outside `PUBLIC_PATH` but are still user-visible\n  (e.g. a CLI flag change in a `cmd\u002F` directory).\n- Fill in context for changelog entries where the code alone doesn't tell the whole\n  story.\n\nSee `references\u002Fcommit-classification.md` for mapping message patterns to change types.\n\n#### 3c - Reconcile the two signals\n\nWhen signals agree ? use that classification with confidence.\n\nWhen signals conflict ? **prefer the code diff**. Examples:\n- Commit says `fix: typo` but the diff shows a removed public method ? treat as MAJOR.\n- Commit says `feat: new API` but the diff only touches private internals ? treat as PATCH.\n- Commit says `chore: refactor` but the diff adds new exported symbols ? treat as MINOR.\n\nDocument any conflicts you notice - flag them to the user during the changelog review\nin Step 6.\n\n---\n\n### Step 4 - Determine the next SemVer version\n\nApply these rules to your analysis from Step 3 (full rules in `references\u002Fsemver-rules.md`):\n\n| Condition | Bump |\n|---|---|\n| Any breaking change to public API (removal, signature change, behaviour change) | MAJOR |\n| New exported symbol or feature, no breaking changes | MINOR |\n| Bug fix, perf improvement, security fix, docs, chore only | PATCH |\n\nWhen a release contains a mix, the **highest precedence wins**:\n`MAJOR > MINOR > PATCH`.\n\nCompute `NEXT_VERSION`:\n- Split `PREV_TAG` into `MAJOR.MINOR.PATCH` integers.\n- Apply the appropriate bump.\n- Format as `vMAJOR.MINOR.PATCH`.\n\n**Present the proposed version to the user** with a brief rationale that cites\nspecific code findings, not just commit messages. Example:\n\n> *\"I'm proposing v2.1.0. The diff shows two new exported functions (`NewClient` and\n> `WithTimeout`) in `src\u002Fclient.go`, and no existing public symbols were removed or\n> changed. Commit messages corroborate this as feature additions.\"*\n\nAsk: *\"Does this version look right, or would you like to adjust it?\"*\nWait for confirmation before proceeding.\n\n---\n\n### Step 5 - Create the release branch\n\nNow that the version is confirmed, create the branch with the correct name from the start:\n\n```bash\ngit checkout -b release\u002FvX.Y.Z\ngit push -u origin release\u002FvX.Y.Z\n```\n\n---\n\n### Step 6 - Update CHANGELOG.md\n\nRead the existing `CHANGELOG.md` (or create it if absent). Follow the\n[Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002Fen\u002F1.1.0\u002F) format strictly.\n\n**Structure to insert** at the top (just below the `# Changelog` header):\n\n```markdown\n## [X.Y.Z] - YYYY-MM-DD\n\n### Added\n- ...\n\n### Changed\n- ...\n\n### Deprecated\n- ...\n\n### Removed\n- ...\n\n### Fixed\n- ...\n\n### Security\n- ...\n```\n\nRules:\n- Use today's date in `YYYY-MM-DD` format.\n- Omit sections that have no entries - don't leave empty headings.\n- Write entries in **plain English from a user's perspective**, derived primarily\n  from what the code diff shows, supplemented by commit message context.\n  Good: *\"Added `WithTimeout` option to HTTP client constructor.\"*\n  Bad: *\"feat: add timeout cfg param\"*\n- Map findings to sections:\n  - New exported symbol ? Added\n  - Breaking removal ? Removed\n  - Breaking change to existing API ? Changed (flag it as breaking)\n  - Bug\u002Flogic fix, perf ? Fixed\n  - Security fix ? Security\n  - Internal refactor, docs, chore, test ? omit unless user-visible\n- If a commit message revealed intent that the code diff alone wouldn't convey\n  (e.g. a security fix disguised as a one-line change), include that context in\n  the changelog entry.\n- Also update the diff link at the bottom of the file:\n  ```markdown\n  [X.Y.Z]: https:\u002F\u002Fgithub.com\u002FOWNER\u002FREPO\u002Fcompare\u002FvPREV...vNEXT\n  ```\n\n**Show the user the proposed changelog section before writing it to disk.**\nIf any signal conflicts were found in Step 3c, flag them here so the user can verify.\nAsk: *\"Does this changelog look accurate? Any entries to add, remove, or reword?\"*\nIncorporate feedback, then write to disk.\n\n---\n\n### Step 7 - Commit and push\n\n```bash\ngit add CHANGELOG.md\ngit commit -m \"chore: release vX.Y.Z\"\ngit push origin release\u002FvX.Y.Z\n```\n\nConfirm the push succeeded before moving on.\n\n---\n\n### Step 8 - Open a Pull Request\n\n**?? IMPORTANT:** Always use `--body-file` to pass PR body text, never `--body` with inline text.\nInline escape sequences like `\\n` are not interpreted as newlines by PowerShell and will appear\nas literal text in the PR. Using a file ensures proper markdown formatting.\n\n```bash\ngh pr create \\\n  --base main \\\n  --head release\u002FvX.Y.Z \\\n  --title \"Release vX.Y.Z\" \\\n  --body \"$(cat \u003C\u003C'EOF'\n## Release vX.Y.Z\n\nThis PR prepares the **vX.Y.Z** release.\n\n### What's included\n\u003C!-- paste the changelog section here -->\n\n### Checklist\n- [ ] Changelog reviewed\n- [ ] Version bump verified\n- [ ] CI passing\n\nAfter merging, create the tag on the merge commit:\n\\`\\`\\`\ngit tag vX.Y.Z \u003Cmerge-commit-sha>\ngit push origin vX.Y.Z\n\\`\\`\\`\nEOF\n)\"\n```\n\n````PowerShell\n# Create PR body using here-string (preserves actual newlines, not escape sequences)\n$prBody = @\"\n## Release vX.Y.Z\n\nThis PR prepares the **vX.Y.Z** release.\n\n### What's included\n\u003Cpaste changelog here>\n\n### Checklist\n- [ ] Changelog reviewed\n- [ ] Version bump verified\n- [ ] CI passing\n\nAfter merging, create the tag on the merge commit:\n```\ngit tag vX.Y.Z \u003Cmerge-commit-sha>\ngit push origin vX.Y.Z\n```\n\"@\n\n# Write to file and use --body-file (do NOT use inline --body with escape sequences)\n$prBody | Out-File -FilePath release_pr_body.md -Encoding utf8 -NoNewline\ngh pr create --base main --head release\u002FvX.Y.Z --title \"Release vX.Y.Z\" --body-file release_pr_body.md\n````\n\nPaste the changelog section into the PR body's \"What's included\" block (or leave placeholder for manual review).\n\n\n---\n\n### Step 9 - Hand off to the user\n\nTell the user:\n\n> **Release PR is open! ??**\n>\n> New version: **vX.Y.Z**\n>\n> Once the PR is reviewed and merged, you'll need to **create the tag yourself** on\n> the merge commit:\n>\n> ```bash\n> git tag vX.Y.Z \u003Cmerge-commit-sha>\n> git push origin vX.Y.Z\n> ```\n>\n> Then go to GitHub Releases and publish the release from that tag. You can copy the\n> changelog section directly into the release notes.\n\n---\n\n## Error handling\n\n| Situation | What to do |\n|---|---|\n| `gh auth status` fails | Stop; tell user to run `gh auth login` |\n| Not inside a git repo | Stop; tell user to `cd` into their repo |\n| Working tree is dirty | Warn; ask if they want to stash or abort |\n| No commits since last tag | Tell user there's nothing to release |\n| Tag exists but points to no commit | Use first commit as diff base; warn user |\n| Latest tag exists locally but not on remote | Warn user; ask if they want to push the tag first or continue anyway |\n| Diff is empty for `PUBLIC_PATH` but commits exist | Warn; all changes may be internal; ask if they still want to proceed |\n| `git push` fails (e.g. protected branch rules) | Report the error verbatim; suggest they check branch protection settings |\n\n---\n\n## Troubleshooting in PowerShell\n\n- If a command that works locally prints gh usage or treats a subcommand as separate token, ensure you're\n  invoking the gh.exe on PATH (Get-Command gh) and avoid passing unexpanded nested substitutions; use the PowerShell\n  patterns above.\n- Recommend tests: gh --version; git fetch --tags; run the PowerShell snippet to set $prevTag and run git diff --name-only $prevSha..HEAD -- src\u002F\n\n---\n\n## Limitations\n\n- Requires the `gh` CLI to be installed and authenticated.\n- Requires git tags to determine current version.\n\n---\n\n## Reference files\n\n- `references\u002Fsemver-rules.md` - Extended SemVer decision rules and edge cases\n- `references\u002Fcommit-classification.md` - Heuristics for classifying commit messages into change types\n",{"name":5,"description":24,"compatibility":25},"Guides IA through releasing a new version of a GitHub library end-to-end. Handles SemVer versioning and Keep a Changelog formatting automatically.\n","requires: gh CLI and git","main","58843b159d7a4050d6b785a98b908cce505c0b92",".agents\u002Fskills\u002Fgithub-release",0,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent","https:\u002F\u002Fgithub.com\u002FReihantt6","reihsns.web.id","2026-08-19 20:08:18",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Reihantt6\u002Fsns-myagent --skill github-release",{"tool":40,"command":41},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill github-release",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill github-release","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-release\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fcommit-classification.md","REFERENCE","参考文档",2915,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-release\u002Freferences\u002Fcommit-classification.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fsemver-rules.md",2999,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgithub-release\u002Freferences\u002Fsemver-rules.md",[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M77XDCYZ407XYMF2T4P6F7VT","youtube-transcript","Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com\u002Fwatch?v=, youtu.be\u002F, or similar). Supports output with or without timestamps.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M77XD7PBC98J6MXGJJ2TJ8DX","youtube-thumbnail-design","YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A\u002FB testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-thumbnail-design\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M77XD2541C8HXJ6RHYZP4NGJ","youtube-short-maker","Make YouTube Shorts that hold attention with Pexo — vertical 9:16, fast-paced, hook in the first 3 seconds. Describe your topic and Pexo writes the script, generates the shots, picks the models, and assembles a finished Short with music and captions. Use for YouTube Shorts: \"youtube short\", \"make a youtube short\", \"shorts video\", \"short-form video\". NOT for long-form or landscape video.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-short-maker\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M77XCXKVSYK7KTZ3PQBVVGFD","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fxcode-project-setup\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M77XCR1DV8ZQK2NHWKVY4EWX","x402","Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — \"just use it\" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing touches your codebase) or \"build it in\" (install the SDK and write the key + code into your project). Walks through wallet setup, funding, .env, and a ~$1 test run. Use when the user asks about x402, pay-per-use, USDC payments, or wants Browser Use Cloud without an API key. For the free-tier signup (reverse-CAPTCHA → API key), use `browser-use cloud signup` or the `cloud` skill instead.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M77XCMD3R3ZBZQQSW6E0793B","x-twitter-scraper","Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx-twitter-scraper\u002FSKILL.md",[],[]]