code-generation
Regenerate code after generator input, implementation, configuration, or tool-version changes.
소스 정보
- 저장소
- block/proto-fleet
- 최근 소스 활동
- 2026년 10월 1일 22:59
- 감지된 SKILL.md 언어
- 영어
- 스타
- 58
- 포크
- 18
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
파일 탐색기
4 개 파일SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- code-generation
- description
- Regenerate code after generator input, implementation, configuration, or tool-version changes.
# Code generation
After source edits are complete, use scoped commands for generator inputs and
full generation for generator implementation, configuration, or tool-version
changes, or inputs spanning generators. Run the selected command from the
repo root. Keep source and generated output together; never patch generated
files by hand. Inspect the pre-existing diff before generation so user changes
remain identifiable.
| Source changes | Command |
| --- | --- |
| Protobuf contracts in `proto/` or `server/sdk/v1/pb/` | `just gen-protos` |
| SQL schema in `server/migrations/` or queries in `server/sqlc/queries/` | `just gen-db-queries` |
| Fleet CLI manifest (`server/tools/generate-fleet-cli/commands.json`) or templates (`server/tools/generate-fleet-cli/templates/`) | `just gen-fleet-cli` |
| Inputs to the server's `go:generate` directives | `just gen-go` |
| Generator implementations, configuration/tool versions (including Buf and sqlc configuration), or inputs spanning generators | `just gen` |
The scoped commands avoid unrelated generators and full client/server
formatting. `just gen-protos` includes SDK protobufs and the protobuf-driven
Fleet CLI.
Read only the reference relevant to the change:
- [Protobuf](references/protobuf.md): proto contracts and generated consumers.
- [SQL](references/sql.md): migrations, queries, and sqlc bindings.
- [Generator upgrades](references/generator-upgrades.md): Buf dependencies
or generator versions; combine with protobuf guidance when both apply.
Inspect the resulting diff and validate affected consumers. Investigate
unexpected output using source changes, generator configuration, and tool
versions; do not assume it proves the branch was stale. Resolve generation
failures caused by the requested change and rerun; report external blockers.
`just gen` does not rebuild the Python generator distribution. Source changes
there or to bundled `scripts/pip-config.sh` require the
[packaging skill](../python-gen-tarball/SKILL.md).
GitHub에서 보기