just
AGENTS.md2k starsChanged 4 months agoMITView on GitHub
Just is a Microsoft build task organization library for JavaScript/TypeScript projects. It provides a task runner (just-task) and preset build scripts (just-scripts) for common workflows (TypeScript, Webpack, Jest, ESLint, etc.). DO NOT run jest directly. You MUST run yarn test (which wraps jest and takes all the same args) from the specific package to ensure the correct environment is set up. Built on Undertaker (Gulp's task orchestrator). Key modules in packages/just-task/src/: Task functions can: return a Promise, call a done…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- beachball-change-fileSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
DO NOT run jest directly. You MUST run yarn test (which wraps jest and takes all the same args) from the specific package to ensure the …
- Very specific: line 54
Use /beachball-change-file to generate a Beachball change file.
- Very specific: line 55
If you're working on an assigned GitHub issue, include Fixes #N in the PR description to link the issue.
- Very specific: line 82
Test files in src//__tests__/*.(test|spec).ts
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md
This file provides guidance to AI agents when working with code in this repository.
Project Overview
Just is a Microsoft build task organization library for JavaScript/TypeScript projects. It provides a task runner (just-task) and preset build scripts (just-scripts) for common workflows (TypeScript, Webpack, Jest, ESLint, etc.).
Branches
v2: the current stable release branch fromjust-*@latestand the doc site are published.main: contains development work for the next major release ofjust-*, version 3. Breaking changes are allowed if necessary.
Monorepo Structure
- Yarn v4 workspaces with Lage for task orchestration
- Workspaces:
packages/*andscripts/ - Three packages:
packages/just-task— Core task runner (CLI:npx just <task>, config:just.config.ts)packages/just-scripts— Preset task functions (tscTask,jestTask,webpackTask, eslintTask, etc.)packages/just-example-lib— Example/integration test project
Common Commands
yarn build # Build all packages (via Lage)
yarn test # Run all tests (via Lage)
yarn lint # ESLint on packages/ (.ts,.js)
yarn api:update # Update API reports for all packages
yarn format # Prettier write
yarn format:check # Prettier check (CI uses this)
yarn change # Create Beachball change file (required before PR)Running a single package's tests
DO NOT run jest directly. You MUST run yarn test (which wraps jest and takes all the same args) from the specific package to ensure the correct environment is set up.
cd packages/just-task && yarn test # Run just-task tests
cd packages/just-task && yarn test --testPathPattern=cache # Run specific test fileRequired before each commit
yarn buildyarn testyarn lintyarn formatyarn api:update
Required before creating a PR
- Use
/beachball-change-fileto generate a Beachball change file. - If you're working on an assigned GitHub issue, include
Fixes #Nin the PR description to link the issue.
Architecture
Task System (just-task)
Built on Undertaker (Gulp's task orchestrator). Key modules in packages/just-task/src/:
task.ts—task(name, fn)registration; supports prerequisite chainingundertaker.ts— Wraps Undertaker with event-based colored logging and perf trackingcli.ts— CLI entry point; resolves config file and bootstraps tasksconfig.ts— Config resolution:just.config.{js,cjs,ts,cts}orjust-task.jschain.ts—before()/after()hooks for task compositionoption.ts— CLI argument parsing with yargs-parser
Task functions can: return a Promise, call a done callback, or return a stream. Composition via series() and parallel() from Undertaker.
Preset Tasks (just-scripts)
packages/just-scripts/src/tasks/ contains factory functions that return task functions: tscTask(), jestTask(), webpackTask(), eslintTask(), prettierTask(), copyTask(), esbuildTask(), nodeExecTask(), etc.
Code Style
- TypeScript target:
es2019, module:commonjs, strict mode - Prettier: 120 print width, single quotes, trailing commas, 2-space indent
- Tests:
- Jest with ts-jest
- Test files in
src/**/__tests__/*.(test|spec).ts - Functions such as
describe,it,expectmust be imported from@jest/globals(they are not implicitly available)
- Each package compiles to
lib/directory
CI / Release
- PR checks: format:check → lint → build/test/api (Ubuntu + Windows, Node 22)
- Release: Beachball publish (manual trigger), docs deployed to GitHub Pages
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.

