pixtuoid / site
AGENTS.md485 starsChanged 59 days agoMITView on GitHub
The landing page: a self-contained Astro static site (NOT Rust) → GitHub Pages. A consumer of the Rust workspace's outputs — version, rendered docs, demo media all flow in from outside site/. Parent guide: the workspace ../AGENTS.md. Human detail: README.md. You are in the Astro consumer, not the Rust producer. Rust house rules (cargo/clippy, just preflight, the crate CI gates) do not apply to a site-only change. The gates here are just site-check (+ just site-fmt) and just site-e2e. astro…
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,691 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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-sourceSkill
- add-themeSkill
- beautify-decorationSkill
- local-reviewSkill
- procedural-lofiSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 55
Every generated artifact, manifest seam, and rendered-copy sharp edge: SINGLE-SOURCED.md — read it before touching this area.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
site — agent guide
The landing page: a self-contained Astro static site (NOT Rust) →
GitHub Pages. A consumer of the Rust workspace's outputs — version, rendered
docs, demo media all flow in from outside site/. Parent guide: the workspace
../AGENTS.md. Human detail: README.md.
You are in the Astro consumer, not the Rust producer. Rust house rules (
cargo/clippy,just preflight, the crate CI gates) do not apply to a site-only change. The gates here arejust site-check(+just site-fmt) andjust site-e2e.
Cross-boundary build inputs (the coupling that bites)
astro build reads these files from OUTSIDE site/ (workspace
Cargo.toml + the docs/ pages below); a rename/move of any FAILS the
build:
- workspace
Cargo.toml→ displayed-version FALLBACK only; the primary source is the latest release tag (config/released-version.mjs, unit-tested — main runs ahead of the released version mid-cycle). Both workflows checkout withfetch-depth: 0.pages.ymldeploys on push tomain, not on tag push, so a fresh tag shows after the nextmaincommit or aworkflow_dispatch. docs/{CONFIGURATION, ARCHITECTURE, CONTRIBUTING, PARALLEL-DELIVERY}.md→ rendered routes via glob loaders insrc/content.config.ts. Adding, renaming, or REMOVING a rendered doc is a multi-point edit: glob pattern,src/pages/*.astro, theDOCSentry inconsts.ts(Nav.astroandDocs.astro's sidebar/pager derive from it;assert-docs-renderedis generic by design — it globs every renderedarticle.prose— and needs no edit),lighthouserc.json, and the smoke viewport table.
public/wasm/ is gitignored just gen-wasm output; without it the office
silently stays on its poster. public/demos/ is gitignored too:
just gen-media --only site renders it locally (before a build or dev server,
which astro.config.mjs's demoAssets() fails on a missing demo, and before
test:demos), and CI renders it per build.
The architecture diagram renders at build, in process
(config/rehype-beautiful-mermaid.mjs — no browser); Playwright's Chromium is
installed only for site.yml's e2e step. The empty-render class is
gated by config/assert-docs-rendered.mjs (check:docs), whose header owns
the mechanism; pages.yml's pins carry their own.
Docs shell: the doc routes (the DOCS manifest in consts.ts is the
roster) mount the Statusline doc variant (no PR feed fetch); Docs.astro's
sidebar reads the one FLOORS manifest.
Blockquotes promote to terminal callouts (config/rehype-callouts.mjs,
unit-tested, registered AFTER rehypeRepoLinks). Adding a .prose colour rule
needs a twin under .callout__body — the specificity arithmetic and its
theme-prefixed tie are on the rule itself in Docs.astro, and the smoke
suite's callout AA sweep grades it.
Single-sourced content
Every generated artifact, manifest seam, and rendered-copy sharp edge:
SINGLE-SOURCED.md — read it before touching this area.
CSP (hash-based, two coordinated halves in astro.config.mjs)
cspInlineHashes() in astro.config.mjs owns the WHY; config/csp-hashes.mjs
owns the parse. The rules a page author needs: an is:inline script needs NO
manual CSP step; a hand-written public/*.js loaded by URL rides
script-src 'self'; style-src must stay hash-free (one hash disables
unsafe-inline for the directive, and inline style ATTRIBUTES cannot be hashed —
so keep Prism's class-based highlighting, not Shiki). astro dev serves NO
CSP; regressions surface in just site-e2e's console watchdog.
Dev server (agent-driving)
just site-dev-bg daemonizes (astro dev --background, polls the dev-only
/_astro/status endpoint); just site-dev-stop frees the port. Two edges:
the status endpoint is dev-server only (astro 7.3.4's core/create-vite.js registers it
under command === "dev"; astro preview daemonizes too but has nothing to
poll), and dev/preview share port 4321 — stop the
daemon before just site-e2e (its webServer fails loud on a squatted port).
npm run lighthouse needs 4321 AND collect.previewPort free: its preview
moves there so the gzip proxy can take the audited port.
Gates
just site-check = npm run verify (format:check → lint → check → knip →
test:unit → test:demos → build → check:docs → audit). just site-e2e = Playwright vs the
PRODUCTION build — the runtime-contract tier (__pixLights/pix:onair/
data-lit seams, scrollspy keys, docs-nav variant, reduced-motion, console
watchdog) that tsc/knip/build are blind to. CI: site.yml / pages.yml.
- Lighthouse (
npm run lighthouse, in-repo runnerconfig/lighthouse-runner.mjs, lighthouse 13 programmatic API, median of three serial runs; runner-semantics pinned by its test — a renamed audit FAILS instead of passing vacuously). A category score is a budget, not a contract:color-contrastis a small weight in the a11y category, so a total contrast failure still clears the category budget — anything that must never regress gets its own per-audit assertion withaggregationMethod: pessimistic(median greens a binary audit that failed one run). Collect URLs pin?theme=day(otherwise the wall clock picks the palette — half of CI runs would audit each). The theme matrix issmoke.spec.ts(day/night/dracula), not a doubled collect list. The audit runs THROUGHstartPagesLikeProxy, which gzips the wasm as GitHub Pages does andastro previewdoesn't: at Lantern'smobileSlow4Gthroughput,interactive/LCP are BYTE budgets. They andspeed-indexwere sized once (#1124): wasm padded tojust gen-wasm-check's cap, plus run spread. - Fonts: Fontsource WOFF2 with
font-display: optional+ preloads — do not switch to the defaultswap(Ubuntu cold visits reflow past the CLS budget;font-layout.spec.tsreproduces it deliberately). - npm:
auditruns LAST inverify(a live advisory would short-circuit the checks below it — #847/#849) but FIRST inpages.yml(that one ships). npm 12 pinned (packageManager+engine-strict); install scripts fail-closed (strict-allow-scripts, exact-versionallowScripts, explicitfseventsdenial) — review withnpm install-scripts ls. - Nothing gates a STALE
overridesentry: to retire one, fresh-resolve--package-lock-onlyin a scratch dir with and without it and diff thepackagesmaps —npm auditcannot clear an entry (the retiredchrome-launcherpin guarded a chain no advisory covered).
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.

