The instructions any model gets before it writes or edits an article here: the calls, the object, the widgets, the ontology and the house style. The Markdown copy at /a/json-article-writing-skill.md is the skill file itself.
Writing JSON articles for miscsubjects.com
An article is one JSON object. The site draws the page (/a/<slug>), the Markdown (/a/<slug>.md) and the machine copy (/a/<slug>.json) from it. You never write HTML. Read the live guide first: https://miscsubjects.com/a/json-articles-how-they-work (its JSON view shows the whole object behind it).
create (body = the article). 409 if the slug exists
GET /api/jarticles/<slug>
read whole, with hash
PATCH /api/jarticles/<slug> + if-match: <hash>
change pieces: {"ops":[{"op":"set","path":"facts.a.b","value":1}]}; ops: set, merge, delete, append, insert (path is a list index like body[2]), move (from → path); if_piece = sha256 of that piece from /at makes one op conditional
PUT /api/jarticles/<slug> + if-match
replace whole
GET /api/jarticles/<slug>/at?path=facts.x
one piece + piece_hash
GET /api/jarticles/<slug>/grep?q=<regex>
matches with the path to edit each; GET /api/jarticles/grep?q= across all
POST /api/jarticles/<slug>/verify
fetch every source URL, store snapshot_sha256, quote_found
the look; every variable listed at /article-theme.json
GET /api/jarticles/models
the OpenRouter catalog (ids for model/comment widgets)
GET /schemas/jarticle.json
the schema
A 412 means someone changed it after you read it: read again, reapply, resend. Never retry blindly.
The object
json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"slug": "ca-sr1-accident-report", // /a/<slug>; lowercase, digits, dashes
"title": "Report a car accident to the California DMV (SR-1)",
"kind": "procedure", // badge: person, house, company, procedure, vertical, model, place…
"status": "draft", // "published" only after verify passes
"summary": "One or two sentences. Also the text on this article's card elsewhere.",
"tags": ["dmv", "california"],
"facts": { "authority": {"name": "California DMV", "url": "https://www.dmv.ca.gov"}, "deadline_days": 10, "fee_usd": 0 },
"card_fields": ["deadline_days", "fee_usd"], // what a card of this article shows (≤6 paths under facts)
"ontology": { "above": ["vertical-dmv-vehicle-administration"], "below": [], "adjacent": ["ca-vehicle-damage-claim"], "nested": [], "show_position": false },
"body": [ "Markdown…", {"type": "json", "ref": "#facts"}, "More Markdown…" ],
"sources": [ { "url": "https://www.dmv.ca.gov/…", "title": "…", "publisher": "California DMV", "source_type": "official_agency", "quote": "the exact words on the page that support a fact" } ],
"comments": []
}
Line 14, Column 1JSON
The build adds schema, created, updated, version, hash, a source id and quote_sha256 for each source.
Body
body is a Markdown string or a list of blocks (a block is Markdown, {"md":"…"}, or a widget object). Marks: bold, italic, ` code, words, slug / words (link), ## heading, > quote, lists, | tables |`. On a line of its own:
![[slug]] or ![[slug|relation]] — that article as a card (Obsidian transclusion)
![[slug#facts.path]] — one piece of that article as a JSON widget
[[widget:<id or n>]] — widgets[n] or the widget with that id
A house holds facts.residents: ["person-slug"] and ![[person-slug|lives here]] in its body; the person holds facts.home: "house-slug" and {"type":"article","slug":"house-slug","relation":"home"}. Each card is read live from the other's object: one copy of every fact. Example pair: /a/example-house-14-cypress-lane and /a/example-person-dana-reyes.
Ontology
above = broader (the vertical, the parent procedure). below = narrower. adjacent = beside (same event, alternative path). nested = drawn inside this one as cards at the end. Links stay in the JSON; the page shows no link lists unless show_position: true.
House style (the owner's law)
Public articles contain the subject matter and supporting sources. Never put internal AI mistakes, hallucinations, abandoned interpretations, correction narratives, agent status, or research-process commentary in article prose or widgets.
Plain English. Name every thing by what it is. Short sentences. No marketing tone, no filler, no "in today's world".
Data only, never editorial: no scores, rankings, recommendations, advice, pitches or letters.
No invented numbers. A value no source states is the string "UNKNOWN". Every number has a source.
Every fact a reader could check has a source with the exact quote. Run verify; publish only when every quote_found is true.
Never the site owner's personal name anywhere.
Never call a model through the build to write or test; comments from models are added only when the owner asks for those calls.
Facts live in facts; prose explains them. Do not repeat a number in prose that is not in facts.
Done means
GET /a/<slug>.json shows status: "published", every source has snapshot_sha256 and quote_found: true, and https://miscsubjects.com/a/<slug> answers 200.
Workbook
Tasks and data: build workbook procedure-verticals (GET https://miscsubjects.com/api/wb/procedure-verticals/values?sheet=TASKS with the key), tabs VERTICALS (BLS QCEW 2024 numbers per vertical), APPLICATIONS (351 procedures, each with its slug), TASKS (70 zero-context tasks), MEASURED VOLUMES, COMPANIES, LIFE EVENTS, PROCEDURE DETAIL, API CALLS. A copy: /Users/cyrusmassoumi/Downloads/procedure-verticals-2026-10-04.xlsx.
{
"schema": "http://ops.miscsubjects.com/schemas/jarticle.json",
"status": "published",
"slug": "json-article-writing-skill",
"title": "The skill for writing JSON articles",
"kind": "skill",
"summary": "The instructions any model gets before it writes or edits an article here: the calls, the object, the widgets, the ontology and the house style. The Markdown copy at /a/json-article-writing-skill.md is the skill file itself.",
"tags": [
"skill",
"json"
],
"ontology": {
"above": [
"json-articles-how-they-work"
]
},
"facts": {
"skill_name": "json-article-writing",
"file_on_the_mac": "/Users/cyrusmassoumi/.claude/skills/json-article-writing/SKILL.md",
"markdown": "https://miscsubjects.com/a/json-article-writing-skill.md"
},
"body": "\n# Writing JSON articles for miscsubjects.com\n\nAn article is one JSON object. The site draws the page (`/a/<slug>`), the Markdown (`/a/<slug>.md`) and the machine copy (`/a/<slug>.json`) from it. You never write HTML. Read the live guide first: https://miscsubjects.com/a/json-articles-how-they-work (its JSON view shows the whole object behind it).\n\n## Calls\n\nKey: header `x-sheets-key: $(cat /Users/cyrusmassoumi/.misc-sheets-key)`; JSON bodies with `content-type: application/json`. Base: `https://miscsubjects.com`.\n\n| Call | Use |\n| --- | --- |\n| `POST /api/jarticles` | create (body = the article). 409 if the slug exists |\n| `GET /api/jarticles/<slug>` | read whole, with `hash` |\n| `PATCH /api/jarticles/<slug>` + `if-match: <hash>` | change pieces: `{\"ops\":[{\"op\":\"set\",\"path\":\"facts.a.b\",\"value\":1}]}`; ops: set, merge, delete, append, insert (`path` is a list index like `body[2]`), move (`from` → `path`); `if_piece` = sha256 of that piece from `/at` makes one op conditional |\n| `PUT /api/jarticles/<slug>` + `if-match` | replace whole |\n| `GET /api/jarticles/<slug>/at?path=facts.x` | one piece + `piece_hash` |\n| `GET /api/jarticles/<slug>/grep?q=<regex>` | matches with the path to edit each; `GET /api/jarticles/grep?q=` across all |\n| `POST /api/jarticles/<slug>/verify` | fetch every source URL, store `snapshot_sha256`, `quote_found` |\n| `POST /api/jarticles/<slug>/comments` | `{\"model\":\"<openrouter id>\",\"text\":\"…\"}` |\n| `POST /api/jarticles/cli` | Obsidian commands: files, read, create, append, prepend, delete, move/rename (rewrites links everywhere), links, backlinks, unresolved, outline, search, grep, property:read, property:set, property:remove, properties, tags, patch. `file` = slug or title |\n| `GET /api/jarticles/theme`, `PATCH` + `if-match` | the look; every variable listed at `/article-theme.json` |\n| `GET /api/jarticles/models` | the OpenRouter catalog (ids for model/comment widgets) |\n| `GET /schemas/jarticle.json` | the schema |\n\nA 412 means someone changed it after you read it: read again, reapply, resend. Never retry blindly.\n\n## The object\n\n```json\n{\n \"slug\": \"ca-sr1-accident-report\", // /a/<slug>; lowercase, digits, dashes\n \"title\": \"Report a car accident to the California DMV (SR-1)\",\n \"kind\": \"procedure\", // badge: person, house, company, procedure, vertical, model, place…\n \"status\": \"draft\", // \"published\" only after verify passes\n \"summary\": \"One or two sentences. Also the text on this article's card elsewhere.\",\n \"tags\": [\"dmv\", \"california\"],\n \"facts\": { \"authority\": {\"name\": \"California DMV\", \"url\": \"https://www.dmv.ca.gov\"}, \"deadline_days\": 10, \"fee_usd\": 0 },\n \"card_fields\": [\"deadline_days\", \"fee_usd\"], // what a card of this article shows (≤6 paths under facts)\n \"ontology\": { \"above\": [\"vertical-dmv-vehicle-administration\"], \"below\": [], \"adjacent\": [\"ca-vehicle-damage-claim\"], \"nested\": [], \"show_position\": false },\n \"body\": [ \"Markdown…\", {\"type\": \"json\", \"ref\": \"#facts\"}, \"More Markdown…\" ],\n \"sources\": [ { \"url\": \"https://www.dmv.ca.gov/…\", \"title\": \"…\", \"publisher\": \"California DMV\", \"source_type\": \"official_agency\", \"quote\": \"the exact words on the page that support a fact\" } ],\n \"comments\": []\n}\n```\n\nThe build adds `schema`, `created`, `updated`, `version`, `hash`, a source `id` and `quote_sha256` for each source.\n\n## Body\n\n`body` is a Markdown string or a list of blocks (a block is Markdown, `{\"md\":\"…\"}`, or a widget object). Marks: `**bold**`, `*italic*`, `` `code` ``, `[words](https://…)`, `[[slug]]` / `[[slug|words]]` (link), `## heading`, `> quote`, lists, `| tables |`. On a line of its own:\n\n- `![[slug]]` or `![[slug|relation]]` — that article as a card (Obsidian transclusion)\n- `![[slug#facts.path]]` — one piece of that article as a JSON widget\n- `[[widget:<id or n>]]` — `widgets[n]` or the widget with that `id`\n\n## Widgets\n\n`json` {value | ref:\"slug#path\" | ref:\"#path\", title, open_depth} · `article` {slug, relation, fields} · `articles` {slugs, title} · `model` {id} · `models` {author?} · `comment` {model, text} · `theme` · `position` · `source` {url, title, publisher, quote, source_type} · `quote` {text, cite} · `stat` {value, label} · `note` {title, text} · `caveat` / `thread` {items} · `gallery` · `wikipedia` · `site_embed` · `reddit` `x` `youtube` `instagram` `tiktok` `facebook` `linkedin` `imessage` `whatsapp` (the old site's shapes).\n\n## Two articles that carry each other\n\nA house holds `facts.residents: [\"person-slug\"]` and `![[person-slug|lives here]]` in its body; the person holds `facts.home: \"house-slug\"` and `{\"type\":\"article\",\"slug\":\"house-slug\",\"relation\":\"home\"}`. Each card is read live from the other's object: one copy of every fact. Example pair: /a/example-house-14-cypress-lane and /a/example-person-dana-reyes.\n\n## Ontology\n\n`above` = broader (the vertical, the parent procedure). `below` = narrower. `adjacent` = beside (same event, alternative path). `nested` = drawn inside this one as cards at the end. Links stay in the JSON; the page shows no link lists unless `show_position: true`.\n\n## House style (the owner's law)\n\n- Public articles contain the subject matter and supporting sources. Never put internal AI mistakes, hallucinations, abandoned interpretations, correction narratives, agent status, or research-process commentary in article prose or widgets.\n\n- Plain English. Name every thing by what it is. Short sentences. No marketing tone, no filler, no \"in today's world\".\n- Data only, never editorial: no scores, rankings, recommendations, advice, pitches or letters.\n- No invented numbers. A value no source states is the string `\"UNKNOWN\"`. Every number has a source.\n- Every fact a reader could check has a source with the exact quote. Run `verify`; publish only when every `quote_found` is true.\n- Never the site owner's personal name anywhere.\n- Never call a model through the build to write or test; comments from models are added only when the owner asks for those calls.\n- Facts live in `facts`; prose explains them. Do not repeat a number in prose that is not in `facts`.\n\n## Done means\n\n`GET /a/<slug>.json` shows `status: \"published\"`, every source has `snapshot_sha256` and `quote_found: true`, and `https://miscsubjects.com/a/<slug>` answers 200.\n\n## Workbook\n\nTasks and data: build workbook `procedure-verticals` (`GET https://miscsubjects.com/api/wb/procedure-verticals/values?sheet=TASKS` with the key), tabs VERTICALS (BLS QCEW 2024 numbers per vertical), APPLICATIONS (351 procedures, each with its slug), TASKS (70 zero-context tasks), MEASURED VOLUMES, COMPANIES, LIFE EVENTS, PROCEDURE DETAIL, API CALLS. A copy: `/Users/cyrusmassoumi/Downloads/procedure-verticals-2026-10-04.xlsx`.\n",
"created": "2026-10-05T01:35:59.639Z",
"updated": "2026-11-02T04:54:50.235Z",
"version": 2,
"type": "article",
"hash": "f1bdb35a10193ca342f9b82ab4465fc2dcba74f425abb658273a01c35717d162",
"theme": "http://ops.miscsubjects.com/article-theme.json",
"styling": {
"scope": "shared",
"theme_ref": "http://ops.miscsubjects.com/article-theme.json"
},
"page": "http://ops.miscsubjects.com/a/json-article-writing-skill",
"json": "http://ops.miscsubjects.com/a/json-article-writing-skill.json",
"markdown": "http://ops.miscsubjects.com/a/json-article-writing-skill.md",
"calls": [
{
"what": "this article as a page (no key)",
"method": "GET",
"url": "http://ops.miscsubjects.com/a/json-article-writing-skill",
"headers": {}
},
{
"what": "this article as its object (no key)",
"method": "GET",
"url": "http://ops.miscsubjects.com/a/json-article-writing-skill.json",
"headers": {}
},
{
"what": "this article as Markdown (no key)",
"method": "GET",
"url": "http://ops.miscsubjects.com/a/json-article-writing-skill.md",
"headers": {}
},
{
"what": "the object with its hash, drafts too",
"method": "GET",
"url": "http://ops.miscsubjects.com/api/jarticles/json-article-writing-skill",
"headers": {
"x-terminal-key": "<YOUR_TERMINAL_KEY>"
}
},
{
"what": "one piece and that piece’s hash",
"method": "GET",
"url": "http://ops.miscsubjects.com/api/jarticles/json-article-writing-skill/at?path=facts",
"headers": {
"x-terminal-key": "<YOUR_TERMINAL_KEY>"
}
},
{
"what": "grep: every key or value that matches, with the path to change it",
"method": "GET",
"url": "http://ops.miscsubjects.com/api/jarticles/json-article-writing-skill/grep?q=owner",
"headers": {
"x-terminal-key": "<YOUR_TERMINAL_KEY>"
}
},
{
"what": "change pieces (set, merge, delete, append, insert, move); if-match is the hash",
"method": "PATCH",
"url": "http://ops.miscsubjects.com/api/jarticles/json-article-writing-skill",
"headers": {
"x-terminal-key": "<YOUR_TERMINAL_KEY>",
"content-type": "application/json",
"if-match": "<hash from the read>"
},
"body": {
"ops": [
{
"op": "set",
"path": "facts.example",
"value": 1
}
]
}
},
{
"what": "replace the whole object",
"method": "PUT",
"url": "http://ops.miscsubjects.com/api/jarticles/json-article-writing-skill",
"headers": {
"x-terminal-key": "<YOUR_TERMINAL_KEY>",
"content-type": "application/json",
"if-match": "<hash>"
},
"body": {
"slug": "json-article-writing-skill",
"title": "…"
}
},
{
"what": "fetch every source, hash what came back and check the quote is in it",
"method": "POST",
"url": "http://ops.miscsubjects.com/api/jarticles/json-article-writing-skill/verify",
"headers": {
"x-terminal-key": "<YOUR_TERMINAL_KEY>",
"content-type": "application/json"
},
"body": {}
},
{
"what": "an Obsidian-style command",
"method": "POST",
"url": "http://ops.miscsubjects.com/api/jarticles/cli",
"headers": {
"x-terminal-key": "<YOUR_TERMINAL_KEY>",
"content-type": "application/json"
},
"body": {
"command": "backlinks",
"file": "json-article-writing-skill"
}
}
],
"entities": {
"json-article-writing-skill": {
"id": "json-article-writing-skill",
"label": "The skill for writing JSON articles",
"type": "skill",
"page": "http://ops.miscsubjects.com/a/json-article-writing-skill",
"json": "http://ops.miscsubjects.com/a/json-article-writing-skill.json"
},
"json-articles-how-they-work": {
"id": "json-articles-how-they-work",
"label": "Articles as JSON: how every page here is built",
"type": "guide",
"page": "http://ops.miscsubjects.com/a/json-articles-how-they-work",
"json": "http://ops.miscsubjects.com/a/json-articles-how-they-work.json"
},
"slug": {
"id": "slug",
"resolution": "unavailable",
"description": "No published canonical record was resolved. No source URL or facts are inferred."
},
"person-slug": {
"id": "person-slug",
"resolution": "unavailable",
"description": "No published canonical record was resolved. No source URL or facts are inferred."
}
},
"relationships": {
"upward": {
"total": 1,
"offset": 0,
"limit": 50,
"items": [
{
"subject": "json-article-writing-skill",
"predicate": "part_of",
"object": "json-articles-how-they-work",
"asserted_at": "ontology.above",
"asserted_by": "json-article-writing-skill",
"source_json": "/a/json-article-writing-skill.json",
"ref": "json-articles-how-they-work"
}
],
"next": null
},
"downward": {
"total": 0,
"offset": 0,
"limit": 50,
"items": [],
"next": null
},
"sideways": {
"total": 0,
"offset": 0,
"limit": 50,
"items": [],
"next": null
},
"references": {
"total": 1,
"offset": 0,
"limit": 50,
"items": [
{
"ref": "json-articles-how-they-work",
"predicate": "references",
"subject": "json-article-writing-skill",
"object": "json-articles-how-they-work"
}
],
"next": null
},
"referenced_by": {
"total": 1,
"offset": 0,
"limit": 50,
"items": [
{
"ref": "json-articles-how-they-work",
"predicate": "references",
"subject": "json-articles-how-they-work",
"object": "json-article-writing-skill"
}
],
"next": null
}
},
"hierarchy": {
"paths": [
[
"json-article-writing-skill",
"json-articles-how-they-work"
]
],
"order": "subject to parent to ancestor",
"complete": false,
"cycles": [],
"limits": {
"depth": 12,
"objects": 250
},
"unresolved_refs": [
"person-slug",
"slug"
]
},
"reference_contract": {
"canonical_id": "slug",
"entity_lookup": "entities[ref]; # resolves to this object via self_ref",
"self_ref": "json-article-writing-skill",
"entity_fields": "page and json are canonical object links; source_url is the external source",
"directions": {
"upward": "Parents and collections containing this object; predicate distinguishes location from membership.",
"downward": "Objects naming this object as their parent, container or collection.",
"sideways": "Associations and objects sharing a direct parent.",
"references": "Objects referenced by this record.",
"referenced_by": "Published articles referencing this record."
},
"predicates": {
"part_of": "Declared parent hierarchy.",
"located_in": "Location asserted on this object.",
"associated_parcel": "Associated parcel, a separate object with its own jurisdiction and facts.",
"member_of": "Collection membership, not geographic containment.",
"included_in": "Editorial nesting, not geographic containment.",
"shares_parent": "Shares the identified parent; no other relationship is implied.",
"related_to": "An association with no more specific predicate recorded."
},
"scope": "Published article objects; Atlas inventories have their own counted, paged links. An association does not transfer facts or jurisdiction. An absent neighborhood means no neighborhood relationship is recorded."
},
"hash_spec": {
"algorithm": "sha256",
"encoding": "lowercase hexadecimal",
"scope": "stored record; hash is also the write concurrency token",
"included_keys": [
"body",
"created",
"facts",
"kind",
"ontology",
"schema",
"slug",
"status",
"summary",
"tags",
"title",
"type",
"updated",
"version"
],
"field_overrides": {
"schema": "jarticle/1"
},
"canonicalization": "Select included_keys from this response, apply field_overrides, recursively sort object keys using JavaScript Object.keys().sort(), retain array order, serialize primitives with JSON.stringify, join without whitespace, hash UTF-8 bytes.",
"updated_included": true,
"generated_fields": "All fields absent from included_keys are excluded. Relationship counts and theme references are generated and can change without changing the stored-record hash."
}
}