find-repeated-work-within-one-build

find-repeated-work-within-one-build is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 107 tokens per session (2,603 once invoked), scanned A, a copy of find-repeated-work-within-one-build, MIT.

An MSBuild investigation skill for finding repeated work inside one build. MSBuild is the system that builds many .NET projects, and this skill examines its build log to identify unnecessary repeated commands or project builds.

In plain words
What is it for?
Use it to audit repeated `Exec` tasks, generators, dependency builds, and parallel run-once races within a single MSBuild invocation.
Why use it?
It helps distinguish genuinely project-specific work from commands that run once per project or several times under different settings. That can expose wasted process launches, duplicate builds, and unsafe run-once guards.

Skill for Claude CodeCodex

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

Good fit Use it to audit repeated Exec tasks, generators, dependency builds, and parallel run-once races within a single MSBuild invocation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/find-repeated-work-within-one-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 find-repeated-work-within-one-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 find-repeated-work-within-one-build

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/find-repeated-work-within-one-build"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/find-repeated-work-within-one-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,603 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.00107 $0.02603
Opus 5.5 $0.00043 $0.01041
Sonnet 5.5 $0.00021 $0.00521
Haiku 4.5 $0.00011 $0.00260

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

Security

Grade A, and why

find-repeated-work-within-one-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 find-repeated-work-within-one-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/find-repeated-work-within-one-build/SKILL.md · 118 lines

How it starts

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

Find Repeated Work Within One Build

MSBuild runs targets once per project instance. Work that does not depend on the project, but sits in Directory.Build.targets or a shared target, therefore runs once per project: a git rev-parse in 40 projects is 40 process launches. A project built with different global properties is a different instance, so a shared library can compile several times in one build. The binlog's N calls column shows both. This skill finds the repeats, separates them from work that is legitimately per project, and removes only what is safe to remove.

When to Use

  • The same Exec or task (version stamping, tool probes, file generation) runs in every project
  • Target or Task Performance Summary shows a call count far above the number of projects that need the work
  • The same project executes its build targets repeatedly under global-property sets that do not change its outputs
  • An Exec spawns one process per item in a list
  • A "run once per build" guard (Exists check, flag property) still runs repeatedly or fails with file-in-use errors under -m

When Not to Use

  • Targets that run again on a second, unchanged build: use incremental-build
  • Slow evaluation before any target runs: use eval-performance
  • Required project variants colliding in shared bin/obj directories: use check-bin-obj-clash
  • Idle nodes or a serial dependency chain: use build-parallelism
  • NuGet restore repeated across separate dotnet restore, dotnet build and dotnet test commands: use eliminate-redundant-restores
  • Unranked "why is my build slow": start with build-perf-baseline, then build-perf-diagnostics

Workflow

Step 1: Count executions

Use a supplied performance summary with execution counts as valid input; a raw binlog is not required. If the user cannot run the build or forbids execution or new logs, work from the summary and repository files. Mark unavailable timing or overlap evidence unknown and proposed fixes not validated; do not execute a build or collect another log.

Read the full file on GitHub · 118 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 First seen · 118 lines · 107 tokens per session scan A 03bfd9ece8e7

Subscribe to this mod's changes

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

Related

find-repeated-work-within-one-build compared with skills from other repositories

find-repeated-work-within-one-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
find-repeated-work-within-one-buildmanagedcode/dotnet-skillsSkill52716d agoMITA107Claude Code, Codex
windbg-diagnostic-methodmicrosoft/win-dev-skillsSkill52113d agoMITA42Claude Code
windbg-kernel-bugcheck-triagemicrosoft/win-dev-skillsSkill52113d agoMITA50Claude Code
windbg-user-exception-triagemicrosoft/win-dev-skillsSkill52113d agoMITA69Claude Code
windbg-user-heap-corruption-investigationmicrosoft/win-dev-skillsSkill52113d agoMITA46Claude Code
windbg-user-virtual-memory-exhaustionmicrosoft/win-dev-skillsSkill52113d agoMITA54Claude Code
windbg-user-wait-chain-analysismicrosoft/win-dev-skillsSkill52113d agoMITA52Claude Code