protoc

wham's avatarfrom wham

Re-generates the project's code from protobuf source. Use when .proto files are changed.

⭐14stars🔀0forks📁View on GitHub🕐Updated Jan 4, 2026

When & Why to Use This Skill

This Claude skill automates the regeneration of project source code from Protocol Buffer (.proto) files. It streamlines the development workflow by ensuring that both server and client-side code remain perfectly synchronized with the latest API definitions, eliminating manual compilation errors and boilerplate overhead.

Use Cases

  • Updating API Definitions: When a developer modifies a .proto file to add new fields or services, this skill instantly refreshes the underlying codebase to reflect those changes.
  • Cross-Platform Consistency: Ensures that backend and frontend teams stay in sync by generating matching data structures and service interfaces from a single source of truth.
  • Workflow Automation: Simplifies the execution of complex protoc commands and plugins, automatically handling the generation process and ensuring all changes—including comments—are ready for version control.
nameprotoc
descriptionRe-generates the project's code from protobuf source. Use when .proto files are changed.
  • Run scripts/server to re-generate Protobuf files. No custom commands.
  • The process uses protoc and the relevant plugins to generate code for both server and client sides.
  • The process does not automatically exit, so ensure to terminate it manually after generation is complete. Wait for the output "Server started" and then stop the process.
  • Always commit all the generated files, even when there are just comment changes.