[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0P4V97ZH4G5XT658F8DRF":3,"skill-same:01M7F0P4V97ZH4G5XT658F8DRF":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F0P4V97ZH4G5XT658F8DRF","bazel-build-optimization",null,"Optimize Bazel builds for large-scale monorepos using Bzlmod (MODULE.bazel). Use when configuring Bazel, migrating off WORKSPACE, setting up remote caching or execution, or speeding up builds.","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fbazel-build-optimization\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: bazel-build-optimization\ndescription: Optimize Bazel builds for large-scale monorepos using Bzlmod (MODULE.bazel). Use when configuring Bazel, migrating off WORKSPACE, setting up remote caching or execution, or speeding up builds.\nlast_verified: 2026-10-27\n---\n\n# Bazel Build Optimization\n\nPatterns for Bazel 8 and 9 (9.3 at last check) in large monorepos.\n\n## When to Use This Skill\n\n- Setting up Bazel for a monorepo\n- Migrating from `WORKSPACE` to `MODULE.bazel`\n- Configuring remote caching or execution\n- Profiling and speeding up builds\n- Writing custom rules\n\n## WORKSPACE Is Gone\n\nBzlmod (`MODULE.bazel`) is the default since Bazel 7, `WORKSPACE` is off by\ndefault in Bazel 8, and Bazel 9 removes it. Declare external dependencies with\n`bazel_dep` from the [Bazel Central Registry](https:\u002F\u002Fregistry.bazel.build) and\nconfigure them through module extensions. Rules that used to ship with Bazel\n(`cc_*`, `java_*`, `py_*`, `proto_*`) must be loaded from their `rules_*`\nmodules. To migrate an old repo, run\n[`migrate_to_bzlmod.py`](https:\u002F\u002Fbazel.build\u002Fexternal\u002Fmigration) and move one\ndependency at a time.\n\n## Layout\n\n```\nrepo\u002F\n├── MODULE.bazel          # Module name, bazel_dep, extensions\n├── MODULE.bazel.lock     # Resolved deps; commit it\n├── .bazelrc              # Flags and named configs\n├── .bazelversion         # Pins Bazel via Bazelisk\n├── BUILD.bazel\n├── apps\u002Fweb\u002FBUILD.bazel\n└── libs\u002Futils\u002FBUILD.bazel\n```\n\n## Key Concepts\n\n| Concept       | Description                                       |\n| ------------- | ------------------------------------------------- |\n| **Module**    | Unit of versioning, declared in `MODULE.bazel`    |\n| **Extension** | Generates repos (npm, pip) from lockfiles         |\n| **Target**    | Buildable unit (library, binary, test)            |\n| **Package**   | Directory with a `BUILD.bazel` file               |\n| **Label**     | Target identifier, `\u002F\u002Fpath\u002Fto:target`             |\n| **Rule**      | Defines how to build a target                     |\n\n## Templates\n\n`references\u002Fdetails.md` has the templates: `MODULE.bazel` for JS\u002FTS and\nPython, `.bazelrc`, TypeScript and Python `BUILD` files, a custom rule,\nqueries, remote execution platforms and profiling.\n\n## Best Practices\n\n### Do's\n\n- **Pin Bazel** in `.bazelversion` and run it through Bazelisk\n- **Commit `MODULE.bazel.lock`** for reproducible resolution\n- **Use fine-grained targets** so changes invalidate less\n- **Put every `load()` at the top** of a BUILD file\n- **Use visibility** to enforce architecture\n- **Use a remote cache** shared by CI and developers; let only CI write\n\n### Don'ts\n\n- **Don't add a `WORKSPACE` file** to a new repo\n- **Don't glob across packages** or use globs for deps\n- **Don't commit `bazel-*` symlinks**; add them to `.gitignore`\n- **Don't ignore build warnings**\n","# Bazel Build Optimization\n\nPatterns for Bazel 8 and 9 (9.3 at last check) in large monorepos.\n\n## When to Use This Skill\n\n- Setting up Bazel for a monorepo\n- Migrating from `WORKSPACE` to `MODULE.bazel`\n- Configuring remote caching or execution\n- Profiling and speeding up builds\n- Writing custom rules\n\n## WORKSPACE Is Gone\n\nBzlmod (`MODULE.bazel`) is the default since Bazel 7, `WORKSPACE` is off by\ndefault in Bazel 8, and Bazel 9 removes it. Declare external dependencies with\n`bazel_dep` from the [Bazel Central Registry](https:\u002F\u002Fregistry.bazel.build) and\nconfigure them through module extensions. Rules that used to ship with Bazel\n(`cc_*`, `java_*`, `py_*`, `proto_*`) must be loaded from their `rules_*`\nmodules. To migrate an old repo, run\n[`migrate_to_bzlmod.py`](https:\u002F\u002Fbazel.build\u002Fexternal\u002Fmigration) and move one\ndependency at a time.\n\n## Layout\n\n```\nrepo\u002F\n├── MODULE.bazel          # Module name, bazel_dep, extensions\n├── MODULE.bazel.lock     # Resolved deps; commit it\n├── .bazelrc              # Flags and named configs\n├── .bazelversion         # Pins Bazel via Bazelisk\n├── BUILD.bazel\n├── apps\u002Fweb\u002FBUILD.bazel\n└── libs\u002Futils\u002FBUILD.bazel\n```\n\n## Key Concepts\n\n| Concept       | Description                                       |\n| ------------- | ------------------------------------------------- |\n| **Module**    | Unit of versioning, declared in `MODULE.bazel`    |\n| **Extension** | Generates repos (npm, pip) from lockfiles         |\n| **Target**    | Buildable unit (library, binary, test)            |\n| **Package**   | Directory with a `BUILD.bazel` file               |\n| **Label**     | Target identifier, `\u002F\u002Fpath\u002Fto:target`             |\n| **Rule**      | Defines how to build a target                     |\n\n## Templates\n\n`references\u002Fdetails.md` has the templates: `MODULE.bazel` for JS\u002FTS and\nPython, `.bazelrc`, TypeScript and Python `BUILD` files, a custom rule,\nqueries, remote execution platforms and profiling.\n\n## Best Practices\n\n### Do's\n\n- **Pin Bazel** in `.bazelversion` and run it through Bazelisk\n- **Commit `MODULE.bazel.lock`** for reproducible resolution\n- **Use fine-grained targets** so changes invalidate less\n- **Put every `load()` at the top** of a BUILD file\n- **Use visibility** to enforce architecture\n- **Use a remote cache** shared by CI and developers; let only CI write\n\n### Don'ts\n\n- **Don't add a `WORKSPACE` file** to a new repo\n- **Don't glob across packages** or use globs for deps\n- **Don't commit `bazel-*` symlinks**; add them to `.gitignore`\n- **Don't ignore build warnings**\n",{"name":5,"description":7,"last_verified":24},1793059200000,"main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fdeveloper-essentials\u002Fskills\u002Fbazel-build-optimization","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill bazel-build-optimization",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill bazel-build-optimization",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill bazel-build-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fbazel-build-optimization\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fdetails.md","REFERENCE","参考文档",8404,"https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fbazel-build-optimization\u002Freferences\u002Fdetails.md",[54,60,67,74,81,88],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]