bazel-build-optimization
하는 일
이 스킬은 대형 프로젝트에서 빌드 도구인 Bazel이 작동하는 방식을 최적화하도록 돕습니다. 프로젝트가 더 빠르고 안정적으로 빌드되도록 실제 운영에서 쓰는 패턴을 가르칩니다.
사용하는 경우
- ✓대형 프로젝트에 Bazel을 처음 설정할 때.
- ✓Bazel이 원격 컴퓨터를 사용해 빌드를 빠르게 하도록 만들려는 경우.
- ✓빌드가 왜 그렇게 오래 걸리는지 알아내려 할 때.
스킬 링크
https://github.com/wshobson/agents/blob/main/plugins/developer-essentials/skills/bazel-build-optimization/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“대형 프로젝트에서 빌드를 더 빠르게 하려면 Bazel을 어떻게 설정하면 좋을까요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
프로젝트 파일을 정리하고 Bazel을 설정하는 예시와 모범 사례를 제공합니다. 이를 통해 Bazel이 코드를 어떻게 빌드할지 더 잘 이해해 과정이 효율적이 됩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Bazel Build Optimization
Production patterns for Bazel in large-scale monorepos.
When to Use This Skill
- Setting up Bazel for monorepos
- Configuring remote caching/execution
- Optimizing build times
- Writing custom Bazel rules
- Debugging build issues
- Migrating to Bazel
Core Concepts
1. Bazel Architecture
workspace/
├── WORKSPACE.bazel # External dependencies
├── .bazelrc # Build configurations
├── .bazelversion # Bazel version
├── BUILD.bazel # Root build file
├── apps/
│ └── web/
│ └── BUILD.bazel
├── libs/
│ └── utils/
│ └── BUILD.bazel
└── tools/
└── bazel/
└── rules/
2. Key Concepts
| Concept | Description |
|---|---|
| Target | Buildable unit (library, binary, test) |
| Package | Directory with BUILD file |
| Label | Target identifier //path/to:target |
| Rule | Defines how to build a target |
| Aspect | Cross-cutting build behavior |
Templates and detailed worked examples
Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.
Best Practices
Do's
- Use fine-grained targets - Better caching
- Pin dependencies - Reproducible builds
- Enable remote caching - Share build artifacts
- Use visibility wisely - Enforce architecture
- Write BUILD files per directory - Standard convention
Don'ts
- Don't use glob for deps - Explicit is better
- Don't commit bazel-* dirs - Add to .gitignore
- Don't skip WORKSPACE setup - Foundation of build
- Don't ignore build warnings - Technical debt
자주 묻는 질문
Bazel이란 무엇인가요?
Bazel은 소프트웨어 프로젝트, 특히 크고 복잡한 프로젝트를 빌드(코드를 실행 가능한 프로그램으로 변환)하도록 돕는 도구입니다.
'모노레포'란 무엇인가요?
여러 다른 프로젝트를 담는 하나의 코드 저장소입니다.
'빌드 최적화'는 무슨 뜻인가요?
소프트웨어 빌드 과정을 더 빠르게 하고 컴퓨터 자원을 덜 쓰도록 만드는 것입니다.
상세 정보
작성자의 원본 설명
Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.
repo: wshobson/agents
인기도
- GitHub 스타
- 41k
- 순위
- #6675
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
screen-reader-testing
41k에이전트가 스크린 리더로 웹사이트를 테스트해 접근성을 확인하도록 돕습니다.
wcag-audit-patterns
41k에이전트가 WCAG 지침에 따라 웹사이트의 접근성을 감사하고 문제를 고치도록 돕습니다.
multi-reviewer-patterns
41k에이전트가 병렬 코드 리뷰를 조율하고, 중복된 발견 사항을 정리하며, 보고서를 통합하도록 돕습니다.
parallel-debugging
41k에이전트가 병렬 조사와 근본 원인 분석으로 복잡한 문제를 디버그하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.