standard-site
Skill19 starsChanged 6 months agoMITView on GitHub
Convert data into Standard.site AT Protocol lexicon records and validate them against official schemas. Use when creating or verifying site.standard.publication, site.standard.document, site.standard.graph.subscription, site.standard.graph.recommend, or site.standard.theme.basic records — even if the user doesn't name Standard.site directly. Also use when working with AT Protocol blog or article publishing workflows, or when mapping content to standard.site format from other sources.
In this repository21 other files it gives its agents.
- agent-developmentSkill
- angularjs-unit-testingSkill
- ansibleSkill
- argocdSkill
- astryxSkill
- blog-managerSkill
- datadogSkill
- dockerSkill
- github-ciSkill
- githubSkill
- helmSkill
- kubectlSkill
- mcp-builderSkill
- medusajs-developerSkill
- mermaidSkill
- nextjs-developerSkill
- pulumiSkill
- roblox-game-developmentSkill
- sentrySkill
- supabase-developerSkill
- terraformSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
All colors in themes use site.standard.theme.color#rgb (r, g, b as integers 0–255) or site.standard.theme.color#rgba (adds a as integer …
- Very specific: line 51
Map required fields first: Every record must include $type and all required properties.
- Distinctive: line 55
Validate: Run the validation script before finalizing:
- Very specific: line 153
pathmust have a leading slash: Document path should start with / (e.g., /blog/post-slug). - Very specific: line 156
Tags should not have hashtag prefixes: Use "tutorial" not "#tutorial".
- Distinctive: line 157
RGB color values are integers 0–255: Not hex strings, not floats.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Standard.site
Convert data into Standard.site lexicon records for the AT Protocol and validate them against the official schemas.
When to Use
- Creating publication, document, subscription, recommend, or theme records
- Converting blog posts, articles, or other content into standard.site format
- Validating existing records against standard.site lexicon schemas
- Working with AT Protocol publishing workflows that involve standard.site
- Mapping content from other formats (RSS, Markdown, JSON) to standard.site
Lexicons at a Glance
| Lexicon | $type | Required | Optional |
| Publication | site.standard.publication | url, name | icon, description, basicTheme, labels, preferences |
| Document | site.standard.document | site, title, publishedAt | path, description, coverImage, content, textContent, bskyPostRef, tags, links, labels, contributors, updatedAt |
| Subscription | site.standard.graph.subscription | publication | createdAt |
| Recommend | site.standard.graph.recommend | document, createdAt | — |
| Theme | site.standard.theme.basic | background, foreground, accent, accentForeground | — |
All colors in themes use site.standard.theme.color#rgb (r, g, b as integers 0–255) or site.standard.theme.color#rgba (adds a as integer 0–100).
Conversion Workflow
- Identify the target lexicon. Determine which record type the data maps to:
- A blog/site with a URL and name → publication
- An individual article or post → document
- A user following a publication → subscription
- A user endorsing a document → recommend
- Color scheme for a publication → theme (embedded inside publication as
basicTheme)
- Map required fields first. Every record must include
$typeand all required properties. See the quick reference table above. - Add optional fields. Include optional properties when the source data provides them. Do not invent values for missing optional fields.
- Validate. Run the validation script before finalizing:
uv run scripts/validate.py --input record.jsonOr pipe JSON via stdin:
cat record.json | uv run scripts/validate.py --stdin- Fix any errors. The script reports each issue with the property path and expected format. Fix and re-validate until it passes.
Validation
The bundled scripts/validate.py checks records against the standard.site lexicon schemas:
- Detects
$typeand validates against the matching schema - Checks all required properties are present
- Checks property types (string, integer, datetime, blob, at-uri, ref, array, object)
- Checks constraints (maxLength, maxGraphemes, integer ranges for colors)
- Validates nested objects (basicTheme colors, contributors, preferences)
- Supports validating a single record or an array of records
# Validate a single record
uv run scripts/validate.py --input publication.json
# Validate from stdin
echo '{"$type":"site.standard.publication","url":"https://example.com","name":"Test"}' | uv run scripts/validate.py --stdin
# Validate multiple records in a JSON array
uv run scripts/validate.py --input records.jsonOutput is structured JSON to stdout, diagnostics to stderr. Exit code 0 = valid, 1 = invalid, 2 = usage error.
Record Templates
Publication
{
"$type": "site.standard.publication",
"url": "https://example.com",
"name": "Example Blog",
"description": "A blog about technology",
"basicTheme": {
"$type": "site.standard.theme.basic",
"background": { "$type": "site.standard.theme.color#rgb", "r": 255, "g": 255, "b": 255 },
"foreground": { "$type": "site.standard.theme.color#rgb", "r": 31, "g": 41, "b": 55 },
"accent": { "$type": "site.standard.theme.color#rgb", "r": 59, "g": 130, "b": 246 },
"accentForeground": { "$type": "site.standard.theme.color#rgb", "r": 255, "g": 255, "b": 255 }
},
"preferences": { "showInDiscover": true }
}Document
{
"$type": "site.standard.document",
"site": "at://did:plc:abc123/site.standard.publication/3lwafzkjqm25s",
"path": "/blog/getting-started",
"title": "Getting Started",
"description": "Learn how to use Standard.site",
"textContent": "Full text of the article...",
"tags": ["tutorial", "atproto"],
"publishedAt": "2024-01-20T14:30:00.000Z"
}Subscription
{
"$type": "site.standard.graph.subscription",
"publication": "at://did:plc:abc123/site.standard.publication/3lwafzkjqm25s",
"createdAt": "2026-05-19T14:30:00.000Z"
}Recommend
{
"$type": "site.standard.graph.recommend",
"document": "at://did:plc:abc123/site.standard.document/3mbfqhezge25u",
"createdAt": "2026-05-19T14:30:00.000Z"
}Gotchas
- Trailing slashes. The spec says avoid trailing slashes on
url(publication) andsite(document), but some implementations include them. The validator trims trailing slashes before checking — do the same in your code. sitevsurl. In documents,sitepoints to a publication record viaat://URI, or to a publication URL viahttps://for loose documents. Both are valid.pathmust have a leading slash. Documentpathshould start with/(e.g.,/blog/post-slug).publishedAtis required for documents. UnlikecreatedAton subscriptions (optional),publishedAtis required and must be an ISO 8601 datetime.createdAtis required for recommends. Unlike subscriptions where it's optional, recommends requirecreatedAt.- Tags should not have hashtag prefixes. Use
"tutorial"not"#tutorial". - RGB color values are integers 0–255. Not hex strings, not floats. RGBA alpha is 0–100 (percentage), not 0–255.
- All four theme colors are required. A
basicThemewith onlybackgroundandforegroundis invalid —accentandaccentForegroundare also required. basicThemeis embedded in the publication record. It is not a standalone record — it's a nested object insidesite.standard.publication.contentis an open union. Each entry must specify a$type. The validator checks for$typepresence but does not validate specific content formats.maxLengthvsmaxGraphemes.maxLengthcounts UTF-16 code units;maxGraphemescounts user-perceived characters. Both constraints apply simultaneously — a string can violatemaxGraphemeswhile being undermaxLength.
Verification
Standard.site records can be verified against their web presence:
- Publications:
https://{url}/.well-known/site.standard.publicationshould return the publication's AT-URI. For non-root publications, append the path:/.well-known/site.standard.publication/path/to/publication. - Documents: The document's HTML page should include a
<link rel="site.standard.document" href="at://...">tag in the<head>.
Verification is separate from schema validation — a record can be schema-valid but unverified, and vice versa.
Detailed References
Load these when you need full schema details, edge cases, or examples for a specific lexicon:
references/publication.md— Full publication schema, blob handling, preferences, extensibilityreferences/document.md— Full document schema, contributor format, content union, linksreferences/subscription.md— Full subscription schema, AT-URI formatreferences/recommend.md— Full recommend schema, permissionsreferences/theme.md— Full theme schema, RGB/RGBA color types, contrast guidelines
Available Scripts
scripts/validate.py— Validates standard.site records against lexicon schemas. Run withuv run scripts/validate.py --input <file>or--stdin.
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.

