incremental-build

incremental-build is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 127 tokens per session (3,705 once invoked), scanned A, a copy of incremental-build, MIT.

A guide to MSBuild incremental builds, where work is skipped when its outputs are still up to date. It explains how input and output files control whether a build step runs.

In plain words
What is it for?
Use it to diagnose custom targets that run every time and to configure input, output, timestamp, and copy behavior correctly.
Why use it?
It helps find why a project rebuilds work that has not changed, making repeated builds slower than necessary.

Skill for Claude CodeCodex

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

Good fit Use it to diagnose custom targets that run every time and to configure input, output, timestamp, and copy behavior correctly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/incremental-build
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 managedcode/dotnet-skills --skill incremental-build
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

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 incremental-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/incremental-build/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/incremental-build)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/incremental-build"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/incremental-build/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 incremental-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/incremental-build"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/incremental-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,705 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 100% copy Near-identical to another mod 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.00127 $0.03705
Opus 5.5 $0.00051 $0.01482
Sonnet 5.5 $0.00025 $0.00741
Haiku 4.5 $0.00013 $0.00370

Measured 23d ago against content hash d5c40ed57126, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

incremental-build 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 23d 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.

Origin

This is a copy

100% identical to incremental-build — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

catalog/Tools/Official-DotNet-MSBuild/skills/incremental-build/SKILL.md · 264 lines

How it starts

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

Required diagnosis output

For every diagnose or explain request, the final answer must explicitly cover all of these points, even when the immediate cause is simply missing Inputs/Outputs:

  • the target and exact root-cause evidence;
  • the actual input/output timestamp comparison;
  • missing, deleted, cleaned, or rewritten outputs;
  • complete inputs, including dynamic or volatile inputs;
  • evaluated input/output paths and one-to-one mapping when item lists are batched;
  • two identical no-change builds and the expected second-build skip/out-of-date evidence.

Do not edit unless the user asks for a fix. If a check cannot be run, label it as an unverified check rather than omitting it or claiming success. When Inputs or Outputs are absent, report timestamp comparison or one-to-one mapping as not applicable — the incremental mechanism is not engaged, not as an unverified comparison.

How MSBuild Incremental Build Works

MSBuild's incremental build mechanism allows targets to be skipped when their outputs are already up to date, dramatically reducing build times on subsequent runs.

  • Targets with Inputs and Outputs attributes: MSBuild compares the timestamps of all files listed in Inputs against all files listed in Outputs. If every output file is newer than every input file, the target is skipped entirely.
  • Without Inputs/Outputs: The target runs every time the build is invoked. This is the default behavior and the most common cause of slow incremental builds.
  • Timestamp-based comparison: MSBuild uses file system timestamps (last write time) to determine staleness. It does not use content hashes. This means touching a file (updating its timestamp without changing content) will trigger a rebuild.
<!-- This target is incremental: skipped if Output is newer than all Inputs -->
<Target Name="Transform"
        Inputs="@(TransformFiles)"
        Outputs="@(TransformFiles->'$(OutputPath)%(Filename).out')">
  <!-- work here -->
</Target>

<!-- This target always runs because it has no Inputs/Outputs -->
<Target Name="PrintMessage">
  <Message Text="This runs every build" />
</Target>

Read the full file on GitHub · 264 lines

Files

What ships with it

1 file 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. 23d ago Changed · -36 tokens per session d5c40ed57126
  2. 1mo ago Changed · +32 lines 3d8e230432df
  3. 2mo ago First seen · 232 lines · 163 tokens per session scan A 05db7b975196

Subscribe to this mod's changes

incremental-build is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 127 tokens to every session and 3,705 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to incremental-build, differing in 0 lines, and is treated as a copy.

Related

incremental-build compared with skills from other repositories

incremental-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
incremental-buildmanagedcode/dotnet-skillsSkill52716d agoMITA127Claude Code, Codex
windbg-kernel-lock-deadlock-triagemicrosoft/win-dev-skillsSkill52113d agoMITA56Claude Code
fuzzy-selectingSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A25Claude Code, Codex
rust-developmentnavikt/copilotSkill65yesterdayMITA27Claude Code, Codex
spring-boot-scaffoldnavikt/copilotSkill65yesterdayMITA32Claude Code, Codex
tlc-discovertech-leads-club/agent-skillsSkill7.2k3d agononeA76Claude Code, Codex
repo-baseline-auditnavikt/copilotSkill65yesterdayMITA122Claude Code, Codex