build-optimization

build-optimization is a skill for Claude Code, Codex from NickCrew/Claude-Cortex. It costs 34 tokens per session (671 once invoked), scanned A, original, MIT.

A set of practices for making software builds and developer tools run faster and more predictably. It covers compilation, caching, incremental builds, CI/CD, monorepos, and build-related tooling.

In plain words
What is it for?
Use it to improve local and CI build times, configure caches and parallel work, manage monorepo builds, and design CLIs, plugins, or code generators.
Why use it?
It helps find slow build steps, reduce repeated work, and shorten the wait between changing code and seeing results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to improve local and CI build times, configure caches and parallel work, manage monorepo builds, and design CLIs, plugins, or code generators.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nickcrew/claude-cortex/build-optimization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NickCrew/Claude-Cortex --skill build-optimization
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/nickcrew/claude-cortex/build-optimization/github.svg)](https://agentmods.dev/skills/nickcrew/claude-cortex/build-optimization)
Your own site
<a href="https://agentmods.dev/skills/nickcrew/claude-cortex/build-optimization"><img src="https://agentmods.dev/badge/skills/nickcrew/claude-cortex/build-optimization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/nickcrew/claude-cortex/build-optimization"><img src="https://agentmods.dev/badge/skills/nickcrew/claude-cortex/build-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 671 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00671
Opus 5.5 $0.00014 $0.00268
Sonnet 5.5 $0.00007 $0.00134
Haiku 4.5 $0.00003 $0.00067

Measured 1mo ago against content hash 164ee58e621b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-optimization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/build-optimization/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build Optimization

Expert guidance for optimizing build systems, reducing compilation times, maximizing cache hit rates, and building developer tools that enhance productivity across the development lifecycle.

When to Use This Skill

  • Diagnosing slow build times and identifying bottlenecks
  • Configuring caching strategies (local, remote, distributed)
  • Setting up incremental builds and parallel execution
  • Optimizing CI/CD pipeline performance and cost
  • Designing or improving bundle splitting and tree shaking
  • Building CLIs, plugins, code generators, or IDE extensions
  • Configuring monorepo tooling (Nx, Turborepo, Bazel)
  • Reducing developer feedback loop times (hot reload, watch mode)
  • Managing build artifacts and reproducibility

Quick Reference

Task Load reference
Compilation, caching, incremental builds, CI/CD optimization skills/build-optimization/references/build-systems.md
Plugin systems, code generation, linting, IDE integration, monorepo tooling skills/build-optimization/references/developer-tooling.md

Core Targets

  • Build time under 30 seconds for development builds
  • Rebuild time under 5 seconds with watch mode
  • Cache hit rate above 90% in CI
  • Zero flaky builds in production pipelines
  • Reproducible builds across environments

Workflow

1. Performance Analysis

Profile the current build before making changes.

  • Measure cold build, incremental rebuild, and hot reload times
  • Profile CPU, memory, and I/O during builds
  • Map the dependency graph and identify bottlenecks
  • Evaluate cache hit rates and invalidation patterns
  • Review current tool configuration for missed optimizations

2. Optimization

Apply targeted improvements based on profiling data.

  • Enable incremental compilation and caching
  • Configure parallel execution across available cores
  • Set up code splitting and tree shaking
  • Optimize module resolution and source transformation
  • Implement remote or distributed caching for CI

Read the full file on GitHub · 95 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 95 lines · 34 tokens per session scan A 164ee58e621b

Subscribe to this mod's changes

build-optimization is a skill published in the GitHub repository NickCrew/Claude-Cortex (56 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 671 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

CI Pipeline Optimizer

Optimize CI test pipelines through intelligent test splitting, parallelization, caching strategies, and selective test execution based on code changes.

PramodDutta/qaskills · 29 tokens

test-setup

Scaffold the test framework and CI — tests/ directory, engine test runner, GitHub Actions workflow. Once, before the first sprint.

Donchitos/Claude-Code-Game-Studios · 32 tokens

gamedev-shipping

Use when exporting, packaging, signing, or publishing a game — export presets per engine, macOS notarization, cross-origin isolation for threaded web builds, Android AAB/keystore, iOS provisioning, store submission (Steam, Play, App Store, itch.io), headless build CI. NOT gameplay code inside the artifact (that is…

ericrisco/rsc-harness · 99 tokens

github-actions

Use when authoring or fixing GitHub Actions CI/CD — workflows under .github/workflows, triggers, job matrix, caching, token permissions, OIDC cloud deploys, environment gates, reusable workflows. NOT the Dockerfile or image build strategy (that is docker), NOT the branching model (that is git-workflow), NOT release…

ericrisco/rsc-harness · 81 tokens

fix-ci

Fix CI failures and performance regressions for a Julia package PR by iterating - triage the latest CI results, fix one root cause, verify locally, push. Use when a PR's GitHub Actions or Buildkite CI is failing, or when CI jobs run slower than they do on the main branch. Verifies CPU and GPU compilation locally…

CliMA/ClimaAtmos.jl · 84 tokens

huawei-cloud-codearts-pipeline-diagnose

A Huawei Cloud CodeArts tool for build and delivery pipelines. A pipeline coordinates steps such as compiling, deploying, and releasing software, while a build task compiles source code into an output artifact.

huaweicloud/huaweicloud-skills · 273 tokens