protoc
从protobuf源代码重新生成项目代码。当.proto文件更改时使用。
📖 中文导读:从protobuf源代码重新生成项目代码。当.proto文件更改时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: protoc description: Re-generates the project's code from protobuf source. Use when .proto files are changed.
- Run
scripts/serverto re-generate Protobuf files. No custom commands. - The process uses
protocand 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.