agentleFS
caoergoucaoergou/windows-xp/AGENTS.md

windows-xp

AGENTS.md5 starsChanged 4 months agoMITView on GitHub

This is the high-level overview (similar in role to CLAUDE.md): it only explains what the project is, the three core principles, and "where to find the detailed rules". Do not pile concrete rules into this file — each rule has its proper home (see the doc map). An embeddable, customizable, scriptable Windows XP desktop engine npm package (@caoergou/windows-xp), not a one-off simulator page. Target scenarios: personal homepage shell, brand marketing pages, web puzzle games, nostalgia content sites, teaching sandbox (scenario-by-scenario…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 32,671 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.

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not add visuals/interactions that XP did not have (modern rounded corners, soft shadows, edge snapping, smooth scrolling).

    line 36
  2. Very specific:

    No new window-level listeners, bare global CSS selectors, or module-level singletons.

    line 38
  3. Very specific:

    Do not add new @ts-nocheck / any.

    line 42
  4. Distinctive:

    All user-facing copy must be i18n keys.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 41,581 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.

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

AGENTS.md — Project Overview & Core Principles

This is the high-level overview (similar in role to CLAUDE.md): it only explains what the project is, the three core principles, and "where to find the detailed rules". Do not pile concrete rules into this file — each rule has its proper home (see the doc map).

Project Positioning

An embeddable, customizable, scriptable Windows XP desktop engine npm package (@caoergou/windows-xp), not a one-off simulator page. Target scenarios: personal homepage shell, brand marketing pages, web puzzle games, nostalgia content sites, teaching sandbox (scenario-by-scenario requirements are derived in docs/USE-CASES.md).

Platform-level vision (#143 RFC, docs/OS-PLATFORM-VISION.md): the engine gradually decouples from "XP"; the OS itself becomes a definable package — XP is the first and default OS package. Until then, the fidelity-first principle remains unchanged.

Three Core Principles (in priority order)

  1. Fidelity first: faithfully reproduce XP, do not produce a "modernized" version. Every visual/interaction decision should map to a counterpart in XP (screenshot, screen recording, or reference implementation); do not "beautify" on your own, even if it looks better. The only exception is accessibility improvements (keyboard reachability, ARIA), and these must not change the visual presentation.
  2. Package-first (embedding-safe): any code may run inside someone else's application. Do not add new global side effects, do not hijack the host page, and storage must always go through the prefixed utility layer.
  3. Mechanism and content separation: desktop content (files, shortcuts, story, cultural elements) is described with declarative data; components only implement mechanisms. Test: adding one piece of content should not require writing React code.

Doc Map

You want to know…Go here
Consumer API: props, events, ref, subpath imports, content/culture package authoringUSAGE.md
Architecture, directory structure, dev commands, how to add an app/fileCLAUDE.md
What a visual/interaction looks like in real XP, how far it is now, authoritative token values for colors/fontsFIDELITY.md (§K.1 token table, every value with source)
How to write code: component conventions, quality red lines, i18n, Easter-egg policy, pre-commit checklistdocs/DEVELOPMENT.md
Workflow: how to run checks, open PRsCONTRIBUTING.md
Roadmap, shipped baseline, and future issue policydocs/ROADMAP.md + docs/OS-PLATFORM-VISION.md
What each of the five usage scenarios needs (blog/marketing/game/nostalgia/teaching)docs/USE-CASES.md
Mechanism → event → orchestration derivation for the puzzle gamedocs/PUZZLE-DESIGN.md
Scenario/content-pack pattern library (lint-adjudicated recipes) + recorded drafting sessiondocs/SCENARIO-PATTERNS.md, docs/SCENARIO-AUTHORING-WALKTHROUGH.md, skill: .claude/skills/scenario/
Narrative-craft research corpus (jubensha × detective fiction, experience→pattern mapping)docs/MYSTERY-DESIGN-RESEARCH.md
Multi-OS / custom OS platform architecturedocs/OS-PLATFORM-VISION.md
July 2026 full audit (current state, gaps, issue index)docs/PROJECT-ANALYSIS-2026-07.md

Top Ten Most Frequently Violated Red Lines (quick reference)

  1. Do not add visuals/interactions that XP did not have (modern rounded corners, soft shadows, edge snapping, smooth scrolling).
  2. Colors/fonts must use the token values in FIDELITY.md §K.1, no ad-hoc color values; for Chinese fonts prefer Songti (YaHei is Vista+).
  3. No new window-level listeners, bare global CSS selectors, or module-level singletons.
  4. localStorage/IndexedDB must go through the storagePrefix-aware utility layer.
  5. Window componentProps must be serializable (the key to refresh recovery).
  6. Non-DOM props on styled-components must be prefixed with $.
  7. Do not add new @ts-nocheck / any.
  8. All user-facing copy must be i18n keys; hardcoded Chinese or English is forbidden.
  9. Sounds must go through the soundManager event mapping; new Audio is forbidden.
  10. PRs that change interaction/style must update the corresponding entry status in FIDELITY.md.
  11. Mechanism and "the XP look" must be layered (preparation for #143): engine directories (context/hooks/utils/events.ts/snapshot.ts) must not contain color literals, xp.css dependencies, or XP-specific chrome assumptions — guard:purity is enforced in CI.
  12. Inline hex colors are zero outside the two sanctioned stores (guard:purity, HEX_BASELINE = 0): OS-chrome colors live in src/themes/xp/tokens.ts (COLORS/FONTS), app-identity colors live in declared brand-palette blocks (allow-listed files only — see docs/THEMING.md). New app menus pass structured data to XPMenuBar, never hand-roll menu DOM (paving the way for #128 menus: migration).

Reference Resources

  • FIDELITY.md appendix lists all authoritative references (xp.css, winXP, system color对照表 / system color mapping table, sound scheme documentation).
  • Final arbiter: real Windows XP SP3 virtual machine testing.

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.