FluidFramework / build-tools
Copilot instructions4.9k starsChanged 4 months agoMITView on GitHub
This is the build-tools release group for the Fluid Framework monorepo. It contains CLI tools and libraries for building, testing, releasing, and managing Fluid Framework repositories. For release documentation, use conventional commits, not changesets. Runtime: Node.js >=22.22.2, pnpm 11.27.0 Language: TypeScript ~5.4.5 Module system: Mix of CommonJS and ESM (see DEV.md for constraints) Always run from build-tools/ directory. Install dependencies first if node_modules/ doesn't exist. Packages have workspace dependencies and must build in order: 1. version-tools (no internal deps) 2.…
- Installs packages
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/FluidFramework
- A Hacker News story“Library for building distributed, real-time collaborative web applications”Hacker News · Sep 9, 2020 · 19 points
- microsoft/rushstack“[rush] Why does many Microsoft open-source projects not use rush.”GitHub · Oct 31, 2021 · 3 reactions
- microsoft/TypeScript“Design Meeting Notes, 2/17/2021”GitHub · Feb 17, 2021 · 3 reactions
- microsoft/TypeScript“Inline *_base declaration in d.ts files”GitHub · Aug 7, 2024 · 2 reactions
- microsoft/rushstack“[api-extractor] API report does not indicate if a class was `type` exported.”GitHub · Jun 7, 2024 · 2 reactions
The biggest 5 of 46 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 46
Talked about on GitHub and Hacker News (46 times).
On GitHub · 42
- Oct 31, 2021[rush] Why does many Microsoft open-source projects not use rush. — microsoft/rushstack3 reactions · 6 comments
- Feb 17, 2021Design Meeting Notes, 2/17/2021 — microsoft/TypeScript3 reactions
- Aug 7, 2024Inline *_base declaration in d.ts files — microsoft/TypeScript2 reactions · 5 comments
- Jun 7, 2024[api-extractor] API report does not indicate if a class was `type` exported. — microsoft/rushstack2 reactions · 2 comments
- Mar 12, 2024Add support for pnpm lock file format 6 — microsoft/component-detection2 reactions · 7 comments
37 more on GitHub
- Apr 23, 2026[aw-compat] Bug: serena-tools-to-shared-import codemod leaves workflows broken in two edge cases — github/gh-aw1 reaction
- Sep 16, 2023Recursive types can depend on presence and source location of unused type declaration — microsoft/TypeScript1 reaction · 12 comments
- Mar 31, 2023Module-level tsdoc doesn't work — matrix-org/matrix-js-sdk1 reaction · 7 comments
- Oct 6, 2022Migrate to `pnpm` or Yarn 3 (from Yarn 1) — microsoft/vscode1 reaction · 2 comments
- Oct 1, 2026build(deps): Bump the fluid-framework-dependencies group with 29 updates — microsoft/FluidHelloWorld0 reactions · 1 comment
- Oct 1, 2026build(deps): Bump the fluid-framework-dependencies group across 3 directories with 39 updates — microsoft/FluidExamples0 reactions · 1 comment
- Jul 6, 2026Bump the fluid-framework-dependencies group across 1 directory with 51 updates — nmsimons/table-example0 reactions
- Jun 21, 2026[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] prefix@b5720370 improvement(client): fix `exactOptionalPropertyTypes` for telemetry-utils — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CLEAN] Synthetic Benchmark PR #27546 - [bench] prefix@b5720370 improvement(client): fix `exactOptionalPropertyTypes` for telemetry-utils — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] prefix@9e4e683c improvement(client): fix `exactOptionalPropertyTypes` for telemetry-utils — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CLEAN] Synthetic Benchmark PR #27546 - [bench] prefix@9e4e683c improvement(client): fix `exactOptionalPropertyTypes` for telemetry-utils — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] prefix@0412ca76 improvement(client): fix `exactOptionalPropertyTypes` for telemetry-utils — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CLEAN] Synthetic Benchmark PR #27546 - [bench] prefix@0412ca76 improvement(client): fix `exactOptionalPropertyTypes` for telemetry-utils — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CORRUPTED] Synthetic Benchmark PR #27497 - [bench] improvement(client-ordered-collection): ConsensusQueueFactory generic — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CLEAN] Synthetic Benchmark PR #27497 - [bench] improvement(client-ordered-collection): ConsensusQueueFactory generic — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CORRUPTED] Synthetic Benchmark PR #27530 - [bench] Updated the client release group to use eslint-config-fluid v13.0 — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CLEAN] Synthetic Benchmark PR #27530 - [bench] Updated the client release group to use eslint-config-fluid v13.0 — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] improvement(client): fix `exactOptionalPropertyTypes` for telemetry-utils — qodo-benchmark/FluidFramework0 reactions
- Jun 21, 2026[CLEAN] Synthetic Benchmark PR #27546 - [bench] improvement(client): fix `exactOptionalPropertyTypes` for telemetry-utils — qodo-benchmark/FluidFrameworksays it tested it0 reactions
- Jun 21, 2026[CORRUPTED] Synthetic Benchmark PR #27521 - [bench] Fix version utils to get the versions it tries from the set it has installed — qodo-benchmark/FluidFrameworksays it tested it0 reactions
- Jun 21, 2026[CLEAN] Synthetic Benchmark PR #27521 - [bench] Fix version utils to get the versions it tries from the set it has installed — qodo-benchmark/FluidFrameworksays it tested it0 reactions
- Jun 21, 2026[CORRUPTED] Synthetic Benchmark PR #27508 - [bench] Remove unused credential flows in e2e tests and examples — qodo-benchmark/FluidFrameworksays it tested it0 reactions
- Jun 21, 2026[CLEAN] Synthetic Benchmark PR #27508 - [bench] Remove unused credential flows in e2e tests and examples — qodo-benchmark/FluidFrameworksays it tested it0 reactions
- Jun 4, 2026Bump @fluidframework/synthesize from 2.0.0-rc.1.0.1 to 2.0.0-rc.1.0.9 — jikanter/FluidHelloWorld0 reactions
- Jun 4, 2026Bump @fluidframework/tinylicious-client from 2.0.0-rc.1.0.1 to 2.102.0 — jikanter/FluidHelloWorld0 reactions
- Jun 4, 2026Bump @fluidframework/view-interfaces from 2.0.0-rc.1.0.1 to 2.0.0-rc.1.0.9 — jikanter/FluidHelloWorld0 reactions
- Jun 4, 2026Bump @fluidframework/merge-tree from 2.0.0-rc.1.0.1 to 2.0.0-rc.1.0.9 — jikanter/FluidHelloWorld0 reactions
- Jun 4, 2026Bump @fluidframework/driver-base from 2.0.0-rc.1.0.1 to 2.0.0-rc.1.0.9 — jikanter/FluidHelloWorld0 reactions
- May 30, 2026chore(deps): bump axios, @fluidframework/azure-client, @microsoft/live-share, fluid-framework and start-server-and-test in /live-share-dice-roller — VikkiDFoxCSA/microsoft-365-agents-toolkit-samples0 reactions
- May 1, 2026Bump fluid-framework from 1.4.0 to 2.100.0 in /samples/javascript/22.react-agile-poker — microsoft/live-share-sdk0 reactions
- May 1, 2026Bump @fluidframework/azure-client from 1.2.0 to 2.100.0 in /samples/typescript/21.react-media-template — microsoft/live-share-sdk0 reactions
- Mar 4, 2026Bump the fluid-framework-dependencies group across 1 directory with 29 updates — nmsimons/fluid-vibe0 reactions
- Feb 10, 2026Bump axios, @fluidframework/server-services-client, @fluidframework/server-services-core, @fluidframework/server-services-shared and @fluidframework/server-services-utils in /server/gitrest — sniten/FluidFramework0 reactions
- Feb 9, 2026Bump axios, @fluidframework/server-lambdas, @fluidframework/server-local-server, @fluidframework/server-memory-orderer, @fluidframework/server-services-client, @fluidframework/server-services-core, @fluidframework/server-services-shared, @fluidframework/server-services-utils and @fluidframework/serv — sniten/FluidFramework0 reactions
- Sep 25, 2025Bump the fluid-framework-dependencies group across 1 directory with 40 updates — augustniehaus/resourcemapfluid0 reactions · 1 comment
- Sep 24, 2025Bump the fluid-framework-dependencies group across 1 directory with 40 updates — nmsimons/fluid-vibe-template0 reactions
- Apr 22, 2023Bump jsonwebtoken, @fluidframework/get-tinylicious-container, @fluidframework/local-driver, @fluidframework/routerlicious-driver, @fluidframework/server-local-server, @fluidframework/test-runtime-utils and tinylicious — attawayinc/FluidStorybook0 reactions
On Hacker News · 4
- Sep 9, 2020Library for building distributed, real-time collaborative web applications19 points
- Sep 9, 2020Microsoft/FluidFramework: Library for building real-time collaborative web apps2 points
- Jan 11, 2024FluidFramework: Build distributed, real-time collaborative web applications1 point
- Sep 9, 2020TypeScript library for building distributed, real-time collaborative web apps1 point
In this repository35 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- server/gitrest/CLAUDE.mdCLAUDE.md
- server/historian/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- ff-oce-dashboardSkill
- ff-oce-kustoSkill
- brainstormingSkill
- building-ui-uxSkill
- creating-debug-tests-and-iteratingSkill
- creating-skillsSkill
- finishing-a-development-branchSkill
- handle-large-tasksSkill
- receiving-code-reviewSkill
- root-cause-tracingSkill
- starting-noriSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- testing-anti-patternsSkill
- updating-noridocsSkill
- using-git-worktreesSkill
- using-screenshotsSkill
- using-skillsSkill
- webapp-testingSkill
- writing-plansSkill
- api-changesSkill
- ci-readiness-checkSkill
- comparison-baseSkill
- fluid-pr-guideSkill
- fluid-prSkill
- fluid-releaseSkill
- pipeline-test-triageSkill
- policy-checkSkill
- review-pr-localSkill
- reviewSkill
- trigger-pipelines-for-copilot-prSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 64
Before submitting changes, verify:
- Very specific: line 117
Create command file in packages/build-cli/src/commands/
- Very specific: line 119
Run pnpm build:manifest to update oclif manifest
- Very specific: line 120
Add tests in src/test/commands/
- Very specific: line 153
"Cannot find module" errors: Run pnpm install then pnpm build
- Very specific: line 154
Type errors after dependency changes: Run pnpm clean && pnpm build
- Very specific: line 155
Lockfile conflicts: Use pnpm install --no-frozen-lockfile only for local testing
- Distinctive: line 156
ESM import errors: Check DEV.md - many packages are pinned to CommonJS-compatible versions
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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.
Files
Copilot Instructions for build-tools
Overview
This is the build-tools release group for the Fluid Framework monorepo. It contains CLI tools and libraries for building, testing, releasing, and managing Fluid Framework repositories.
For release documentation, use conventional commits, not changesets.
Runtime: Node.js >=22.22.2, pnpm 11.27.0 Language: TypeScript ~5.4.5 Module system: Mix of CommonJS and ESM (see DEV.md for constraints)
Packages
| Package | Description | Output Dir | Module Type |
@fluid-tools/build-cli (flub) | Main CLI for build/release operations | lib/ | ESM |
@fluidframework/build-tools | Core build infrastructure, fluid-build CLI | dist/ | CommonJS |
@fluid-tools/build-infrastructure | Workspace and release group abstractions | lib/ (ESM), dist/ (CJS) | Dual |
@fluid-tools/version-tools (fluv) | Semantic versioning utilities CLI | lib/ | CommonJS |
Build Commands
Always run from build-tools/ directory. Install dependencies first if node_modules/ doesn't exist.
# Install dependencies (required first time or after package.json changes)
pnpm install
# Full build (compile + lint + docs)
pnpm build
# Fast incremental build (compile only)
pnpm build:fast
# TypeScript compilation only
pnpm tsc
# Run tests
pnpm test:mocha
# Lint code
pnpm lint
# Format code
pnpm format
# Clean build artifacts
pnpm cleanBuild Order
Packages have workspace dependencies and must build in order:
version-tools(no internal deps)build-tools(depends on version-tools)build-infrastructure(depends on version-tools)build-cli(depends on all above)
The fluid-build task scheduler handles this automatically via pnpm build.
Validation Checklist
Before submitting changes, verify:
- TypeScript compiles:
pnpm tsc - Tests pass:
pnpm test:mocha - Lint passes:
pnpm lint(runs ESLint + syncpack) - Format is correct:
pnpm check:format(uses Biome)
Key Configuration Files
| File | Purpose |
package.json | Root workspace config, scripts, dependencies |
pnpm-workspace.yaml | Workspace package locations |
.syncpackrc.yml | Dependency version synchronization rules |
biome.jsonc | Code formatting and organization (extends root) |
commitlint.config.cjs | Commit message format (conventional commits, sentence-case) |
api-extractor-base.json | Shared API Extractor configuration |
Each package has:
package.json- Package config and scriptstsconfig.json- TypeScript configuration.eslintrc.cjs- ESLint rules (extends@fluidframework/eslint-config-fluid)api-extractor.json- API report generation (most packages)
Dependency Constraints
Critical: Many dependencies are pinned to older versions due to ESM/CommonJS compatibility. See DEV.md for the full list. Do not upgrade:
execa(max ^5.x)globby(max ^11.x)type-fest(max ^2.x)eslint(max ~8.57.0)typescript(pinned ~5.4.5)
Testing
Tests use Mocha. Test files are in src/test/ and compile to lib/test/ or dist/test/.
# Run all tests
pnpm test:mocha
# Run tests with coverage
pnpm test:coverage
# Run tests for a specific package
cd packages/build-cli && pnpm test:mochaCommon Tasks
Adding a new flub command
- Create command file in
packages/build-cli/src/commands/ - Commands use oclif framework - extend
BaseCommand - Run
pnpm build:manifestto update oclif manifest - Add tests in
src/test/commands/
Modifying build tasks
Task definitions are in the repository root (../fluidBuild.config.cjs) and can be augmented per-package in package.json under fluidBuild.tasks.
Policy checks
# Check repo policy
pnpm policy-check
# Fix auto-fixable policy issues
pnpm policy-check:fixFile Structure
build-tools/
├── packages/
│ ├── build-cli/ # flub CLI (ESM)
│ ├── build-infrastructure/ # Workspace abstractions (dual ESM/CJS)
│ ├── build-tools/ # fluid-build CLI (CommonJS)
│ └── version-tools/ # fluv CLI (CommonJS)
├── biome.jsonc # Formatter config
├── .syncpackrc.yml # Dep version rules
├── DEV.md # Dependency upgrade blockers
└── pnpm-workspace.yaml # Workspace definitionTroubleshooting
- "Cannot find module" errors: Run
pnpm installthenpnpm build - Type errors after dependency changes: Run
pnpm clean && pnpm build - Lockfile conflicts: Use
pnpm install --no-frozen-lockfileonly for local testing - ESM import errors: Check DEV.md - many packages are pinned to CommonJS-compatible versions
Trust these instructions. Only search the codebase if information here is incomplete or found to be incorrect.
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
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.

