
Skill
compiling
compile and build BanyanDB projects
Description
Compile and build the SkyWalking BanyanDB project. Use when the user asks to compile, build, or generate code for this project.
SKILL.md
Compiling SkyWalking BanyanDB
Follow these steps to compile the project.
Step 1: Generate protobuf and mock code
Run make generate first. This regenerates .pb.go files from .proto definitions and mock files via mockgen.
This step is required whenever:
- Proto files (
.proto) have been added or modified - Go interfaces used by mockgen have changed
If generate fails, check:
protocand Go protobuf plugins are installed- Proto file syntax is valid
- Interface signatures match mock expectations
Step 2: Build all binaries
Run make build to compile all project components: ui, banyand, bydbctl, mcp, fodc/agent, fodc/proxy.
Binaries are output to each component's build/bin/dev/ directory.
Troubleshooting
- Missing fields in .pb.go: Proto files were updated but
make generatewas not run. Run it first. - Mock generation failures: An interface changed but the mock wasn't regenerated.
make generatefixes this. - Import errors: Check import aliases match CLAUDE.md conventions (e.g.,
commonv1,databasev1).
Other useful targets
make clean— clean all build artifactsmake clean-build— clean only build binariesmake lint— run lintersmake test— run tests
More skills from the skywalking-banyandb repository
View all 4 skillsMore from Apache Software Foundation
View publisherdatafusion-python
write Apache DataFusion Python code
datafusion-python
Jul 12Data AnalysisPythonSQLcayenne-cgen
generate Cayenne entity Java classes
cayenne
Jul 12Data ModelingJavaORMcayenne-db-import
import database schema into Cayenne DataMaps
cayenne
Jul 19DatabaseJavaORMSQLcayenne-full-db-sync
synchronize Cayenne projects with database
cayenne
Jul 19DatabaseJavaORMcayenne-model-naming
clean up Cayenne object-layer names
cayenne
Jul 22Data ModelingDatabaseJavaORMcayenne-modeler
manage Cayenne projects with CayenneModeler
cayenne
Jul 12Data ModelingJavaORM