gh-pull-request
Skill355 starsChanged 4 months agoApache-2.0View on GitHub
Create a GitHub pull request for SkyWalking BanyanDB. Use when the user asks to create a PR, submit changes, or open a pull request.
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- apache/skywalkingtheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- apache/skywalking★ 25ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- test/CLAUDE.mdCLAUDE.md
- bydbqlSkill
- compilingSkill
- gh-issueSkill
- vendor-updateSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 11
Always create a PR from a new branch: Never push directly to main.
- Very specific: line 19
Run these checks locally before pushing.
- Distinctive: line 47
All source files must have Apache 2.0 license headers.
- Very specific: line 51
Add a one-line entry under the current development version section in CHANGES.md (at the repo root).
- Distinctive: line 55
Run these test packages. Each can run in parallel if the user's machine has enough cores, but it's fine to run them sequentially:
- Distinctive: line 72
Run these after unit tests pass:
- Very specific: line 95
make lintfails with formatting errors: Run make format to auto-fix, then re-run make lint to confirm. - Very specific: line 99
make buildfails: Check if generated files are up to date with make generate - Distinctive: line 108
Follow the standard PR format with a summary and test plan.
- Very specific: line 120
Only proceed when the state is MERGED.
- Very specific: line 133
If git push origin --delete reports remote ref does not exist, GitHub already removed the remote branch.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Creating a Pull Request for SkyWalking BanyanDB
Branch Rules
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://github.com/apache/skywalking).
git checkout -b <descriptive-branch-name>Local Checks Before Creating PR
Run these checks locally before pushing. They mirror the CI check job and PR-blocking tests in .github/workflows/ci.yml.
Required: Code Generation and Build
make generate
make buildRequired: Linting and Formatting
make lint
make checkmake check verifies formatting (gofumpt), go mod tidy, and ensures no uncommitted generated file diffs.
Why this order: build must succeed before lint so generated code exists. check validates consistency after linting.
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.
Required: License Headers
make license-checkAll source files must have Apache 2.0 license headers.
Required: Update CHANGES.md
Add 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.).
Unit Tests
Run these test packages. Each can run in parallel if the user's machine has enough cores, but it's fine to run them sequentially:
make test-ci PKG=./banyand/...
make test-ci PKG=./bydbctl/...
make test-ci PKG=./pkg/...
make test-ci PKG=./fodc/...The 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:
TEST_CI_OPTS="--vv --fail-fast --label-filter \!slow" make test-ci PKG=./banyand/...Integration Tests
Run these after unit tests pass:
make test-ci PKG=./test/integration/standalone/...
make test-ci PKG=./test/integration/distributed/...Checks NOT Practical Locally
These run in CI only — no need to run locally:
- e2e tests — require Docker + OAP stack (90 min timeout)
- fodc-e2e tests — require Kind Kubernetes cluster
- dependency-review — GitHub-specific action
- slow/flaky/property-repair tests — scheduled, not PR-blocking
Common issues
make lintfails 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:
Parse the lint output to find which packages have alignment issues, run~/go/bin/fieldalignment -fix ./path/to/package/...fieldalignment -fixon those packages, then re-runmake lintto confirm they're resolved.make lintfails with formatting errors: Runmake formatto auto-fix, then re-runmake lintto confirm.- Test timeout: Integration tests can be slow; add
TEST_CI_OPTS="--timeout 60m"if they time out - Missing tools:
make check-reqwill tell you what's missing make lintormake checkfails withbuf: not found: Installbufautomatically by runningmake -C api generate, then retry.make buildfails: Check if generated files are up to date withmake generate
Creating the PR
git push -u origin <branch-name>
gh pr create --title "<title>" --body "<body>"Follow the standard PR format with a summary and test plan.
After the PR Is Merged
Merged 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.
Confirm the merge state first:
gh pr view <number> --json state,mergedAt --jq '"\(.state) \(.mergedAt)"'Only proceed when the state is MERGED. Then clean up:
git checkout main
git pull --ff-only origin main
git branch -D <branch-name>
git push origin --delete <branch-name>
git fetch --prune originNotes:
- This repo only allows squash merges, so the squash commit on
mainnever matches the branch's own commits.git branch -dtherefore refuses to delete even a merged branch;-Dis required, which is why theMERGEDcheck above comes first. - If
git push origin --deletereportsremote ref does not exist, GitHub already removed the remote branch. That is fine; continue withgit fetch --prune. 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:
git fetch --prune origin git branch -vv | grep ': gone\]' | awk '{print $1}'
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

