scope / website
AGENTS.md7 starsChanged 2 months agoMITView on GitHub
Project context for AI coding agents working on scope-doc, the Starlight-based documentation site for Scope. A static documentation site published to GitHub Pages. - Framework: Astro 6.x + @astrojs/starlight - Package manager: pnpm (pinned via packageManager in package.json) - TypeScript strict - Lives under the website/ directory of the repo (all site sources, config, and package.json are rooted here; run every command from website/) - Deployed by .github/workflows/static.yml (build + deploy jobs), which builds from website/ via a working-directory default…
- Installs packages
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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cosmosdb-mongodbSkill
- documentationSkill
- resilienceSkill
- rust-best-practicesSkill
- scope-apiSkill
- scope-cliSkill
- storybookSkill
- typescriptSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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
- Very specific: line 20
Do not derive these from actions/configure-pages outputs, which can report an isolated hostname instead of the public project URL.
- Distinctive: line 71
Use this map as a starting point.
- Very specific: line 89
When in doubt, grep scope-core for the symbol or string before writing anything in the docs.
- Very specific: line 126
Write a single fenced `http block containing a raw HTTP request.
- Distinctive: line 154
Don't duplicate the per-endpoint detail there.
- Very specific: line 158
Use site-root paths such as /getting-started/access/ in Markdown links and literal MDX href/src attributes.
- Distinctive: line 161
Do not hard-code the deployment prefix in content or code examples.
- Very specific: line 205
If a date can't be confirmed, leave date out.
- Distinctive: line 218
Don't surround filenames with backticks in the rendered text — use a markdown link to the file when it exists in the repo.
- Very specific: line 250
Read the relevant file in scope-core (schemas first, then route handlers).
- Distinctive: line 254
If the answer is still ambiguous, ask the user.
- Distinctive: line 256
Never invent endpoints, statuses, or field names to fill a gap — silence is better than a confident lie that ships.
≈ “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
Project context for AI coding agents working on scope-doc, the Starlight-based documentation site for Scope.
What this repo is
A static documentation site published to GitHub Pages.
- Framework: Astro 6.x + @astrojs/starlight
- Package manager: pnpm (pinned via
packageManagerinpackage.json) - TypeScript strict
- Lives under the
website/directory of the repo (all site sources, config, andpackage.jsonare rooted here; run every command fromwebsite/) - Deployed by
.github/workflows/static.yml(build + deploy jobs), which builds fromwebsite/via aworking-directorydefault andwebsite/**path filters; both PR and production builds explicitly useSITE=https://microsoft.github.ioandBASE_PATH=/scope. Do not derive these fromactions/configure-pagesoutputs, which can report an isolated hostname instead of the public project URL. Local development keeps localhost and/defaults.
Where things live
src/content/docs/— all user-facing pages (.mdand.mdx)introduction/,getting-started/,guides/,reference/,resources/,community/
src/content/articles/,src/content/talks/— one YAML file per published article / talk, schema-validated by thearticlesandtalkscollections insrc/content.config.ts(see "Articles & talks" below)src/components/community/—ArticleList,TalkList,TalkCard, andCommunityTeaser(the landing-page section), all reading those collections- Sidebar order is defined in
astro.config.mjs, not by directory order
- Sidebar order is defined in
src/components/SiteFooter.astro— the site-wide footer (brand, link columns, Microsoft legal links). It is injected after<main>by theTwoColumnContentoverride insrc/components/TwoColumnContent.astro, so it is a page-levelcontentinfolandmark and stays out of the Pagefind index. Keep its internal links pointing at pages that exist in the sidebar.src/openapi/scope-openapi.json— committed artifact generated from the Scope API's OpenAPI registry; drives the auto-generated REST API referencesrc/plugins/remark-http-snippets.mjs— custom remark plugin that expands fenced```httpblocks into multi-language Starlight<Tabs>(curl, JS fetch, Python, Go, Java, C#)src/plugins/remark-base-path.mjs: prefixes internal Markdown URLs and literal MDXhref/srcattributes with the configured deployment baseastro.config.mjs— sidebar, plugins,markdown.remarkPlugins,starlight-openapiconfigdist/— build output (gitignored)
The source of truth: scope-core
The product itself lives in the scope-core repository. When writing docs, read scope-core before writing any factual claim. Everything in the documentation \u2014 endpoints, field names, statuses, worker IDs, behaviors, defaults, error messages, anything \u2014 MUST be grounded in the source code. Do not invent. If the source doesn't say it, it doesn't go in the docs; ask the user or leave it out.
Where to look in scope-core
Anything that comes from the source — endpoints, field names, status enums, defaults, validation rules — must be read from scope-core at the time you write it, not copied from this file. Use this map as a starting point; do not treat it as a substitute for opening the file.
| Topic | File(s) in scope-core |
| Workers (allowed IDs, validation) | packages/shared/src/schemas/request.ts (VALID_WORKERS) |
| Worker display names / labels | the "name" field in each worker's agent registration (upsert) payload (e.g. "GitHub Copilot CLI", "Claude Code CLI", "VS Code Copilot") |
| Worker software stacks (pre-installed tools) | apps/workers/*/src/test-worker.ts — the checkTools([...]) array lists every runtime and build tool baked into the container image |
| Request payload, scenario shape | packages/shared/src/schemas/request.ts (CreateRequestInputSchema, ScenarioSchema) |
| Request status / outcome enums | packages/shared/src/schemas/request.ts (RequestStatusSchema, RequestOutcomeSchema) |
| Request lifecycle / scheduler | apps/api/src/index.ts, docs/architecture/queue-scheduler.md |
| Profile + version schemas | packages/shared/src/schemas/profile.ts |
| Criterion schema, DAG rules | packages/shared/src/schemas/criteria.ts |
| Route handlers, validation, error codes | apps/api/src/routes/*.ts |
| VS Code worker behavior | docs/architecture/vscode-electron-worker.md, vscode-web-worker.md, worker-requirements.md |
| OpenAPI source | apps/api/src/openapi/registry.ts; generated snapshot at src/openapi/scope-openapi.json |
| Swagger UI | served by the API; check apps/api/src/index.ts for the route |
When in doubt, grep scope-core for the symbol or string before
writing anything in the docs.
Standing user rulings
These are decisions the user has made that override what the source code might suggest. Honor them until the user says otherwise.
Workers we document
coder-acp-copilot— GitHub Copilot via ACPcoder-acp-claude-code— Anthropic Claude Code via ACP custom driver extension. This is the VS Code worker we document.
Copilot Chat) worker is deprecated — do not list it in
user-facing docs even if it still appears in VALID_WORKERS.
Criteria
Criteria are DAG-only. There is no "flat checklist" mode in
the product. A criterion with no dependsOn is just a root of
the graph. Reflect this framing in every doc that mentions
criteria.
Documentation conventions
File extensions
.mdfor plain Markdown..mdxwhenever the page contains JSX (e.g. uses Starlight<Tabs>).- Files with
```httpblocks must be.mdxbecause the remark plugin expands them into JSX.
HTTP examples
Write a single fenced ```http block containing a raw HTTP
request. The plugin auto-generates synced curl / JS fetch / Python /
Go / Java / C# tabs at build time.
```http
POST /api/v1/requests
Content-Type: application/json
{ "scenario": { "task": "...", "criteria": ["..."] } }
```To add languages: edit the TARGETS array in
src/plugins/remark-http-snippets.mjs.
Plain JSON examples (response shapes, profile config) stay as
```json — they're not requests.
REST API reference page
- Link to
/reference/api/for the generated reference landing page./reference/api/operations/is not a page. - Auto-generated per-endpoint pages live under
/reference/api/...(built fromsrc/openapi/scope-openapi.jsonbystarlight-openapi). - The hand-written
reference/rest-api.mdis a narrative overview with cross-links to the auto-generated pages and the live Swagger. Don't duplicate the per-endpoint detail there.
Internal links
Use site-root paths such as /getting-started/access/ in Markdown links
and literal MDX href/src attributes. The base-path remark plugin adds
/scope in the public build while keeping local root deployments working.
Do not hard-code the deployment prefix in content or code examples.
Sidebar
Sidebar order is set in astro.config.mjs. Adding a new page
requires updating the sidebar array. The auto-generated REST API
groups are spread via ...openAPISidebarGroups.
Articles & talks
The community/articles-and-talks page and the "From the community"
section on the landing page are generated from two content
collections. To add an entry, add one YAML file. No code changes are
needed.
- Article:
src/content/articles/<title-slug>.yamltitle: Building AX evals that actually work url: https://developer.microsoft.com/blog/building-ax-evals-that-actually-work/ publication: Microsoft for Developers # blog name authors: # as credited, byline order - firstName: Waldek lastName: Mastykarz position: Principal Developer Advocate date: 2026-07-15 # publish date (optional) - Talk:
src/content/talks/<yyyy-mm-dd>-<event-slug>.yamltitle: "From Findings to Fixes: ..." speakers: # same shape as authors - firstName: Jay lastName: Gordon position: Senior Program Manager, Azure Cosmos DB event: Global AI New York venue: Microsoft Lafayette, New York City date: 2026-09-21 eventUrl: https://globalai.community/e/783bfa20 # GAIC event page youtubeId: SxaKOmqX-rk # omit while pending
Take title, blog name, authors (name and position from the article's
author section), and publish date from the article page itself.
Take speaker positions from the event page or the speaker's event
profile (e.g. their Luma bio).
If a date can't be confirmed, leave date out; undated articles
sort last. A talk without youtubeId shows "Video coming soon".
Both lists sort newest first. A missing field, bad URL, or bad date
fails pnpm run build. Article and event links are external, so the
components open them in a new tab (target="_blank"
rel="noopener noreferrer") with a screen-reader "(opens in a new
tab)" hint; keep that pattern for any new external link.
Style
- Hard-wrap prose at ~70–80 columns for readable diffs.
- Backtick code identifiers (
workerType,coder-acp-copilot,POST /api/v1/requests). - Don't surround filenames with backticks in the rendered text — use a markdown link to the file when it exists in the repo.
- Terminology: request (what you submit), run (one execution attempt of a request), task prompt (de-duplicated text), criterion (single record in the criteria DAG), profile (versioned agent runtime config).
Build, lint, test
pnpm install
pnpm test # plugin regressions, using Node's built-in test runner
pnpm run build # writes dist/
pnpm run dev # local preview at http://localhost:4321
pnpm run refresh:openapi # generate the OpenAPI snapshot from scope-coreBoth pnpm test and pnpm run build must pass. The public build uses
SITE=https://microsoft.github.io BASE_PATH=/scope pnpm run build;
exercise that configuration when changing links or deployment settings,
not just the local / default. The current snapshot produces 203
pages, including the generated API reference. An unexpected drop in
page count can indicate a content collection file failed to parse.
Workflow
- Each logical change is its own commit. Push to refresh the PR; CI rebuilds and redeploys to GH Pages.
mainis protected — open a PR, don't push directly.
When in doubt
- Read the relevant file in scope-core (schemas first, then route handlers).
- Generate the OpenAPI snapshot with
pnpm run refresh:openapiand inspectsrc/openapi/scope-openapi.json. - If the answer is still ambiguous, ask the user. The user is the product owner and will know intent.
- Never invent endpoints, statuses, or field names to fill a gap — silence is better than a confident lie that ships.
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.

