# Proto Compile

> 将protobuf消息定义文件.proto编译为python代码

- Skill: `lumina37/proto-compile` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add lumina37/proto-compile`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lumina37/proto-compile/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: lumina37 (https://skillmd.com/u/lumina37)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lumina37/proto-compile

---


# Protobuf编译Skill

## 触发时机

变更或新增`.proto`文件时

## 使用方法

```bash
python scripts/proto_compile.py -a            # 编译全部
python scripts/proto_compile.py -c            # 仅编译公共protobuf定义
python scripts/proto_compile.py -d <api_name> # 编译指定名称的API模块
python scripts/proto_compile.py -c -d A -d B  # 组合使用
```

