/banyandb-bydbql:gh-issuefrom banyandb-bydbql
Size-audits, writes, and splits BanyanDB issues for TDD-ready implementation. Classifies issues as executable leaves or tracking parents with RED tests and independent oracles.
Ships in banyandb-bydbql. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
BanyanDB's issues live in the apache/skywalking tracker, not in this
repository — apache/skywalking-banyandb has issues disabled. Label them
database, which is the component label for BanyanDB.
A good issue is one somebody can implement from without asking you a question. That is a higher bar than "clear", and it is the bar that decides whether an issue sits untouched for a year.
Issue length is not issue size. Inspect the design and the relevant production code before drafting. Count independently testable behaviour, integration seams, callers, format families, lifecycle domains, fixture work, and test suites. A short issue that says "replace the index" can be much larger than a long issue that fixes one query operation.
Always produce a short size audit during review, even if it will not appear in the filed body:
## Size audit
Classification: executable leaf | tracking parent
Boundary: <one seam, or the several seams that make this a parent>
Production activation: <the caller switched by this merge>
RED test: <the command and the observable failure on current main>
End to end: <the real operation proved by the merge>
Format/lifecycle scope: <sections or algorithms; read/write/publish/merge/GC/etc.>
Fixtures and oracle: <who supplies expected values independently of the code under test>
Focused suites: <commands>
Dependencies present on main: yes | no — <evidence>
Decision: <fits one run, or the exact split required>
Do not infer the answers only from the proposal. Use repository evidence such as interfaces, call sites, packages, fixtures, and existing tests. Treat line count as supporting evidence, never as the sole sizing rule.
An executable leaf must satisfy all of these:
main for a stated
reason and passes after the change.main.A tracking parent describes a milestone, replacement, or multi-PR outcome. It owns completion criteria, the dependency graph, and links to children, but it is not itself an implementation contract. Mark it clearly as a tracking parent and do not put it in an automated implementation queue.
Classify the issue as a parent or split it before filing when any of these is true:
main without asserting private
implementation details.Use this score as a second check when none of the hard triggers is decisive:
| add | signal |
|---|---|
| +2 | each additional public boundary after the first |
| +2 | each additional lifecycle domain after the first |
| +1 | each additional production caller family |
| +1 | each additional persisted format or algorithm family |
| +1 | each additional independent fixture family |
| +1 | each additional focused package test suite |
| +2 | a prerequisite or seam is not yet on main |
Score 0–2: normally a leaf. Score 3–4: split unless repository evidence
shows it is still one small behaviour. Score 5+: a tracking parent. A hard
trigger overrides the score.
For a TDD workflow, also cap a leaf at roughly four observable requirements, one fixture family, one activation point, and one focused end-to-end scenario. These are review budgets, not excuses to hide work by combining requirements.
A compatibility-preserving cutover often returns the same result before and after the change, so a new output assertion may pass against the legacy path and is not RED. State why the test fails before implementation. Absence of a new boundary can be a compile-time RED test, but acceptance must also prove that a real caller uses the boundary; do not use brittle source-text assertions as the only proof.
If a fixture is required, include its cost in the size audit. Persisted expected bytes should be generated by an independent legacy/reference writer and checked in with provenance before the native code consumes them. Do not create a fixture-only or codec-only ticket when the project requires every merge to activate production behaviour; put the smallest fixture and decoder beside the first real caller that uses them.
Assume the implementer has your issue and the codebase, and nothing else — no context from a design meeting, no follow-up in the comments. Comments are where a specification goes to be missed; if a discussion changed the plan, edit the body.
Four things have to be derivable from it:
A boundary. The seam the change exposes: a Go interface, the exported
functions, the protobuf message, the HTTP surface. "Add an Authorizer that
decides whether a principal may perform an operation on a group" is a boundary.
"Improve permissions" is not.
Expected values from an independent source. State the concrete answers, not
just the behaviour. A test whose expected value is derived the way the
implementation derives it passes by construction and can never disagree with the
code — so the issue is where the real answers come from. Write a reader scoped to group "ecommerce" sees only that group, not scoping should work.
Acceptance criteria provable by a command. If a criterion is "a research document" or "benchmark results", nobody can tell whether it is met. Those are worth doing and belong in a proposal, not in an implementable issue.
Where it lives and how that area is tested. Name the packages or workspace. It saves the implementer a discovery pass and it scopes the suite they run:
| area | tests |
|---|---|
Go — banyand/, pkg/ | make test-ci PKG=./banyand/trace ./pkg/index |
Canopy — canopy/ | npm run -w web test, npm run -w server test |
| Canopy end-to-end | npx playwright test --config=e2e/playwright.config.ts |
| everything, before pushing | make generate && make build && make pre-push |
Weight the criteria by what fails silently and late. If the change touches any of these, say so in the issue — the implementer should not have to infer it:
bydb file compatible change.run.Go / run.GoOrDie / run.GoWithSignal); a raw go func( needs an
explicit //panicdiag:allow-rawgo directive and the lint baseline only ever
shrinks.## Summary
One paragraph: what this delivers and why.
## Boundary
The seam this exposes — the interface, exported functions, or protobuf/HTTP
surface. What callers may rely on, and what stays free to change.
## Requirements
R1. <observable behaviour, with its concrete expected value>
R2. ...
one per behaviour, each independently checkable.
## Acceptance criteria
- every requirement has a test that fails today and passes after
- end-to-end: <a real use of the feature, start to finish>
- <compatibility / durability / concurrency criteria, where they apply>
## Scope
Packages: banyand/trace, pkg/index — or canopy/web.
Out of scope: <the neighbouring thing this is NOT>
When an issue carries a design and a proof of concept, it is usually several pieces of work. Split it into vertical slices — each cutting a complete path through the layers it touches, each verifiable on its own — and file them as sub-issues of the base.
A slice is the right size when it delivers one behaviour end to end and its acceptance criteria can be checked by running something. A slice that only makes sense alongside the next one is not a slice; it is half of one.
Do not slice a storage replacement horizontally by format section (container,
postings, stored fields) if those tickets would be unused foundations. Slice
by fixture complexity against one real caller instead. A first read slice may
activate document count on a deliberately small fixture; a later slice can widen
that same caller to multiple segments and deletion masks; another caller can
then activate stored-field decoding. Each merge stays TDD-sized and live.
Decompose just in time. Keep downstream design workstreams as tracking parents until their blocker lands. Then inspect the boundary that actually merged and create their executable leaves. Pre-filing speculative leaves commits to stale seams and recreates horizontal slicing at the issue layer.
Order them by dependency and say so. Put Blocked by: #NNNN in the body of
anything that needs an earlier ticket, and create them in that order so the
numbers ascend with the graph. Do not start a blocked ticket before its blocker
has merged — not merely opened a pull request. Until the merge, main does not
contain the seam the next ticket builds on.
A pure refactor is a poor ticket if the project's convention is to land behaviour with a failing test first: a change that alters no behaviour has no test that fails today. Either land the refactor on its own as an explicit cleanup, or fold it into the first ticket that adds behaviour.
Wide, mechanical changes use expand–contract, one ticket per phase:
Create each child, then attach it to the base by the child's id, which is
not its number:
url=$(gh issue create --repo apache/skywalking \
--title "..." --body-file ./ticket-1.md --label database)
n=${url##*/}
id=$(gh api repos/apache/skywalking/issues/$n -q .id)
gh api --method POST repos/apache/skywalking/issues/<base>/sub_issues -F sub_issue_id=$id
-F, not -f: the endpoint takes an integer, and -f sends the string form.
Check the result with:
gh api repos/apache/skywalking/issues/<base> -q .sub_issues_summary
The base issue stays open as the umbrella, and sub_issues_summary is the
progress bar. Close it when the last ticket merges.
If automation selects the oldest issue with a queue label such as Backlog,
apply that label only to the oldest unblocked executable leaf. Never queue a
tracking parent or all sibling leaves at once. Create children in dependency
order so issue numbers reinforce rather than fight the execution order.
main, or would the legacy path already
satisfy it?main?What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub apache/skywalking-banyandb --plugin banyandb-bydbql5 skills in this plugin
/bydbqlGenerate, 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./compilingCompile and build the SkyWalking BanyanDB project. Use when the user asks to compile, build, or generate code for this project./gh-pull-requestCreate a GitHub pull request for SkyWalking BanyanDB. Use when the user asks to create a PR, submit changes, or open a pull request./vendor-updateUpgrade Go/Node.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/build/version.mk` after upgrading to see if any tracked tool versions need updating too, and removes stale binaries from `bin/` when versions change.
Other plugins' skills for the same job