본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)41k · #6675

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/developer-essentials/skills/bazel-build-optimization/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬