Regenerate Python + TypeScript gRPC stubs after editing proto files. Use when proto/*.proto changes, imports from bindu.grpc.generated fail, CI reports generated-code drift, or HandleMessages calls fail with proto mismatch.
73
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Bindu's cross-language agents share one proto file: proto/agent_handler.proto. Two generated stub trees must stay in sync with it:
bindu/grpc/generated/ — Python stubs for the coresdks/typescript/src/generated/ — TypeScript stubs for the SDKBoth languages must be regenerated together and committed in the same PR as the proto change. A proto change without matching stubs leaves main broken for anyone who pulls.
<proto_file>: usually proto/agent_handler.proto, or whatever file was modified under proto/.bindu/grpc/generated/ or sdks/typescript/src/generated/. Changes will be overwritten by the next regeneration.git diff proto/agent_handler.protoFor each change, classify:
bash scripts/generate_protos.sh allThe script handles both languages and fixes Python import paths. It is the single source of truth — do not run grpc_tools.protoc or grpc_tools_node_protoc by hand.
uv run python -c "from bindu.grpc.generated import agent_handler_pb2, agent_handler_pb2_grpc"
uv run mypy bindu/grpc/cd sdks/typescript && npm run builduv run pytest tests/integration/grpc/ -vTouch docs/grpc/api-reference.md for added/removed/modified RPCs. Skip if purely additive internal fields.
One commit containing: the proto change, both generated trees, any doc updates. Commit message:
refactor(grpc): <describe the proto change>
- proto: <summary>
- regenerated Python + TypeScript stubsbindu/grpc/generated/ or sdks/typescript/src/generated/ directly. The diff will be lost the next time anyone regenerates.7b1ff75
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.