json
Skill1 starsChanged 2 months agoMITView on GitHub
JSON rules for projects following the air-gapped, declarative-first architecture. JSON carries data only — no HTML, no CSS, no styling, no presentation hints. The JSON shape drives the UI because CSS reacts to data presence and absence in the DOM. Use whenever shaping API payloads, schemas, or any content data.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- testdino-hq/google-styleguides-skillstheir own version, first seen Nov 8, 2026
- josegcpa/.agentstheir own version, first seen Sep 4, 2026
- thechandanbhagat/claude-skillstheir own version, first seen Jan 22, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- testdino-hq/google-styleguides-skills★ 15same name
- thechandanbhagat/claude-skills★ 8same name
- josegcpa/.agents★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectureSkill
- cssSkill
- data-flowSkill
- htmlSkill
- javascriptSkill
- namingSkill
- principlesSkill
- pwaSkill
- securitySkill
- sessionSkill
- spaSkill
- testingSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
No HTML: Not as strings, not as escaped markup, not as fragments.
- Distinctive: line 31
No CSS: No style strings, no class names (classes don't exist anyway), no inline style hints.
- Distinctive: line 32
No JavaScript: No function references, no expressions, no template strings.
- Distinctive: line 76
No version-sensitive web-platform features are referenced here — everything used is Baseline Widely available.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
JSON
JSON is the data layer. CSS reacts to data being there or not there. JavaScript carries the data from the network into the DOM. JSON itself contains nothing but the data.
Only these contents are permitted in JSON
- Strings — content text, identifiers, ISO timestamps, URIs
- Numbers — measurements, counts, scores
- Booleans — flags
null— explicit absence- Arrays — ordered collections of the above (or of objects)
- Objects — keyed collections of the above
Only these shapes are permitted
- Object at root. A page payload is an object whose keys map to semantic regions.
- Arrays for list-rendered data — only where the destination is a
<ul>/<ol>/ table. - Flat-as-possible. Nesting is allowed only when the data has genuine hierarchy (a section that contains its own list of items). No nesting for organizational decoration.
Forbidden in JSON
- No HTML. Not as strings, not as escaped markup, not as fragments. Every UI shape is HTML in the project; data is data.
- No CSS. No style strings, no class names (classes don't exist anyway), no inline style hints.
- No JavaScript. No function references, no expressions, no template strings.
- No presentation hints. No
"display": "block", no"hidden": true(use absence or empty value), no"theme": "dark"(theme is CSS, not data). - No layout instructions. Layout is in CSS. JSON does not specify columns, rows, ordering of regions, or spacing.
How CSS sees JSON
CSS does not see JSON. CSS sees the DOM that JavaScript built from the JSON. The chain is:
JSON → api.js → oninput.js → DOM elements with content → CSS reacts via :empty / :has() / :not(:empty)This means:
- An empty JSON value produces an empty DOM element. CSS then hides or shows it via
:empty/:not(:empty). - A missing key produces no element. CSS does not render what does not exist.
- A non-empty value produces a populated element. CSS shows it.
There is no toggle, no flag, no "visible": true. The data itself is the toggle.
Naming keys
Keys map to semantic HTML or to custom element tag names via toTagName(). See the naming skill.
- Page-level keys may map positionally to canonical semantic elements:
pageTitle→h1,intro→p:nth-of-type(1),body→section. - List-row keys become custom element tag names via
toTagName(). A keyproductNamebecomes a<product-name>element inside a row. - Keys never imply CSS classes (classes don't exist).
Single source of truth
A field appears in exactly one place in the JSON. The DOM element rendered from it is the single source of truth for that field's display state. Form-state utilities like hasUnsavedChanges() read the DOM, not a parallel JS object.
Shell vs. page payloads
Shell content (header, nav, footer, meta) is fetched once per runtime session from the shell endpoint. Page content (home, about, products, events, contact) is fetched per nav change. The JSON shape of each is independent — shell payloads do not contain page data and vice versa.
Schema
A schema is an external description of permitted keys, types, and constraints for a payload. Schemas live in .json files alongside the data they describe. Schemas do not contain HTML, CSS, or JavaScript.
Baseline & support
Checked against MDN as of 2026-07-16.
- No version-sensitive web-platform features are referenced here — everything used is Baseline Widely available.
Canonical rules: https://github.com/Autocss-com/ai/blob/main/AGENTS.md
References
references/shape.md— minimal page payload, shell payload, list payload examplesreferences/forbidden.md— examples of JSON that violate the rules and why../css/references/reactivity.md— how:emptyand:has()map to JSON value presence (canonical CSS-side reference)- JSON specification: https://www.json.org/
- JSON Schema (when stricter validation is needed): https://json-schema.org/
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.

