agentleFS
MicrosoftKnown publishermicrosoft/FluidFramework/build-tools/.github/copilot-instructions.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 3 mentionsJun 2026: 21 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/FluidFramework repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/FluidFramework

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

37 more on GitHub

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
  1. Distinctive:

    Before submitting changes, verify:

    line 64
  2. Very specific:

    Create command file in packages/build-cli/src/commands/

    line 117
  3. Very specific:

    Run pnpm build:manifest to update oclif manifest

    line 119
  4. Very specific:

    Add tests in src/test/commands/

    line 120
  5. Very specific:

    "Cannot find module" errors: Run pnpm install then pnpm build

    line 153
  6. Very specific:

    Type errors after dependency changes: Run pnpm clean && pnpm build

    line 154
  7. Very specific:

    Lockfile conflicts: Use pnpm install --no-frozen-lockfile only for local testing

    line 155
  8. Distinctive:

    ESM import errors: Check DEV.md - many packages are pinned to CommonJS-compatible versions

    line 156

≈ “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.

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

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

PackageDescriptionOutput DirModule Type
@fluid-tools/build-cli (flub)Main CLI for build/release operationslib/ESM
@fluidframework/build-toolsCore build infrastructure, fluid-build CLIdist/CommonJS
@fluid-tools/build-infrastructureWorkspace and release group abstractionslib/ (ESM), dist/ (CJS)Dual
@fluid-tools/version-tools (fluv)Semantic versioning utilities CLIlib/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 clean

Build Order

Packages have workspace dependencies and must build in order:

  1. version-tools (no internal deps)
  2. build-tools (depends on version-tools)
  3. build-infrastructure (depends on version-tools)
  4. build-cli (depends on all above)

The fluid-build task scheduler handles this automatically via pnpm build.

Validation Checklist

Before submitting changes, verify:

  1. TypeScript compiles: pnpm tsc
  2. Tests pass: pnpm test:mocha
  3. Lint passes: pnpm lint (runs ESLint + syncpack)
  4. Format is correct: pnpm check:format (uses Biome)

Key Configuration Files

FilePurpose
package.jsonRoot workspace config, scripts, dependencies
pnpm-workspace.yamlWorkspace package locations
.syncpackrc.ymlDependency version synchronization rules
biome.jsoncCode formatting and organization (extends root)
commitlint.config.cjsCommit message format (conventional commits, sentence-case)
api-extractor-base.jsonShared API Extractor configuration

Each package has:

  • package.json - Package config and scripts
  • tsconfig.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:mocha

Common Tasks

Adding a new flub command

  1. Create command file in packages/build-cli/src/commands/
  2. Commands use oclif framework - extend BaseCommand
  3. Run pnpm build:manifest to update oclif manifest
  4. 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:fix

File 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 definition

Troubleshooting

  • "Cannot find module" errors: Run pnpm install then pnpm build
  • Type errors after dependency changes: Run pnpm clean && pnpm build
  • Lockfile conflicts: Use pnpm install --no-frozen-lockfile only 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.

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.