/devops-skills:build-optimizationfrom devops-skills
Optimizes build speed and reproducibility through hermetic builds, incremental compilation, remote caching, and parallelism. Use when builds are slow, setting up a build cache, or debugging incorrect cached builds.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build speed and build correctness pull in the same direction far more often than people assume — a hermetic, well-cached build is both faster and more trustworthy than one that "works on my machine" via ambient state. The failure mode to design against isn't a slow build, it's a fast build that's fast because it's silently reusing something stale. Optimize in the order that preserves correctness first: eliminate unnecessary work, then cache what's safe to cache, then parallelize what's left.
A build that's fast and wrong costs more than a build that's slow and right, because the wrong one ships.
Speed up builds by doing less work and reusing verified work — never by skipping verification.
A hermetic build depends only on declared inputs — no ambient environment variables, no network calls to unpinned resources, no reliance on whatever happens to be installed on the machine. Hermeticity is what makes caching and remote/distributed builds safe: if a build can produce different output on two machines with the same declared inputs, no caching strategy built on top of it is trustworthy, because you can't tell a legitimate cache hit from a stale one hiding a real difference.
Done when: the same commit, built on two different machines, produces byte-identical (or content-hash-identical) output.
Full rebuilds on every change are the default in most naive setups and the single biggest source of wasted build time. Incremental build systems (Bazel, Turborepo, Nx, ccache, Go's build cache) track a dependency graph and only recompile the units affected by a given change. This matters most in monorepos, where a change to one package shouldn't trigger a rebuild-and-retest of forty unrelated ones.
# the question every incremental build system answers:
# given this diff, which build targets have inputs that changed?
# answer determines the *minimum* rebuild — not "rebuild everything to be safe"
Done when: a one-line change to a leaf module rebuilds only that module and its dependents, not the whole tree.
Local caches (a developer's machine) are fast but useless across CI runners or team members; remote/shared caches (a build cache server, Bazel remote cache, Docker registry as layer cache) let a build done once by anyone benefit everyone. Key cache entries on a hash of the actual inputs — source content, dependency versions, compiler flags — never on a branch name, timestamp, or manually incremented cache version, which are exactly the things that drift out of sync with what's actually cached.
Done when: a cache hit on one CI runner is reusable by a different runner building the same inputs, without manual synchronization.
Once the minimum necessary work is identified (via incrementality) and reuse is maximized (via caching), the remaining work parallelizes across cores or machines based on the dependency graph — independent modules build simultaneously, dependent ones wait. Parallelizing before establishing correct incrementality and caching just means doing unnecessary work faster, which is a much smaller win than not doing it at all.
Done when: build time scales down with added parallelism up to the critical path length of the dependency graph, not further.
A cache-warm build looks fast in every demo and every day-to-day developer loop, which hides how bad the cold-build path (new contributor, new CI runner, cache eviction, cache-busting dependency bump) has become. Measure cold-build time explicitly and periodically — it's the number that determines onboarding experience and the worst-case CI latency when a cache is invalidated or unavailable.
Done when: cold-build time (cache empty, from clean checkout) is a known, tracked number, not a guess based on the common warm-cache case.
State what makes the build hermetic (or where it isn't yet), the caching layers in use and how keys are derived, and both warm-cache and cold-build times. Name the honest gap: usually it's a build that's still not fully hermetic (some ambient dependency), a cache key that's coarser than it should be, or a cold-build time nobody has actually measured recently.
What SKILL.md sets; muted values are Claude Code's defaults
88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`./artifact-managementVersions, stores, and promotes build outputs — registries, immutability, build-once-promote-many, retention and garbage collection, and provenance metadata. Use this whenever the user sets up an artifact or container registry, asks how to promote a build between environments without rebuilding, needs a retention or cleanup policy, or wants to trace where an artifact came from. For an image's contents and size use `image-optimization`; for vulnerability scanning use `image-scanning`./autoscalingCovers scaling Kubernetes workloads and nodes to demand — HPA on the right metric, VPA, cluster autoscaler, custom/external metrics, avoiding thrash with stabilization windows, and requests as the foundation underneath it all. Use this whenever the user is configuring an HPA, deciding between HPA and VPA, debugging autoscaling that flaps, or sizing a cluster autoscaler. For the requests/limits autoscaling depends on use `kubernetes-operations`; for cost tradeoffs use `cost-optimization`./backup-and-restoreDefines the discipline of building backups you can actually restore under pressure — RPO-driven frequency, restores rehearsed on a schedule, offsite immutable copies, encryption, and treating a backup that has never been restored as equivalent to no backup at all. Use this whenever the user sets up a backup job, chooses a retention policy, argues about RPO or RTO, asks whether current backups are enough, or plans for ransomware or accidental deletion. For the wider recovery plan use `disaster-recovery`, and for stateful platform durability use `stateful-workloads`.npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills