मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)41k · #6675

bazel-build-optimization

यह क्या करती है

यह skill Bazel, एक build tool, को बड़े प्रोजेक्ट्स पर बेहतर तरीके से चलाने में मदद करती है। यह production में काम आने वाले पैटर्न सिखाती है ताकि आपके प्रोजेक्ट तेज़ी और भरोसे के साथ build हों।

कब इस्तेमाल करें

  • ✓बड़े प्रोजेक्ट पर पहली बार Bazel सेट करते समय।
  • ✓Bazel से build को तेज़ करने के लिए remote computers इस्तेमाल करवाने की कोशिश करते समय।
  • ✓यह समझने के लिए कि build में इतना समय क्यों लग रहा है।

Skill का लिंक

https://github.com/wshobson/agents/blob/main/plugins/developer-essentials/skills/bazel-build-optimization/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/wshobson/agents/blob/main/plugins/developer-essentials/skills/bazel-build-optimization/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं अपने बड़े प्रोजेक्ट पर Bazel को कैसे configure करूं ताकि builds तेज़ हों?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह आपकी प्रोजेक्ट फाइलों को व्यवस्थित करने और Bazel को configure करने के लिए उदाहरण और बेस्ट प्रैक्टिस देता है। इससे Bazel बेहतर समझ पाता है कि आपका कोड कैसे build करना है, और प्रक्रिया ज़्यादा कुशल होती है।

तकनीकी सामग्री (मूल 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 एक टूल है जो सॉफ्टवेयर प्रोजेक्ट्स को build करने में मदद करता है, यानी कोड को चलने लायक प्रोग्राम में बदलता है। यह खासकर बड़े और जटिल प्रोजेक्ट्स के लिए बनाया गया है।

'monorepo' क्या है?

Monorepo एक ही कोड repository होती है जिसमें कई अलग-अलग प्रोजेक्ट्स रखे जाते हैं।

'optimize builds' का क्या मतलब है?

इसका मतलब है सॉफ्टवेयर बनाने की प्रक्रिया को तेज़ करना और कम कंप्यूटर संसाधन इस्तेमाल करना।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills