[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD03MY8XZ7J4641NXD2JEH":3,"skill-same:01M6AD03MY8XZ7J4641NXD2JEH":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":6,"updatedAt":57,"install":58,"resources":71},"01M6AD03MY8XZ7J4641NXD2JEH","gh-pull-request",null,"Create a GitHub pull request for SkyWalking BanyanDB. Use when the user asks to create a PR, submit changes, or open a pull request.","apache\u002Fskywalking-banyandb","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACZR3K7E1F2KGPX2VBVQER",355,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-banyandb\u002Fblob\u002Fmain\u002Fskills\u002Fgh-pull-request\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"pull request","request","pull","gh pull request","gh","when","github","changes","for","submit","use","user","read","grep","Bash","open","skywalking","create","pr","2026-11-10 10:12:30",false,"---\nname: gh-pull-request\ndescription: Create a GitHub pull request for SkyWalking BanyanDB. Use when the user asks to create a PR, submit changes, or open a pull request.\nallowed-tools: Bash, Read, Grep, Glob\n---\n\n# Creating a Pull Request for SkyWalking BanyanDB\n\n## Branch Rules\n\n**Always create a PR from a new branch.** Never push directly to `main`. This is the same convention as the main Apache SkyWalking repo (https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking).\n\n```bash\ngit checkout -b \u003Cdescriptive-branch-name>\n```\n\n## Local Checks Before Creating PR\n\nRun these checks locally before pushing. They mirror the CI `check` job and PR-blocking tests in `.github\u002Fworkflows\u002Fci.yml`.\n\n### Required: Code Generation and Build\n\n```bash\nmake generate\nmake build\n```\n\n### Required: Linting and Formatting\n\n```bash\nmake lint\nmake check\n```\n\n`make check` verifies formatting (gofumpt), go mod tidy, and ensures no uncommitted generated file diffs.\n\n**Why this order:** `build` must succeed before `lint` so generated code exists. `check` validates consistency after linting.\n\n**After `make lint` passes:** If lint introduced any fixes (e.g. auto-formatting, field alignment corrections), commit those changes before running `make check`. Do NOT update CHANGES.md for these fixup commits — just stage all modified tracked files and commit with a message like `chore: fix lint issues`. Then run `make check` on the clean tree.\n\n### Required: License Headers\n\n```bash\nmake license-check\n```\n\nAll source files must have Apache 2.0 license headers.\n\n### Required: Update CHANGES.md\n\nAdd a one-line entry under the current development version section in `CHANGES.md` (at the repo root). Place it under the appropriate subsection (`### Features`, `### Bug Fixes`, etc.).\n\n### Unit Tests\n\nRun these test packages. Each can run in parallel if the user's machine has enough cores, but it's fine to run them sequentially:\n\n```bash\nmake test-ci PKG=.\u002Fbanyand\u002F...\nmake test-ci PKG=.\u002Fbydbctl\u002F...\nmake test-ci PKG=.\u002Fpkg\u002F...\nmake test-ci PKG=.\u002Ffodc\u002F...\n```\n\nThe CI uses these options: `--vv --fail-fast --label-filter \\!slow` with coverage flags. For local runs, use a simplified form unless the user asks for full CI parity:\n\n```bash\nTEST_CI_OPTS=\"--vv --fail-fast --label-filter \\!slow\" make test-ci PKG=.\u002Fbanyand\u002F...\n```\n\n### Integration Tests\n\nRun these after unit tests pass:\n\n```bash\nmake test-ci PKG=.\u002Ftest\u002Fintegration\u002Fstandalone\u002F...\nmake test-ci PKG=.\u002Ftest\u002Fintegration\u002Fdistributed\u002F...\n```\n\n## Checks NOT Practical Locally\n\nThese run in CI only — no need to run locally:\n- **e2e tests** — require Docker + OAP stack (90 min timeout)\n- **fodc-e2e tests** — require Kind Kubernetes cluster\n- **dependency-review** — GitHub-specific action\n- **slow\u002Fflaky\u002Fproperty-repair tests** — scheduled, not PR-blocking\n\n## Common issues\n\n- **`make lint` fails with field alignment errors**: The linter reports structs with suboptimal field ordering (e.g. `fieldalignment: struct with X pointer bytes could be Y`). Fix them automatically with:\n  ```bash\n  ~\u002Fgo\u002Fbin\u002Ffieldalignment -fix .\u002Fpath\u002Fto\u002Fpackage\u002F...\n  ```\n  Parse the lint output to find which packages have alignment issues, run `fieldalignment -fix` on those packages, then re-run `make lint` to confirm they're resolved.\n\n- **`make lint` fails with formatting errors**: Run `make format` to auto-fix, then re-run `make lint` to confirm.\n- **Test timeout**: Integration tests can be slow; add `TEST_CI_OPTS=\"--timeout 60m\"` if they time out\n- **Missing tools**: `make check-req` will tell you what's missing\n- **`make lint` or `make check` fails with `buf: not found`**: Install `buf` automatically by running `make -C api generate`, then retry.\n- **`make build` fails**: Check if generated files are up to date with `make generate`\n\n## Creating the PR\n\n```bash\ngit push -u origin \u003Cbranch-name>\ngh pr create --title \"\u003Ctitle>\" --body \"\u003Cbody>\"\n```\n\nFollow the standard PR format with a summary and test plan.\n\n## After the PR Is Merged\n\nMerged branches must be removed, both locally and on `origin`, so they do not pile up. Do this once the PR has actually been merged — never for an open PR, and never for a PR that was closed without merging unless the user asks.\n\nConfirm the merge state first:\n\n```bash\ngh pr view \u003Cnumber> --json state,mergedAt --jq '\"\\(.state) \\(.mergedAt)\"'\n```\n\nOnly proceed when the state is `MERGED`. Then clean up:\n\n```bash\ngit checkout main\ngit pull --ff-only origin main\ngit branch -D \u003Cbranch-name>\ngit push origin --delete \u003Cbranch-name>\ngit fetch --prune origin\n```\n\nNotes:\n\n- This repo only allows **squash** merges, so the squash commit on `main` never matches the branch's own commits. `git branch -d` therefore refuses to delete even a merged branch; `-D` is required, which is why the `MERGED` check above comes first.\n- If `git push origin --delete` reports `remote ref does not exist`, GitHub already removed the remote branch. That is fine; continue with `git fetch --prune`.\n- Also prune any other local branches whose upstream is already gone (earlier merged PRs). List them, confirm with the user that each was merged, then delete:\n\n  ```bash\n  git fetch --prune origin\n  git branch -vv | grep ': gone\\]' | awk '{print $1}'\n  ```\n","# Creating a Pull Request for SkyWalking BanyanDB\n\n## Branch Rules\n\n**Always create a PR from a new branch.** Never push directly to `main`. This is the same convention as the main Apache SkyWalking repo (https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking).\n\n```bash\ngit checkout -b \u003Cdescriptive-branch-name>\n```\n\n## Local Checks Before Creating PR\n\nRun these checks locally before pushing. They mirror the CI `check` job and PR-blocking tests in `.github\u002Fworkflows\u002Fci.yml`.\n\n### Required: Code Generation and Build\n\n```bash\nmake generate\nmake build\n```\n\n### Required: Linting and Formatting\n\n```bash\nmake lint\nmake check\n```\n\n`make check` verifies formatting (gofumpt), go mod tidy, and ensures no uncommitted generated file diffs.\n\n**Why this order:** `build` must succeed before `lint` so generated code exists. `check` validates consistency after linting.\n\n**After `make lint` passes:** If lint introduced any fixes (e.g. auto-formatting, field alignment corrections), commit those changes before running `make check`. Do NOT update CHANGES.md for these fixup commits — just stage all modified tracked files and commit with a message like `chore: fix lint issues`. Then run `make check` on the clean tree.\n\n### Required: License Headers\n\n```bash\nmake license-check\n```\n\nAll source files must have Apache 2.0 license headers.\n\n### Required: Update CHANGES.md\n\nAdd a one-line entry under the current development version section in `CHANGES.md` (at the repo root). Place it under the appropriate subsection (`### Features`, `### Bug Fixes`, etc.).\n\n### Unit Tests\n\nRun these test packages. Each can run in parallel if the user's machine has enough cores, but it's fine to run them sequentially:\n\n```bash\nmake test-ci PKG=.\u002Fbanyand\u002F...\nmake test-ci PKG=.\u002Fbydbctl\u002F...\nmake test-ci PKG=.\u002Fpkg\u002F...\nmake test-ci PKG=.\u002Ffodc\u002F...\n```\n\nThe CI uses these options: `--vv --fail-fast --label-filter \\!slow` with coverage flags. For local runs, use a simplified form unless the user asks for full CI parity:\n\n```bash\nTEST_CI_OPTS=\"--vv --fail-fast --label-filter \\!slow\" make test-ci PKG=.\u002Fbanyand\u002F...\n```\n\n### Integration Tests\n\nRun these after unit tests pass:\n\n```bash\nmake test-ci PKG=.\u002Ftest\u002Fintegration\u002Fstandalone\u002F...\nmake test-ci PKG=.\u002Ftest\u002Fintegration\u002Fdistributed\u002F...\n```\n\n## Checks NOT Practical Locally\n\nThese run in CI only — no need to run locally:\n- **e2e tests** — require Docker + OAP stack (90 min timeout)\n- **fodc-e2e tests** — require Kind Kubernetes cluster\n- **dependency-review** — GitHub-specific action\n- **slow\u002Fflaky\u002Fproperty-repair tests** — scheduled, not PR-blocking\n\n## Common issues\n\n- **`make lint` fails with field alignment errors**: The linter reports structs with suboptimal field ordering (e.g. `fieldalignment: struct with X pointer bytes could be Y`). Fix them automatically with:\n  ```bash\n  ~\u002Fgo\u002Fbin\u002Ffieldalignment -fix .\u002Fpath\u002Fto\u002Fpackage\u002F...\n  ```\n  Parse the lint output to find which packages have alignment issues, run `fieldalignment -fix` on those packages, then re-run `make lint` to confirm they're resolved.\n\n- **`make lint` fails with formatting errors**: Run `make format` to auto-fix, then re-run `make lint` to confirm.\n- **Test timeout**: Integration tests can be slow; add `TEST_CI_OPTS=\"--timeout 60m\"` if they time out\n- **Missing tools**: `make check-req` will tell you what's missing\n- **`make lint` or `make check` fails with `buf: not found`**: Install `buf` automatically by running `make -C api generate`, then retry.\n- **`make build` fails**: Check if generated files are up to date with `make generate`\n\n## Creating the PR\n\n```bash\ngit push -u origin \u003Cbranch-name>\ngh pr create --title \"\u003Ctitle>\" --body \"\u003Cbody>\"\n```\n\nFollow the standard PR format with a summary and test plan.\n\n## After the PR Is Merged\n\nMerged branches must be removed, both locally and on `origin`, so they do not pile up. Do this once the PR has actually been merged — never for an open PR, and never for a PR that was closed without merging unless the user asks.\n\nConfirm the merge state first:\n\n```bash\ngh pr view \u003Cnumber> --json state,mergedAt --jq '\"\\(.state) \\(.mergedAt)\"'\n```\n\nOnly proceed when the state is `MERGED`. Then clean up:\n\n```bash\ngit checkout main\ngit pull --ff-only origin main\ngit branch -D \u003Cbranch-name>\ngit push origin --delete \u003Cbranch-name>\ngit fetch --prune origin\n```\n\nNotes:\n\n- This repo only allows **squash** merges, so the squash commit on `main` never matches the branch's own commits. `git branch -d` therefore refuses to delete even a merged branch; `-D` is required, which is why the `MERGED` check above comes first.\n- If `git push origin --delete` reports `remote ref does not exist`, GitHub already removed the remote branch. That is fine; continue with `git fetch --prune`.\n- Also prune any other local branches whose upstream is already gone (earlier merged PRs). List them, confirm with the user that each was merged, then delete:\n\n  ```bash\n  git fetch --prune origin\n  git branch -vv | grep ': gone\\]' | awk '{print $1}'\n  ```\n",{"name":5,"description":7,"allowed-tools":48},"Bash, Read, Grep, Glob","main","6d139c72c55265037781a094139a9b189d8d93a7","skills\u002Fgh-pull-request",130,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-banyandb","https:\u002F\u002Fskywalking.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-14 22:48:18",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add apache\u002Fskywalking-banyandb --skill gh-pull-request",{"tool":64,"command":65},"bunx","bunx skills add apache\u002Fskywalking-banyandb --skill gh-pull-request",{"tool":67,"command":68},"pnpm","pnpm dlx skills add apache\u002Fskywalking-banyandb --skill gh-pull-request","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-banyandb\u002Fblob\u002Fmain\u002Fskills\u002Fgh-pull-request\u002FSKILL.md",true,[],[73,99,126,137],{"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":43},"01M6AD0631HQ9KC4J5E4SQVBBB","vendor-update","Upgrade Go\u002FNode.js vendor dependencies and sync tool versions. Use whenever the user says \"upgrade dependencies\", \"update vendors\", \"vendor update\", \"run vendor-upgrade\", \"bump dependencies\", \"update packages\", or asks to run the `vendor-update` Make target. This skill also checks `scripts\u002Fbuild\u002Fversion.mk` after upgrading to see if any tracked tool versions need updating too, and removes stale binaries from `bin\u002F` when versions change.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-banyandb\u002Fblob\u002Fmain\u002Fskills\u002Fvendor-update\u002FSKILL.md",[],[80,81,82,83,84,85,29,86,87,88,89,90,91,92,93,94,34,95,96,97,98],"update","vendor update","vendor","go","packages","bump","scripts","update packages","upgrade dependencies","upgrade","dependencies","build","stale","change","version","node","tool","run","sync",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":108,"publishedAt":43},"01M6AD00GPHAP6AZ82RVSD2QZW","gh-issue","Size-audit, write, and split BanyanDB issues that somebody else or an automated TDD workflow can implement. Use whenever the user asks to file or revise an issue, decide whether an issue is too large, make an issue TDD-ready, turn a design into tickets, or split an umbrella into executable leaves. Do not draft or file an implementation issue before classifying it as a mergeable leaf or a tracking parent.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-banyandb\u002Fblob\u002Fmain\u002Fskills\u002Fgh-issue\u002FSKILL.md",[105],{"categoryNo":106,"categoryName":107,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",[109,28,110,111,112,113,114,115,116,34,117,36,118,38,119,120,121,122,123,124,125],"gh issue","issue","split","make","as","revise","do","ready","write","decide","audit","issues","workflow","tdd","implement","design","file",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":43},"01M6ACZXWXSN37RTNGM0C1PXXS","compiling","Compile and build the SkyWalking BanyanDB project. Use when the user asks to compile, build, or generate code for this project.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-banyandb\u002Fblob\u002Fmain\u002Fskills\u002Fcompiling\u002FSKILL.md",[],[128,133,91,29,32,134,34,35,36,37,38,135,40,136],"generate","project","compile","code",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":43},"01M6ACZV6249KB28054ZD5DG1Z","bydbql","Generate, validate, and optionally execute read-only BanyanDB BydbQL for STREAM, MEASURE, TRACE, and PROPERTY resources. Use when the user asks to query BanyanDB, translate natural language to BydbQL, inspect BanyanDB schema or data, validate BydbQL, or fetch raw BanyanDB records.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-banyandb\u002Fblob\u002Fmain\u002Fskills\u002Fbydbql\u002FSKILL.md",[],[139,144,29,145,32,146,147,148,149,150,151,152,34,153,154,36,155,133,156,157],"only","stream","inspect","read-only","records","resources","query","natural language","schema","execute","fetch","data","validate","translate"]