agent-adoption-advisor
Copilot instructions2 starsChanged 5 months agoMITView on GitHub
A fully client-side, deterministic questionnaire that helps enterprise teams pick the right Microsoft agent approach. No backend, no telemetry, no LLM, no auth. Vite + React 18 + TypeScript SPA. Data flows one direction: YAML content → compiled JSON → pure scoring engine → React UI. 1. Content is authored once, in content/content.yaml (single source of truth). SMEs edit questions, approaches, and scoring rules here. 2. Build step (scripts/build-content.ts) compiles it to public/content.json. The browser NEVER parses YAML — src/ui/useContent.ts…
The file
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 12
Run a single test file: npx vitest run src/engine/score.test.ts.
- Very specific: line 13
Run tests matching a name: npx vitest run -t "disqualifier".
- Very specific: line 34
No DOM, no Date, no Math.random, no I/O — same inputs always produce byte-identical output.
- Distinctive: line 56
If you add/reorder questions, old links intentionally stop decoding.
- Very specific: line 60
When changing content shape, update all three in lockstep: content/content.yaml, the TypeScript types in src/engine/model.ts, and …
≈ “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
Agent Adoption Advisor
A fully client-side, deterministic questionnaire that helps enterprise teams pick the right Microsoft agent approach. No backend, no telemetry, no LLM, no auth. Vite + React 18 + TypeScript SPA.
Commands
npm run dev— dev server (runscontent:buildfirst viapredev).npm run build— full gate:content:build→content:validate→tsc --noEmit→vite build.npm test— run the Vitest suite once.npm run test:watchfor watch mode.- Run a single test file:
npx vitest run src/engine/score.test.ts. - Run tests matching a name:
npx vitest run -t "disqualifier". npm run typecheck—tsc --noEmit.npm run content:build— compilecontent/content.yaml→public/content.json.npm run content:validate— schema + semantic validation of the compiled JSON.npm run explain— print routing results for representative scenarios (reviewer sanity check).
Architecture
Data flows one direction: YAML content → compiled JSON → pure scoring engine → React UI.
- Content is authored once, in
content/content.yaml(single source of truth). SMEs edit questions, approaches, and scoring rules here. - Build step (
scripts/build-content.ts) compiles it topublic/content.json. The browser NEVER parses YAML —src/ui/useContent.tsfetches the compiled JSON. Do not add a YAML parser to the client, and do not hand-editpublic/content.json(it is git-ignored and regenerated). - Validation gate (
scripts/validate-content.ts) runs in the build. Layer 1 is JSON Schema (schema/content.schema.json); layer 2 issrc/content/validate.ts, which catches things the schema can't: dangling rule references, duplicate ids, orphan rules, mis-ordered confidence thresholds. A bad SME edit must break the build here. - Scoring engine (
src/engine/score.ts) is a PURE functionscore(answers, content). No DOM, noDate, noMath.random, no I/O — same inputs always produce byte-identical output. Ordering is stabilized with anapproachIdtie-break. Preserve this purity; it is what makes a recommendation defensible and testable. - UI (
src/ui/,src/App.tsx) is a thin layer over the engine. Routing between the split questionnaire view and the print one-pager is done by reading?view=and?state=off the URL — there is no router library.
Key conventions
.jsextensions in relative imports even though the source is.ts/.tsx(e.g.import { score } from './engine/score.js'). Keep this — it matches the ESM/module: ESNextsetup. Do not drop the extension.- Scoring rule vocabulary (see
src/engine/model.ts):weightsare soft nudges,disqualifiersare hard blocks,requiredPrereqsgate an approach on a specific answer (unanswered → recorded as an assumption, not a disqualification),strongFitsgive a decisive bonus. Confidence is downgrade-only and forced tononewhen the top fit is below the floor — a wide margin between two poor options is NOT confidence. - Presentation copy lives in pure helpers (
src/ui/present.ts), not inside components, so screen and print one-pager render byte-identical text and stay unit-testable without a DOM. - Shareable state (
src/state/encode.ts) is compact, positional, and non-PII: one digit per question, version-stamped. Decoding is defensive and REJECTS state from a different content version (positional digits are only meaningful against the version that produced them). If you add/reorder questions, old links intentionally stop decoding. - Vitest environment is
nodeby default (vite.config.ts). Component tests that need a DOM opt in per-file with a// @vitest-environment jsdomcomment on line 1.jsdomis pinned to v24 on purpose (v25+ pulls an ESM-only CSS parser that breaks under Node 21). - When changing content shape, update all three in lockstep:
content/content.yaml, the TypeScript types insrc/engine/model.ts, andschema/content.schema.json.
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.

