agentleFS
MicrosoftKnown publishermicrosoft/microsoft-ui-xaml/src/.github/skills/bt-build/SKILL.md

bt-build

Skill8.5k starsChanged 2 months agoMITView on GitHub

Fast incremental C++/MSBuild builds using bt. Use when the user wants to compile, build, check what's dirty, or query build dependencies in a repo that has .vcxproj files. Prefer bt over invoking MSBuild directly for inner-loop source changes (.cpp, .h, .idl, .xaml, .appxmanifest).

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/microsoft-ui-xaml repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/microsoft-ui-xaml

The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 24

Talked about on GitHub, Hacker News and Bluesky (24 times).

On GitHub · 12

7 more on GitHub

On Hacker News · 11

6 more on Hacker News

On Bluesky · 1

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When in doubt, use MSBuild.

    line 34
  2. Very specific:

    Run bt --version. If bt is missing, run the install-bt.ps1 script from this skill's directory to download and install it.

    line 40
  3. Distinctive:

    If product and test binlogs exist with mtimes >1h apart, warn that the set may be inconsistent.

    line 77
  4. Very specific:

    If no binlog exists, run the build skill.

    line 79
  5. Very specific:

    Run bt --help for command options (--binlog <path>), bt <subcommand> --help for subcommand options like -j <N>, --debounce <ms>, etc.

    line 107

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

bt — Fast Inner-Loop Builds

bt reads an MSBuild binary log and replays only the dirty compile/link/MIDL/XAML/makepri steps directly — no MSBuild overhead.

Use bt for the edit-build-debug cycle on source files only. For anything else, use the build skill (MSBuild).

Headers not yet in the tlog (newly added #includes) bt won't trigger rebuilds until the next msbuild -bl.

Do NOT use bt when

Any of these are true → use the build skill (MSBuild) instead:

  • .vcxproj or .vcxitems files were added, removed, or edited
  • .props or .targets files were changed
  • NuGet package dependencies changed
  • WinRT runtime classes were added or removed
  • Packaging, signing, or AppX bundling is needed
  • First build of the repo (no binlog exists yet)
  • You are unsure whether bt covers the change

When in doubt, use MSBuild.

Before you start

1. Check if bt is installed

Run bt --version. If bt is missing, run the install-bt.ps1 script from this skill's directory to download and install it. Periodically run it to update bt as well.

2. Pick the right binlog

bt needs a binlog from a prior MSBuild build. The repo's build scripts all write to BuildOutput\ with names like:

BinlogScope
Microsoft.UI.Xaml.<flavor>.binlogfull product (incl. Controls DLL) — prefer for product code
MUXControls.<flavor>.binlogtest apps + infra — prefer for test code
Microsoft.ui.xaml.<flavor>.binlogMicrosoft.UI.Xaml.dll only — NOT Controls (mux subset)
Microsoft.UI.Xaml-Product.<flavor>.binlogfull product (alternate) — fallback for product code
Microsoft.UI.Xaml.Controls.<flavor>.binlogControls DLL only — narrow fallback
XamlCompilerPrerequisites.<flavor>.binlogcompiler tools — not used by bt

<flavor> is amd64chk, arm64fre, etc. Single-project builds via msb/build-clang produce <project>.<flavor>.binlog next to these.

To pick:

  1. Classify the change by edited paths — test (table below) / mux (dxaml/xcp/ only) / product (everything else under controls/dev, controls/idl, dxaml/, src/).
  2. Pick the freshest binlog whose scope covers that classification, preferring broader scopes (product covers Controls, etc.).
  3. Infer <flavor> from the chosen filename.
  4. Pass --binlog BuildOutput\<chosen> to every bt invocation. bt has no useful default to fall back to.

Caveats:

  • On NTFS, Microsoft.UI.Xaml.<flavor>.binlog and Microsoft.ui.xaml.<flavor>.binlog collide — content is whoever wrote last; trust mtime + size, not casing.
  • If product and test binlogs exist with mtimes >1h apart, warn that the set may be inconsistent.
  • If no binlog exists, run the build skill.

Test path classification

Anything under these directories is test scope:

  • controls/test/MUXControls.Test/
  • controls/test/MUXControlsTestApp/
  • controls/test/TabViewTearOutApp/
  • controls/test/TestAppCX/
  • controls/test/IXMPTestApp/
  • controls/test/MUXTestInfra/ (if present)
  • Samples/AppTestAutomationHelpers/

Common workflows

CommandWhat it does
bt buildBuild everything dirty (always pass --binlog BuildOutput\<x>.binlog)
bt build MyFile.cppForward walk: compile + relink anything affected by this source
bt build MyApp.dllBackward walk: only what this target needs
bt build -c [target]Compile only — skip link/lib
bt build -nDry run — print commands without executing
bt watch [--run <cmd>]Build on file change; optionally run a command after
bt [--binlog some.binlog] dirty [target]What needs building now?
bt bins MyHeader.hWhat rebuilds when this header changes?
bt srcs [--headers] MyApp.dllSources (and optionally #included headers) feeding this target

Run bt --help for command options (--binlog <path>), bt <subcommand> --help for subcommand options like -j <N>, --debounce <ms>, etc.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.