Self-evolving second brain with 35 AI skills, 10 agents, and people CRM. Closed-loop harness: a V-model verification lifecycle where the worker never grades its own homework. Plus paired anti-slop design skills for marketing and product UI. Works with Claude Code, Cursor, Kiro, Gemini CLI, Codex.
Python agent-loopagent-pluginsagent-skillsagenticai-agentsclaude-codeclosed-loopcursorgarry-tangbraingstackknowledge-managementloop-engineeringobsidianpeople-crmproductivitysecond-brainself-evolvingverification-harnessworker-agents
feat: closed-loop harness release — V-model verification lifecycle (v3.8.0)
Huy Tieu74a0cf729789
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex ac8c4b6..3cee4be 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "cog-second-brain",- "version": "3.7.1",- "description": "Self-evolving second brain with 21 AI agent skills, 6 worker agents, and people CRM. Runtime-trust release: memory hygiene sweeps (stale-but-confident), skill post-condition checks (confident-but-unchecked), verbatim citations with adversarial verifier pass, and an autonomous content factory. Iterative skills are loop-engineered (deterministic verifiers, layered termination, in-loop context management). Inspired by Garry Tan's gstack specialist sessions and gbrain knowledge patterns. Works with Claude Code, Cursor, Kiro, Gemini CLI, Codex, and any markdown-reading agent.",+ "version": "3.8.0",+ "description": "Self-evolving second brain with 31 AI agent skills, 10 agents, and people CRM. Closed-loop harness release: a V-model verification lifecycle (spec to evidence, criterion-traced checkpoints), read-only verifier agents that observe artifacts instead of trusting worker summaries, risk lanes, multi-session ultragoals with a north-star acceptance gate, plus craft skills for writing and visual work. Inspired by Garry Tan's gstack specialist sessions, gbrain knowledge patterns, and dwarves-kit closed-loop execution. Works with Claude Code, Cursor, Kiro, Gemini CLI, Codex, and any markdown-reading agent.","author": {"name": "Huy Tieu","url": "https://github.com/huytieu"@@ -42,7 +42,17 @@"runtime-trust","content-factory","verification",- "skill-distillation"+ "skill-distillation",+ "v-model",+ "closed-loop",+ "verification-harness",+ "evidence-ledger",+ "ultragoal",+ "risk-lanes",+ "verifier-agents",+ "retrospective",+ "no-ai-slop",+ "data-viz"],"category": "productivity","tags": [@@ -165,6 +175,56 @@"name": "update-knowledge-base","path": ".claude/skills/update-knowledge-base/SKILL.md","description": "Maintain product knowledge base from releases and feature updates"+ },+ {+ "name": "closed-loop",+ "path": ".claude/skills/closed-loop/SKILL.md",+ "description": "V-model execute pipeline - plan, build, component verify, integration verify, acceptance; the worker never grades its own homework and every evidence row traces to an AC-n criterion"+ },+ {+ "name": "ultragoal",+ "path": ".claude/skills/ultragoal/SKILL.md",+ "description": "Run a goal too big for one session as a chain of phases, each its own full closed-loop run, with cross-session state and a final north-star acceptance gate"+ },+ {+ "name": "harvest",+ "path": ".claude/skills/harvest/SKILL.md",+ "description": "Capture durable session learnings, stage them for human promotion into knowledge, and propose skill/CLAUDE.md patches - never writes durable knowledge unapproved"+ },+ {+ "name": "retro",+ "path": ".claude/skills/retro/SKILL.md",+ "description": "CP-7 retrospective - audit checkpoints, evidence quality, and action items; closes the V-model cycle and feeds the next run"+ },+ {+ "name": "review-cockpit",+ "path": ".claude/skills/review-cockpit/SKILL.md",+ "description": "One living review document per multi-item session - cockpit header plus per-item cards you approve or request changes on directly in the doc"+ },+ {+ "name": "no-ai-slop",+ "path": ".claude/skills/no-ai-slop/SKILL.md",+ "description": "Edit drafts into sharper, more human writing while preserving personal voice, or detect AI-slop patterns without rewriting"+ },+ {+ "name": "editorial-illustrations",+ "path": ".claude/skills/editorial-illustrations/SKILL.md",+ "description": "Generative guide for meaning-carrying editorial data-illustrations - teaches the claim-to-geometry method, renders self-contained theme-aware HTML/SVG figures"+ },+ {+ "name": "data-forms",+ "path": ".claude/skills/data-forms/SKILL.md",+ "description": "Pick the right form for a dataset so the finding lands in three seconds - 20+ chart and diagram forms with when-to-use, failure modes, and encoding discipline"+ },+ {+ "name": "museum-art",+ "path": ".claude/skills/museum-art/SKILL.md",+ "description": "Source authentic high-res public-domain artwork from museum open-access APIs instead of AI-generated or generic-stock imagery"+ },+ {+ "name": "daily-journal",+ "path": ".claude/skills/daily-journal/SKILL.md",+ "description": "A passive daily work journal the agent keeps for you - appends entries after meaningful work, runs a guided reflection on request"}],"metadata": {@@ -183,12 +243,17 @@"People CRM with tiered enrichment and evidence-based profiles","Runtime trust: memory-hygiene sweeps with last_verified + confidence stamps","Skill post-condition checks - observe the mutated artifact before reporting success",- "Skill distillation pattern: explore once with a strong model, execute cheap with a small one"+ "Skill distillation pattern: explore once with a strong model, execute cheap with a small one",+ "V-model closed loop: decompose to falsifiable criteria, verify with evidence traced back to each one",+ "Read-only verifier agents (task-verifier, integration-verifier) that observe artifacts, not worker summaries",+ "Risk lanes: ceremony scales with blast radius instead of applying uniformly",+ "Ultragoals: multi-session goals with per-phase verification and a final north-star acceptance gate",+ "Cross-model flagship gate - a different model family catches a different error class"],"requirements": {"obsidian": "Recommended for markdown file management","git": "Optional but recommended for version control and safe updates",- "claudeCode": "Recommended for the full 21-skill native experience",+ "claudeCode": "Recommended for the full 31-skill native experience","kiro": "Optional - ships 7 native core powers","geminiCli": "Optional - ships 7 native core commands","agentsMd": "Universal fallback surface for Codex and other markdown-reading agents"@@ -200,8 +265,8 @@"validation": "Run ./scripts/validate-agent-surface.sh before publishing or after framework updates"},"directoryStructure": {- ".claude/skills": "21 Claude Code skills (full surface)",- ".claude/agents": "6 worker agent definitions for specialist sessions",+ ".claude/skills": "31 Claude Code skills (full surface)",+ ".claude/agents": "10 agent definitions - 6 workers plus 4 read-only verifiers",".claude/roles": "7 role packs for personalized skill and integration recommendations",".kiro/powers": "7 Kiro powers (core workflows)",".gemini/commands": "7 Gemini CLI commands (core workflows)",@@ -212,22 +277,24 @@"02-personal": "Personal domain (strict privacy)","03-professional": "Professional domain with competitive watchlist","04-projects": "Project-specific tracking",- "05-knowledge": "Consolidated insights and patterns"+ "05-knowledge": "Consolidated insights and patterns",+ ".claude/lib": "Harness shell helpers (checkpoint recorder, risk-lane classifier)",+ "WORKFLOW.md": "The V-model lifecycle: checkpoints, gate classes, evidence contract"},"skillArchitecture": {"type": "agent-skills",- "skills": 21,- "workerAgents": 6,+ "skills": 31,+ "workerAgents": 10,"rolePacks": 7,"invocation": "model-invoked","progressiveDisclosure": true,"nativeSurfaces": {- "claudeCode": 21,+ "claudeCode": 31,"kiro": 7,"geminiCli": 7,- "agentsMd": 21+ "agentsMd": 31},- "description": "Self-contained skills with worker agent delegation, full Claude Code surface, core native Kiro/Gemini surfaces, and AGENTS.md as the universal fallback"+ "description": "Self-contained skills with worker delegation and a read-only verification layer, full Claude Code surface, core native Kiro/Gemini surfaces, and AGENTS.md as the universal fallback"}}}diff --git a/.claude/agents/fix-agent.md b/.claude/agents/fix-agent.mdnew file mode 100644index 0000000..a359f15--- /dev/null+++ b/.claude/agents/fix-agent.md@@ -0,0 +1,28 @@+---+name: fix-agent+description: Targeted fixes after task-verifier returns FAIL:fixable. Implements only what the verifier flagged; max 2 attempts per orchestrator cycle.+model: sonnet+---++You are a **fix-agent**. You receive a verifier failure report and patch only the flagged gaps.++## Input++- Verifier output (`VERDICT: FAIL:fixable` + FAILURES + FIX_HINTS)+- Original acceptance criteria+- Paths the worker touched++## Output++- Apply minimal edits to close each failure id+- Write a short fix log to `/tmp/fix-<slug>.md`: what changed per failure id+- Return: `OK: fixed <ids> | log: /tmp/fix-<slug>.md`++## Rules++1. **Minimal scope.** Fix only what the verifier flagged. No drive-by refactors.+2. **No new features.** If the fix requires expanding scope → stop, return `ESCALATE: scope expansion needed — <reason>`.+3. **Re-run post-conditions** for any mutation you make (curl, re-read, etc.) before returning OK.+4. You do NOT self-verify as PASS. The orchestrator re-dispatches `task-verifier`.+5. Max one fix attempt per dispatch; the orchestrator tracks retry count (max 2 total per task).+6. Respect lane: `tiny` fixes should be < 10 lines; `full` lane fixes still cannot add unaudited claims.diff --git a/.claude/agents/harvest-curator.md b/.claude/agents/harvest-curator.mdnew file mode 100644index 0000000..dd369e2--- /dev/null+++ b/.claude/agents/harvest-curator.md@@ -0,0 +1,41 @@+---+name: harvest-curator+description: Draft session learnings from harvest staging into lizard-ready adoption notes. Propose-only; never writes durable 05-knowledge without human promotion.+model: sonnet+---++You curate session harvest staging into promotion-ready drafts.++## Input++- `04-projects/harness/harvest/staging-<date>.md` (raw session capture)+- Existing `05-knowledge/lizard/` index for dedup++## Output++Write to `/tmp/harvest-curate-<date>.md`:++```markdown+# Harvest curation — <date>++## Promote (proposed)+- <idea> → `05-knowledge/lizard/YYYY-MM-DD-<slug>.md` | confidence: high|medium | why++## Fold into existing+- <idea> → merge into [[path]] | one-line delta++## Drop+- <idea> | reason (duplicate, stale, too vague)++## Skill/CLAUDE.md candidates+- <rule> → target file | one-line patch summary+```++Return: `OK: /tmp/harvest-curate-<date>.md (<n> promote, <m> fold, <k> drop)`++## Rules++- Never write directly to `05-knowledge/` — propose paths only.+- Tag each item with confidence and a one-line source (session event, file path).+- Dedup against lizard index and recent harvest files.+- Prefer folding small lessons into `expectations.md` or skill Verify sections over new notes.diff --git a/.claude/agents/integration-verifier.md b/.claude/agents/integration-verifier.mdnew file mode 100644index 0000000..f5be2cd--- /dev/null+++ b/.claude/agents/integration-verifier.md@@ -0,0 +1,39 @@+---+name: integration-verifier+description: Read-only CP-4 gate. Cross-task wiring and global acceptance for multi-task specs. Cannot edit files.+model: sonnet+---++You are the **integration verifier** (CP-4). Component verification (CP-3v) already passed per task. You check that tasks **work together** and global acceptance criteria hold.++## Input++- Spec with traceability matrix+- Per-task CP-3v evidence (`evidence/CP-3v-component.md` or ledger)+- Deliverable paths++## Output contract++```+VERDICT: PASS | FAIL:fixable | FAIL:escalate+INTEGRATION_CLAIMS_CHECKED: <n>+EVIDENCE:+EVIDENCE AC-01 | CP-4 | PASS | <cross-task observation> | <artifact>+FAILURES:+- <id> | <wiring issue> | <observed vs expected>+```++Return ONLY this block. Bulky evidence → `/tmp/integration-verify-<slug>.md`.++## Checks++1. **Traceability closure**: every AC-n has component evidence; integration adds wiring proof where AC spans tasks.+2. **Side effects**: changes in T-01 don't break T-02 assumptions.+3. **Global acceptance**: spec-level criteria that only make sense after all tasks merge.+4. **No self-grade**: re-observe artifacts; don't trust worker summaries.++## Rules++- Read-only. No edits, no mutations.+- Skip if single-task `normal` lane (orchestrator may omit CP-4).+- Required for `full` lane and multi-task specs.diff --git a/.claude/agents/task-verifier.md b/.claude/agents/task-verifier.mdnew file mode 100644index 0000000..b39ffb1--- /dev/null+++ b/.claude/agents/task-verifier.md@@ -0,0 +1,46 @@+---+name: task-verifier+description: Read-only verification gate. Checks worker output against acceptance criteria and post-conditions. Cannot edit files or mutate external state.+model: sonnet+---++You are a **read-only verifier**. You grade work; you never implement fixes.++## Capabilities++- Read files, run read-only shell (`curl -sI`, `gh pr view`, `git diff`, `test -e`)+- Spawn no write tools, no Edit, no external mutations++## Input (orchestrator provides)++- Acceptance criteria (inline or spec path)+- Worker deliverable path(s)+- Lane: `tiny` | `normal` | `full` | `bug`++## Output contract (row-only, one verdict block)++```+VERDICT: PASS | FAIL:fixable | FAIL:escalate+LANE: <lane>+CLAIMS_CHECKED: <n>+EVIDENCE:+EVIDENCE <AC-id> | CP-3v | PASS | <observation> | <artifact-path-or-command>+EVIDENCE <AC-id> | CP-3v | FAIL | <observed vs expected> | <artifact>+FAILURES:+- <AC-id> | <criterion> | <observed vs expected>+FIX_HINTS: (only if FAIL:fixable)+- <AC-id> | <minimal fix direction, no implementation>+```++Return ONLY this block (< 2K tokens). One **EVIDENCE** row per acceptance criterion checked. If evidence is bulky, write detail to `/tmp/verify-<slug>.md` and reference it in the Observation column.++## Rules++1. **Observe artifacts, not tool return values.** Curl the URL. Re-fetch the tracker issue. Read the file on disk.+2. **Two-way trace:** every row must cite an `AC-id` from the spec traceability matrix.+3. **FAIL:escalate** when: acceptance criteria ambiguous, security concern, needs human judgment, or fix would touch unrelated scope.+4. **FAIL:fixable** when: a bounded, clear gap against stated criteria (missing section, wrong path, test red, post-condition not met).+4. For `full` lane: also check verbatim citations against sources when claims are auditable.+5. Never agree with the worker's self-assessment without independent checks.+6. Do not suggest "looks good" without checking each criterion.+7. **UI/UX deliverables: verify visually, not by DOM.** If the deliverable renders UI (page/component/flow/styling), open it in browser-harness, screenshot the relevant states (`evidence_shot`, or `FlowRecorder` for a flow), and actually inspect the pixels for overflow, misalignment, clipped text, wrong color/contrast, broken responsive/overlap. An EVIDENCE row for a UI criterion must cite a screenshot you looked at, and its Observation must describe what you saw. "Element present in DOM" is not acceptance for a visual criterion — FAIL:fixable with the specific visual defect.diff --git a/.claude/lib/checkpoint.sh b/.claude/lib/checkpoint.shnew file mode 100755index 0000000..5fe3585--- /dev/null+++ b/.claude/lib/checkpoint.sh@@ -0,0 +1,51 @@+#!/usr/bin/env bash+# Checkpoint recorder for V-model evidence trail.+# Usage:+# checkpoint.sh init <run-dir>+# checkpoint.sh record <run-dir> <CP-id> PASS|FAIL|SKIP "<note>"+# checkpoint.sh status <run-dir>+set -euo pipefail++ROOT="$(cd "$(dirname "$0")/../.." && pwd)"+LOG="$ROOT/.claude/logs/checkpoint-ledger.tsv"+mkdir -p "$ROOT/.claude/logs"++cmd="${1:-}"+shift || true++init_run() {+ local dir="$1"+ mkdir -p "$dir/evidence"+ [[ -f "$dir/evidence/ledger.md" ]] || cp "$ROOT/04-projects/harness/templates/evidence-ledger.md" "$dir/evidence/ledger.md"+ echo "initialized: $dir/evidence/"+}++record_cp() {+ local dir="$1" cp_id="$2" result="$3" note="${4:-}"+ local ts+ ts=$(date -u +"%Y-%m-%dT%H:%M:%SZ")+ mkdir -p "$dir/evidence"+ echo -e "${ts}\t${cp_id}\t${result}\t${note}" >> "$dir/evidence/checkpoints.tsv"+ [[ -f "$LOG" ]] || echo -e "timestamp\tcp\tresult\tnote\trun_dir" >> "$LOG"+ echo -e "${ts}\t${cp_id}\t${result}\t${note}\t${dir}" >> "$LOG"+ echo "recorded: ${cp_id} ${result} → ${dir}/evidence/checkpoints.tsv"+}++status_run() {+ local dir="$1"+ if [[ -f "$dir/evidence/checkpoints.tsv" ]]; then+ column -t -s $'\t' "$dir/evidence/checkpoints.tsv" 2>/dev/null || cat "$dir/evidence/checkpoints.tsv"+ else+ echo "no checkpoints yet: $dir"+ fi+}++case "$cmd" in+ init) init_run "${1:?run-dir}" ;;+ record) record_cp "${1:?run-dir}" "${2:?CP-id}" "${3:?PASS|FAIL|SKIP}" "${4:-}" ;;+ status) status_run "${1:?run-dir}" ;;+ *)+ echo "usage: checkpoint.sh init|record|status <run-dir> [CP-id] [PASS|FAIL|SKIP] [note]" >&2+ exit 1+ ;;+esacdiff --git a/.claude/lib/lane-classify.sh b/.claude/lib/lane-classify.shnew file mode 100755index 0000000..b7f55c1--- /dev/null+++ b/.claude/lib/lane-classify.sh@@ -0,0 +1,56 @@+#!/usr/bin/env bash+# Risk lane classifier — adapted from dwarves-kit lane-classify pattern.+# Usage:+# lane-classify.sh classify "<task summary>"+# lane-classify.sh explain "<task summary>"+set -euo pipefail++cmd="${1:-classify}"+shift || true+text="${*:-}"++score=0+reasons=()++# Hard gates+if echo "$text" | grep -qiE 'security|credential|secret|prod(uction)?|delete all|rm -rf'; then+ echo "full"+ exit 0+fi++if echo "$text" | grep -qiE 'bug|broken|regression|fails|error 5|root cause'; then+ echo "bug"+ exit 0+fi++if echo "$text" | grep -qiE 'backfill|retrofit|audit only|document existing|no behavior change'; then+ echo "backfill"+ exit 0+fi++if echo "$text" | grep -qiE 'typo|one line|single word|label only|status reply|fix typo'; then+ if [[ "$cmd" == "explain" ]]; then+ echo "lane=tiny score=0 reasons=hard-tiny"+ else+ echo "tiny"+ fi+ exit 0+fi++# Soft signals+echo "$text" | grep -qiE 'typo|one line|single word|label only|status reply' && { score=$((score+3)); reasons+=("tiny-signal"); }+echo "$text" | grep -qiE 'brief|team-brief|slack|jira|multi-source|publish|deploy|ship' && { score=$((score+2)); reasons+=("full-signal"); }+echo "$text" | grep -qiE 'spec|acceptance|test|verify|cross-repo|milestone' && { score=$((score+1)); reasons+=("normal+"); }++word_count=$(echo "$text" | wc -w | tr -d ' ')+[[ "$word_count" -lt 8 ]] && { score=$((score+1)); reasons+=("short"); }++lane="normal"+[[ $score -ge 3 ]] && lane="full"+[[ $score -le 0 && $word_count -lt 12 ]] && lane="tiny"++if [[ "$cmd" == "explain" ]]; then+ printf 'lane=%s score=%s reasons=%s\n' "$lane" "$score" "${reasons[*]:-none}"+else+ echo "$lane"+fidiff --git a/.claude/skills/closed-loop/SKILL.md b/.claude/skills/closed-loop/SKILL.mdnew file mode 100644index 0000000..2717dad--- /dev/null+++ b/.claude/skills/closed-loop/SKILL.md@@ -0,0 +1,117 @@+---+name: closed-loop+description: >+ V-model execute: CP-2 plan → CP-3 build → CP-3v component verify →+ CP-4 integration verify (full) → CP-5 acceptance. Worker never grades+ its own homework; evidence rows trace back to AC-n. Use via /execute.+---++# Closed-loop execute (V-model right arm)++Mechanical verification pipeline. Every verify step emits **evidence rows** tied to acceptance criterion IDs (`AC-n`).++## When to use++- `/execute <task>` or `/execute <spec-path>`+- Any skill at `normal`+ lane after implementation+- Code changes, deploys, multi-step vault deliverables++## Phase 0 — Lane + run folder++```bash+bash .claude/lib/lane-classify.sh explain "<task>"+bash .claude/lib/checkpoint.sh init 04-projects/harness/runs/<YYYY-MM-DD-HHmm>+```++| Lane | Checkpoints |+|---|---|+| `tiny` | CP-3 → CP-5 (if mutating) |+| `normal` | CP-1 → CP-2 → CP-3 → CP-3v → CP-5 |+| `full` | + CP-4 + claim-verifier + CP-6 |+| `bug` | root-cause ledger (CP-0) before CP-3 |++Record: `checkpoint.sh record <run-dir> CP-0 PASS|SKIP "<lane>"`++## Phase 1 — CP-1 Spec (acceptance criteria)++If spec exists, use its `## Acceptance criteria` + traceability matrix. Else write:++`04-projects/harness/runs/<id>/criteria.md` using `04-projects/harness/templates/SPEC-template.md` (criteria + matrix only).++Each criterion: **falsifiable** + `AC-n` ID + verify method.++Record: `checkpoint.sh record <run-dir> CP-1 PASS "N criteria"`++## Phase 2 — CP-2 Plan++Map tasks → AC IDs in `evidence/CP-2-plan.md`. Update matrix status to `pending`.++Record: `checkpoint.sh record <run-dir> CP-2 PASS`++## Phase 3 — CP-3 Build++Worker implements. Returns deliverable path only.++## Phase 4 — CP-3v Component verify++```+retry=0+loop:+ spawn task-verifier (fresh context, read-only)+ merge EVIDENCE rows into evidence/ledger.md+ if PASS → break+ if FAIL:escalate → record CP-3v FAIL, escalate+ if FAIL:fixable && retry < 2 → fix-agent → retry+++ else → escalate+```++Copy verifier EVIDENCE rows into `evidence/CP-3v-component.md`.++Record: `checkpoint.sh record <run-dir> CP-3v PASS|FAIL`++## Phase 5 — CP-4 Integration verify (`full` or multi-task)++Spawn `integration-verifier` (read-only). Append rows to ledger.++Skip for single-task `normal`.++Record: `checkpoint.sh record <run-dir> CP-4 PASS|SKIP`++## Phase 6 — CP-5 Acceptance (post-condition)++For each mutation, observe artifact (curl, screenshot, re-fetch). Emit:++`EVIDENCE AC-n | CP-5 | PASS | <observation> | <artifact>`++**UI/UX flow changes:** the post-condition is *visual*. Capture with browser-harness (`evidence_shot` per state; `FlowRecorder`→`.save_gif()` for a flow; `pixel_diff` against the intended/prior state), then read the image and confirm no overflow/misalignment/clipping/wrong-color/broken-responsive before PASS. The Observation must describe what you saw; the artifact is the screenshot/GIF in `evidence/`. Fix any visual defect and re-capture. See CLAUDE.md → Visual Verification.++Write `evidence/CP-5-acceptance.md`. **Traceability closure**: every AC in matrix has ≥1 PASS row in ledger.++Record: `checkpoint.sh record <run-dir> CP-5 PASS|FAIL`++## Phase 7 — Record + handoff++- Append to `.claude/logs/loop-ledger.tsv`+- Update spec traceability matrix statuses to `verified`+- **`full` lane / big task:** generate an HTML rollup from `04-projects/harness/templates/report.html` → `04-projects/harness/runs/<id>/report.html`, filled from `criteria.md` + `evidence/ledger.md` (criteria, AC traceability, verifier verdicts, post-condition observations). Self-contained; `SendUserFile` it or publish as an Artifact. Skip for `normal`/`tiny`.+- Suggest `/retro <run-dir>` for CP-7++## Integration++| Skill | Lane | CP-4 |+|---|---|---|+| ultragoal | `full` per phase (never downgraded) | integration-verifier + north-star acceptance |+| team-brief | full | claim-verifier |+| dogfood-release | full | Playwright cross-verify |+| blog-publish | normal | skip |+| content-factory | normal | skip |++## Escalation template++```+ESCALATED — <task>+Lane: <lane> | Last CP: <CP-n>+Evidence bundle: 04-projects/harness/runs/<id>/evidence/+Open AC IDs: <list without PASS rows>+Decision needed: <one question>+```diff --git a/.claude/skills/daily-journal/SKILL.md b/.claude/skills/daily-journal/SKILL.mdnew file mode 100644index 0000000..6f895ca--- /dev/null+++ b/.claude/skills/daily-journal/SKILL.md@@ -0,0 +1,78 @@+---+name: daily-journal+description: A passive daily work journal that Claude keeps FOR you so you never have to write it yourself. Append short entries after meaningful work (what was done, what you focused on, artifacts touched) to 01-daily/journal/YYYY-MM-DD.md. Run a guided reflection at night or in the morning. Use when you run /daily-journal, say "log this to my journal", "add to today's journal", "reflect on today/yesterday", or when finishing a meaningful chunk of work in any session.+---++# Daily Journal++## Purpose+Keep an **automatic, passive** journal of your workdays so you don't have to write one. Claude logs what got done as it happens; you optionally run a reflection later. This is distinct from `/daily-checkin` (which is a manual reflection where you supply the input) — here **Claude is the author** and the log accrues in the background.++Two modes:+1. **`log`** (default, mostly invoked implicitly) — append a short entry to today's journal.+2. **`reflect`** — read the day's log (+ recent days) and run a guided reflection with you.++## Storage+- One file per day: `01-daily/journal/YYYY-MM-DD.md` (use `date +%F` for today's date; never guess).+- Create the file from the template below on the first entry of the day.+- Append only — never rewrite earlier entries. Newest entries go at the bottom of the Log section.++## When to log (behavioral trigger — applies in ANY session, not just when invoked)+After finishing a **meaningful** unit of work, append one entry. Meaningful = would matter to future-you or shows how the day was spent. Examples:+- Shipped/committed something, published a note/brief/slide, filed or moved tracker issues (Linear/Jira/GitHub).+- Made a decision, changed direction, or hit a notable blocker.+- Produced a deliverable file (spec, plan, analysis, report).+- A substantive research/synthesis session that produced an artifact.++**Do NOT log:** trivial reads, one-line lookups, mid-task scratch work, this journal's own writes, or anything you asked to keep out. When in doubt, one concise line is better than none. Do not interrupt the flow to announce logging — just append and carry on.++## Entry format+Append under the `## Log` section:++```+### HH:MM — <short title of what got done>+- **Focus:** <the thread/project this served, e.g. a product line, a squad, the blog>+- **Did:** <1-3 bullets, concrete, past tense>+- **Artifacts:** <files/PRs/links touched, or "—">+- **Signal:** <optional: decision made, blocker hit, mood/energy if you mentioned it, or omit>+```++Keep it tight. Times use 24h local (`date +%H:%M`). Match memory/CLAUDE.md conventions: no em-dashes, your product naming rules, no self-authored next-steps (only record what actually happened or what you explicitly said).++## Daily file template (first entry of the day)+```markdown+---+date: YYYY-MM-DD+type: journal+---++# Journal — YYYY-MM-DD (Weekday)++> Auto-kept by Claude. Reflection appended below when you run it.++## Focus of the day+_Inferred from entries; leave blank until there's signal._++## Log++## Reflection+_Empty until you run `/daily-journal reflect`._+```++## Mode: reflect+Triggered by `/daily-journal reflect [today|yesterday|YYYY-MM-DD]` (default: today), or when you say "reflect on today/yesterday" or "let's do the journal".++1. Read the target day's journal file. If it doesn't exist or the Log is thin, say so and offer to reconstruct from other signals (today's brief in `01-daily/briefs/`, recent commits, braindumps) before proceeding — but do NOT fabricate.+2. Read the previous 2-3 journal files for continuity (recurring threads, carried-over blockers).+3. Summarize the day back to you in a few lines: main focus, what shipped, what stalled. Then ask 2-4 light reflection questions adapted to what the log shows (e.g. "The eval work ate the afternoon — did it move?" rather than generic prompts). Keep it conversational, low-friction; this is meant to be a 2-minute thing at night or in the morning.+4. Write your answers + a short synthesis into the `## Reflection` section of that day's file. Fill in `## Focus of the day` if still blank.+5. If the reflection surfaces a durable fact (a decision, a changed priority, a lesson), also write/update the relevant `05-knowledge/` note or a memory per the Brain-First protocol — the journal is ephemeral daily context, not the durable store.++## Weekly roll-up (optional)+If you ask for a "week in review" or on a weekly reflection, read the last 7 journal files and synthesize themes into `01-daily/weekly/` (match the existing naming there). Do not auto-run this.++## Guardrails+- Single-file discipline: everything for a day lives in that one journal file. Never split into per-entry files.+- Privacy: personal/1:1 content stays in the journal only; never leaks into team-facing briefs.+- Never publish the journal anywhere external.+- This is your private log. Write plainly and honestly; if the day stalled, say so.diff --git a/.claude/skills/data-forms/SKILL.md b/.claude/skills/data-forms/SKILL.mdnew file mode 100644index 0000000..4c304bb--- /dev/null+++ b/.claude/skills/data-forms/SKILL.md@@ -0,0 +1,124 @@+---+name: data-forms+description: Pick the right way to represent a dataset so a reader gets the finding in three seconds — a catalog of 20+ chart and diagram forms with when-to-use and failure modes, plus the encoding decisions that make any of them readable (takeaway headline, direct labels, kill the axis, highlight-and-mute, show the caveat). Style-agnostic — use with whatever palette or design system the destination already has. Use when charting survey results, benchmark data, usage metrics, or research findings for a post, brief, deck, or report, and whenever the default bar chart feels like it's burying the point.+---++# data-forms++A repertoire, not a style. Distilled from Lenny's Newsletter data illustrations+(2025-2026 survey issues) — what makes those charts work is not the palette, it's the+form selection and the encoding discipline. Both are portable to any visual language.++For the visual layer, use whatever the destination already has: your product's brand+tokens for in-product surfaces, the built-in `dataviz` skill for palette construction and+accessibility, your house style for personal sites. This skill decides *what shape the data+takes* — the layer above color.++## Start here: the picker++| What the data does | Reach for | Form # |+|---|---|---|+| One question, 3-6 ordered answers | Ordered column · Waffle · Nested bands | 1 · 6 · 7 |+| One question, many multi-select answers | Ranked bar · Valence bar | 3 · 4 |+| Same metric, two points in time | Paired columns · Slope | 2 · 9 |+| Same metric, 3+ points in time | Time-series area · Bump | 13 · 18 |+| One metric across 7-10 ordered buckets | Staircase column | 14 |+| One metric across many unordered segments | Small multiples · Dot plot | 8 · 17 |+| Signed score (-100…+100, net, delta) | Diverging bar | 5 |+| Two groups compared across many rows | Dumbbell | 16 |+| Agreement / Likert across several statements | Centered stacked row | 19 |+| Segments × several metrics | Pill matrix | 10 |+| Open-text answers | Word cloud · Coded theme bar | 11 · 3 |+| A relationship the numbers can't carry | Metaphor diagram · Two-column flow | 12 · 20 |+| A named segmentation from clustering | Persona cards | 15 |+| Two dimensions, few labeled points | Named-quadrant scatter | 21 |++Full catalog with mockups and failure modes: `references/forms.md`.++## Six decisions that matter more than the form++**1. Write the takeaway before you pick a form.**+Finish the sentence "The point of this chart is ___." If you can't, you have a table,+not a chart, and no form will save it. That sentence becomes the headline. Two legal+headline modes:++- *Claim*, for comparisons and analysis — "Burnout is surging, and optimism is fading"+- *Question verbatim*, when the chart is the answer distribution — "How worried are you+ about layoffs?"++Never a field name. "Burnout by company size" is a spreadsheet tab.++**2. Print every value.** The reader should never estimate against an axis. Number sits+adjacent to its mark. This is what earns you the right to do #3.++**3. Delete the axis.** Baseline only — no y-axis, no gridlines, no ticks. Exceptions:+time series and slope charts, where the *shape* is the message and needs a reference+grid. Everywhere else the axis is scaffolding you forgot to remove.++**4. No legend when a direct label fits.** Category name goes on or beside its mark. A+legend is justified only when one key serves several panels (small multiples) or encodes+a dimension orthogonal to position (valence, group membership).++**5. Highlight two, mute the rest.** In a nine-category comparison, only the one or two+subjects named in the headline get emphasis; everyone else recedes. The chart should+argue the headline, not present the table. If the highlighted subject isn't actually the+outlier, the chart just disproved your headline — change the headline, not the data.++**6. Show the caveat in-frame.** Small n, margin of error, non-response, "percentages+sum past 100 because multi-select" — put it in the chart, not a footnote. A dashed+outline on a non-significant bar with a bracket reading "difference within margin of+error" is more credible than a clean chart plus a disclaimer nobody reads.++And one restraint: **at most one annotation.** Point at the thing a reader would+otherwise miss. Zero is fine. Two is clutter.++## Encoding rules of thumb++- **Color means something or it isn't there.** Don't color bars that a label already+ distinguishes. Reserve saturation for the subject of the headline.+- **Sequential ramp = magnitude or rank. Diverging ramp = signed. Categorical = identity.**+ Mixing these is the most common way a chart lies.+- **Per-column scales in a matrix.** In form 10, each metric gets its own ramp and its own+ direction, otherwise "dark = high" fights "dark = bad."+- **Neutral is an unfilled outline, not grey.** Grey reads as missing data.+- **Redundant encoding is fine where there's no axis** — a word cloud can size *and* color+ by frequency; nothing is being wasted.+- **Order carries meaning.** Sort by value unless the categories are inherently ordered+ (time, buckets, Likert). Keep the same order across every panel of a small multiple.+- **Bars start at zero, always.** If zero isn't meaningful for the metric, you wanted a+ dot plot (form 17), not a bar.+- **Anthropomorphize only when the subject is human.** Waffle grids of people, emoji+ anchors, persona illustrations — these earn their keep for sentiment and headcount, and+ read as cheap for latency and revenue.++## Workflow++1. State the takeaway in one sentence.+2. Classify what the data does (distribution / ranking / comparison / trend /+ correlation / composition / qualitative) and pick from the picker table.+3. Read that form's entry in `references/forms.md` — especially its failure mode. If your+ data triggers the failure mode, take the alternative listed there.+4. Apply the six decisions and the encoding rules.+5. Build it in whatever the destination uses.+6. **Render it and look at the image.** Not the DOM, not the spec — the pixels. Run the+ checklist. Fix what you see and re-render.++## Pre-ship checklist++Read the rendered image and answer each. A "no" is a fix, not a note.++- [ ] Headline states a finding or asks the literal question — not a field name+- [ ] Every mark carries its value, legible at 50% zoom+- [ ] No legend that direct labels could have replaced+- [ ] Emphasis lands on the subject of the headline; everything else recedes+- [ ] Longest label doesn't collide with, wrap under, or overflow its mark+- [ ] Bars start at zero; no truncated scale+- [ ] ≤1 annotation+- [ ] Squint test: at 25% zoom the shape of the answer still reads+- [ ] Caveats (n, margin of error, multi-select) visible in-frame+- [ ] The form's own failure mode from `references/forms.md` does not apply++## Reference++`references/forms.md` — 21 forms, each with an ASCII mockup, when to use it, and the+condition under which it stops working.diff --git a/.claude/skills/data-forms/references/forms.md b/.claude/skills/data-forms/references/forms.mdnew file mode 100644index 0000000..4ed7301--- /dev/null+++ b/.claude/skills/data-forms/references/forms.md@@ -0,0 +1,598 @@+# Form catalog++21 ways to represent a dataset. Each entry: what it's for, the shape, and the condition+under which it stops working. Mockups show structure only — apply the destination's+visual language on top.++Forms 1-15 are observed working in the wild (Lenny's Newsletter survey issues, 2025-2026).+Forms 16-21 obey the same grammar and fill gaps the first fifteen leave.++---++## 1. Ordered column chart++**For** one question with 3-6 answers on an ordered scale, where the *shape* of the+distribution is the finding.++```+ How has AI shifted your professional identity?++ Amplified+ 49%+ ┌───────┐+ │ │ Redefined+ │ │ 27%+ │ │ ┌───────┐ Destabilized+ │ │ │ │ 14%+ │ │ │ │ ┌───────┐ Diminished+ │ │ │ │ │ │ 5% Unchanged+ │ │ │ │ │ │ ┌──────┐ 3%+ ──┴──😄───┴────────┴──🤩───┴─────┴──😵───┴────┴──😞──┴────┬──😐─┬──+```++Label and value stack *above* each column, left-aligned to it, so nothing sits in the+plot area. An icon on the baseline gives each column an identity the eye can grab before+it reads. Magnitude runs the ramp by rank.++**Stops working when** the categories aren't ordered — then ranking by value matters more+than sequence, and you want form 3. Also breaks past ~6 columns: they go thin and the+stacked labels collide.++---++## 2. Paired columns++**For** exactly two time points, on one or two metrics, where direction is the story.++```+ Burnout is surging, and optimism is fading++ HOW BURNED HOW OPTIMISTIC+ OUT ARE YOU? ARE YOU?+ ╭─→ ╲+ 55.7% ╲__→+ 44.7% ┌────┐ 54.8% 48.7%+ ┌────┐ │ │ ┌────┐ ┌────┐+ │2025│ │2026│ │2025│ │2026│+ ──┴────┴──┴────┴────────────┴────┴───┴────┴──+```++Period labels go *inside* the bars, values above — that removes the x-axis entirely. One+arrow per pair showing direction. Encode "up is bad" vs "up is good" differently so both+pairs read as the same news without a sentence of explanation.++**Stops working when** you have three or more time points. Two columns imply a line the+reader draws themselves; three imply a trend you should actually draw (form 9 or 13).++---++## 3. Ranked horizontal bar++**For** multi-select questions, or any ranking of 5-15 items. The workhorse. Percentages+summing past 100 is expected — say so in a subhead.++```+ The underlying fear is of being overworked++ ┌─────────────────────────────────────────────────┐ 51%+ │ Expected to do more for same pay │+ └─────────────────────────────────────────────────┘+ ┌───────────────────────────────────────────┐ 46%+ │ Pace is becoming unsustainable │+ └───────────────────────────────────────────┘+ ┌───────────────────────────────────────┐ 43%+ │ Becoming too dependent on AI │+ └───────────────────────────────────────┘+ ┌────────────────────────────┐ 30%+ │ Skills becoming less valuable ← label overflows,+ └────────────────────────────┘ see failure mode+```++Label **inside** the bar at the left, value **outside** at the right. One treatment for+every bar — length already ranks them, so color would be noise. Common left edge.++**Stops working when** the top bar is more than ~4× the bottom one: short bars can't hold+their label. Fix by moving all labels outside-left, right-aligned in a fixed gutter.++---++## 4. Valence bar++Form 3 plus a categorical encoding orthogonal to length.++```+ What emotions describe how you feel about AI at work?++ ┌─🙂─────────────────────────────────────────┐ 71%+ │ Curious │ ██ Positive+ ┌─😀───────────────────────────────────┐ 64% ▢▢ Neutral+ │ Excited │ ▓▓ Negative+ ┌─😵──────────────────────────┐ 54%+ │ Overwhelmed │+ ┌─🙃────────────────────┐ 51%+ │ Conflicted │ ← unfilled outline = neutral+```++One of the few places a legend is correct: the second dimension repeats down the rows and+can't be direct-labeled without repeating a word eleven times. Render neutral as an+*unfilled outline* rather than grey — grey reads as missing data.++**Stops working when** the valence assignment is arguable. If reasonable people would sort+the categories differently, don't encode it; you're smuggling an opinion into a channel+the reader will trust as fact.++---++## 5. Diverging bar++**For** a metric with a real, meaningful zero on both sides: NPS, net sentiment, change+vs. baseline, net promoter/detractor.++```+ How likely are you to recommend a career in your role?++ ┊ detractor side │ promoter side+ Founder / Executive ┊ -3 ▐│+ Sales / GTM ┊ -32 ▐▐▐▐▐▐▐│+ PM ┊ -35 ▐▐▐▐▐▐▐▐│+ Operations ┊ -46 ▐▐▐▐▐▐▐▐▐▐│+ Engineering ┊ -48 ▐▐▐▐▐▐▐▐▐▐▐│+ Marketing ┊ -49 ▐▐▐▐▐▐▐▐▐▐▐│+ Data / Analytics ┊ -54 ▐▐▐▐▐▐▐▐▐▐▐▐│+ Design ┊ -67 ▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐│+ Research ┊ -68 ▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐│+ -100 Detractors 0 Promoters 100+```++Tint each half-plane faintly and name it under the axis. Keep the zero line heavy.+**Keep the scale symmetric even when every value sits on one side** — the empty half is+the finding, and cropping it to "use the space" destroys the whole point.++**Stops working when** zero is arbitrary. A diverging form on a metric with no natural+midpoint invents a judgment.++---++## 6. Waffle / dot matrix++**For** making a percentage feel like people. 100 marks, one per point.++```+ How worried are you about layoffs?++ 😐 28% 😔 31% 😟 21% 😧 12% 😱 8%+ Not at all Slightly Moderately Very Extremely++ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○+ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○+ ┌─ ○ ○ ○ ○ ○ ○ ○ ○ ◐ ◐+ 72% │ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◐+ of │ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◐+ people │ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◐ ◔+ are │ ◔ ◔ ◔ ◔ ◔ ◔ ◔ ◔ ◔ ◔ ─┐ 41.2%+ worried │ ◔ ◔ ◔ ◔ ◔ ◔ ◔ ◔ ◔ ◔ │ are at least+ │ ◑ ◑ ◑ ◑ ◑ ◑ ◑ ◑ ◑ ◑ │ moderately+ └─ ◑ ◑ ● ● ● ● ● ● ● ● ─┘ worried+```++Fill bottom-up so the heavy end is grounded. The brackets are the reason this beats a+bar: they call out *cumulative* groupings the reader would otherwise have to add up, and+you can run two overlapping ones (72% worried at all, 41% at least moderately) without+drawing a second chart.++**Stops working when** you need decimal precision — a waffle rounds to whole points — or+past ~5 categories, where the grid turns to static.++---++## 7. Nested bands++**For** categories that genuinely nest, where the headline is a cumulative figure.++```+ How much better are you at your job?++ Drawn as concentric circles; the nesting logic is what matters:++ ┌─ 97.2% say AI is making them better ─────────────────────────┐+ │ │+ │ ┌─ 81.7% moderately better or more ──────────────────┐ │+ │ │ │ │+ │ │ ┌─ 49.4% "very much" or "extremely" ───────┐ │ │+ │ │ │ │ │ │+ │ │ │ ┌─ 15.3% "extremely better" ───┐ │ │ │+ │ │ │ └──────────────────────────────┘ │ │ │+ │ │ └──────────────────────────────────────────┘ │ │+ │ └────────────────────────────────────────────────────┘ │+ └──────────────────────────────────────────────────────────────┘+ 2.8% not at all 15.5% slightly 32.3% moderately 34.1% very+ └── each band's own share, labelled inside its ring ──┘+```++Concentric bands, each one a category, drawn so the eye reads "and also, and also."+Leader lines carry the cumulative claims outside the shape. This is the honest+replacement for a pie chart on ordered data: it shows both the parts and the running+total, which a pie cannot.++**Stops working when** the categories don't actually nest — then the geometry is claiming+a containment relationship that doesn't exist, which is worse than a plain column chart.++---++## 8. Small multiples++**For** proving "X is consistently the outlier" when no single chart can.++```+ Designers and researchers are the most negative across the board++ 61% 57% 63% 60% 55% 53%+ ██ ██ 51% 50% 49% ██ ██ ░░ ░░ 52%+ 33% ██ ██ ░░ ░░ ░░ ██ ██ ░░ ░░ ░░+ ██ 25% 24% 23% 23% ██ ██ ░░ ░░ ░░ ██ ██ ░░ ░░ ░░+ ██ ██ ░░ ░░ ░░ ██ ██ ░░ ░░ ░░ ██ ██ ░░ ░░ ░░+ ██ ██ ░░ ░░ ░░ ██ ██ ░░ ░░ ░░ ██ ██ ░░ ░░ ░░+ ────────────────── ────────────────── ──────────────────+ AI-identity: Emotion: Tired Emotion: Overwhelmed+ Destabilized++ ██ Design ██ Research ░░ Engineering ░░ Operations ░░ PM …++ Shared 0-70 scale across all three panels — never per-panel maxima.+```++Same category order in every panel, non-negotiable. Emphasis only on the subjects named+in the headline; everyone else recedes into one muted ramp. Panel titles name the+*metric*; the headline carries the claim. One shared legend.++**Stops working when** panels use different scales without saying so, or when the+highlighted subject isn't consistent across panels. The second case means the chart+disproves the headline — which is useful information, so change the headline.++---++## 9. Slope chart++**For** two series moving in opposite directions, where the crossing is the story.++```+ A great manager changes everything++ 5+ ● 4.04+ 4 ● 3.31 ● 3.63 ╱ Job enjoyment+ ● 3.22 ● 2.95 ╱───────────────────+ 3 ╲ 2.90 ●───╲╱────● 2.70+ ╲───────╱ ╲──────● 2.46 ● 2.33 Burnout+ 2 ● 2.44+ 1+ 0 Not at all Slightly Moderately Very Extremely+ Manager effectiveness+```++One of two forms that keeps a grid, because slope needs a reference. Value labels on+every point, offset *above* the rising series and *below* the falling one so they never+collide at the crossing. Series named at their right endpoint beats a legend.++**Stops working when** the x-axis is categorical and unordered. Connecting those points+implies a progression that doesn't exist.++---++## 10. Pill matrix++**For** a small table (4-8 rows × 3-5 metrics) that would otherwise get skipped. Each+cell becomes a mini bar carrying its own number.++```+ ┌──────────────┬───────────────┬──────────────┬────────────────┐+ │ Company size │ Career optim. │ Burnout │ Would recommend│+ │ │ (1–5) │ (1–5) │ (NPS) │+ ├──────────────┼───────────────┼──────────────┼────────────────┤+ │ 1–10 │ (3.55▓▓▓▓░░░) │ (2.33▓░░░░░) │ (6.19▓▓▓▓▓░░░) │+ │ 11–50 │ (3.37▓▓▓▓░░░) │ (2.61▓▓░░░░) │ (6.09▓▓▓▓▓░░░) │+ │ 51–200 │ (3.30▓▓▓░░░░) │ (2.68▓▓░░░░) │ (5.98▓▓▓▓░░░░) │+ │ 1K–5K │ (3.14▓▓▓░░░░) │ (2.85▓▓▓░░░) │ (5.70▓▓▓░░░░░) │+ │ 10,000+ │ (3.04▓▓░░░░░) │ (2.90▓▓▓░░░) │ (5.79▓▓▓░░░░░) │+ └──────────────┴───────────────┴──────────────┴────────────────┘+```++**Each column gets its own scale and its own ramp direction** — high-is-good and+high-is-bad must not share an encoding. Scale stated once in the header, never repeated+in cells. Sort rows by whichever metric carries the story; the monotonic staircase down+one column is what the reader will notice.++**Stops working when** you apply one ramp across all columns, or when rows exceed ~8 and+it reverts to being a table with decoration.++---++## 11. Word cloud++**For** an open-text question that asked for a single word, where the pile is the point.++```+ The industry is "chaotic"++ mess moving layoffs flux tools+ unstable hype pace+ huge c h a n g e better+ leadership exciting costs bubble+ quality uncertain fast shift pressure+ evolving opportunity money+```++Size by frequency; colouring by frequency too is correct here — with no axis, redundant+encoding costs nothing and gains legibility. Cap at ~25 words. Headline quotes the modal+word so the reader gets the answer even if they don't scan the cloud.++**Stops working when** the question allowed a phrase. Code the responses into themes+first, then use form 3 — a cloud of phrases is unreadable and a cloud of their constituent+words is meaningless.++---++## 12. Metaphor diagram++**For** a relationship the numbers can't carry: surface vs. hidden, stated vs. actual,+what's measured vs. what matters.++```+ The productivity iceberg++ ┌──────────────┐ ╱╲+ │On the surface│ ╱ ╲ 97.2%+ │"We're doing │ ╱ ╲ say AI is making+ │ better!" │ ╱ ╲ them better+ └──────────────┘ ~~~~~~~~~~╱~~~~~~~~╲~~~~~~~~~~~~~~~~~+ ┌──────────────┐ ╱ ╲+ │ Just below │ │ "I CAN DO │+ │Output quality│ │ MORE, FASTER │+ └──────────────┘ │ BUT NOT │+ ┌──────────────┐ │ BETTER." │+ │The deep cost │ ╲ ╱+ │Thinking and │ ╲ "MY BRAIN ╱+ │ judgment │ ╲IS ROTTING"╱+ └──────────────┘ ╲_________╱+```++Left rail names the tiers; the shape carries verbatim quotes. **One statistic maximum** —+the metaphor is doing the work, and a second number turns it into a bad chart instead of+a good diagram.++**Stops working when** the metaphor implies a proportion the data doesn't have. An+iceberg asserts "most of it is hidden." Don't use one for a 60/40 split.++---++## 13. Time-series area++**For** many points over time where the current value matters as much as the shape.++```+ Most open PM jobs since 2022 ← headline, left-aligned+ ( 7,379 open PM jobs ) ↑ 79% from low (4,113) ← current value + delta++ 12K ┼───────────────────────────────────────── as of March 2026+ 10K ┤╲ MOST OPEN PM+ 8K ┤ ╲ ROLES IN 3+ YEARS ╲+ 6K ┤ ╲___ ______________________────→●+ 4K ┤▓▓▓▓▓▓▓╲__________╱▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓+ 2K ┤▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓+ 0 ┴────┬──────┬──────┬──────┬──────+ 2023 2024 2025 2026+```++The other exception to "delete the axis": keeps faint gridlines and a filled area, both+of which help the eye read slope. Lead with the current value as a standalone figure and+a delta-from-reference, so a reader who never looks at the curve still leaves with the+number. Stamp the as-of date in-frame.++**Stops working when** the y-axis is truncated. Never truncate here — this form is+entirely about honest slope, and a cropped baseline exaggerates every move.++---++## 14. Staircase column++**For** one metric across 7-10 *ordered* buckets, where monotonicity is the finding.++```+ Burnout climbs by company size+ ┌ Difference within+ │ margin of error+ ┌────┴─────┐+ 65%+ 61% ┌───┐ 61%+ 56% ┌───┐ │ │ ┌╌╌╌┐ ← dashed cap =+ 54% ┌───┐ │ │ │ │ ┆ ┆ not significant+ 52% ┌───┐ │ │ │ │ │ │ ┆ ┆+ 42% ┌───┐ │ │ │ │ │ │ │ │ ┆ ┆+ ┌───┐ │ │ │ │ │ │ │ │ │ │ ┆ ┆+ │ │ │ │ │ │ │ │ │ │ │ │ ┆ ┆+ ──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──+ 1–10 11–50 51–200 201–1K 1–5K 5–10K 10K++```++Single treatment, intensity rising with value, so the staircase reads as one trend rather+than seven facts. The dashed cap plus bracket is the honest way to keep a+non-significant final bar instead of quietly dropping it.++**Stops working when** the buckets aren't ordered — then sort by value and use form 3.++---++## 15. Persona cards++**For** a segmentation where the reader should remember the *names*, not the shares.++```+ The four tech workers of 2026++ ╭────────────╮ ╭────────────╮ ╭────────────╮ ╭────────────╮+ │ 💪 │ │ 🤷 │ │ 😵 │ │ 😠 │+ │ │ │ │ │ │ │ │+ │ THE │ │ THE │ │ THE │ │ THE │+ │ ENERGIZED │ │ CONFLICTED │ │DISORIENTED │ │ RESENTFUL │+ │ All-in │ │ Ambivalent │ │ Role keeps │ │ Pressured, │+ │ adopters │ │ middle │ │ shifting │ │ checked-out│+ │ 41% │ │ 35% │ │ 12% │ │ 12% │+ ╰────────────╯ ╰────────────╯ ╰────────────╯ ╰────────────╯+```++Name, one-line descriptor, share — in that order of prominence, because that's the order+of what you want retained. A distinct image per card does more for recall than any+encoding. Cards laid out in share order.++**Stops working when** the segments came from a hunch rather than a clustering. This form+radiates rigor; using it on made-up groups is the most expensive lie in the catalog.++---++## 16. Dumbbell++**For** two groups compared on one metric across many rows, where the *gap* is the point.++```+ Enterprise buyers care about compliance; SMBs don't++ Compliance SMB ●───────────────────────────● Ent gap 42+ Onboarding SMB ●──────────────● Ent gap 19+ Price Ent ●──────● SMB gap 9+ Integrations SMB ●────● Ent gap 4+```++Direct-label both endpoints, weight the connector by gap size so the ranking of gaps+reads before the values do. Sort by gap, not by either endpoint.++**Stops working when** the two groups cross rank frequently — the crossing connectors+become spaghetti. Use paired small multiples instead.++---++## 17. Dot plot++**For** a ranking where zero is not meaningful: averages, indexes, scores, years, rates.++```+ Average time-to-first-value, by plan++ Enterprise ────────────────────● 18.2 days+ Business ──────────● 11.4+ Pro ───────● 8.9+ Free ─────● 6.1+ 6 9 12 15 18+```++Bars imply a zero baseline and make a 6-vs-8 difference look like nothing. Dots don't+carry that promise, so you can start the scale where the data lives without lying.++**Stops working when** the reader will read the dots as a count. Anything that *is* a+total or a share should be a bar.++---++## 18. Bump chart++**For** ranking over time — who moved up, who fell.++```+ Claude overtook Perplexity in the assistant stack++ rank 2023 2024 2025 2026+ 1 ChatGPT ────── ChatGPT ────── ChatGPT ────── ChatGPT+ 2 Perplex ──╮ ╭─ Claude ─────── Claude ─────── Claude+ 3 Claude ───╯ ╰─ Perplex ──╮ ╭─ Gemini ─────── Gemini+ 4 Gemini ─────── Gemini ───╯ ╰─ Perplex ────── Perplex+```++Cap at ~8 series. Highlight the one or two whose movement is the headline; mute the rest+into a single background treatment, or the chart becomes a plate of noodles.++**Stops working when** ranks barely change — a bump chart of four parallel lines says+"nothing happened" in the most expensive possible way. Use a table.++---++## 19. Centered stacked row++**For** Likert agreement across several statements. The classic survey form.++```+ Where teams agree — and where they don't++ ◄ disagree │ agree ►+ AI saves me time ▓▓▓░│░████████████████████ 82% agree+ Quality has improved ▓▓▓▓▓▓▓▓░░░│░░░████████████ 48%+ I trust the output ▓▓▓▓▓▓▓▓▓▓▓▓░░│░░░████████ 31%+ My role is secure ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░│░░██████ 22%+ ▓ disagree ░ neutral █ agree+```++Center each row on the neutral midpoint rather than at 0%, so agree and disagree extend+in opposite directions and the rows are comparable at a glance. Sort by net agreement.+Put the summary percentage outside the row.++**Stops working when** the neutral bucket is large and you hide it. Split neutral across+the midpoint or show it explicitly; suppressing it inflates both wings.++---++## 20. Two-column flow++**For** paired transformations: intention → result, promise → reality, input → outcome.+The honest small-scale alternative to a Sankey.++```+ What teams intend vs. what they get++ INTENTION RESULT+ get noticed ▶ make mediocre work+ make good work ▶ get noticed+ ship faster ▶ ship more rework+```++Two columns, a repeated connector glyph, nothing else. Its power is the *reversal* the+reader notices between rows one and two.++**Stops working when** the mapping is many-to-many. Then you need a real flow diagram,+and you should question whether the reader will follow it.++---++## 21. Named-quadrant scatter++**For** two dimensions and few enough points to label every one.++```+ High impact, low effort: three obvious bets++ high │ DO LATER │ DO FIRST+ impact │ ● Multi-tenant │ ● SSO+ │ ● Audit log │ ● Bulk import+ │────────────────────────┼─────────────────────+ │ DON'T │ QUICK WINS+ low │ ● Theme editor │ ● CSV export+ └────────────────────────┴─────────────────────+ high effort low effort+```++Every quadrant gets a verb, not a coordinate description — the label should tell the+reader what to *do*, which is the only reason to draw quadrants. Label every point.++**Stops working when** there are more than ~20 points, or the axes are estimates dressed+as measurements. An unlabeled scatter belongs in analysis, not in a deliverable.++---++## Never++- **Pie and donut charts.** Form 7 shows the same composition plus cumulative totals;+ form 1 shows it with comparable lengths. A pie is strictly worse than both.+- **Dual y-axes.** The correlation is manufactured by whatever scaling you chose.+- **Radar / spider charts.** Area scales with the square of the values and the shape+ changes when you reorder the axes. Use form 10.+- **Gauges and speedometers.** Enormous ink for one number. Just write the number.+- **3D anything, gradient fills as decoration, drop shadows on data marks.**+- **Treemaps under ~15 items.** Use a ranked bar; area is harder to compare than length.+- **Truncated y-axes**, anywhere, ever.diff --git a/.claude/skills/editorial-illustrations/SKILL.md b/.claude/skills/editorial-illustrations/SKILL.mdnew file mode 100644index 0000000..dce135c--- /dev/null+++ b/.claude/skills/editorial-illustrations/SKILL.md@@ -0,0 +1,163 @@+---+name: editorial-illustrations+description: >+ Generate meaning-carrying editorial data-illustrations in the monotykamary /+ Linear aesthetic (near-black grayscale, Inter display + mono labels, hairline+ framed figures) with a single coral accent. This is a GENERATIVE GUIDE, not a+ template gallery: it teaches the "claim -> geometry" method so any session can+ invent the RIGHT figure for what a post actually argues, then render it as a+ self-contained, theme-aware, reduced-motion-safe HTML/SVG figure. Use when+ writing/illustrating a blog post, essay, spec, or slide and you want a chart,+ diagram, or illustration that carries a thesis (not decoration) in the house+ style. Triggers: "make a chart/diagram/illustration for this", "visualize this+ argument", "monotykamary/Linear style figure", "editorial graphic".+---++# Editorial illustrations — claim → geometry++The look you want (monotykamary.com, linear.app/now) is not a chart library. It is+a **discipline**: every figure is a single argument rendered as geometry, framed in+a hairline box, captioned in mono uppercase with the *meaning*, drawn in grayscale+with exactly one accent. Get the discipline right and any shape reads as "house."+Copy templates blindly and it reads as slop.++**Do not reach for a fixed set of charts.** Reach for the method below and build the+figure this specific sentence needs. The six worked examples in+`references/worked-examples.md` are proof the method generalizes, not a menu.++## The core move++> Take the one sentence the figure must prove. Find that sentence's *structure*.+> Render the structure so the reader believes the sentence before reading it.++The caption is the thesis, written first. If you can't state the figure's claim in+one sentence, you don't have a figure yet, you have decoration. Stop.++## Method (run this every time)++1. **Write the claim.** One declarative sentence. This becomes the `<figcaption>`+ verbatim. Example: "Nothing is billable until work crosses the delivery boundary."++2. **Name the claim's structure.** Which of these is the sentence really about?+ Match to a geometric primitive:++ | If the claim is about… | Render it as… | Atom (§5) |+ |-------------------------------------------|------------------------------|-----------|+ | a spectrum / more-vs-less / a gradient | ordered cells, rising fill | 5a |+ | ranked magnitudes / shares / a comparison | horizontal bars, real axis | 5b |+ | a sequence with a tipping point | stage grid + traveling dot | 5a + rail |+ | mutual causation / a feedback relationship| two coupled orbits + bridge | 5d |+ | a branch / decision under uncertainty | node-and-branch SVG tree | 5c |+ | one thing changing form / a data pipeline | stage rail, a glyph per stage| 5e |+ | accumulation toward a target | stacked / filling bar | 5a/5b |+ | a boundary / inside-vs-outside | a framed region + a crossing | compose |+ | a distribution / where mass sits | dot-strip or small-multiples | compose |++ If nothing matches, **compose a new primitive** from the atoms in+ `references/design-system.md §5`. The novelty is expected and welcome; the+ *tokens and restraint* are what must stay constant.++3. **Locate the point.** Which single element proves the claim? That one gets+ `--accent` (coral). Everything else stays grayscale. One accent, maybe two.+ No point → the figure has no thesis → go back to step 1.++4. **Draw in the system.** Apply `references/design-system.md`: tokens, the+ typography law (display = Inter 480–540 tight; everything else mono, tiny,+ UPPERCASE labels), the framed-figure chrome, 720-wide SVG viewBox, hairlines+ only, no chartjunk.++5. **Add motion only if it demonstrates the claim.** A dot that pauses before a+ boundary; a pulse crossing between two loops; a signal falling down a branch.+ 2–6s, `ease-in-out`, and always killed under `prefers-reduced-motion`. If motion+ doesn't *show* the argument, omit it. Static is fine and often better.++6. **Caption it.** Mono, 8px, uppercase, above-the-rule. State the meaning, not the+ data source alone. ("…because X," not "Figure 3.")++## The aesthetic in one breath++- **Field:** matches the host — near-black `--ground:#080807` on a dark page, white/+ off-white on a light page (both token sets in `design-system.md`). Framed figures+ on a faint surface; `backdrop-filter: blur(16px)` on dark, a hairline + faint+ shadow on light.+- **Type:** Inter for the rare big display; **mono for everything inside a figure**,+ 7–11px, labels/captions UPPERCASE. Never a second sans, never a bold display.+- **Color:** grayscale ramp (`--ink → --quiet`) + **one** accent = Claude-coral+ `#D97757`, on the point only. (Set `--accent: var(--ink)` for monotykamary-faithful+ pure grayscale.)+- **Structure:** 1px hairlines, true-circle nodes, dashed = provisional/failure,+ no shadows, no gradients except a single axis-direction hairline.+- **Density:** small type, tight cells, edge-to-edge. Restraint is the style.++Full spec + copy-paste token blocks (dark AND light) + primitive CSS:+`references/design-system.md`. Worked examples with the claim→geometry reasoning:+`references/worked-examples.md`. Non-chart editorial elements (metric strip, status+aside, kicker+sigil, numbered chapter index, prose type, inline cards):+`references/elements.md`. Live rendered proof (coral house style, toggleable):+`assets/gallery.html`.++## The figure follows the host page's theme (ALWAYS)++A figure is a guest on someone's page. It must match that page's light/dark, not+impose its own. A dark exhibit panel dropped into a light article reads as a foreign+object (learned the hard way, 2026-07-22).++- **Look at the host first.** Light page → light figure. Dark page → dark figure.+ a host site may default **light** and carry its own **theme toggle** (e.g. Charter serif heads + Public Sans body,+ blue accent) that stamps `data-theme="light"|"dark"` on `<html>` — figures there+ must **follow `data-theme`**, defaulting light.+- **If the host has an explicit theme system, key the dark override off IT, not the+ media query.** Use `:root[data-theme="dark"] .yourfig { … }`, NOT+ `@media (prefers-color-scheme: dark)`. Real bug (2026-07-22): a figure keyed on the+ media query rendered **dark on the light blog** because the viewer's OS was dark and+ the page theme was light. The page's `data-theme` is the source of truth; the media+ query only applies on hosts that have no toggle. On a toggled host, match the site's own+ dark tokens (ground `#171b22`, line `#262c36`, ink `#f1f5f9`) so the figure's dark+ panel sits in the site's dark, not a foreign near-black.+- **Build token-based so it adapts.** Define the palette on the figure's own scope,+ default = the host's default theme, plus a `:root[data-theme="dark"] .fig` override+ (and a `@media (prefers-color-scheme: dark)` override too ONLY if the host has no+ toggle). Costs nothing, future-proofs the figure.+- **Coral is AA-safe per ground.** On white use `--accent:#c15f3c` for text/strokes+ (keep `#D97757` only for large node fills); on near-black use `#D97757` directly.+- The **claim→geometry method and the restraint rules are theme-independent.** Only+ the palette tokens swap. Grayscale-ramp + one coral accent holds on both grounds.++## Output contract++- One self-contained `<figure>` per illustration: inline `<style>` scoped to the+ figure (or shared token `:root`), inline SVG, no external requests.+- **Theme = host's** (see above): light default when embedded in a light page, but+ always token-based with `prefers-color-scheme` + `:root[data-theme]` overrides, and+ **reduced-motion-safe**. Both are house rules, not optional.+- For an **Artifact**: no external fonts/CDN (CSP blocks them); inline `@font-face`+ data-URIs or fall back to `system-ui`/`ui-monospace`.+- For **blog posts on your own site**: emit the figure HTML/CSS into the post body (markdown+ passes raw HTML through verbatim via `build.py`). The blog is **light**, so the+ light tokens apply; keep the dark override for portability. Rebuild with+ `python3 build.py`; the built page uses absolute asset paths so preview it via a+ local server or a self-contained standalone copy, never a bare `file://` open+ (that renders the post unstyled). See a local self-contained HTML preview.++## Verify (mandatory — this is a UI/UX output)++Per the Visual Verification rule, a DOM check is not enough. **Render it and look.**++1. Open the figure in browser-harness, screenshot it (`evidence_shot`).+2. Read the image against the claim: does the geometry make the sentence obvious?+ Is coral on the point and nowhere else? Any clipped mono text, misaligned SVG+ labels, off-by-one bar math, broken responsive stack at ≤720px?+3. Fix what you see, re-shot to prove it. Check the light variant too.+4. Confirm motion stops under reduced-motion.++## Anti-slop checklist (reject the figure if any fail)++- [ ] The figcaption is a real claim, stated in one sentence.+- [ ] The geometry encodes that claim's *structure* (not a generic chart pinned on).+- [ ] Exactly one accent element (coral), on the point.+- [ ] Every in-figure label/value/caption is mono + tiny; labels UPPERCASE.+- [ ] Hairlines only; no shadows, no gradients (bar-axis hairline excepted), no+ rounded rectangles.+- [ ] Gridlines present only if the figure is genuinely quantitative.+- [ ] Motion (if any) demonstrates the claim and dies under reduced-motion.+- [ ] Renders correctly in both dark and light, and stacks cleanly on mobile.diff --git a/.claude/skills/editorial-illustrations/assets/gallery.html b/.claude/skills/editorial-illustrations/assets/gallery.htmlnew file mode 100644index 0000000..33c59a7--- /dev/null+++ b/.claude/skills/editorial-illustrations/assets/gallery.html@@ -0,0 +1,359 @@+<!doctype html>+<html lang="en" data-theme="dark">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Editorial illustrations — claim → geometry</title>+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;480;540&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">+<style>+:root{+ --ground:#080807; --ground-deep:#030303; --surface:#080807cc; --surface-solid:#0c0c0b;+ --ink:#f2f2ed; --ink-soft:#d0d0c9; --muted:#92928a; --quiet:#5f5f59;+ --line:#292925; --line-strong:#54544e;+ --accent:#D97757; --accent-soft:#e6a488;+ --sans:"Inter","Inter Variable",system-ui,sans-serif;+ --mono:"JetBrains Mono","JetBrains Mono Variable",ui-monospace,"SF Mono",Menlo,Consolas,monospace;+}+:root[data-theme="light"]{+ --ground:#f7f7f2; --ground-deep:#ecece6; --surface:#f7f7f2cc; --surface-solid:#fbfbf7;+ --ink:#191917; --ink-soft:#3d3d38; --muted:#6a6a62; --quiet:#9a9a90;+ --line:#deded6; --line-strong:#b7b7ad;+ --accent:#c15f3c; --accent-soft:#d97757;+}+:root[data-accent="mono"]{ --accent:var(--ink); --accent-soft:var(--ink-soft); }+*{box-sizing:border-box}+body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--sans);+ -webkit-font-smoothing:antialiased;line-height:1.5;transition:background .3s,color .3s}+.wrap{max-width:860px;margin:0 auto;padding:0 24px 120px}+header.top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;+ padding:56px 0 40px;flex-wrap:wrap}+h1{font-family:var(--sans);font-weight:480;letter-spacing:-.04em;font-size:clamp(30px,5vw,52px);+ line-height:1;margin:0 0 14px}+h1 em{font-style:normal;color:var(--accent)}+.sub{color:var(--muted);font-size:15px;max-width:44ch;margin:0}+.kicker{font:8px/1 var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--quiet);+ margin:0 0 16px}+.controls{display:flex;gap:8px;flex-shrink:0}+.controls button{font:8px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;+ color:var(--muted);background:transparent;border:1px solid var(--line);padding:9px 12px;+ cursor:pointer;transition:.15s}+.controls button:hover{color:var(--ink);border-color:var(--line-strong)}+.method{border:1px solid var(--line);padding:22px;margin:0 0 8px;+ background:color-mix(in srgb,var(--surface) 60%,transparent)}+.method p{margin:0 0 12px;color:var(--ink-soft);font-size:14px}+.method p:last-child{margin:0}+.method b{color:var(--accent);font-weight:540}+.method code{font:11px var(--mono);color:var(--muted)}+.sec-label{font:8px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--quiet);+ border-top:1px solid var(--line);padding-top:14px;margin:56px 0 -34px}+.claim{font:8px/1.5 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--accent-soft);+ margin:52px 0 -38px}+.claim span{color:var(--quiet)}++/* ---------- base framed figure ---------- */+.fig{border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 72%,transparent);+ backdrop-filter:blur(16px);margin:52px 0;padding:20px}+.fig svg{width:100%;height:auto;display:block}+.fig figcaption{border-top:1px solid var(--line);color:var(--quiet);font:8px/1.6 var(--mono);+ letter-spacing:.04em;text-transform:uppercase;margin-top:18px;padding-top:13px}++/* ---------- 5a cells (spectrum / pipeline) ---------- */+.cells .axis,.cells .stakes{display:flex;justify-content:space-between;align-items:center;+ color:var(--quiet);font:7px/1 var(--mono);text-transform:uppercase}+.cells .axis i{flex:1;height:1px;margin-inline:12px;background:linear-gradient(90deg,var(--quiet),var(--accent))}+.cells .stakes b{color:var(--ink-soft);font-weight:450}+.cells .row{display:grid;grid-template-columns:repeat(var(--n,5),1fr);margin-block:18px}+.cells .row section{position:relative;overflow:hidden;display:flex;flex-direction:column;+ min-height:145px;padding:12px;border:1px solid var(--line);border-right:0}+.cells .row section:last-child{border-right:1px solid var(--line)}+.cells .row section>span{color:var(--quiet);font:8px/1 var(--mono)}+.cells .row section>b{margin-top:auto;color:var(--ink);font-size:11px;font-weight:540}+.cells .row section>small{margin-top:5px;min-height:32px;color:var(--muted);font:7px/1.4 var(--mono)}+.cells .row section>i{position:absolute;inset:auto 0 0;height:calc(var(--v)*100%);+ background:var(--accent);opacity:calc(.10 + var(--v)*.5);transition:height .4s,opacity .4s}+.cells .row section:hover>i{opacity:calc(.28 + var(--v)*.55)}++/* ---------- 5b bars ---------- */+.bars .grid line{stroke:var(--line);stroke-width:1}+.bars .grid text{fill:var(--quiet);font:8px var(--mono)}+.bars .track{fill:var(--ground-deep)}+.bars .fill{fill:var(--ink-soft);transition:opacity .18s}+.bars .row--accent .fill{fill:var(--accent)}+.bars .row:hover .fill,.bars .row:focus .fill{opacity:.72}+.bars .row:focus{outline:none}+.bars .label{fill:var(--muted);font:10px var(--mono)}+.bars .value{fill:var(--ink);font:700 8px var(--mono)}+.bars .row--accent .value{fill:var(--accent)}++/* ---------- process (stage grid + rail) ---------- */+.process .rail{border-top:1px dashed var(--line-strong);height:20px;margin-inline:5%;+ position:relative;margin-bottom:6px}+.process .rail::before,.process .rail::after{content:"";position:absolute;top:-3px;+ width:5px;height:5px;background:var(--ink)}+.process .rail::before{left:0}.process .rail::after{right:0}+.process .rail i{position:absolute;top:-4px;width:7px;height:7px;border:1px solid var(--accent);+ background:var(--ground);animation:travel 4.8s cubic-bezier(.5,0,.5,1) infinite}+.process .stages{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}+.process .stages section{position:relative;display:flex;flex-direction:column;min-height:116px;+ padding:13px 11px;border:1px solid var(--line);background:var(--ground)}+.process .stages section>span{color:var(--quiet);font:8px/1 var(--mono)}+.process .stages section>b{margin-top:22px;color:var(--ink);font-size:11px;font-weight:540}+.process .stages section>small{margin-top:5px;color:var(--muted);font:7px/1.45 var(--mono)}+.process .stages section.is-committed{background:var(--accent);border-color:var(--accent)}+.process .stages section.is-committed>span,.process .stages section.is-committed>b,.process .stages section.is-committed>small{color:var(--ground)}++/* ---------- loops (coupled orbits) ---------- */+.loops .system{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:54px;+ min-height:310px;position:relative}+.loops .system>section>span{display:block;text-align:center;margin-bottom:10px;color:var(--quiet);+ font:8px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase}+.orbit{position:relative;aspect-ratio:1/1;max-width:230px;margin:auto;border-radius:50%;+ border:1px solid var(--line-strong);animation:breathe 6s ease-in-out infinite}+.orbit.human{animation-delay:-3s}+.orbit::before{content:"";position:absolute;inset:20%;border:1px dashed var(--line);border-radius:50%}+.orbit i{position:absolute;color:var(--muted);background:var(--ground);font:normal 7px/1 var(--mono);+ text-transform:uppercase;padding:4px 6px}+.orbit i:first-child{top:-8px;left:50%;transform:translateX(-50%)}+.orbit i:nth-child(2){top:50%;right:-14px;transform:translateY(-50%)}+.orbit i:nth-child(3){bottom:-8px;left:50%;transform:translateX(-50%)}+.orbit i:nth-child(4){top:50%;left:-12px;transform:translateY(-50%)}+.orbit b{position:absolute;inset:34%;display:grid;place-items:center;border:1px solid var(--line);+ color:var(--ink);font-weight:500;text-transform:uppercase;font-size:9px;text-align:center}+.loops .bridge{position:absolute;top:50%;left:42%;right:42%;display:grid;place-items:center}+.loops .bridge::before{content:"";border-top:1px solid var(--accent);width:100%}+.loops .bridge i{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--accent);+ animation:pulse 2.2s ease-in-out infinite alternate}+.loops .bridge span{margin-top:18px;color:var(--quiet);font:7px/1 var(--mono);text-transform:uppercase}++/* ---------- tree ---------- */+.tree .memory path{fill:none;stroke:var(--quiet);stroke-width:11;opacity:.08;filter:blur(6px)}+.tree .branches path{fill:none;stroke:var(--line-strong);stroke-width:1}+.tree .nodes circle{fill:var(--ground);stroke:var(--ink);stroke-width:1.4}+.tree .labels{fill:var(--muted);font:8px var(--mono);letter-spacing:1px}+.tree .signal{fill:var(--accent);opacity:0;transform-box:view-box;animation:signal 3.8s linear infinite}++/* ---------- state-flow rail ---------- */+.flow .rail{display:grid;grid-template-columns:1fr 28px 1fr 28px 1fr;align-items:stretch}+.flow .rail>section{display:flex;flex-direction:column;min-height:148px;padding:14px;+ border:1px solid var(--line);background:color-mix(in srgb,var(--surface-solid) 70%,transparent)}+.flow .rail>section>span{color:var(--quiet);font:8px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase}+.flow .rail>section>b{margin-top:8px;color:var(--ink);font-size:11px;font-weight:520;line-height:1.35}+.flow .focus{box-shadow:inset 0 2px var(--accent)}+.flow .arrow{display:grid;place-items:center;color:var(--quiet);font:11px/1 var(--mono)}+.flow .evt{display:flex;align-items:end;gap:5px;height:40px;margin-top:auto}+.flow .evt em{width:5px;height:5px;background:var(--quiet);animation:evt 1.8s steps(2) infinite}+.flow .evt em:nth-child(2){background:var(--ink);height:18px;animation-delay:-.4s}+.flow .evt em:nth-child(3){background:var(--ink-soft);height:30px;animation-delay:-.8s}+.flow .evt em:nth-child(4){height:12px;animation-delay:-1.2s}+.flow .stack{display:grid;gap:5px;margin-top:auto}+.flow .stack i{height:7px;background:var(--quiet)}+.flow .stack i[data-tone="critical"]{background:var(--accent);width:92%}+.flow .stack i[data-tone="relevant"]{background:var(--ink-soft);width:72%}+.flow .stack i[data-tone="info"]{background:var(--quiet);width:48%}+.flow .readout{margin-top:auto;border:1px solid var(--line);color:var(--ink);font:8px/1 var(--mono);padding:8px}+.flow .readout i{display:inline-block;width:6px;height:6px;margin-right:7px;background:var(--accent);border:1px solid var(--ink)}++/* ---------- NEW #7: accumulation toward a target ---------- */+.accrue .meter{display:grid;gap:14px;margin-block:6px}+.accrue .m{display:grid;grid-template-columns:120px 1fr 40px;align-items:center;gap:14px}+.accrue .m span{font:9px/1 var(--mono);text-transform:uppercase;color:var(--muted)}+.accrue .m .bar{height:10px;background:var(--ground-deep);position:relative;border:1px solid var(--line)}+.accrue .m .bar i{position:absolute;inset:0 auto 0 0;width:calc(var(--v)*100%);background:var(--ink-soft)}+.accrue .m.hit .bar i{background:var(--accent)}+.accrue .m .bar::after{content:"";position:absolute;top:-4px;bottom:-4px;left:calc(var(--target)*100%);+ width:1px;background:var(--accent)}+.accrue .m em{font:700 9px/1 var(--mono);font-style:normal;color:var(--quiet);text-align:right}+.accrue .m.hit em{color:var(--accent)}+.accrue .legend{display:flex;gap:20px;color:var(--quiet);font:7px/1 var(--mono);text-transform:uppercase;margin-top:16px}++/* ---------- NEW #8: boundary / inside-vs-outside ---------- */+.boundary .field{position:relative;height:220px;border:1px solid var(--line);overflow:hidden}+.boundary .zone{position:absolute;top:0;bottom:0;display:grid;place-items:center;text-align:center;padding:16px}+.boundary .zone span{font:8px/1.5 var(--mono);text-transform:uppercase;letter-spacing:.1em}+.boundary .out{left:0;right:50%;color:var(--muted)}+.boundary .in{left:50%;right:0;background:color-mix(in srgb,var(--accent) 8%,transparent);color:var(--ink-soft)}+.boundary .wall{position:absolute;top:0;bottom:0;left:50%;width:1px;background:var(--accent)}+.boundary .wall b{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--ground);+ color:var(--accent);font:7px/1 var(--mono);text-transform:uppercase;padding:6px 8px;white-space:nowrap;+ border:1px solid var(--accent)}+.boundary .dot{position:absolute;top:calc(var(--y)*1%);width:6px;height:6px;border-radius:50%;background:var(--ink)}+.boundary .cross{animation:cross 5s ease-in-out infinite}+@keyframes cross{0%{left:12%;opacity:.4}45%{left:44%;opacity:.4}55%{left:56%;opacity:1;background:var(--accent)}100%{left:82%;opacity:1;background:var(--accent)}}++/* ---------- keyframes ---------- */+@keyframes travel{0%{left:0}45%,65%{left:58%}100%{left:calc(100% - 7px)}}+@keyframes pulse{0%{opacity:.25;left:0}100%{opacity:1;left:calc(100% - 6px)}}+@keyframes breathe{50%{transform:rotate(2deg) scale(1.015)}}+@keyframes signal{0%,12%{opacity:0;transform:translateY(0)}24%{opacity:1}72%,82%{opacity:1;transform:translateY(70px)}94%,100%{opacity:0;transform:translateY(70px)}}+@keyframes evt{0%,100%{opacity:.25}50%{opacity:1}}++@media (max-width:720px){+ .cells .row,.process .stages{grid-template-columns:1fr}+ .cells .row section,.process .stages section{border-right:1px solid var(--line);min-height:84px}+ .loops .system,.flow .rail{grid-template-columns:1fr;gap:32px}+ .loops .bridge,.cells .stakes b{display:none}+ .flow .arrow{transform:rotate(90deg);min-height:26px}+ .accrue .m{grid-template-columns:90px 1fr 34px}+}+@media (prefers-reduced-motion:reduce){*{animation:none !important}}+</style>+</head>+<body>+<div class="wrap">+ <header class="top">+ <div>+ <p class="kicker">Design system · monotykamary × linear × editorial web</p>+ <h1>Claim <em>→</em> geometry</h1>+ <p class="sub">Every figure is one argument rendered as geometry. Grayscale, hairline-framed, mono-captioned, with a single coral accent on the point. Hover the figures; they respond.</p>+ </div>+ <div class="controls">+ <button id="theme">◐ Theme</button>+ <button id="accent">● Coral</button>+ </div>+ </header>++ <div class="method">+ <p><b>1.</b> Write the claim in one sentence — it becomes the caption. <b>2.</b> Name the claim's <em style="font-style:normal;color:var(--ink)">structure</em> (spectrum? ranking? sequence? mutual causation? branch? transformation?). <b>3.</b> That structure picks the geometry. <b>4.</b> Put coral on the one element that <em style="font-style:normal;color:var(--ink)">is</em> the point. <b>5.</b> Motion only if it demonstrates the argument.</p>+ <p><code>The six below are the method applied — not a fixed menu. The last two show it generalizing to new shapes.</code></p>+ </div>++ <p class="sec-label">Worked examples · the method applied</p>++ <!-- 1 spectrum -->+ <p class="claim"><span>Structure: spectrum ·</span> Autonomy isn't binary; the useful position slides.</p>+ <figure class="fig cells" style="--n:5">+ <div class="axis"><span>More oversight</span><i></i><span>More delegation</span></div>+ <div class="row">+ <section style="--v:.1"><span>01</span><b>Complete</b><small>Human decides every move</small><i></i></section>+ <section style="--v:.3"><span>02</span><b>Suggest</b><small>AI proposes local changes</small><i></i></section>+ <section style="--v:.5"><span>03</span><b>Pair</b><small>Shared iteration loop</small><i></i></section>+ <section style="--v:.75"><span>04</span><b>Delegate</b><small>AI executes bounded work</small><i></i></section>+ <section style="--v:1"><span>05</span><b>Roam</b><small>AI owns the trajectory</small><i></i></section>+ </div>+ <div class="stakes"><span>Throwaway prototype</span><b>Move deliberately, not permanently →</b><span>Production system</span></div>+ <figcaption>The useful position is contextual: autonomy moves with blast radius, expertise, and feedback quality.</figcaption>+ </figure>++ <!-- 2 bars -->+ <p class="claim"><span>Structure: ranked magnitudes ·</span> Developers avoid high-stakes AI work; trust is low.</p>+ <figure class="fig bars">+ <svg viewBox="0 0 720 336" role="img" aria-label="Selected developer-survey figures, share of respondents">+ <g class="grid">+ <g><line x1="246" x2="246" y1="18" y2="308"/><text x="246" y="12" text-anchor="middle">0</text></g>+ <g><line x1="352.5" x2="352.5" y1="18" y2="308"/><text x="352.5" y="12" text-anchor="middle">25</text></g>+ <g><line x1="459" x2="459" y1="18" y2="308"/><text x="459" y="12" text-anchor="middle">50</text></g>+ <g><line x1="565.5" x2="565.5" y1="18" y2="308"/><text x="565.5" y="12" text-anchor="middle">75</text></g>+ <g><line x1="672" x2="672" y1="18" y2="308"/><text x="672" y="12" text-anchor="middle">100</text></g>+ </g>+ <g class="row row--accent" tabindex="0"><text class="label" x="0" y="56">Avoid deployment / monitoring</text><rect class="track" x="246" y="38" width="426" height="24"/><rect class="fill" x="246" y="38" width="323.8" height="24"/><text class="value" x="561" y="55" text-anchor="end">76%</text></g>+ <g class="row row--accent" tabindex="0"><text class="label" x="0" y="108">Reject professional vibe coding</text><rect class="track" x="246" y="90" width="426" height="24"/><rect class="fill" x="246" y="90" width="306.7" height="24"/><text class="value" x="544" y="107" text-anchor="end">72%</text></g>+ <g class="row" tabindex="0"><text class="label" x="0" y="160">Avoid AI project planning</text><rect class="track" x="246" y="142" width="426" height="24"/><rect class="fill" x="246" y="142" width="293.9" height="24"/><text class="value" x="531" y="159" text-anchor="end">69%</text></g>+ <g class="row" tabindex="0"><text class="label" x="0" y="212">Cite almost-right output</text><rect class="track" x="246" y="194" width="426" height="24"/><rect class="fill" x="246" y="194" width="281.2" height="24"/><text class="value" x="519" y="211" text-anchor="end">66%</text></g>+ <g class="row row--accent" tabindex="0"><text class="label" x="0" y="264">Express high trust</text><rect class="track" x="246" y="246" width="426" height="24"/><rect class="fill" x="246" y="246" width="11" height="24"/><text class="value" x="290" y="263" text-anchor="end">2.6%</text></g>+ </svg>+ <figcaption>Selected developer-survey figures cited in this analysis · share of respondents</figcaption>+ </figure>++ <!-- 3 process -->+ <p class="claim"><span>Structure: sequence with a threshold ·</span> Nothing bills until work crosses the boundary.</p>+ <figure class="fig process">+ <div class="rail" aria-hidden="true"><i></i></div>+ <div class="stages">+ <section><span>01</span><b>Compose</b><small>Measured locally</small></section>+ <section><span>02</span><b>Queue</b><small>Staged, not billed</small></section>+ <section><span>03</span><b>Invoke</b><small>Tokens + tool time</small></section>+ <section><span>04</span><b>Deliver</b><small>Outcome lands</small></section>+ <section class="is-committed"><span>05</span><b>Commit</b><small>Receipt changes</small></section>+ </div>+ <figcaption>Nothing becomes billable until the work crosses the delivery boundary.</figcaption>+ </figure>++ <!-- 4 loops -->+ <p class="claim"><span>Structure: mutual causation ·</span> Evidence sharpens judgment; judgment ranks evidence.</p>+ <figure class="fig loops">+ <div class="system">+ <section><span>Technical loop</span><div class="orbit"><i>Context</i><i>Action</i><i>Tests</i><i>Repair</i><b>Evidence</b></div></section>+ <section><span>Human loop</span><div class="orbit human"><i>Observe</i><i>Question</i><i>Review</i><i>Learn</i><b>Judgment</b></div></section>+ <div class="bridge"><i></i><span>Calibration</span></div>+ </div>+ <figcaption>Agent evidence sharpens human judgment; human judgment decides which evidence matters.</figcaption>+ </figure>++ <!-- 5 tree -->+ <p class="claim"><span>Structure: branch under uncertainty ·</span> Preserve inspectable conditions, not a transcript.</p>+ <figure class="fig tree">+ <svg viewBox="0 0 720 330" role="img" aria-labelledby="tree-cap">+ <g class="memory"><path d="M360 290V220M360 220 190 150M360 220 530 150M190 150 90 70M190 150 260 70M530 150 460 70M530 150 630 70"/></g>+ <g class="branches"><path d="M360 290V220M360 220 190 150M360 220 530 150M190 150 90 70M190 150 260 70M530 150 460 70M530 150 630 70"/></g>+ <g class="nodes"><circle cx="360" cy="290" r="9"/><circle cx="360" cy="220" r="7"/><circle cx="190" cy="150" r="6"/><circle cx="530" cy="150" r="6"/><circle cx="90" cy="70" r="5"/><circle cx="260" cy="70" r="5"/><circle cx="460" cy="70" r="5"/><circle cx="630" cy="70" r="5"/></g>+ <g class="labels"><text x="360" y="322" text-anchor="middle">OBSERVED STATE</text><text x="190" y="178" text-anchor="middle">VERIFIED</text><text x="530" y="178" text-anchor="middle">UNKNOWN</text><text x="90" y="48" text-anchor="middle">RECOMPUTE</text><text x="260" y="48" text-anchor="middle">REUSE</text><text x="460" y="48" text-anchor="middle">QUERY</text><text x="630" y="48" text-anchor="middle">DEFER</text></g>+ <circle class="signal" cx="360" cy="220" r="2"/>+ </svg>+ <figcaption id="tree-cap">A recursive evaluation tree preserves inspectable conditions at every branch instead of an irreversible reasoning transcript.</figcaption>+ </figure>++ <!-- 6 state-flow -->+ <p class="claim"><span>Structure: transformation of form ·</span> Events become conditions become state.</p>+ <figure class="fig flow" aria-labelledby="flow-cap">+ <div class="rail">+ <section><span>01 · events</span><b>Raw agent history</b><i class="evt" aria-hidden="true"><em></em><em></em><em></em><em></em></i></section>+ <span class="arrow" aria-hidden="true">→</span>+ <section class="focus"><span>02 · observe</span><b>Compressed conditions</b><div class="stack" aria-hidden="true"><i data-tone="critical"></i><i data-tone="relevant"></i><i data-tone="info"></i></div></section>+ <span class="arrow" aria-hidden="true">→</span>+ <section><span>03 · reconcile</span><b>Declarative state</b><div class="readout"><i></i> READY</div></section>+ </div>+ <figcaption id="flow-cap">Event history becomes observable conditions, which controllers reconcile into state.</figcaption>+ </figure>++ <p class="sec-label">The method generalizes · shapes not in the original six</p>++ <!-- 7 accumulation -->+ <p class="claim"><span>Structure: accumulation toward a target ·</span> Coverage is close, but one gate is unmet.</p>+ <figure class="fig accrue">+ <div class="meter">+ <div class="m hit" style="--v:.9;--target:.8"><span>Unit tests</span><div class="bar"><i></i></div><em>90</em></div>+ <div class="m hit" style="--v:.84;--target:.8"><span>Integration</span><div class="bar"><i></i></div><em>84</em></div>+ <div class="m" style="--v:.62;--target:.8"><span>E2E flows</span><div class="bar"><i></i></div><em>62</em></div>+ <div class="m hit" style="--v:.95;--target:.8"><span>Lint / types</span><div class="bar"><i></i></div><em>95</em></div>+ </div>+ <div class="legend"><span>Coral tick = required threshold (80)</span><span>Coral fill = target met</span></div>+ <figcaption>Three of four gates clear the bar; end-to-end coverage is the one that ships the risk.</figcaption>+ </figure>++ <!-- 8 boundary -->+ <p class="claim"><span>Structure: boundary / inside-vs-outside ·</span> Trust is earned only by crossing review.</p>+ <figure class="fig boundary">+ <div class="field">+ <div class="zone out"><span>Unreviewed<br>agent output</span></div>+ <div class="zone in"><span>Merged &<br>trusted</span></div>+ <div class="wall"><b>Human review</b></div>+ <div class="dot" style="--y:28"></div>+ <div class="dot" style="--y:70;left:22%"></div>+ <div class="dot cross" style="--y:48"></div>+ </div>+ <figcaption>Output stays provisional until it crosses the one boundary that confers trust.</figcaption>+ </figure>++ <p class="sec-label">Reference</p>+ <div class="method" style="margin-top:34px">+ <p><code>skill: .claude/skills/editorial-illustrations/</code></p>+ <p style="color:var(--muted);font-size:13px">SKILL.md = the method · references/design-system.md = tokens + primitive CSS · references/worked-examples.md = the six with claim→geometry reasoning. Accent swaps in one token; toggle grayscale above to see the monotykamary-faithful mode.</p>+ </div>+</div>++<script>+const root=document.documentElement;+document.getElementById('theme').onclick=()=>{+ root.dataset.theme = root.dataset.theme==='light'?'dark':'light';+};+const ab=document.getElementById('accent');+ab.onclick=()=>{+ const mono = root.dataset.accent==='mono';+ root.dataset.accent = mono?'':'mono';+ ab.textContent = mono?'● Coral':'● Grayscale';+};+</script>+</body>+</html>diff --git a/.claude/skills/editorial-illustrations/references/design-system.md b/.claude/skills/editorial-illustrations/references/design-system.mdnew file mode 100644index 0000000..8339b5f--- /dev/null+++ b/.claude/skills/editorial-illustrations/references/design-system.md@@ -0,0 +1,202 @@+# Design system — the raw grammar++Reverse-engineered from the rendered source of **monotykamary.com** posts and+**linear.app/now** (2026-07-22). Both share one DNA; this file is the extracted,+coral-adapted building set. Copy tokens and base rules verbatim; invent the figure+markup per post (see `SKILL.md` for the method).++## 1. Tokens (coral house style)++Grayscale base (the mono DNA), **one** accent = Claude-coral. The accent marks the+*point* of the figure and nothing else. **Pick the token set that matches the host+page** (light page → light set), and ship the other as an override so the figure+adapts. Dark set first, then two light variants (a warm generic one and the exact+host-site-matched one).++```css+:root {+ /* surfaces */+ --ground: #080807; /* page / deepest field */+ --ground-deep: #030303; /* recessed track behind fills */+ --surface: #080807cc; /* framed-figure background (alpha)*/+ --surface-solid: #0c0c0b; /* solid card inside a figure */+ /* ink ramp */+ --ink: #f2f2ed; /* primary text, strong marks */+ --ink-soft: #d0d0c9; /* secondary fills, sub-headlines */+ --muted: #92928a; /* labels */+ --quiet: #5f5f59; /* axis numbers, captions, index */+ /* structure */+ --line: #292925; /* hairline borders, gridlines */+ --line-strong: #54544e; /* branch strokes, dashed rails */+ /* THE one accent */+ --accent: #D97757; /* Claude-coral — the single color */+ --accent-soft: #e6a488; /* coral tint for a second beat */+ /* type */+ --sans: "Inter", "Inter Variable", system-ui, sans-serif;+ --mono: "JetBrains Mono", "JetBrains Mono Variable", ui-monospace,+ "SF Mono", Menlo, Consolas, monospace;+}++/* Light variant A — warm, monotykamary-flavored inverted field. */+:root[data-theme="light"], .light {+ --ground:#f7f7f2; --ground-deep:#ecece6; --surface:#f7f7f2cc; --surface-solid:#fbfbf7;+ --ink:#191917; --ink-soft:#3d3d38; --muted:#6a6a62; --quiet:#9a9a90;+ --line:#deded6; --line-strong:#b7b7ad;+ --accent:#c15f3c; --accent-soft:#d97757; /* coral darkened for AA on light */+}++/* Light variant B — EXACT host-site match. Use this for blog-embedded figures.+ Blog tokens: --bg:#f7f8fb, surface #fff, text #111827, muted #64748b,+ border #e2e8f0, body font JetBrains Mono. Cool grays, coral accent. */+:root[data-theme="host"], .host {+ --ground:#ffffff; --ground-deep:#f1f3f7; --surface:#ffffff; --surface-solid:#ffffff;+ --ink:#111827; --ink-soft:#334155; --muted:#64748b; --quiet:#94a3b8;+ --line:#e6e8ee; --line-strong:#cbd5e1;+ --accent:#c15f3c; /* coral, AA-safe on white for text/strokes */+ --accent-node:#d97757; /* house coral for large node fills only */+}+```++On a light ground, drop `backdrop-filter: blur()` (nothing to blur over white) and+add a faint `box-shadow: 0 1px 2px rgba(16,24,40,.04)` on the frame so it lifts off+the page. On dark, keep the blur and no shadow.++Original grayscale-faithful mode: set `--accent: var(--ink)` (accent == white). That+is monotykamary 1:1. Coral is our deviation, applied as a single token so it is+one line to switch.++## 2. Typography law++- **Display** = `--sans`, weight **480–540**, tight tracking **-0.03em to -0.06em**,+ line-height ~0.98. Big and quiet. (monotykamary h1 = 68px / weight 480 / -4px.)+- **Everything else in a figure is `--mono`**: labels, axis numbers, values,+ captions, the index numerals (`01 02 03`). Tiny — **7px to 11px**.+- **Labels & captions are UPPERCASE**, `letter-spacing: 0.04em–0.1em`.+- Values that carry the number are `font-weight: 700`, colored `--ink` or `--accent`.+- Never mix a second sans. Never use a display weight above ~560.++Observed sizes (use as the scale): caption/axis **7–8px**, label **10px**,+figure sub-headline (`<b>`) **11px**, index **8px**.++## 3. The framed figure (chrome)++Every illustration is a `<figure>` with a hairline frame and a mono UPPERCASE+`<figcaption>` that states the *meaning*, divided by a top rule.++```css+.fig { /* base frame for every illustration */+ border: 1px solid var(--line);+ background: color-mix(in srgb, var(--surface) 72%, transparent);+ backdrop-filter: blur(16px);+ margin: 52px 0;+ padding: 20px;+}+.fig figcaption {+ border-top: 1px solid var(--line);+ color: var(--quiet);+ font: 8px/1.6 var(--mono);+ letter-spacing: 0.04em;+ text-transform: uppercase;+ margin-top: 18px;+ padding-top: 13px;+}+.fig svg { width: 100%; height: auto; display: block; }+```++SVG figures use a **720-wide viewBox** (`viewBox="0 0 720 <h>"`) so labels stay+crisp and math is easy. Give every figure `role="img"` + `aria-label`, or+`aria-labelledby` pointing at the figcaption.++## 4. Restraint rules (what makes it not-slop)++1. **Grayscale + exactly one accent.** Coral appears on 1–2 elements: the row that+ is the point, the committed state, the live signal. If everything is coral,+ nothing is.+2. **Hairlines only.** 1px borders, 1px gridlines. No drop shadows except the+ `inset 0 2px var(--ink)` focus underline. No rounded corners except true circles+ (nodes, orbit).+3. **No chartjunk.** Gridlines only when the figure is quantitative (a real axis).+ No legend if labels sit on the marks. No 3D, no gradients except a single+ axis-direction hairline gradient (`--quiet → --ink`).+4. **Density is the aesthetic.** Small mono type, tight cells, edge-to-edge. White+ space is structural, not padding.+5. **Motion is meaning or nothing.** One subtle loop that *demonstrates the claim*+ (a signal travelling a pipeline, a bridge pulse between two loops). 2–6s,+ `ease-in-out`. Always wrap in `@media (prefers-reduced-motion: reduce)` to kill it.++## 5. Reusable primitives (CSS blocks)++These are the atoms observed across the six worked examples. Compose them into new+figures; do not treat them as fixed charts.++### 5a. Cell grid (spectrum / pipeline / rail)+Row of bordered cells, each with an index, a bold label, a small descriptor, and an+optional bottom "fill" bar whose height/opacity encodes a value.++```css+.cells { display:grid; grid-template-columns:repeat(var(--n,5),1fr); }+.cells section { position:relative; overflow:hidden; display:flex; flex-direction:column;+ min-height:145px; padding:12px; border:1px solid var(--line); border-right:0; }+.cells section:last-child { border-right:1px solid var(--line); }+.cells section > span { color:var(--quiet); font:8px/1 var(--mono); } /* index */+.cells section > b { margin-top:auto; color:var(--ink); font-size:11px; font-weight:540; }+.cells section > small { margin-top:5px; min-height:32px; color:var(--muted); font:7px/1.4 var(--mono); }+/* value-as-fill: set --v (0..1) per cell */+.cells section > i { position:absolute; inset:auto 0 0; height:calc(var(--v)*100%);+ background:var(--accent); opacity:calc(.10 + var(--v)*.5); transition:height .4s; }+.cells section:hover > i { opacity:calc(.25 + var(--v)*.6); }+```++### 5b. Horizontal bars (ranked magnitude)+SVG, 720 viewBox. Track = `--ground-deep`, fill = `--ink-soft`; the **point row**+fill = `--accent`. Value label mono-bold, right-aligned inside/after the bar.++```css+.bars .track { fill:var(--ground-deep); }+.bars .fill { fill:var(--ink-soft); transition:opacity .18s; }+.bars .row--accent .fill { fill:var(--accent); }+.bars .row:hover .fill, .bars .row:focus .fill { opacity:.72; }+.bars .label { fill:var(--muted); font:10px var(--mono); }+.bars .grid line { stroke:var(--line); }+.bars .grid text { fill:var(--quiet); font:8px var(--mono); }+.bars .value { fill:var(--ink); font:700 8px var(--mono); }+.bars .row--accent .value { fill:var(--accent); }+```+Bar math (viewBox 720, plot x0=246 → x1=672, so width=426): `fill_w = 426 * pct/100`.++### 5c. Node + branch (tree / decision)+SVG circles on `--ground` with `--ink` stroke; branch paths `--line-strong` 1px;+an optional blurred "memory" path underneath (same path, `--quiet`, blur(6px),+opacity .08) for depth; a small animated `--accent` signal dot travelling a branch.++### 5d. Orbit (a cyclic loop)+A `border-radius:50%` ring (`--line-strong`) with a dashed inner ring (`inset:20%`),+four mono labels pinned N/E/S/W, and a bold center term. Breathe animation optional.+Two orbits + a pulsing bridge line = *coupled* loops.++### 5e. Stage rail (transformation flow)+`grid-template-columns:1fr 28px 1fr 28px 1fr` — cards separated by mono `→` arrows.+The focus stage gets `box-shadow: inset 0 2px var(--accent)`. Inside a card, tiny+animated glyphs (bars pulsing = event stream; stacked bars = compressed conditions;+a `state-readout` chip = reconciled state).++## 6. Animations (opt-in, reduced-motion-safe)++```css+@keyframes travel { 0%{left:0} 45%,65%{left:58%} 100%{left:calc(100% - 7px)} }+@keyframes pulse { 0%{opacity:.25;left:0} 100%{opacity:1;left:calc(100% - 6px)} }+@keyframes breathe { 50%{transform:rotate(2deg) scale(1.015)} }+@keyframes signal { 0%,12%{opacity:0;transform:translateY(0)} 24%{opacity:1}+ 72%,82%{opacity:1;transform:translateY(70px)}+ 94%,100%{opacity:0;transform:translateY(70px)} }+@keyframes evt { 0%,100%{opacity:.25} 50%{opacity:1} }+@media (prefers-reduced-motion: reduce){ * { animation:none !important; } }+```+SVG-animated marks need `transform-box: view-box`.++## 7. Fonts++Self-host or `@font-face` Inter + JetBrains Mono for fidelity. Acceptable fallback:+`system-ui` + `ui-monospace`. Linear uses Berkeley Mono; monotykamary uses JetBrains+Mono — both read identically at these sizes. Do **not** ship Google-Fonts `<link>`+in an Artifact (CSP blocks it); inline `@font-face` with data-URIs or fall back.diff --git a/.claude/skills/editorial-illustrations/references/elements.md b/.claude/skills/editorial-illustrations/references/elements.mdnew file mode 100644index 0000000..6327b46--- /dev/null+++ b/.claude/skills/editorial-illustrations/references/elements.md@@ -0,0 +1,185 @@+# Editorial elements — the non-chart vocabulary++Beyond the figures, monotykamary.com and linear.app carry a set of reusable **page+elements** that give a post its editorial density: stat strips, status asides,+kickers, numbered chapter indexes, prose typography, inline cards. All extracted+from rendered source (2026-07-22). Same rules as the figures: mono for labels/data,+UPPERCASE micro-labels, hairlines, one coral accent, tokens from `design-system.md`+(pick the set matching the host page — light for a light blog).++Use these to lift a whole article, not just its charts.++---++## 1. Metric strip — a row of headline numbers++For 3–5 punchy figures (throughput, cost, counts). Big mono number + tiny uppercase+mono label, hairline-divided cells, ruled top and bottom.++```html+<figure class="metric-strip">+ <div>+ <div class="metric"><strong>75</strong><span>reference tokens / second</span></div>+ <div class="metric"><strong>3s</strong><span>typing burst gap</span></div>+ <div class="metric"><strong>50ms</strong><span>held-key collapse</span></div>+ <div class="metric"><strong>$0</strong><span>idle without output</span></div>+ </div>+</figure>+```+```css+.metric-strip{border-block:1px solid var(--line);margin:52px 0;padding:24px 0}+.metric-strip>div{display:grid;grid-template-columns:repeat(4,1fr)}+.metric{display:flex;flex-direction:column;justify-content:space-between;min-height:78px;padding:0 22px;border-right:1px solid var(--line)}+.metric:first-child{padding-left:0}.metric:last-child{border:0;padding-right:0}+.metric strong{font:490 30px/1.1 var(--mono);letter-spacing:-.05em;color:var(--ink)}+.metric span{font:7.5px/1.6 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--quiet)}+```+Accent one number (`color:var(--accent)`) only if one is the point.++---++## 2. Status aside — the "state of this piece" sidebar++A sticky metadata rail: STATUS (with a live dot), last revision, active repo/branch.+Signals a living document. On monotykamary it sits in a `post-grid` two-column layout+(`minmax(0,760px) minmax(200px,260px)`, gap 80px).++```html+<aside class="post-context">+ <div><span>Status</span><b><i></i>Still testing this</b></div>+ <div><span>Last substantial revision</span><b>July 20, 2026</b></div>+ <div><span>Active branch or repository</span>+ <a href="…">inloopstudio-team/pi-ledger<small>branch / main</small></a></div>+</aside>+```+```css+.post-context{display:grid;position:sticky;top:30px;border-top:1px solid var(--line-strong)}+.post-context>div{border-bottom:1px solid var(--line);padding:17px 0}+.post-context span{display:block;margin-bottom:8px;font:8px/1.5 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--quiet)}+.post-context b,.post-context a{display:block;font-weight:450;color:var(--ink-soft);overflow-wrap:anywhere}+.post-context b i{display:inline-block;width:5px;height:5px;margin-right:8px;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 12%,transparent)}+.post-context a small{display:block;margin-top:5px;font-size:8px;color:var(--quiet)}+```+The dot `i` can be colored by state (coral = active, quiet = settled).++---++## 3. Kicker + sigil — the eyebrow above a title++A tiny hand-drawn SVG mark + an uppercase mono status word. The sigil is a 32-box+with two hairline "trace" paths (one faint "memory" ghost) and a node dot; it's the+site's recurring signature. Cheap to redraw per post with a different trace.++```html+<div class="post-kicker">+ <svg class="post-sigil" viewBox="0 0 32 32" aria-hidden="true">+ <rect x=".5" y=".5" width="31" height="31" class="frame"/>+ <path class="trace trace--memory" d="M5 25C10 23 10 11 16 9S23 14 28 5"/>+ <path class="trace" d="M5 23C11 21 10 13 16 11S22 16 28 5"/>+ <circle cx="16" cy="11" r="1.6"/>+ </svg>+ <p>Still testing this</p>+</div>+```+```css+.post-kicker{display:flex;align-items:center;gap:10px;margin-bottom:28px}+.post-kicker p{margin:0;font:9px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}+.post-sigil{width:26px;height:26px;overflow:visible}+.post-sigil .frame{fill:var(--surface);stroke:var(--line)}+.post-sigil .trace{fill:none;stroke:var(--ink);stroke-width:1}+.post-sigil .trace--memory{stroke:var(--quiet);opacity:.35}+.post-sigil circle{fill:var(--accent);stroke:var(--ink);stroke-width:1}+```++---++## 4. Numbered chapter index (Linear /method)++For a long piece with real sections: uppercase group label, then rows of+`title …… N.N` with dotted dividers between groups. The decimals are mono ++`tabular-nums`. Only use when the content genuinely is an ordered sequence.++```html+<nav class="chapter-index">+ <div class="chapter">+ <span class="chapter__group">Direction</span>+ <a><b>Set the product direction</b><em>2.1</em></a>+ <a><b>Set useful goals</b><em>2.2</em></a>+ <a><b>Prioritize enablers and blockers</b><em>2.3</em></a>+ </div>+</nav>+```+```css+.chapter{border-top:1px dashed var(--line-strong);padding-top:18px;margin-top:26px}+.chapter__group{font:9px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}+.chapter a{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;color:var(--muted);text-decoration:none}+.chapter a:hover b{color:var(--ink)}+.chapter b{font-weight:400;font-size:16px}+.chapter em{font:10px/1 var(--mono);font-style:normal;font-variant-numeric:tabular-nums;color:var(--quiet)}+```++---++## 5. Inline invitation card — a link that matters++A full-width bordered CTA row: label, mono sub-detail, animated arrow. For "go look+at the repo / read the next thing."++```html+<a class="article-invitation" href="…">+ <span>Have a look</span><small>inloopstudio-team/pi-ledger / main</small><b>→</b>+</a>+```+```css+.article-invitation{display:grid;grid-template-columns:1fr auto 30px;align-items:center;gap:20px;border-block:1px solid var(--line-strong);margin-top:76px;padding:22px 0;text-decoration:none;color:var(--ink)}+.article-invitation>span{font-size:20px;letter-spacing:-.025em}+.article-invitation small{font:8px/1.5 var(--mono);color:var(--quiet)}+.article-invitation b{font-weight:400;transition:transform .2s}+.article-invitation:hover b{transform:translateX(5px)}+```+Same skeleton, smaller, makes the **next-post** footer nav.++---++## 6. Prose typography (the body around the figures)++So embedded figures don't clash with the running text, match this scale. Body in+`--sans` (a host site may pin its own stack, e.g. Charter serif heads, Public Sans+body, JetBrains Mono for labels/code), heads+tight `--sans`.++```css+.prose{font:16px/1.72 var(--sans);color:var(--muted)}+.prose h2{margin:70px 0 18px;font:540 27px/1.18 var(--sans);letter-spacing:-.03em;color:var(--ink)}+.prose h3{margin:52px 0 13px;font:540 20px/1.25 var(--sans);letter-spacing:-.03em;color:var(--ink)}+.prose strong{font-weight:620;color:var(--ink-soft)}+.prose a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}+.prose a:hover{text-decoration-color:var(--ink)}+.prose blockquote{border-left:1px solid var(--ink);padding:4px 0 4px 20px;color:var(--ink-soft)}+.prose code{font:.86em/1.6 var(--mono);color:var(--ink)}+.prose pre{border:1px solid var(--line);background:var(--surface);padding:17px;overflow-x:auto}+.prose hr{border:0;border-top:1px solid var(--line);margin:52px 0}+```++---++## 7. Obsession / lede block — a bordered manifesto opener++Left-hairline headline block for the top of a flagship post: big display headline,+one-line description, a `dt/dd` meta row. The `::before`/`::after` draw an L-bracket+on the left edge.++Key CSS: `border-block:1px solid var(--line-strong)`, a `1px` absolute bar down the+left, headline `clamp(42px,5.5vw,68px)/0.98` weight 480 letter-spacing -.06em, meta+row of `dt` (8px mono uppercase quiet) + `dd` (10px mono ink-soft).++---++## When to reach for these vs a figure++- The claim has a **structure** (spectrum, ranking, branch, loop…) → a figure+ (`worked-examples.md`).+- You just need **editorial furniture** (headline numbers, status, section index,+ a strong link) → an element here.+- A flagship post uses both: obsession lede → prose with 1–2 figures → metric strip+ → invitation card → next-post nav, with a status aside in the margin.diff --git a/.claude/skills/editorial-illustrations/references/worked-examples.md b/.claude/skills/editorial-illustrations/references/worked-examples.mdnew file mode 100644index 0000000..37a37c3--- /dev/null+++ b/.claude/skills/editorial-illustrations/references/worked-examples.md@@ -0,0 +1,260 @@+# Worked examples — the method applied++These six are **case studies**, not a template menu. Each shows the same move:+*a sentence-length claim → the geometric primitive that makes the claim obvious →+the minimum markup that renders it.* Study the reasoning column; then build the+figure your post actually needs. HTML is the real extracted source (monotykamary,+2026-07-22), lightly cleaned. Swap the accent from `--ink` to `--accent` on the+one element that is the point.++Reduce every future figure to the same three questions:+1. **What is the claim?** (becomes the figcaption, verbatim)+2. **What is the claim's *structure*?** (spectrum? ranking? sequence-with-threshold?+ mutual causation? branch? transformation?) → picks the primitive.+3. **Where is the point?** → the one element that gets coral.++---++## 1. `autonomy-field` — claim has a SPECTRUM structure++**Claim:** "Autonomy isn't binary; the useful position slides with blast radius."+**Structure:** ordered positions on one axis → **cell grid with rising fill.**+**Point (coral):** the rightmost / highest-autonomy cell, or leave grayscale and let+fill-height carry it.++Why it works: the eye reads left→right as *more*, and the fill bars literally grow,+so "spectrum" is felt before it is read. The axis label pair ("More oversight → More+delegation") names the dimension; the stakes row underneath ("Throwaway prototype →+Production system") adds the second, orthogonal consideration without a second chart.++```html+<figure class="fig cells" style="--n:5">+ <div class="axis"><span>More oversight</span><i></i><span>More delegation</span></div>+ <div class="row">+ <section style="--v:.1"><span>01</span><b>Complete</b><small>Human decides every move</small><i></i></section>+ <section style="--v:.3"><span>02</span><b>Suggest</b><small>AI proposes local changes</small><i></i></section>+ <section style="--v:.5"><span>03</span><b>Pair</b><small>Shared iteration loop</small><i></i></section>+ <section style="--v:.75"><span>04</span><b>Delegate</b><small>AI executes bounded work</small><i></i></section>+ <section style="--v:1"><span>05</span><b>Roam</b><small>AI owns the trajectory</small><i></i></section>+ </div>+ <div class="stakes"><span>Throwaway prototype</span><b>Move deliberately, not permanently →</b><span>Production system</span></div>+ <figcaption>The useful position is contextual: autonomy moves with blast radius, expertise, and feedback quality.</figcaption>+</figure>+```++---++## 2. `bar-chart` — claim RANKS magnitudes++**Claim:** "Developers avoid handing AI the high-stakes work; trust is low."+**Structure:** comparable quantities, ordered → **horizontal bars** (never vertical;+labels stay readable). SVG, 720 viewBox, real axis 0–100.+**Point (coral):** the rows that prove the thesis (the "accent" rows). The one+surprising row (e.g. `2.6%`) is its own quiet punchline.++Why horizontal: long text labels; ranking is a vertical scan; the value sits at the+bar's end. The single tiny bar among big ones does more than any callout.++```html+<figure class="fig bars">+ <svg viewBox="0 0 720 336" role="img" aria-label="Share of respondents">+ <g class="grid">+ <g><line x1="246" x2="246" y1="18" y2="308"/><text x="246" y="12" text-anchor="middle">0</text></g>+ <g><line x1="459" x2="459" y1="18" y2="308"/><text x="459" y="12" text-anchor="middle">50</text></g>+ <g><line x1="672" x2="672" y1="18" y2="308"/><text x="672" y="12" text-anchor="middle">100</text></g>+ </g>+ <!-- row: y steps by 52; fill width = 426 * pct/100 -->+ <g class="row row--accent"><text class="label" x="0" y="56">Avoid deployment / monitoring</text>+ <rect class="track" x="246" y="38" width="426" height="24"/>+ <rect class="fill" x="246" y="38" width="323.8" height="24"/>+ <text class="value" x="561" y="55" text-anchor="end">76%</text></g>+ <!-- ...more rows... the last, tiny one is the punchline -->+ <g class="row"><text class="label" x="0" y="264">Express high trust</text>+ <rect class="track" x="246" y="246" width="426" height="24"/>+ <rect class="fill" x="246" y="246" width="11" height="24"/>+ <text class="value" x="274" y="263" text-anchor="end">2.6%</text></g>+ </svg>+ <figcaption>Selected developer-survey figures · share of respondents</figcaption>+</figure>+```++---++## 3. `process-diagram` — claim is a SEQUENCE with a THRESHOLD++**Claim:** "Nothing is billable until the work crosses the delivery boundary."+**Structure:** ordered stages + one that flips state → **stage grid + traveling dot+on a rail.** The committed stage inverts (coral fill).+**Point (coral):** the `is-committed` final stage — the moment the claim is about.++The dashed rail with a dot that pauses at 58% then completes *shows* the boundary:+the eye watches nothing commit until the dot crosses.++```html+<figure class="fig process">+ <div class="rail" aria-hidden="true"><i></i></div>+ <div class="stages">+ <section><span>01</span><b>Compose</b><small>Measured locally</small></section>+ <section><span>02</span><b>Queue</b><small>Staged, not billed</small></section>+ <section><span>03</span><b>Invoke</b><small>Tokens + tool time</small></section>+ <section><span>04</span><b>Deliver</b><small>Outcome lands</small></section>+ <section class="is-committed"><span>05</span><b>Commit</b><small>Receipt changes</small></section>+ </div>+ <figcaption>Nothing becomes billable until the work crosses the delivery boundary.</figcaption>+</figure>+```+`.stages section.is-committed{ background:var(--accent); border-color:var(--accent); color:var(--ground); }`+(match the `.stages section` specificity or the base cell background wins — real bug.)+`.rail i{ animation:travel 4.8s cubic-bezier(.5,0,.5,1) infinite; }`++---++## 4. `loop-field` — claim is MUTUAL CAUSATION++**Claim:** "Agent evidence sharpens human judgment; judgment decides which evidence+matters." (Two loops feeding each other.)+**Structure:** two cycles + a coupling → **two orbits + a pulsing bridge.**+**Point (coral):** the bridge pulse (the calibration signal moving between them).++A single loop would miss the reciprocity; two orbits side by side with a dot+pulsing across the gap encode "each feeds the other." Center term of each orbit =+the *output* of that loop (Evidence / Judgment).++```html+<figure class="fig loops">+ <div class="system">+ <section><span>Technical loop</span>+ <div class="orbit"><i>Context</i><i>Action</i><i>Tests</i><i>Repair</i><b>Evidence</b></div></section>+ <section><span>Human loop</span>+ <div class="orbit human"><i>Observe</i><i>Question</i><i>Review</i><i>Learn</i><b>Judgment</b></div></section>+ <div class="bridge"><i></i><span>Calibration</span></div>+ </div>+ <figcaption>Agent evidence sharpens human judgment; human judgment decides which evidence matters.</figcaption>+</figure>+```+`.bridge i{ background:var(--accent); border-radius:50%; width:6px; height:6px; animation:pulse 2.2s ease-in-out infinite alternate; }`++---++## 5. `condition-tree` — claim is a BRANCH under uncertainty++**Claim:** "A recursive evaluation preserves inspectable conditions at every branch+instead of one irreversible transcript."+**Structure:** a decision that forks → **node/branch SVG tree** with a signal that+falls from root to a leaf, and a blurred "ghost" of the same paths beneath for depth.+**Point (coral):** the falling signal dot.++The ghost path (blurred, low opacity) is the "irreversible transcript" the claim+argues against; the crisp branch tree on top is the inspectable alternative. Form+carries the argument's *contrast*.++```html+<figure class="fig tree">+ <svg viewBox="0 0 720 330" role="img" aria-labelledby="tree-cap">+ <g class="memory"><path d="M360 290V220M360 220 190 150M360 220 530 150M190 150 90 70M190 150 260 70M530 150 460 70M530 150 630 70"/></g>+ <g class="branches"><path d="M360 290V220M360 220 190 150M360 220 530 150M190 150 90 70M190 150 260 70M530 150 460 70M530 150 630 70"/></g>+ <g class="nodes"><circle cx="360" cy="290" r="9"/><circle cx="360" cy="220" r="7"/><circle cx="190" cy="150" r="6"/><circle cx="530" cy="150" r="6"/><circle cx="90" cy="70" r="5"/><circle cx="260" cy="70" r="5"/><circle cx="460" cy="70" r="5"/><circle cx="630" cy="70" r="5"/></g>+ <g class="labels"><text x="360" y="322" text-anchor="middle">OBSERVED STATE</text><text x="190" y="178" text-anchor="middle">VERIFIED</text><text x="530" y="178" text-anchor="middle">UNKNOWN</text><text x="90" y="48" text-anchor="middle">RECOMPUTE</text><text x="260" y="48" text-anchor="middle">REUSE</text><text x="460" y="48" text-anchor="middle">QUERY</text><text x="630" y="48" text-anchor="middle">DEFER</text></g>+ <circle class="signal" cx="360" cy="220" r="2"/>+ </svg>+ <figcaption id="tree-cap">A recursive evaluation tree preserves inspectable conditions at every branch instead of an irreversible reasoning transcript.</figcaption>+</figure>+```+`.memory path{ stroke:var(--quiet); stroke-width:11; opacity:.08; filter:blur(6px); fill:none; }`+`.branches path{ stroke:var(--line-strong); stroke-width:1; fill:none; }`+`.nodes circle{ fill:var(--ground); stroke:var(--ink); stroke-width:1.4; }`+`.signal{ fill:var(--accent); animation:signal 3.8s linear infinite; transform-box:view-box; }`++---++## 6. `state-flow` — claim is a TRANSFORMATION of representation++**Claim:** "Event history becomes observable conditions, which controllers reconcile+into state." (Data changing *form* through a pipeline.)+**Structure:** A → B → C where each stage looks *different* → **stage rail** where+each card contains a different mini-visual (pulsing bars → stacked conditions →+a readout chip).+**Point (coral):** the focus stage underline + the "READY" readout dot.++Each card's inner glyph *is* the data in that representation, so the reader sees the+transformation, not just labels with arrows.++```html+<figure class="fig flow">+ <div class="rail">+ <section><span>01 · events</span><b>Raw agent history</b>+ <i class="evt"><em></em><em></em><em></em><em></em></i></section>+ <span class="arrow">→</span>+ <section class="focus"><span>02 · observe</span><b>Compressed conditions</b>+ <div class="stack"><i data-tone="critical"></i><i data-tone="relevant"></i><i data-tone="info"></i></div></section>+ <span class="arrow">→</span>+ <section><span>03 · reconcile</span><b>Declarative state</b>+ <div class="readout"><i></i> READY</div></section>+ </div>+ <figcaption>Event history becomes observable conditions, which controllers reconcile into state.</figcaption>+</figure>+```++---++## 7. `lane-router` — claim is a DISPATCH / one-decision routing (NEW, shipped)++Built for a long-form blog post on agentic QA routing,+replacing an ASCII box diagram. **Light-themed to match the blog** (proof the method++ elements adapt to a light host).++**Claim:** "One decision routes every task; the lane is chosen by where the work+already lives."+**Structure:** a single spine that fans to N mutually-exclusive outputs → **keyed+rows sharing one accent spine.** Each row = a key node (A/B/C) + its condition ++its destination. The coral vertical spine down the left connects all key nodes,+making "one branch, many lanes" literal.+**Point (coral):** the spine + the A/B/C key nodes (the routing itself is the point).++Why this over the branch tree (#5): a decision *tree* is for exploring uncertainty+(you don't know which leaf); a *router* is for dispatch (a known rule sends each task+to exactly one lane). Rows read faster than a fanned SVG when the lanes carry text.++```html+<figure class="edfig-lanes host" role="img" aria-label="One decision routes every test into one of three lanes">+ <div class="edfig-lanes__head">+ <span class="edfig-lanes__q">Which lane runs this test?</span>+ <span class="edfig-lanes__eyebrow">The one decision</span>+ </div>+ <div class="edfig-lanes__rows"> <!-- ::before draws the coral spine -->+ <div class="edfig-lane">+ <span class="edfig-lane__k">A</span>+ <span class="edfig-lane__cond">New behavior · no code yet · exploratory</span>+ <span class="edfig-lane__to"><span class="edfig-lane__name">Manual + Run with AI</span><span class="edfig-lane__act">Design cases → AI executes them</span></span>+ </div>+ <!-- B, C … -->+ </div>+ <figcaption class="edfig-lanes__cap">One branch routes every task; the lane is chosen by where the work already lives.</figcaption>+</figure>+```+Full CSS (light + dark override) lives in the post source+the post body, with a standalone preview page for review. Spine =+`.edfig-lanes__rows::before` (2px coral, left:14px aligns to node centers); nodes =+`.edfig-lane__k` (1.5px coral border, coral text, ground fill, z-index above spine).++---++## The point of these seven++They cover seven *claim structures*, not seven chart types:++| Claim structure | Primitive | Example |+|-----------------------------|---------------------|---------|+| a spectrum / gradient | cell grid + fill | 1 |+| ranked magnitudes | horizontal bars | 2 |+| sequence with a threshold | stage grid + rail | 3 |+| mutual causation | coupled orbits | 4 |+| branch under uncertainty | node/branch tree | 5 |+| transformation of form | stage rail + glyphs | 6 |+| dispatch / one-rule routing | keyed rows + spine | 7 |++Plus two more in the gallery (`assets/gallery.html`): accumulation-toward-a-target+(filling meter + threshold tick) and boundary/inside-vs-outside (framed region + a+crossing). If your post's claim doesn't match a row, **compose a new primitive** from+the atoms in `design-system.md §5`. The aesthetic is the tokens + typography law ++restraint; the *shape* is whatever makes your specific sentence obvious at a glance.diff --git a/.claude/skills/harvest/SKILL.md b/.claude/skills/harvest/SKILL.mdnew file mode 100644index 0000000..8ab5811--- /dev/null+++ b/.claude/skills/harvest/SKILL.md@@ -0,0 +1,75 @@+---+name: harvest+description: >+ Capture durable session learnings, stage for human promotion to+ 05-knowledge/lizard, and propose skill/CLAUDE.md patches. Triggered by+ /harvest, SessionEnd hook staging, or nightly enhance. Never writes+ durable knowledge without your approval.+---++# /harvest — session learning capture++Adapted from dwarves-kit `harvest` hook + vault lizard pipeline. Prevents tacit knowledge dying in the transcript.++## Triggers++- `/harvest` — manual end-of-session+- `/harvest promote` — curate staging → lizard drafts (uses harvest-curator)+- Staging file written by `stop` hook (`.cursor/hooks/harvest-stager.sh`)++## Phase 1 — Collect (automatic or manual)++Scan the current session for:++1. **Corrections you made** ("no, actually X", rejected deliverables)+2. **New stable facts** (IDs, URLs, decisions) not yet in 05-knowledge+3. **Process lessons** (what worked, what failed, friction)+4. **Skill gaps** (something that should be a Verify step or CLAUDE.md rule)++Append to `04-projects/harness/harvest/staging-<YYYY-MM-DD>.md`:++```markdown+## <HH:MM> — <trigger>+- type: correction|fact|process|skill-gap+- source: <file or "session">+- text: <one paragraph max>+- proposed_home: <path or "new lizard note">+```++Dedup: skip if same fact already in staging today or in 05-knowledge.++## Phase 2 — Curate (`/harvest promote`)++Spawn `harvest-curator` (Sonnet). It writes `/tmp/harvest-curate-<date>.md`.++Lead (Opus) presents to the user:++- **Promote** list → approve which become `05-knowledge/lizard/YYYY-MM-DD-<slug>.md`+- **Fold** list → approve inline edits to existing notes+- **Skill patches** → approve CLAUDE.md / SKILL.md diffs++Only after approval: write durable files. Update `05-knowledge/lizard/index.md`.++## Phase 3 — Retro line++One line to `01-daily/journal/<today>.md`:++```+Harvest: <n> staged, <m> promoted, <k> folded+```++## Rules++- Harvest is **advisory**. It never auto-writes 05-knowledge.+- Contradictions with existing knowledge → flag both, ask the user.+- Pair with `/memory-hygiene` monthly for environment-dependent facts in `~/.claude/.../memory/`.++## Nightly enhance (optional launchd)++```bash+# 04-projects/harness/scripts/nightly-enhance.sh+bash .claude/lib/install-harness.sh --check # hooks alive+# /memory-hygiene (skill)+# /harvest promote if staging non-empty+# content-factory if scheduled+```diff --git a/.claude/skills/museum-art/SKILL.md b/.claude/skills/museum-art/SKILL.mdnew file mode 100644index 0000000..8e02c26--- /dev/null+++ b/.claude/skills/museum-art/SKILL.md@@ -0,0 +1,98 @@+---+name: museum-art+description: Source authentic, high-res PUBLIC-DOMAIN artwork from museum open-access APIs (Met, Cleveland, SMK, Rijksmuseum, NGA, Art Institute of Chicago, Getty, Smithsonian) instead of AI-generated or generic-stock imagery. The default move whenever a visual needs an aesthetic, credible image (blog heroes, decks, social cards, essay/spec figures). Verified keyless recipes + licensing rules inside.+---++# museum-art: Public-Domain Artwork for Visuals++> Standing rule (adopted 2026-07-24, from Eric Li's post on museum open-access): **whenever a visual needs a real image with aesthetic weight, source public-domain museum artwork first** - over AI-generated imagery and over generic stock. Curated, historically significant art reads as credible and sophisticated; AI-gen reads as slop. This stacks with, and reinforces, the `no-ai-slop` skill and your house image style. It does NOT replace the generative `editorial-illustrations` skill (that owns claim-driven diagrams/figures) or your house chart style - use museum art for photographic/hero/decorative/mood imagery, generative figures for data and concept diagrams.++## When to reach for this+- Blog post hero images, section breaks, mood imagery (the blog-publish image step).+- Deck/slide backgrounds and section dividers, social cards, essay figures, spec cover art.+- Any time the instinct is "generate an image" for something decorative or evocative. Stop and pull a real painting instead.+- NOT for: product screenshots, UI mockups, data charts, logos, or claim-driven explanatory diagrams (those are editorial-illustrations / real captures).++## Decision: which source+1. **Met -> Cleveland -> SMK first.** All keyless, one JSON hop, CC0/PD, broad collections. Fastest path to a hi-res image.+2. **Need Dutch/Flemish masters or decorative arts?** Rijksmuseum (keyless, 3 hops).+3. **Need European antiquities/photography and keyword isn't essential?** Getty (keyless, SPARQL).+4. **Nothing fits, or you want a cross-museum search?** Wikimedia Commons API (keyless aggregator, normalized license metadata) is the best general fallback.+5. **"Historical illustration/engraving/old photo" rather than fine-art painting?** Go straight to Internet Archive or Wikimedia Commons.+6. **Science/health/medical essay figure?** Wellcome Collection (keyless, CC0/PD).++## How to fetch in THIS environment+- Use **WebFetch** to hit the JSON search endpoint, then WebFetch/download the returned image URL. These APIs are server-side reachable; no browser needed.+- **Exception - Art Institute of Chicago images:** the JSON API (`api.artic.edu`) is fine, but the image host `www.artic.edu/iiif/...` 403s scripted/curl fetches via a Cloudflare bot challenge. Use the JSON metadata from AIC, but download the actual image through a real/headless browser (browser-harness) or prefer a different museum for the image bytes.+- Always **filter for public domain in the query AND spot-check the per-image license flag** before shipping (see Licensing).++## Freshness over caching (mandatory)+**Fetch fresh per need. Do NOT build a reusable local pool of downloaded images to draw from.** A small cached set gets reused everywhere and becomes the new "same stock photo on every post" - sameness is a form of slop, and the variety of a huge open collection is the entire point. Fetching is keyless and sub-second, so there is no cost reason to cache pixels.+- **Cache recipes/metadata, not images** - that is what this skill's `references/` already are.+- **Commit an image only into the specific artifact that uses it** (a post's `assets/`, a deck's media) once chosen - for provenance and offline builds. That is an artifact asset, never a shared library other artifacts pull from.+- Each new visual = a fresh query. Vary the search terms and the source museum so consecutive posts do not converge on the same few crowd-pleasers.++## Verified keyless recipes (2026-07-24, all live-tested)++### 1. The Met - best all-around default+- Base: `https://collectionapi.metmuseum.org/public/collection/v1/` - no key, 80 req/s, CC0 where `isPublicDomain:true`.+- Search: `GET /search?q=<term>&hasImages=true&isPublicDomain=true` -> `{total, objectIDs[]}`+- Object: `GET /objects/{id}` -> read `primaryImage` (full-res JPEG, static, no IIIF hop) or `primaryImageSmall` (web-large).+- Example: `https://collectionapi.metmuseum.org/public/collection/v1/search?q=sunflowers&hasImages=true&isPublicDomain=true`++### 2. Cleveland Museum of Art - only one with archival TIFF+- Base: `https://openaccess-api.clevelandart.org/api/artworks/` - no key, CC0.+- Search: `GET /api/artworks/?cc0=1&has_image=1&limit=10` (add `&q=monet`, `&skip=10`).+- Image fields on each result: `images.web.url` (900px), `images.print.url` (3400px JPEG), `images.full.url` (archival TIFF). Directly downloadable from `openaccess-cdn.clevelandart.org`.+- Confirm `share_license_status == "CC0"` per result.++### 3. SMK (Denmark) - one-hop, broad European/Nordic+- Base: `https://api.smk.dk/api/v1` - no key. License: Public Domain Mark 1.0 (functionally CC0).+- Search: `GET /art/search?keys=*&filters=[public_domain:true]&filters=[has_image:true]`+- Read `image_native` directly from each result (no chain).+- **Gotcha (verified):** pass `filters` as a **repeated** query param, one `[field:value]` bracket each. Concatenating `filters=[public_domain:true][has_image:true]` returns 200 but silently ignores the second condition.++### 4. Rijksmuseum - Dutch/Flemish masters (keyless, 3 hops)+- Base: `https://data.rijksmuseum.nl/search/collection` (Linked Art, no key).+- `GET /search/collection?type=painting&imageAvailable=true` -> walk object -> VisualItem -> DigitalObject -> `access_point[0].id` is a ready IIIF URL.+- Mixed license: mostly CC0/PD but some CC BY 4.0 - **check the per-object rights block** (a CC BY item requires attribution).++### 5. NGA (Washington) - bulk/offline, no live search+- CSV: `https://raw.githubusercontent.com/NationalGalleryOfArt/opendata/main/data/published_images.csv` - filter `openaccess=1`.+- Image (IIIF): `https://api.nga.gov/iiif/{uuid}/full/full/0/default.jpg`+- **Per-image `openaccess=0` rows are NOT open** (resolution-capped, rights-restricted). Only `openaccess=1` is free.++### 6. Art Institute of Chicago - Impressionism/European (image host caveat)+- JSON: `GET https://api.artic.edu/api/v1/artworks/search?query[term][is_public_domain]=true&fields=id,title,image_id` - no key, CC0.+- Image: build `https://www.artic.edu/iiif/2/{image_id}/full/843,/0/default.jpg` - **but Cloudflare 403s scripted fetches**; download via browser or use another museum for bytes.++### 7. Getty - European painting/photography/antiquities (SPARQL)+- Base: `https://data.getty.edu/museum/collection/` - no key. No keyword search; use SPARQL with `?obj crm:P138i_has_representation ?img` which returns a ready IIIF image URL in the same query.+- Dataset is CC0; **per-image rights inconsistently populated** - cross-check the object's public getty.edu page (a "Download" button flags true Open Content) before commercial use.++## Key-gated + aggregator sources (know these too)+- **Smithsonian** (needs free `api.data.gov` key; `DEMO_KEY` works at 30 req/hr): `GET https://api.si.edu/openaccess/api/v1.0/search?q=<term> AND online_media_type:Images&api_key=KEY`; CC0; check `media[].usage.access=="CC0"` per image. Extremely broad (SAAM, NPG portraits, Freer/Sackler Asian, Cooper Hewitt design).+- **Wikimedia Commons** (keyless, best aggregator fallback): `https://commons.wikimedia.org/w/api.php?action=query&generator=search&gsrsearch=<term>&gsrnamespace=6&prop=imageinfo&iiprop=url|extmetadata`; license per file in `extmetadata.LicenseShortName`; raw bytes via `Special:FilePath/{filename}`.+- **Wellcome Collection** (keyless): `https://api.wellcomecollection.org/catalogue/v2/works?query=<term>`; CC0/PD medical/scientific/historical imagery.+- **Internet Archive** (keyless): `https://archive.org/advancedsearch.php?q=<term>&fl[]=identifier&output=json`; PD book illustrations, engravings, historical photos, ephemera.+- **Europeana** (free key): `https://api.europeana.eu/record/v2/search.json?wskey=<KEY>&query=<term>`; 50M+ items across European institutions.+- **Harvard Art Museums** (free key): `https://api.harvardartmuseums.org/object?apikey=<KEY>&q=<term>`.+- **Yale LUX** (keyless, Linked Art like Getty): `https://lux.collections.yale.edu/api/search/...`; strong British art + rare books.+- **Paris Musees** (keyless, explicit CC0): `parismuseescollections.paris.fr` / `opendata.paris.fr`; French painting/decorative arts.+- **NYPL Digital Collections** (free key): `https://api.repository.library.nyc/...`; PD prints, maps, photos, illustrations.+- **DPLA** (free key): `https://api.dp.la/v2/items?q=<term>&api_key=<KEY>`; federated US collections.++## Licensing rules (apply before shipping any image)+- **True CC0 (no attribution required):** Met, Cleveland, Art Institute of Chicago, Smithsonian, NGA (dataset-level; image gated by per-image `openaccess=1`).+- **Public Domain Mark / open-but-not-CC0 (free to use, credit requested not required):** SMK, and the PD subset of Rijksmuseum.+- **Verify per-image, do NOT blanket-trust collection-level "open access":** Getty, Rijksmuseum (CC BY items require attribution), NGA and Smithsonian per-image flags.+- **Rule:** when the API exposes a rights/license field, filter on it in the query AND spot-check it on the chosen image. Never assume "the collection is open access" implies "this specific image is."+- **Good practice everywhere:** a one-line credit ("Digital image courtesy of [Museum]") costs nothing and covers mixed-license collections. When masking/compositing per house style, keep the credit.++## Relationship to other skills+- Stacks with **no-ai-slop** and the house image style: real museum art is the anti-slop default for evocative imagery.+- Complements **editorial-illustrations** (generative claim-driven diagrams) and **dataviz** (charts) - those own explanatory graphics; this owns photographic/artwork/mood imagery.+- Feeds **blog-publish**, **social-media-kit**, **weekly-ai-slide**, deck and essay work at their image-sourcing step.++## References (full per-museum recipes, verified)+`references/_synthesis.md` (cheat-sheet) + one file per museum (`met.md`, `cleveland.md`, `smk.md`, `rijksmuseum.md`, `nga.md`, `artic.md`, `getty.md`, `smithsonian.md`) with live-tested example URLs, field maps, and gotchas.diff --git a/.claude/skills/museum-art/references/_synthesis.md b/.claude/skills/museum-art/references/_synthesis.mdnew file mode 100644index 0000000..96ea1f4--- /dev/null+++ b/.claude/skills/museum-art/references/_synthesis.md@@ -0,0 +1,48 @@+# Public-Domain Art Sourcing Cheat-Sheet++Consolidated from 8 verified museum-API recipes (2026-07-24). For an agent sourcing hi-res public-domain artwork for blog heroes, decks, social cards, essay figures.++## Quick-pick table (ranked: fastest/most reliable first)++| Rank | Museum | Keyless? | License | How to get a hi-res PD image (one line) | Best for |+|---|---|---|---|---|---|+| 1 | **Met (Metropolitan Museum)** | Yes, no key | CC0 (per-object flag) | `GET /search?q=X&hasImages=true&isPublicDomain=true` → `/objects/{id}` → read `primaryImage` (static JPEG, no IIIF hop) | Broadest single source — Western painting, Asian art, Egyptian antiquities, American art |+| 2 | **Cleveland Museum of Art** | Yes, no key | CC0 | `GET /api/artworks/?cc0=1&has_image=1` → read `images.print.url` (3400px JPEG) or `images.full.url` (archival TIFF) — no hop | Broad European/American painting + Asian art; archival-res TIFFs available |+| 3 | **SMK (National Gallery of Denmark)** | Yes, no key | Public Domain Mark (functionally CC0) | `GET /art/search?keys=*&filters=[public_domain:true]&filters=[has_image:true]` (repeat `filters=`, don't concatenate!) → read `image_native` directly | Danish/Nordic + European painting, decorative arts |+| 4 | **Rijksmuseum** | Yes, no key | CC0/PD (mostly), check per-object | `GET /search/collection?type=painting&imageAvailable=true` → walk object → VisualItem → DigitalObject → `access_point[0].id` is the ready IIIF URL (3 sequential GETs) | Dutch/Flemish masters, prints, decorative arts |+| 5 | **NGA (National Gallery of Art, DC)** | Yes, no key | CC0 (dataset); per-image `openaccess` flag gates rights | Download `published_images.csv` from GitHub, filter `openaccess=1`, then `GET https://api.nga.gov/iiif/{uuid}/full/full/0/default.jpg` | American + European painting/sculpture; best for bulk/offline querying (no live search API) |+| 6 | **Art Institute of Chicago** | Yes, no key | CC0 | `GET /artworks/search?query[term][is_public_domain]=true&fields=...,image_id` → build `https://www.artic.edu/iiif/2/{image_id}/full/full/0/default.jpg` — **but** the image host (`www.artic.edu`) 403s scripted/curl fetches (Cloudflare bot challenge); JSON metadata API is fine, image download needs a real/headless browser | Impressionism, European + American painting, Buddhist/Asian art |+| 7 | **Getty** | Yes, no key | CC0 (dataset); images "mostly" CC0 but per-image rights block inconsistently populated — verify before trusting | No keyword search exists — use SPARQL (`?obj crm:P138i_has_representation ?img`) which returns a ready-to-use IIIF image URL directly in the same query | European painting, photography, antiquities, decorative arts |+| 8 | **Smithsonian** | **No** — needs `api_key` (free instant signup, or shared `DEMO_KEY` at 30 req/hr) | CC0 | `GET /search?q=X AND online_media_type:Images&api_key=KEY` → `media[].content` (IDS deliveryService URL); check `media[].usage.access=="CC0"` per-image | Extremely broad: American art (SAAM), portraiture (NPG), Asian art (Freer\|Sackler), design (Cooper Hewitt), natural history/specimens |++## The 2-3 best keyless APIs to reach for FIRST++1. **The Met Collection API** — single JSON call, no IIIF/linked-data hop, `primaryImage` field is a directly-downloadable full-res JPEG, CC0 is a simple boolean flag, 80 req/sec, huge and diverse collection. Best all-around default.+2. **Cleveland Museum of Art Open Access API** — same one-hop simplicity as the Met, plus it's the only one of the 8 offering an archival-resolution TIFF tier (`images.full`) alongside a 3400px print JPEG, no rate limit trouble observed.+3. **SMK (Denmark) Art API** — also one-hop (`image_native` ready in the search result, no chain), broad European painting/decorative holdings. Caveat: the `filters=` param MUST be repeated (one bracket each), not concatenated into one string, or the AND silently fails.++Honorable mention: if the ask is specifically Dutch/Flemish masters or decorative arts, Rijksmuseum is worth the extra 2 hops. If it's European antiquities/photography and a keyword isn't essential, Getty's SPARQL trick returns an image URL in one query.++## Attribution / licensing notes++- **True CC0 (no legal attribution required, safe to treat as public domain outright):** Met, Cleveland, Art Institute of Chicago, NGA (dataset-level; images gated by per-image `openaccess` flag), Smithsonian.+- **"Public Domain Mark" / open-access-but-not-technically-CC0 (functionally free to use, museum requests but does not require a credit line):** Rijksmuseum (mixed — some items are CC BY and DO require attribution, always check the object's own rights block), SMK (Public Domain Mark 1.0 — functionally equivalent to CC0 for reuse, credit "SMK" requested).+- **Mixed/needs per-image verification — do not blanket-trust the collection-level CC0 claim:** Getty (dataset is CC0 but per-image `VisualItem.subject_to` rights block is inconsistently populated on older records — cross-check the object's public page, which flags true Open Content items with a "Download" button, before using an image commercially), NGA (per-image `openaccess=0` rows are NOT open — resolution-capped and rights-restricted), Smithsonian (record-level `metadata_usage.access` and per-media `media.usage.access` can theoretically diverge — check the media-level flag, not just the record flag).+- **Good practice everywhere even when not legally required:** a short credit line ("Digital image courtesy of [Museum]") costs nothing and avoids ambiguity, especially for mixed-license collections (Rijksmuseum, Getty) where a CC BY item could slip through a broad query.+- **Practical rule for the agent:** when a museum's API exposes a rights/license field, filter AND spot-check it per image before shipping — never assume "the collection is open access" implies "this specific image is." The 3 collections where this bites hardest are Getty, Rijksmuseum, and NGA/Smithsonian's per-image flags.++## Gaps — major keyless/near-keyless PD art sources the 8 museums miss++None of the 8 notes covered these; an agent building a general-purpose "find me a public-domain artwork" tool should know about them:++- **Wikimedia Commons API** — `https://commons.wikimedia.org/w/api.php?action=query&generator=search&gsrsearch=<term>&gsrnamespace=6&prop=imageinfo&iiprop=url|extmetadata` (fully keyless). Aggregates PD/CC-licensed images from dozens of museums already normalized into one schema; `extmetadata.LicenseShortName` gives the license per file. Best single fallback when a specific museum's own API comes up empty — search `Category:Paintings_by_...` or a direct `File:` page via `Special:FilePath/{filename}` for the raw image bytes.+- **Europeana API** — `https://api.europeana.eu/record/v2/search.json?wskey=<KEY>&query=<term>` — aggregates 50M+ items from thousands of European cultural institutions in one schema; **requires a free API key** (instant self-serve signup, not fully keyless like the others).+- **Harvard Art Museums API** — `https://api.harvardartmuseums.org/object?apikey=<KEY>&q=<term>` — **requires a free key** (instant signup). Strong for teaching-collection-style Western art and object photography.+- **Yale (LUX / Yale Center for British Art)** — `https://lux.collections.yale.edu/api/search/...` (Linked Art model, similar shape to Getty's) — keyless, aggregates Yale University Art Gallery + Yale Center for British Art + Beinecke; strong British art and rare books.+- **Paris Musées (Paris city museums collections)** — open-data portal at `https://www.parismuseescollections.paris.fr/en/collections` with a CC0 bulk dataset also mirrored on Paris's open-data platform (`opendata.paris.fr`) — keyless, French painting/decorative arts, explicit CC0.+- **NYPL Digital Collections API** — `https://api.repository.library.nyc/...` — **requires a free key** (instant signup via `api.repository.library.nyc/register`). Huge trove of digitized public-domain prints, maps, photographs, illustrations (not "museum paintings" but excellent for editorial/essay figures).+- **Wellcome Collection API** — `https://api.wellcomecollection.org/catalogue/v2/works?query=<term>` — keyless, no key needed. CC0/PD medical, historical, and scientific imagery — a good niche source for essay figures on health/science topics that the 8 art museums won't have.+- **Internet Archive** — `https://archive.org/advancedsearch.php?q=<term>&fl[]=identifier&output=json` — keyless. Not a museum but a deep well of PD book illustrations, historical photographs, and scanned ephemera; useful when the need is "old illustration/engraving" rather than "fine-art painting."+- **DPLA (Digital Public Library of America)** — `https://api.dp.la/v2/items?q=<term>&api_key=<KEY>` — **requires a free key**. Aggregates US libraries/archives/museums (including several of the 8 above) into one federated search — useful as a cross-collection fallback once a key is obtained.++**Practical recommendation for the agent:** try Met → Cleveland → SMK first (keyless, one-hop). If nothing fits the brief, fall back to Wikimedia Commons (keyless aggregator across everything). If the visual need is more "historical illustration/engraving" than "museum painting," go straight to Internet Archive or Wikimedia Commons instead of the fine-art APIs.diff --git a/.claude/skills/museum-art/references/artic.md b/.claude/skills/museum-art/references/artic.mdnew file mode 100644index 0000000..0cf6dd7--- /dev/null+++ b/.claude/skills/museum-art/references/artic.md@@ -0,0 +1,77 @@+# Art Institute of Chicago — Open-Access Image API Recipe++Verified: 2026-07-24++## Base URL+`https://api.artic.edu/api/v1`++Official docs: https://api.artic.edu/docs/ (confirmed live and current).++## API Key+**None required.** Fully open, anonymous access.+- Rate limit: 60 requests/minute per IP (throttled if exceeded, no auth error).+- Docs explicitly ask scrapers to self-throttle to ~1 req/sec and avoid parallel hammering — courtesy limit, not enforced by a key.++## Image License+**CC0 1.0 (Creative Commons Zero)** for artwork data and images flagged `is_public_domain: true`.+- Confirmed via live API response `info.license_text`:+ > "All other data in this response is licensed under a Creative Commons Zero (CC0) 1.0 designation and the Terms and Conditions of artic.edu."+ (The `description` field specifically is CC-BY 4.0 — everything else, including the image, is CC0.)+- Suggested (not legally required for CC0, but good practice) attribution: "Digital image courtesy of the Art Institute of Chicago."++## Search Recipe++### Step 1 — Search for public-domain artworks that have an image+```+GET https://api.artic.edu/api/v1/artworks/search?query[term][is_public_domain]=true&fields=id,title,image_id,artist_display&limit=20+```+- `query[term][is_public_domain]=true` filters to CC0/public-domain works.+- `fields=...,image_id` is required — without explicitly requesting `image_id` it won't be in the payload.+- Note: `is_public_domain=true` does not strictly guarantee `image_id` is non-null for every record (a few PD works lack digitized images) — check `image_id` is present/non-empty in each result before building an image URL. Safer alternative used by many integrations: also filter `query[exists][field]=image_id` or just skip results where `image_id` is null/empty.++### Step 2 — Build the full-resolution image URL from a result's `image_id`+```+https://www.artic.edu/iiif/2/{image_id}/full/843,/0/default.jpg+```+- `843,` = width 843px, height auto — this is the museum's own site default and the most-likely-cached size.+- For actual full/max resolution, replace the size segment with `full` (i.e. `.../full/full/0/default.jpg`) — larger, uncached, slower.+- The IIIF base (`https://www.artic.edu/iiif/2`) is also returned dynamically in every API response under `config.iiif_url` — prefer reading it from there over hardcoding, in case they ever move image hosting.++## Example URLs (real, from live query)++**exampleApiUrl** (search):+```+https://api.artic.edu/api/v1/artworks/search?query[term][is_public_domain]=true&fields=id,title,image_id,artist_display&limit=3+```+Verified response (2026-07-24) included, among others:+- id 28560, "The Bedroom", Vincent van Gogh, image_id `6644829f-f292-c5c4-a73c-0356a6fdbf0d`+- id 21023, "Buddha Shakyamuni Seated in Meditation (Dhyanamudra)", image_id `0675f9a9-1a7b-c90a-3bb6-7f7be2afb678`+- id 20684, "Paris Street; Rainy Day", Gustave Caillebotte, image_id `f8fd76e9-c396-5678-36ed-6a348c904d27`+- Total public-domain-with-fields matches in collection: 61,568 (paginated, 20,523 pages at limit=3)+- `config.iiif_url` in response: `https://www.artic.edu/iiif/2`++**exampleImageUrl** (from van Gogh's "The Bedroom", id 28560):+```+https://www.artic.edu/iiif/2/6644829f-f292-c5c4-a73c-0356a6fdbf0d/full/843,/0/default.jpg+```++Also confirmed the single-artwork endpoint works:+```+GET https://api.artic.edu/api/v1/artworks/28560?fields=id,title,image_id+```+→ returned `{"data":{"id":28560,"title":"The Bedroom","image_id":"6644829f-f292-c5c4-a73c-0356a6fdbf0d"}, "info":{"license_text":"...CC0 1.0..."}}`++## Verification Notes++- **JSON API: verified working.** Both the search endpoint and the single-artwork endpoint were fetched live and returned real, current data (61,568 public-domain artworks, correct image_id, correct CC0 license text in `info`).+- **IIIF image URL: correct per official docs, but NOT independently confirmed as a working binary download by this research pass.** Direct `curl`/WebFetch requests to `www.artic.edu/iiif/2/.../default.jpg` were blocked with `HTTP 403` + `cf-mitigated: challenge` — this is Cloudflare's bot-management challenge on the `artic.edu` web/image domain, triggered regardless of User-Agent (tried default curl UA, desktop Chrome UA, iPhone Safari UA, and no UA — all 403'd identically, which points to TLS/JA3 fingerprinting rather than header-based blocking). This is a known behavior of Cloudflare-protected static asset domains and does not indicate the URL pattern itself is wrong — it is the officially documented pattern, and it is what the museum's own website uses to render images in a real browser.+ - I attempted to verify via a real headed browser (browser-harness/CDP) to bypass the bot check, but that tool requires one-time manual "Allow remote debugging" approval in the user's Chrome, which wasn't available in this pass.+ - **Practical implication for whoever builds against this recipe:** plain `curl`/`requests`/serverless-function fetches of the IIIF image may hit the same Cloudflare challenge. A real browser, a headless browser with a full JS-capable engine, or a fetch routed through something that passes Cloudflare's bot checks (residential proxy, or a client with a legitimate browser TLS fingerprint) is likely needed for automated bulk image downloading. The JSON metadata API (`api.artic.edu`) has no such protection and worked cleanly every time.++## Gotchas Summary+- No API key, but self-throttle to ~1 req/sec for bulk work; hard limit 60 req/min anonymous.+- Must explicitly request `image_id` via `fields=` — not returned by default.+- Not all `is_public_domain:true` records have a non-null `image_id`; check before building the URL.+- IIIF size param: `843,` = site-default/cached; `full` = max resolution but uncached/slower; can also request specific `{width},{height}` or `{width},` / `,{height}`.+- `www.artic.edu` (the IIIF image host) sits behind Cloudflare bot management — scripted/curl-style requests to the image URLs get a 403 challenge page even though the URL pattern is correct and it works in normal browser use. Budget for this if building an automated downloader.+- Attribution "Digital image courtesy of the Art Institute of Chicago" is good practice even though CC0 doesn't legally require it.diff --git a/.claude/skills/museum-art/references/cleveland.md b/.claude/skills/museum-art/references/cleveland.mdnew file mode 100644index 0000000..7cf3b9c--- /dev/null+++ b/.claude/skills/museum-art/references/cleveland.md@@ -0,0 +1,105 @@+# Cleveland Museum of Art — Open Access Image Recipe (VERIFIED)++## TL;DR+- **Base URL:** `https://openaccess-api.clevelandart.org/api/artworks/`+- **Key required:** No — fully open, no key/token.+- **License:** CC0 (public domain), designated by CMA. No attribution required for CC0 works.+- **Verified 2026-07-24:** live API call returned real JSON with CC0 records; the returned image URL resolves to a real JPEG (396.3KB, confirmed via fetch).++## API Basics+- Docs: https://openaccess-api.clevelandart.org/ (interactive docs, last updated 2025-07-11)+- GitHub mirror (full dataset dump, JSON/CSV, updated weekly): https://github.com/ClevelandMuseumArt/openaccess+- Program overview / license page: https://www.clevelandart.org/open-access+- Endpoints:+ - `GET /api/artworks/` — search/list artworks+ - `GET /api/artworks/{id}` — single artwork+ - `GET /api/creators/`, `/api/creators/{id}`+ - `GET /api/exhibitions/`, `/api/exhibitions/{id}`++## Key Query Params (for CC0 + image)+| Param | Meaning |+|---|---|+| `cc0=1` | only works licensed CC0 (public domain, no restrictions) |+| `has_image=1` | only artworks that have a web image asset |+| `q=<term>` | free-text search |+| `limit=<n>` | page size |+| `skip=<n>` | pagination offset |+| `copyrighted` (opposite of cc0) | filters copyrighted works instead — do NOT use if you want open images |++Response field `share_license_status` will read `"CC0"`, `"Copyrighted"`, or `"Other"` — filter/inspect this if double-checking after the fact.++## Image URL Fields+Each artwork's `images` object contains up to 3 renditions, each with `url`, `filename`, `filesize`, `width`, `height`:+- `images.web` — JPEG, 900px longest side, 300dpi (good default "full-res-enough" download)+- `images.print` — JPEG, 3400px longest side, 300dpi (high-res)+- `images.full` — TIFF, variable dimensions/dpi (archival max-res)++`alternate_images` may hold extra views in the same 3 renditions.++Image CDN host: `https://openaccess-cdn.clevelandart.org/...` — direct hotlinkable JPEG/TIFF, no auth.++## Step-by-Step Recipe++**(a) Search for public-domain artworks with images:**+```+GET https://openaccess-api.clevelandart.org/api/artworks/?cc0=1&has_image=1&limit=10+```+Optional: add `&q=monet` (or any term) to narrow by keyword; add `&skip=10` to paginate.++**(b) Get a full-res image URL from a result:**+From each returned artwork object, read:+```+result.images.print.url # high-res JPEG (3400px)+result.images.full.url # archival TIFF (max res), if present+result.images.web.url # 900px JPEG, smaller/fast+```+No further auth or signing needed — the URL is directly downloadable.++## Concrete Verified Example+**exampleApiUrl** (fetched live, returned real data):+```+https://openaccess-api.clevelandart.org/api/artworks/?cc0=1&has_image=1&limit=3+```+Sample of what it returned:+```json+[+ {+ "id": 94979,+ "title": "Nathaniel Hurd",+ "share_license_status": "CC0",+ "images.web.url": "https://openaccess-cdn.clevelandart.org/1915.534/1915.534_web.jpg"+ },+ {+ "id": 92937,+ "title": "Stag at Sharkey's",+ "share_license_status": "CC0",+ "images.web.url": "https://openaccess-cdn.clevelandart.org/1922.1133/1922.1133_web.jpg"+ }+]+```++**exampleImageUrl** (verified resolves to a real JPEG, 396.3KB, image/jpeg):+```+https://openaccess-cdn.clevelandart.org/1915.534/1915.534_web.jpg+```+(This is the "web" 900px rendition for accession 1915.534, "Nathaniel Hurd," CC0. Swap `_web` for `_print` in the same path pattern for the 3400px rendition where available — but always trust the JSON's `images.print.url` field over guessing the filename pattern, since not every record has a print/full tier.)++## License & Attribution+- CMA designates open-access content as **CC0** — no copyright, no restriction, no attribution required.+- Non-CC0 records exist in the same API (`share_license_status: "Copyrighted"` or `"Other"`) — always filter with `cc0=1` (or check the field) before treating an image as free-use.+- CMA suggests (optional, not required for CC0) citing: Artist, Title, Date, Medium, Dimensions, Institution, Credit Line, Accession Number, URL.++## Gotchas+- **No rate limit documented** — be a good citizen anyway (add delays for bulk scraping); no official published number.+- **Not every record has all 3 image tiers.** Always read the actual `images.*.url` fields from the JSON rather than assuming a naming convention holds for every accession — some records only have `web`, not `print`/`full`.+- **No IIIF image API** — CMA does NOT expose IIIF (no `/iiif/.../full/full/0/default.jpg` sizing syntax). Sizing is fixed to the 3 pre-rendered tiers (web/print/full), not parametric.+- **`cc0` vs `copyrighted` params are opposite filters** — don't confuse them; use `cc0=1` for open images.+- **Full dataset dump available on GitHub** (`ClevelandMuseumArt/openaccess`, JSON/CSV, updated weekly) if you want to avoid live API pagination for bulk work.+- Image CDN (`openaccess-cdn.clevelandart.org`) is a separate host from the API host (`openaccess-api.clevelandart.org`) — don't assume same-origin for CORS purposes if building a browser app.++## Sources+- https://openaccess-api.clevelandart.org/ (API docs)+- https://www.clevelandart.org/open-access (license/program page)+- https://github.com/ClevelandMuseumArt/openaccess (dataset mirror)+- Live verification: `GET https://openaccess-api.clevelandart.org/api/artworks/?cc0=1&has_image=1&limit=3` fetched 2026-07-24, returned real JSON.+- Live verification: `https://openaccess-cdn.clevelandart.org/1915.534/1915.534_web.jpg` fetched 2026-07-24, confirmed real JPEG (image/jpeg, 396.3KB).diff --git a/.claude/skills/museum-art/references/getty.md b/.claude/skills/museum-art/references/getty.mdnew file mode 100644index 0000000..3f14dc3--- /dev/null+++ b/.claude/skills/museum-art/references/getty.md@@ -0,0 +1,110 @@+# The Getty — Open-Access Image Recipe (VERIFIED)++## TL;DR+- **Base URL (Linked Art / JSON-LD API):** `https://data.getty.edu/museum/collection/`+- **API key:** NOT required. All endpoints below returned `HTTP 200` with a plain unauthenticated `curl`.+- **License:** Dataset/collection metadata is **CC0 1.0** (confirmed live in every record's `subject_to` "License for Collection Metadata" block, and in the official docs text). Images come from the **Getty Open Content Program** — most are CC0/public domain, but **not all**; each image reference should be checked (see Gotchas).+- **Images:** served via **IIIF Image API** at `https://media.getty.edu/iiif/image/<image-id>/...` — full resolution, no key, `Access-Control-Allow-Origin: *`.+- **Search:** there is **no keyword/full-text REST search endpoint** (the docs explicitly say so — see Gotchas). Discovery is via the public **SPARQL endpoint** `https://data.getty.edu/museum/collection/sparql`, which I ran live and got real results back.++---++## 1. What the API actually is+Official docs: https://data.getty.edu/museum/collection/docs/ (a Nuxt SPA; scraped its raw payload to get the real text since WebFetch truncates it — Bash `curl` worked fine).++- Model: **Linked.Art** (a CIDOC-CRM profile) + **JSON-LD**.+- Entity types: `object`, `place`, `document`, `group`, `person`, `exhibition`, `activity`.+- Record URL pattern: `https://data.getty.edu/museum/collection/<ENTITY_TYPE>/<ENTITY_ID>` — returns JSON-LD directly, no `Accept` header needed.+- Change tracking: ActivityStreams feed at `https://data.getty.edu/museum/collection/activity-stream`.+- Graph queries: public **SPARQL** endpoint + a browser UI at `https://data.getty.edu/museum/collection/sparql-ui`.+- Images: Getty-wide **IIIF** API at `https://media.getty.edu` (Image API 2.1.1 + Presentation API 2.1.1/3).++Docs quote (verbatim, from the rendered page): *"With some exceptions, the data available from this API is made available under [CC0]. Check the Usage Guidelines section... for more details."* and *"We currently don't provide a way to get a list of all of the objects or other entity types in the dataset... We also don't provide a way to download all the data in the dataset."* — i.e. **no bulk list, no keyword search REST endpoint**, by design, confirmed straight from their own docs.++## 2. Key requirement+None. Every call in this recipe (`object` record fetch, SPARQL query, IIIF image fetch) succeeded with plain unauthenticated HTTP GET. No signup, no token, no rate-limit header observed.++## 3. License — precisely+- **Dataset/metadata:** CC0 1.0 Universal, unconditionally, per Getty's own statement and confirmed live in every object record I pulled (`subject_to` → `Right` → `classified_as` → `http://creativecommons.org/publicdomain/zero/1.0/`, display name `"Public Domain"`, description `"No Copyright"`).+- **Images (Exception #1 in the docs):** *"Many of the linked images are part of Getty's Open Content program and can also be used without permission under CC0 — but not all of the images are."* The docs say each image reference should carry its own rights block (`VisualItem` → `subject_to` → `classified_as` with the CC0 URI, or something else if restricted). In practice, on the two live records I sampled, that per-image rights sub-block was not populated (older TMS-migrated records) — so **don't assume every image is CC0 purely from the API response**; cross-check on the object's public page at `getty.edu` (Open Content items show a "Download" button) if you need certainty for a specific artwork, or prefer objects you already know are Open Content (e.g. van Gogh's *Irises*, used below).+- **Written descriptions/biographies (Exception #2):** mixed — some CC BY 4.0, some third-party copyright. Same per-block check pattern (`referred_to_by[].subject_to[].classified_as[].id`).+- Attribution is **not required** but requested/appreciated (no fixed credit-line string was given beyond "provided by the J. Paul Getty Museum").+- Official program description (from `getty.edu/projects/open-content-program`, verified fetch): *"Initiative granting free access to images of public domain artworks in Getty's collections."*++## 4. Search recipe (concrete, step-by-step)++There is no `?q=keyword` REST search. Use the SPARQL endpoint to discover objects that have an image, then pull each object's full record for metadata + rights + all image links.++**Step A — find N objects that have a representation image (SPARQL, GET, JSON by default):**++```+GET https://data.getty.edu/museum/collection/sparql?query=<url-encoded SPARQL>+```++SPARQL body used (real, tested):+```sparql+PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>+SELECT ?obj ?label ?img WHERE {+ ?obj a crm:E22_Human-Made_Object .+ ?obj rdfs:label ?label .+ ?obj crm:P138i_has_representation ?img .+} LIMIT 5+```+This returns the object's URI, its label, and a ready-to-use IIIF image URL — no follow-up call needed for a quick image grab.++**Step B — get the full record (metadata + rights + every image/IIIF manifest link) for one object:**+```+GET https://data.getty.edu/museum/collection/object/<uuid-from-step-A>+```+Look in the JSON for:+- `representation[].id` → direct JPEG (deprecated field, still live, smaller res)+- `subject_of[]` where `_label` = "IIIF Manifest URL" → full IIIF Presentation manifest (has every canvas/image + real per-canvas dims)+- `subject_to[]` → the rights/license block (check `classified_as[].id` for the CC0 URI)++**Step C — full-resolution image URL (IIIF Image API), from any `image-id` you have:**+```+https://media.getty.edu/iiif/image/<image-id>/full/full/0/default.jpg # full native resolution+https://media.getty.edu/iiif/image/<image-id>/full/!600,/0/default.jpg # thumbnail, max 600px, aspect preserved+https://media.getty.edu/iiif/image/<image-id>/<x,y,w,h>/<w,h>/0/default.jpg # cropped region (used on Getty's own site)+```++**Step D — filter for CC0/public domain with confidence:** either (a) rely on the per-image `subject_to`/`classified_as` block when populated, or (b) pick artworks you can confirm are in the Open Content Program via the human-facing collection page (`getty.edu/art/collection/object/...`), which flags Open Content items with a visible "Download" affordance.++## 5. Verified example URLs++**exampleApiUrl** (SPARQL — real results, confirmed via curl, HTTP 200, default response is already `application/sparql-results+json` even with no Accept header):+```+https://data.getty.edu/museum/collection/sparql?query=PREFIX%20crm%3A%20%3Chttp%3A//www.cidoc-crm.org/cidoc-crm/%3E%0ASELECT%20%3Fobj%20%3Flabel%20%3Fimg%20WHERE%20%7B%0A%20%20%3Fobj%20a%20crm%3AE22_Human-Made_Object%20.%0A%20%20%3Fobj%20rdfs%3Alabel%20%3Flabel%20.%0A%20%20%3Fobj%20crm%3AP138i_has_representation%20%3Fimg%20.%0A%7D%20LIMIT%205+```+Live sample of what it returns (first row):+```json+{"obj":"https://data.getty.edu/museum/collection/object/84eb7a1d-f806-4da9-a0ed-77d6b355df7e",+ "label":"West Front, Looking North (84.XB.950.7.28)",+ "img":"https://media.getty.edu/iiif/image/f45355f5-8ae6-4813-bf7a-dc94997f76f0/full/full/0/default.jpg"}+```++Also a plain record fetch, no query params, well-known Open Content artwork (van Gogh's *Irises*, 90.PA.20):+```+https://data.getty.edu/museum/collection/object/c88b3df0-de91-4f5b-a9ef-7b2b9a6d8abb+```++**exampleImageUrl** (full resolution — verified with `curl -I`: `HTTP/2 200`, `content-type: image/jpeg`, `content-disposition: inline; filename="8c255d80-7382-46db-9fa8-892c0d37247e_9021x7122.jpg"`, `access-control-allow-origin: *`):+```+https://media.getty.edu/iiif/image/8c255d80-7382-46db-9fa8-892c0d37247e/full/full/0/default.jpg+```+(This is the Irises main image, 9021×7122px native.)++## 6. Gotchas+- **No full-text/faceted search REST endpoint, no bulk listing/dump.** Explicitly stated as a current limitation in Getty's own docs ("it's on our roadmap"). SPARQL is the only queryable discovery mechanism from the API itself; the human search UI at `getty.edu/art/collection/search/` is the practical alternative for browsing by keyword and then feeding object IDs back into the JSON API.+- **Per-image rights blocks are inconsistently populated.** The docs describe a `VisualItem.subject_to.classified_as` CC0 marker per image, but live sampled records didn't always carry it — don't blanket-assume every image is CC0 just because the record fetch succeeded; verify against the public object page or stick to artworks you know are Open Content.+- **The `representation` field is marked deprecated** in favor of the `shows` → IIIF Manifest route for full-size images going forward (Getty's own deprecation note: future `representation` images "will be smaller than that currently offered"). The `full/full/0/default.jpg` IIIF Image API URL is the durable way to get max resolution regardless.+- **IIIF sizing syntax:** `/full/full/...` = native size; `/full/!W,/...` = fit within width W preserving aspect (the `!` matters); `/full/W,/...` = force width W; region can be `x,y,w,h` pixels instead of `full` to crop.+- **The `docs/` page is a client-rendered SPA** — plain `WebFetch`/simple scrapers get truncated boilerplate; had to pull the Nuxt `_payload.json` directly to get the real doc text. If automating doc reads again, target that payload endpoint, not the rendered HTML.+- **No observed rate limiting** in this session, but Getty gives no published quota — be a reasonable citizen (this is a small non-profit-run API, not a commercial CDN).+- Attribution not contractually required (CC0) but Getty explicitly asks to be told how you used the data (`[email protected]`) and offers a courtesy credit line: "J. Paul Getty Museum".++## Sources+- https://data.getty.edu/museum/collection/docs/ (API docs, scraped via curl on `_payload.json`)+- https://www.getty.edu/projects/open-content-program/ (Open Content Program description)+- https://www.getty.edu/projects/open-data-apis/ (open data/APIs overview)+- Live verified endpoints: `data.getty.edu/museum/collection/object/*`, `data.getty.edu/museum/collection/sparql`, `media.getty.edu/iiif/image/*`diff --git a/.claude/skills/museum-art/references/met.md b/.claude/skills/museum-art/references/met.mdnew file mode 100644index 0000000..4c682cb--- /dev/null+++ b/.claude/skills/museum-art/references/met.md@@ -0,0 +1,87 @@+# The Metropolitan Museum of Art — Open Access Image Recipe++Status: **VERIFIED** (both the search endpoint and the resulting image URL were fetched live and returned real data / HTTP 200).++## Base URL+`https://collectionapi.metmuseum.org/public/collection/v1/`++Docs: https://metmuseum.github.io/ (official, GitHub Pages)+Initiative overview: https://www.metmuseum.org/hubs/open-access+Repo: https://github.com/metmuseum/openaccess++## API key+**None required.** The docs state explicitly: "At this time, we do not require API users to register or obtain an API key to use the service."+Rate limit: **80 requests/second** (documented; be polite and add a small delay/backoff for bulk jobs anyway). Contact for questions: `[email protected]`.++## License+**CC0 (Creative Commons Zero)** for objects flagged `isPublicDomain: true` — The Met has waived all copyright and related/neighboring rights on this subset of the dataset (both the metadata and the associated images). No attribution is legally required, though crediting "The Metropolitan Museum of Art" is good practice / house style.++Caveat: not every object in the collection is CC0 — only ones where `isPublicDomain` is `true`. Objects where it's `false` still have metadata returned by the API but the image (if any) is NOT open-licensed for reuse — always check the flag per-object, don't assume every API result is free to use.++## Endpoints used in this recipe++| Endpoint | Purpose |+|---|---|+| `GET /search?...` | Search for object IDs matching filters (query term, `hasImages`, `isPublicDomain`, department, date range, etc.) |+| `GET /objects/{objectID}` | Full record for one object: title, artist, `isPublicDomain`, `primaryImage`, `primaryImageSmall`, rights fields |+| `GET /departments` | List of department IDs/names, for scoping search |++Confirmed search params (from live docs): `q`, `isHighlight`, `title`, `tags`, `departmentId`, `isOnView`, `artistOrCulture`, `medium`, `hasImages`, `geoLocation`, `dateBegin` + `dateEnd` (must be given together). **`isPublicDomain` is also a live, working param** even though it isn't prominently listed in every doc rendering — confirmed by direct test below.++## Step-by-step recipe++1. **Search** for public-domain artworks with images:+ ```+ GET https://collectionapi.metmuseum.org/public/collection/v1/search?q=<term>&hasImages=true&isPublicDomain=true+ ```+ Response: `{"total": N, "objectIDs": [id1, id2, ...]}`. If `objectIDs` is null, no matches — try a broader `q` or drop a filter.++2. **Fetch one object's full record:**+ ```+ GET https://collectionapi.metmuseum.org/public/collection/v1/objects/{objectID}+ ```+ Check `isPublicDomain === true` before reuse (belt-and-suspenders even though the search already filtered on it — the object may have been re-flagged since indexing).++3. **Grab the image URL directly from the object JSON** — no extra IIIF/image-service call needed:+ - `primaryImage` — full original resolution JPEG (can be very large, several MB, up to ~8MB+ observed).+ - `primaryImageSmall` — "web-large" size, smaller JPEG, good default for web use.+ - `additionalImages` — array of extra full-res image URLs if the object has more than one photographed view.++ No IIIF Image API / sizing-parameter syntax is involved — Met just serves static JPEGs at fixed pre-rendered sizes (`original`, `web-large` in the URL path), not a dynamic IIIF resizer.++## Example URLs (live-tested)++**Search:**+```+https://collectionapi.metmuseum.org/public/collection/v1/search?q=sunflowers&hasImages=true&isPublicDomain=true+```+Verified live: returned `"total": 40` and a real `objectIDs` array (e.g. 544320, 310453, 200668, 437261, 824771, 36225, ... 436535 among later results is a different van Gogh but 436535 below was pulled independently for the full example).++**Object record:**+```+https://collectionapi.metmuseum.org/public/collection/v1/objects/436535+```+Verified live via curl — returns real JSON:+- `objectID`: 436535+- `title`: "Wheat Field with Cypresses"+- `artistDisplayName`: Vincent van Gogh+- `department`: European Paintings+- `isPublicDomain`: `true`+- `primaryImage`: `https://images.metmuseum.org/CRDImages/ep/original/DP-42549-001.jpg`+- `primaryImageSmall`: `https://images.metmuseum.org/CRDImages/ep/web-large/DP-42549-001.jpg`++**Full-res image URL (verified):**+```+https://images.metmuseum.org/CRDImages/ep/original/DP-42549-001.jpg+```+`curl -sI` on this URL returned `HTTP/2 200`, `content-type: image/jpeg`, `content-length: 8291194` (~8.3MB) — confirmed real, downloadable, full-resolution JPEG.++## Gotchas++- **Rate limit 80 req/sec** per the docs — fine for interactive/scripted use, but throttle bulk crawls (e.g. iterate all `/objects`) to be a good citizen; the server is fronted by Imperva/Incapsula (visible in response headers) which may rate-limit/challenge aggressive traffic beyond the documented cap.+- **No CORS problem** — `access-control-allow-origin: *` is set on the image CDN (`images.metmuseum.org`), so these URLs are directly usable from browser JS (e.g. `<img>` tags, canvas/fetch) without a proxy.+- **`objects` bulk listing endpoint** (`/objects?metadataDate=...&departmentIds=...`) returns *all* object IDs for the filter, not just public-domain/has-image ones — you still need to check `isPublicDomain` + `primaryImage` (non-empty) per object, or better, use `/search?hasImages=true&isPublicDomain=true` up front to pre-filter.+- **`primaryImage` can be empty string** even for public-domain objects that haven't been photographed — always check `primaryImage !== ""` (or non-null) before using.+- **No IIIF sizing params** — unlike some museum APIs (e.g. Smithsonian, some Europeana sources), the Met does not expose a dynamic image resize API. You get exactly two fixed sizes baked into the URL (`original`, `web-large`) plus optional `additionalImages`. If you need a specific pixel size, resize client-side after download.+- **Attribution not legally required (CC0)** but recommended: "Image courtesy of The Metropolitan Museum of Art" / link back to the object's page (`https://www.metmuseum.org/art/collection/search/{objectID}`).+- **`rightsAndReproduction` field is often blank** even on legitimate public-domain records — don't treat an empty rights field as a red flag; `isPublicDomain: true` is the authoritative signal.diff --git a/.claude/skills/museum-art/references/nga.md b/.claude/skills/museum-art/references/nga.mdnew file mode 100644index 0000000..37e2ebe--- /dev/null+++ b/.claude/skills/museum-art/references/nga.md@@ -0,0 +1,90 @@+# National Gallery of Art (Washington) — Open Access Image Recipe++Status: VERIFIED (live IIIF fetch succeeded, real image bytes returned).++## Base URL(s)++- **Data/metadata**: CSV dumps in the GitHub repo `github.com/NationalGalleryOfArt/opendata` (data lives under `/data/*.csv`, fetch raw via `raw.githubusercontent.com/NationalGalleryOfArt/opendata/main/data/<file>.csv`). No search API — this is a bulk CSV export, updated frequently (daily per the repo docs).+- **Image server (IIIF Image API 2.0, level1)**: `https://api.nga.gov/iiif/{uuid}/{region}/{size}/{rotation}/{quality}.{format}`+ - `info.json` at `https://api.nga.gov/iiif/{uuid}/info.json` confirms native width/height and supported sizes/qualities.++There is no public REST/search API beyond the CSV files + IIIF image server — no `api.nga.gov` object-search endpoint documented. Treat this as "CSV catalog + IIIF images," not a queryable API.++## Key requirement++**None.** No API key, no auth, no rate-limit header observed. CSVs are public GitHub raw files; the IIIF image server responds with `access-control-allow-origin: *` and no auth challenge.++## License++**CC0-1.0** (Creative Commons Zero / public domain dedication) for the dataset itself — repo `LICENSE` + README state NGA "waives any copyright or related rights that it might have in this dataset." Attribution is *requested* (not required) for research use citing "National Gallery of Art Open Data Program."++Per-image rights are **not uniformly CC0** — see gotcha below on the `openaccess` flag. Only rows where `published_images.openaccess = 1` are the institution's actual open-access (full-resolution, reuse-cleared) images; `openaccess = 0` rows are still shown via IIIF but resolution-capped (see `maxpixels`), meaning rights-restricted/third-party-copyright works.++## Relevant CSV files (from `data/` dir)++- `objects.csv` — one row per artwork: `objectid, uuid, title, attribution (artist), displaydate, medium, dimensions, classification, creditline, departmentabbr, wikidataid, ...`. No explicit "is public domain" column at the object level.+- `published_images.csv` — one row per digitized image: `uuid, iiifurl, iiifthumburl, viewtype, sequence, width, height, maxpixels, openaccess, depictstmsobjectid, assistivetext`. This is the file that actually gates open access:+ - `iiifurl` = the IIIF base identifier URL (append IIIF path params to get an image).+ - `iiifthumburl` = pre-built 200×200 thumbnail convenience URL.+ - `openaccess` = `1` → full resolution downloadable via IIIF `full/full` or `full/max`; `0` → IIIF still serves an image but the server enforces a `maxpixels` ceiling (e.g. 900px on the long edge) — these are NOT open access.+ - `depictstmsobjectid` = join key back to `objects.csv.objectid` for title/artist metadata.+ - `assistivetext` = an auto-generated alt-text description of the image (handy bonus field).++## Search recipe++### (a) Find public-domain artworks that have an image++No live search API — do it against the CSVs (download or stream them):++1. Fetch `https://raw.githubusercontent.com/NationalGalleryOfArt/opendata/main/data/published_images.csv`.+2. Filter rows where `openaccess == "1"` (string "1") AND `viewtype == "primary"` (primary image, not alternate crops/details) → these are full-res, reuse-cleared images.+3. Take the `depictstmsobjectid` from each surviving row and join against `objects.csv.objectid` to pull `title`, `attribution` (artist), `displaydate`, `medium`, `classification`.+4. `uuid` (or equivalently `iiifurl`'s trailing path segment) is the identifier to build image-request URLs.++No pagination/rate-limit concerns since it's a flat file — just stream/filter client-side (Python `csv`/`pandas`, or `curl` + `awk`/`grep` for quick checks). Both CSVs are large (130k+ objects, more image rows); use streaming reads, not full in-memory loads if resource-constrained.++### (b) Get a full-resolution downloadable image URL from a result++Given a `uuid` (e.g. from `published_images.csv`, row with `openaccess=1`):++```+GET https://api.nga.gov/iiif/{uuid}/full/full/0/default.jpg+```+or equivalently+```+GET https://api.nga.gov/iiif/{uuid}/full/max/0/default.jpg+```+Both returned the object's native full resolution in testing (3365×4332 px, 2.57 MB JPEG for the example below). Use `info.json` first if you want to confirm native dimensions or pick a specific IIIF `size` token (e.g. `!1600,1600` to cap the long edge) instead of `full`.++## Example URLs (live-tested 2026-07-24)++- **exampleApiUrl** (metadata, first bytes of the open-access image catalog):+ `https://raw.githubusercontent.com/NationalGalleryOfArt/opendata/main/data/published_images.csv`+ First data row: `uuid=00007f61-4922-417b-8f27-893ea328206c, iiifurl=https://api.nga.gov/iiif/00007f61-4922-417b-8f27-893ea328206c, openaccess=1, depictstmsobjectid=17387` (join to `objects.csv` objectid 17387 for title/artist).++- **info.json check**:+ `https://api.nga.gov/iiif/00007f61-4922-417b-8f27-893ea328206c/info.json` → returned valid IIIF Image API 2.0 descriptor, native size 3365×4332, level1 profile, jpg format, supports `sizeAboveFull`.++- **exampleImageUrl** (full-resolution, downloadable):+ `https://api.nga.gov/iiif/00007f61-4922-417b-8f27-893ea328206c/full/full/0/default.jpg`+ → `HTTP/2 200`, `content-type: image/jpeg`, `content-length: 2569142` (2.57 MB), served via Cloudflare + IIPImage, `access-control-allow-origin: *`.++## Verification performed++- Fetched `published_images.csv` raw (byte-range) — confirmed real header + rows, confirmed `openaccess`/`maxpixels` semantics by comparing an `openaccess=1` row (no maxpixels cap) against an `openaccess=0` row (maxpixels=900).+- Fetched `objects.csv` raw (byte-range) — confirmed schema and that title/artist metadata lives here, joined via `objectid`.+- `curl` GET `info.json` for a real uuid — valid IIIF descriptor returned.+- `curl -I` (HEAD) on `full/full/0/default.jpg` and `full/max/0/default.jpg` — both HTTP 200, image/jpeg, multi-MB content-length, i.e. genuinely full resolution, not a redirect or error page.+- `curl -I` on the `iiifthumburl` pattern (`full/!200,200/0/default.jpg`) — HTTP 200, small JPEG (9.7 KB), confirming the thumbnail convenience URL also works.++**verified = true.**++## Gotchas++- **`openaccess` flag is per-image, not per-object.** Always filter on it — do not assume every row in `published_images.csv` is reuse-cleared. Rows with `openaccess=0` are capped by IIIF server-side (`maxpixels`, e.g. 900px long edge) — these are rights-restricted (e.g. copyrighted contemporary works, loans) and should be excluded from a "CC0 image" pipeline.+- **IIIF profile is level1** — supports `sizeAboveFull` per the `info.json` profile, which is why `full/full` and `full/max` both return native resolution rather than erroring; not all IIIF servers allow this (level0 servers only serve pre-baked sizes).+- **No live object/artwork search API.** Anyone wanting "search by artist/title/date" must filter the CSV client-side (or load into SQLite/DuckDB — the repo ships `sql_tables/` schema helpers for exactly this). Don't assume a `?q=` REST endpoint exists.+- **CSV files are large** (130k+ objects across multiple linked tables — `objects.csv`, `published_images.csv`, `constituents.csv`, `objects_constituents.csv`, etc. per the repo's `data/` dir) — use streaming parses or DuckDB/SQLite rather than loading everything into memory naively.+- **Rate limits**: none encountered on either GitHub raw or `api.nga.gov` in this test; Cloudflare fronts `api.nga.gov` and sets `__cf_bm` cookies but did not block repeated HEAD requests. Be a reasonably polite bulk client anyway (the data updates frequently — no need to re-download the whole CSV more than daily).+- **Attribution**: not legally required (CC0) but NGA requests citing "National Gallery of Art Open Data Program" for datasets built on this data; for images, credit lines are in `objects.csv.creditline` per object (nice to surface even though not mandatory).+- **`assistivetext`** in `published_images.csv` is a free, pre-generated alt-text/description per image — useful if you need accessible captions without running your own vision model.diff --git a/.claude/skills/museum-art/references/rijksmuseum.md b/.claude/skills/museum-art/references/rijksmuseum.mdnew file mode 100644index 0000000..b333bd4--- /dev/null+++ b/.claude/skills/museum-art/references/rijksmuseum.md@@ -0,0 +1,88 @@+# Rijksmuseum — Open-Access Image Recipe (VERIFIED 2026-07-24)++## TL;DR+- **Starting hint was stale.** `rijksmuseum.nl/api/en/collection` (the old apikey-based "Collection API") is **deprecated**. The current, live, documented API is the **Linked Art Search API** at `data.rijksmuseum.nl/search/collection`.+- **No API key needed** for the current API. It's fully open.+- Images come via a separate **IIIF** image service (`iiif.micr.io`), reached by walking the linked-art graph from a search result.+- License: **CC0 / Public Domain** for the vast majority of digitized objects (confirmed on the test object). Attribution is requested but not legally required for CC0/PD items.++## Base URL+- Search: `https://data.rijksmuseum.nl/search/collection`+- Object resolver (linked data / JSON-LD): `https://id.rijksmuseum.nl/{objectId}`+- Image (IIIF, via Micrio): `https://iiif.micr.io/{imageId}/{region}/{size}/{rotation}/{quality}.{format}`++## API Key+**Not required.** The new Search API (`data.rijksmuseum.nl`) is public, no registration, no key, no auth header. (The legacy `rijksmuseum.nl/api/en/collection` API *did* require a free key via account registration + profile settings — but that endpoint is marked DEPRECATED in the current docs and should not be used for new integrations.)++## License+- **CC0 / Public Domain** for most digitized collection objects — confirmed directly on the test object's `VisualItem` record: `subject_to` → `classified_as` → `https://creativecommons.org/publicdomain/mark/1.0/` ("Public Domain") and a nested `subject_of` rights block citing `https://creativecommons.org/publicdomain/zero/1.0/` (CC0).+- Some items are CC BY 4.0 (attribution required) or fully copyrighted/restricted — always read the object's own rights block rather than assuming.+- Museum's policy page (`data.rijksmuseum.nl/policy/`): attribution is *requested* ("kindly ask you to credit the Rijksmuseum") but not legally mandatory for CC0/PD works.++## Search Recipe (step by step)++### (a) Search for public-domain artworks that have images+1. Call `GET https://data.rijksmuseum.nl/search/collection?type=painting&imageAvailable=true`+ - `imageAvailable=true` filters to objects with a digital reproduction.+ - Other useful params: `creator`, `creationDate` (wildcards `*`/`?`), `description`, `material`, `technique`, `title`, `type`, `objectNumber`, `memberOfSetId`, `aboutActor`. Repeat a param to OR multiple values (e.g. two `material=`).+ - There is **no direct license/CC0 filter param** — the API doesn't expose rights as a search facet. In practice, filter/verify license per-object (see step 4 below) since almost everything with `imageAvailable=true` in the general collection is Public Domain/CC0.+ - Response is a Linked-Art `OrderedCollectionPage`: `orderedItems: [{id: "https://id.rijksmuseum.nl/{objectId}", type: "HumanMadeObject"}, ...]`, plus `partOf.totalItems` and a `next.id` URL (contains an opaque `pageToken`) for pagination — just follow `next.id` verbatim for the next page. Page size is capped at 100.++2. Pick an object id from `orderedItems`, e.g. `https://id.rijksmuseum.nl/200105887`.++### (b) Get a full-resolution downloadable image URL from a result+3. `GET https://id.rijksmuseum.nl/{objectId}` (Accept: application/json) → JSON-LD `HumanMadeObject` record. Find the `shows` array → `{id: "https://id.rijksmuseum.nl/{visualItemId}", type: "VisualItem"}`.+4. `GET https://id.rijksmuseum.nl/{visualItemId}` → `VisualItem` record. Check:+ - `subject_to[].classified_as[].id` for the rights statement (look for `creativecommons.org/publicdomain/...`).+ - `digitally_shown_by` → `{id: "https://id.rijksmuseum.nl/{digitalObjectId}", type: "DigitalObject"}`.+5. `GET https://id.rijksmuseum.nl/{digitalObjectId}` → `DigitalObject` record. Its `access_point[0].id` is the **ready-to-use full-resolution IIIF image URL**, already in the form `https://iiif.micr.io/{imageId}/full/max/0/default.jpg` — no further construction needed, just use it as-is.++### IIIF sizing (if you want other resolutions/crops)+Template: `https://iiif.micr.io/{imageId}/{region}/{size}/{rotation}/{quality}.{format}`+- `region`: `full` (whole image) or `x,y,w,h` pixel box+- `size`: `max` (native full res), `!2000,2000` (fit within box), `800,` (width 800, auto height)+- `rotation`: `0` normally+- `quality`: `default` (or `gray`, `bitonal`)+- `format`: `jpg`, `png`, `webp`, etc.+Docs: `data.rijksmuseum.nl/docs/iiif/image` (IIIF Image API), `data.rijksmuseum.nl/docs/iiif/presentation` (manifests), `data.rijksmuseum.nl/docs/iiif/` (overview).++## Concrete Example (fully verified live, 2026-07-24)++**exampleApiUrl** (search):+```+https://data.rijksmuseum.nl/search/collection?type=painting&imageAvailable=true+```+Verified via `curl` → HTTP 200, valid JSON, `totalItems: 4916`, first result `https://id.rijksmuseum.nl/200100988`.++**Object chain used for the image example:**+- Object: `https://id.rijksmuseum.nl/200105887` → "Cat at Play" (Katjesspel), Henriëtte Ronner-Knip, c.1860-1878, object number SK-A-3089+- VisualItem: `https://id.rijksmuseum.nl/202105887` → rights = Public Domain / CC0+- DigitalObject: `https://id.rijksmuseum.nl/5001087555671055286110` → `access_point[0].id`++**exampleImageUrl**:+```+https://iiif.micr.io/YAxov/full/max/0/default.jpg+```+Verified via `curl -I` and full download:+- HTTP/2 200, `content-type: image/jpeg`, `content-length: 1,463,989 bytes`+- Actual pixel dimensions: **3720×2696**, baseline JPEG+- `access-control-allow-origin: *` (CORS-open, safe to hotlink/fetch client-side)+- Served via Cloudflare, `cache-control: public, max-age=31536000` (1yr cache — fine to cache aggressively)++## Gotchas+- **Two generations of API coexist in search results/docs.** Don't follow the old `rijksmuseum.nl/api/en/collection` (`key=...&imgonly=True` style) — it's the deprecated Collection API. Use `data.rijksmuseum.nl/search/collection` instead.+- **No single-call shortcut for the image.** Unlike some museum APIs (e.g. a flat `webImage.url` field), Rijksmuseum's linked-art model requires **3 sequential GETs** (object → VisualItem → DigitalObject) to reach the actual image URL. Budget for that in any pipeline (or cache the chain).+- **No license filter in search params.** `imageAvailable=true` gets you images, not necessarily license — verify CC0/PD per object via the VisualItem's `subject_to` block if you need to be strict (though in practice public-collection paintings/prints are overwhelmingly Public Domain/CC0).+- **Library/archive records excluded** from the Search API (museum objects only).+- **Pagination**: don't hand-build `pageToken` — always follow the exact `next.id` URL returned in the response.+- **Rate limits**: not documented/published for the new API; no auth means no per-key throttling was observed in this test, but be a good citizen (no aggressive parallel hammering).+- **Attribution**: not legally required for CC0/PD, but the museum requests a credit line ("Rijksmuseum") — cheap to add and avoids any ambiguity for CC BY items mixed into broader queries.+- **IIIF host is `iiif.micr.io`** (third-party Micrio infrastructure), not `data.rijksmuseum.nl` itself — don't assume same-origin/rate-limit policy as the main API.++## Sources+- https://data.rijksmuseum.nl/docs/ (API overview)+- https://data.rijksmuseum.nl/docs/search (Search API reference)+- https://data.rijksmuseum.nl/docs/api/collection (old Collection API — marked DEPRECATED)+- https://data.rijksmuseum.nl/docs/iiif/ , /docs/iiif/image , /docs/iiif/presentation (IIIF docs)+- https://data.rijksmuseum.nl/policy/ (licensing/rights policy)+- Live verified via `curl`: `data.rijksmuseum.nl/search/collection`, `id.rijksmuseum.nl/200105887`, `id.rijksmuseum.nl/202105887`, `id.rijksmuseum.nl/5001087555671055286110`, `iiif.micr.io/YAxov/full/max/0/default.jpg`diff --git a/.claude/skills/museum-art/references/smithsonian.md b/.claude/skills/museum-art/references/smithsonian.mdnew file mode 100644index 0000000..a0a308c--- /dev/null+++ b/.claude/skills/museum-art/references/smithsonian.md@@ -0,0 +1,100 @@+# Smithsonian Open Access API — Verified Recipe++Status: **VERIFIED** (live queries executed 2026-07-24, all succeeded with real data and a resolvable full-res image).++## Base URL++```+https://api.si.edu/openaccess/api/v1.0/+```++Key endpoints:+- `search` — full-text/field search across ~7.5M+ records (Solr-backed)+- `content/{id}` — fetch one record by its `id` (from a search result)+- `stats` — collection unit counts+- `metadata/v2.0/terms/{category}` — controlled-vocabulary term lists++All requests go through **api.data.gov** as the API gateway (hostname is `api.si.edu` but auth/quota is api.data.gov's).++## API Key++**Required: yes**, via the query param `api_key`.++- Free signup: https://api.data.gov/signup/ (name + email, key emailed immediately — standard api.data.gov self-serve flow, no approval wait, no cost).+- For quick testing without signing up, the shared `DEMO_KEY` works (used below) but is rate-limited much harder.+- Rate limits: `DEMO_KEY` = 30 requests/hour/IP; a registered personal key = 1,000 requests/hour. (Per api.data.gov standard tiers; Smithsonian doesn't publish a separate limit.)++## License++**CC0 1.0 Universal (public domain dedication)** for everything tagged Open Access. No attribution legally required, though crediting "Smithsonian Institution" is good practice.++Two places the CC0 flag shows up in the JSON, both worth checking:+- `content.descriptiveNonRepeating.metadata_usage.access` = `"CC0"` (record-level)+- `content.descriptiveNonRepeating.online_media.media[].usage.access` = `"CC0"` (per-image-level — check this one, since a record can be CC0 but an individual attached media item can carry different rights)++Not every one of the Smithsonian's ~157M total records is Open Access — only records with `metadata_usage.access: "CC0"` are released for unrestricted reuse. Filtering on this field (or the `online_media_type` field, see below) is what separates "any record" from "downloadable public-domain asset."++## Search Recipe++### (a) Search for public-domain artworks that have images++```+GET https://api.si.edu/openaccess/api/v1.0/search+ ?q=<TERMS> AND online_media_type:Images AND unit_code:<UNIT>+ &rows=10+ &start=0+ &api_key=<YOUR_KEY>+```++- `online_media_type:Images` — restricts to records that have at least one attached image-type media object. (This is the field that matters; do **not** rely on adding `cc0:CC0` alone — that clause was accepted by the query parser without error but did not reliably filter, see Gotchas.)+- `unit_code:<UNIT>` — scope to one museum, e.g. `SAAM` (Smithsonian American Art Museum), `NPG` (National Portrait Gallery), `FSG` (Freer|Sackler), `CHNDM` (Cooper Hewitt), `NMNHBIRDS`, etc. Omit for cross-collection search.+- Free-text `q=` terms combine with `AND`/`OR` Solr syntax, e.g. `q=sunflower AND online_media_type:Images`.+- **After getting results, always check `content.descriptiveNonRepeating.online_media.media[].usage.access == "CC0"`** on each hit before treating its image as free-to-use — some non-Open-Access records still surface in a broad search.++### (b) Get a full-resolution downloadable image URL from a result++For each hit, walk: `content.descriptiveNonRepeating.online_media.media[]` — an array (a record can have multiple images). Each media object has:++- `media.usage.access` — CC0 check (per above)+- `media.content` — an IDS delivery-service URL, e.g. `https://ids.si.edu/ids/deliveryService?id=<idsId>` — **calling this with no size param returns the full-resolution original** (verified: 1.8MB JPEG).+- `media.resources[]` — explicit named download links when the record has them pre-generated: `"High-resolution TIFF"`, `"High-resolution JPEG"` (with `width`/`height` in pixels), `"Screen Image"`, `"Thumbnail Image"`. Not every record has the high-res TIFF/JPEG resources array populated — some only expose `Screen Image`/`Thumbnail Image`, in which case use the `deliveryService` content URL directly for full res.++**IIIF-style resizing**: append `&max=<pixels>` to the `deliveryService` URL to cap the longest edge, e.g. `&max=2000` (verified: dropped a 1.8MB image to 828KB at max=2000). Omit `max` entirely for the original full-size file.++## Example URLs (both verified live, 2026-07-24)++**exampleApiUrl** (search — Smithsonian American Art Museum CC0 images):+```+https://api.si.edu/openaccess/api/v1.0/search?q=cc0:CC0%20AND%20online_media_type:Images%20AND%20unit_code:SAAM&api_key=DEMO_KEY&rows=5+```+Verified response: HTTP 200, `rowCount: 12999`, returned real SAAM artwork records (e.g. "A Chiefe Herowan," object id `saam_1985.66.403_410`, record link https://americanart.si.edu/collections/search/artwork/?id=18695) each carrying `metadata_usage.access: "CC0"` and an `online_media.media[]` array.++**exampleImageUrl** (full-resolution, from a National Museum of Natural History Birds specimen record returned by the broader query `q=cc0:CC0 AND online_media_type:Images`):+```+https://ids.si.edu/ids/download?id=NMNH-vol.090_449776-449800.jpg+```+Verified: `curl -sL` → HTTP 200, `image/jpeg`, 23,659,074 bytes, resolves (307 redirect) to `https://smithsonian-open-access.s3-us-west-2.amazonaws.com/media/nmnh/NMNH-vol.090_449776-449800.jpg`. `usage.access: "CC0"` on the media object.++Alternate example (SAAM artwork, screen-res since no TIFF resource present, still CC0):+```+https://ids.si.edu/ids/deliveryService?id=SAAM-1985.66.403410_1+```+Verified: HTTP 200, `image/jpeg`, 1,833,356 bytes.++## Gotchas++- **`cc0:CC0` as a query clause is not a reliable filter.** It doesn't error, but adding it to a query did not change result counts predictably in testing — always independently verify `metadata_usage.access` / `media.usage.access` == `"CC0"` in the returned JSON rather than trusting the query string to have filtered correctly.+- **`online_media_type:Images` also isn't a guaranteed hard filter on every unit.** Several paintings-category test queries returned zero records with a populated `online_media` object despite the filter term, while bird/NMNH and SAAM units reliably returned populated media. Best practice: request extra rows and skip any result whose `descriptiveNonRepeating` lacks an `online_media` key.+- **Rate limits are api.data.gov's, not Smithsonian's**: DEMO_KEY = 30 req/hr/IP (easy to exhaust in a scripting loop — get a real key for anything beyond a handful of test calls).+- **IDS delivery URLs sometimes 307-redirect to S3** (`smithsonian-open-access.s3-us-west-2.amazonaws.com`) — follow redirects (`curl -L`) or your HTTP client's default redirect-follow.+- **Attribution not legally required** under CC0, but Smithsonian's own guidance asks for a credit line where practical (e.g. "Smithsonian American Art Museum").+- **Two rights fields to reconcile**: record-level `metadata_usage.access` and per-media `media.usage.access` can theoretically diverge (a CC0 record could contain a rights-restricted third-party image) — always check the media-level flag before using a specific image.+- Full docs referenced (not independently fetchable due to JS-rendered pages, but corroborated via GitHub/Postman/search): https://www.si.edu/openaccess/devfaq, https://edan.si.edu/openaccess/docs/, https://github.com/Smithsonian/OpenAccess++## Sources+- https://www.si.edu/openaccess/faq+- https://edan.si.edu/openaccess/docs/+- https://github.com/Smithsonian/OpenAccess+- https://github.com/Smithsonian/smithsonian-openaccess (Python client)+- https://api.data.gov/signup/+- Live API responses captured via curl, 2026-07-24 (this session)diff --git a/.claude/skills/museum-art/references/smk.md b/.claude/skills/museum-art/references/smk.mdnew file mode 100644index 0000000..00e3620--- /dev/null+++ b/.claude/skills/museum-art/references/smk.md@@ -0,0 +1,161 @@+# SMK (National Gallery of Denmark) — Open Access Image Recipe++Status: **VERIFIED working** (2026-07-24, live curl + WebFetch checks against the real API).++## Base URL++```+https://api.smk.dk/api/v1+```++Official docs (Swagger UI, embedded OpenAPI 3.0.3 spec — page itself is JS-rendered but the+spec JSON is inlined in `swagger-ui-init.js`):+- Human docs: https://api.smk.dk/api/v1/docs/+- Article: https://www.smk.dk/en/article/smk-api/+- Contact: [email protected]++## API key++**None needed.** Confirmed empirically — 8+ unauthenticated GET requests in a row all returned+HTTP 200 with no `Authorization` header, no key, no `X-Api-Key`. The API is explicitly described+as "free to use." No signup, no throttling encountered in this test burst.++## License++Individual objects carry a `rights` field. For public-domain works it is:++```+"rights": "https://creativecommons.org/publicdomain/mark/1.0/"+```++i.e. **Public Domain Mark 1.0** (SMK calls it "Public Domain" on their license page,+https://www.smk.dk/en/license/public-domain/ — not literally the CC0 waiver, but functionally+equivalent: no copyright restrictions, reuse/modify/redistribute freely, attribution not+mandatory but good practice — credit "SMK / Statens Museum for Kunst"). Filter for it with the+`public_domain:true` facet filter (below) rather than parsing `rights` per item.++## The gotcha the starting hint got wrong++The hinted query shape `filters=[public_domain:true][has_image:true]` (both brackets+concatenated into ONE `filters=` value) is **accepted by the server (200 OK) but silently wrong**+— it does not AND the two conditions. Verified by comparing `found` counts:++| Query | `found` |+|---|---|+| `filters=[public_domain:true]` only | 150,301 |+| `filters=[has_image:true]` only | 54,393 |+| `filters=[public_domain:true][has_image:true]` (single concatenated value) | 150,301 (wrong — ignored the second bracket) |+| `filters=[public_domain:true]&filters=[has_image:true]` (**repeated param, one bracket each**) | **39,479** (correct intersection) |++**Rule: pass `filters` as a repeated query parameter, one `[field:value]` bracket per+occurrence, not concatenated.**++## Recipe++### (a) Search for public-domain artworks that have an image++```+GET https://api.smk.dk/api/v1/art/search+ ?keys=*+ &filters=[public_domain:true]+ &filters=[has_image:true]+ &offset=0+ &rows=10+```++URL-encoded (paste-able):+```+https://api.smk.dk/api/v1/art/search?keys=*&filters=%5Bpublic_domain:true%5D&filters=%5Bhas_image:true%5D&offset=0&rows=10+```++Other useful params (from the OpenAPI spec, `/art/search` GET):+- `keys` (required) — search keywords; `*` = match all.+- `rows` — page size, max 2000, default 10.+- `offset` — pagination start.+- `fields` — restrict returned fields (array param).+- `sort` — sort field, default relevance.+- Other facet filters follow the same `[field:value]` bracket syntax, e.g. `[has_3d_file:true]`,+ `[on_display:true]`, `[collection:...]`.++### (b) Get a full-resolution downloadable image from a result item++Each item in `items[]` already carries everything needed — no second API call required:++- `image_native` — direct downloadable full-res JPEG URL (this is the one to use for+ "download the image").+- `image_thumbnail` — pre-sized ~1024px-wide JPEG via the IIIF thumb server.+- `image_iiif_id` / `image_iiif_info` — the raw IIIF Image API base + `info.json`, for+ requesting any custom size/region/rotation via standard IIIF syntax+ `{iiif_id}/{region}/{size}/{rotation}/{quality}.{format}`.+- `image_width` / `image_height` / `image_size` — native pixel dimensions and byte size.++Example from a verified live item (object KKS5261, "Augustus og den tiburtinske sibylle"):+```json+{+ "id": "1170000001_object",+ "object_number": "KKS5261",+ "public_domain": true,+ "rights": "https://creativecommons.org/publicdomain/mark/1.0/",+ "image_width": 4992,+ "image_height": 6287,+ "image_size": 32476791,+ "image_thumbnail": "https://iip-thumb.smk.dk/iiif/jp2/qz20sx771_kks5261.tif.jp2/full/!1024,/0/default.jpg",+ "image_native": "https://api.smk.dk/api/v1/download/W3siaW1nX3VybCI6Imh0dHBzOi8vaWlwLnNtay5kay9paWlmL2pwMi9xejIwc3g3NzFfa2tzNTI2MS50aWYuanAyL2Z1bGwvZnVsbC8wL25hdGl2ZS5qcGciLCJwdWJsaWNfZG9tYWluIjp0cnVlLCJvYmplY3RfbnVtYmVyIjoiS0tTNTI2MSIsIm51bSI6IiJ9XQ==/KKS5261.jpg",+ "image_iiif_id": "https://iip.smk.dk/iiif/jp2/qz20sx771_kks5261.tif.jp2",+ "image_iiif_info": "https://iip.smk.dk/iiif/jp2/qz20sx771_kks5261.tif.jp2/info.json"+}+```++To fetch a specific single object later by its `object_number`, use:+```+GET https://api.smk.dk/api/v1/art?object_number=KKS5261+```+(the `object_url` field on every item is pre-built this way).++## Example URLs (both verified live, 2026-07-24)++**exampleApiUrl** (search query — returns JSON, confirmed 200 with 39,479 total matches):+```+https://api.smk.dk/api/v1/art/search?keys=*&filters=%5Bpublic_domain:true%5D&filters=%5Bhas_image:true%5D&offset=0&rows=2+```++**exampleImageUrl** (full-resolution downloadable JPEG, confirmed HTTP 200, `Content-Type:+image/jpeg`, `Content-Length: 24043853` bytes, 4992x6287 px):+```+https://api.smk.dk/api/v1/download/W3siaW1nX3VybCI6Imh0dHBzOi8vaWlwLnNtay5kay9paWlmL2pwMi9xejIwc3g3NzFfa2tzNTI2MS50aWYuanAyL2Z1bGwvZnVsbC8wL25hdGl2ZS5qcGciLCJwdWJsaWNfZG9tYWluIjp0cnVlLCJvYmplY3RfbnVtYmVyIjoiS0tTNTI2MSIsIm51bSI6IiJ9XQ==/KKS5261.jpg+```++Alternative (IIIF-native, resize on the fly, also confirmed 200):+```+https://iip.smk.dk/iiif/jp2/qz20sx771_kks5261.tif.jp2/full/1024,/0/default.jpg+```++## Verification log++- `curl -sI` on `image_native` URL → `HTTP/1.1 200 OK`, `Content-Type: image/jpeg`,+ `Content-Length: 24043853`, `Access-Control-Allow-Origin: *`.+- `curl -s` on `art/search` example URL → HTTP 200, valid JSON, `found: 39479`,+ `items[0].public_domain == true`, `items[0].has_image` implied by presence of `image_native`.+- `curl -sI` on IIIF `info.json` → HTTP 200, valid IIIF Image API 2.0 manifest with `sizes` array.+- Burst of 5 sequential unauthenticated requests → all 200, no throttling/key errors observed.++## Gotchas++1. **`filters` must be repeated, not concatenated** — see table above. This is the single+ biggest trap; the naive single-string form silently returns the wrong (larger, un-intersected)+ result set instead of erroring.+2. **`keys` is a required param** even for "give me everything" — use `keys=*`.+3. `image_hires` field exists in the schema but was `None` on the sampled item; `image_native`+ is the reliable full-res download link, not `image_hires`.+4. `image_native` URLs are single-use-looking base64-ish opaque tokens embedding the source IIIF+ path + object metadata — they are stable (not time-limited signed URLs) but don't try to+ hand-construct them; always take them verbatim from the API response.+5. IIIF server (`iip.smk.dk`) supports standard region/size/rotation/quality params if you want+ sizes other than native — `sizes` in `info.json` lists SMK's precomputed steps (156px up to+ 2496px wide) but arbitrary `w,` / `w,h` sizes also work via `full/1024,/0/default.jpg` syntax.+6. No published rate limit was hit in testing; be a good citizen (the API is free, maintained by+ a small team — contact [email protected] for anything at bulk-harvest scale).+7. `rights` is per-item — not every item with `public_domain:true` necessarily has an identical+ `rights` URL, but in the sample it was the CC Public Domain Mark 1.0 link.+8. `object_number` (e.g. `KKS5261`) is the human-facing ID; `id` (e.g. `1170000001_object`) is+ internal. Use `object_number` for the `/art?object_number=` single-item lookup.diff --git a/.claude/skills/no-ai-slop/LICENSE b/.claude/skills/no-ai-slop/LICENSEnew file mode 100644index 0000000..644ebee--- /dev/null+++ b/.claude/skills/no-ai-slop/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 Peter Yang++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/.claude/skills/no-ai-slop/SKILL.md b/.claude/skills/no-ai-slop/SKILL.mdnew file mode 100644index 0000000..e44511a--- /dev/null+++ b/.claude/skills/no-ai-slop/SKILL.md@@ -0,0 +1,93 @@+---+name: no-ai-slop+description: Edit drafts into sharper, more human writing while preserving the writer's personal voice, or detect AI-slop patterns without rewriting. Use when the user wants a draft clearer, more direct, more opinionated, or less AI-sounding, or asks whether writing reads as AI.+---++# No AI slop++You are a sharp human editor. Preserve the user's point and personal voice while making the writing clearer and more alive. Remove AI patterns without turning distinctive writing into generic polished prose.++## Two jobs++**Edit (default).** The user shares a draft to fix. Make the minimum effective edit with the rules below and return the edited draft plus a What changed section.++**Detect.** The user asks whether a piece is AI slop, or asks to audit, scan, or flag a draft without rewriting. Name each pattern from this skill that appears, quote the line, and give the fix in a few words. Do not rewrite, score the draft, or guess whether AI wrote it. AI detectors guess. Named patterns are evidence the user can check. Offer to edit the draft after.++## What to ask for++If the user has not provided a draft, ask them to paste it.++If the audience or format is unclear, ask one question: Who is this for and where will it be published?++If the goal is unclear, ask what the reader should think, feel, or do after reading it.++## Editing principles++- **Preserve the writer's real voice.** First notice the draft's vocabulary, cadence, bluntness, humor, uncertainty, digressions, and level of polish. Keep the traits that feel personal to the writer. Do not make every paragraph equally tidy or rewrite distinctive lines merely for consistency.+- **Make the minimum effective edit.** Fix AI patterns, errors, repetition, and unclear passages. Leave strong human sentences alone. A rough draft with a real voice should still sound like the same person after editing.+- **Lead with the point when the setup adds nothing.** Cut generic throat-clearing. Keep a personal aside, story, or admission when it creates context, tension, or character.+- **Front-load only when it improves clarity.** Put conclusions early when that helps the reader. Do not force every section and paragraph into the same point-detail-background shape.+- **Keep the user's meaning.** Don't invent claims, examples, stats, or opinions. If something is unclear, ask.+- **Open it up, don't dumb it down.** Keep the substance, nuance, and precision. Strip out only what makes it hard to read: jargon, long sentences, abstract nouns, and tangled structure.+- **Use active voice.** "The team shipped it Tuesday" beats "the decision emerged." Never let inanimate things do human verbs.+- **Make every sentence earn its place.** Cut empty qualifiers and throat-clearing. Keep phrases such as "I think," "maybe," or "to be honest" when they express real uncertainty, self-awareness, or the writer's spoken rhythm.+- **Untangle sentences without flattening the cadence.** Split sentences and paragraphs when they are genuinely hard to follow. Keep longer spoken sentences, fragments, and changes in pace when they are clear and characteristic of the writer.+- **Be concrete and specific.** Abstraction is where writing goes to die. "The integration improved efficiency" becomes "The integration cut deploy time from 40 minutes to 4." Names, numbers, dates, mechanisms, and examples beat abstractions.+- **Protect the specific fact.** Don't smooth a useful detail into generic importance. "The tool significantly improves engineering productivity" becomes "The tool cut review time from 30 minutes to 8."+- **Make verbs do the work.** Replace weak verb phrases with direct verbs. "Made a decision" becomes "decided." "Has the ability to" becomes "can."+- **Know the job.** Before structure or word choice, know what the piece is trying to do and who it is for.+- **Preserve useful edge and character.** Keep strong opinions, blunt language, humor, profanity, self-interruptions, and honest admissions when they belong to the writer. Don't replace them with safer or more professional wording.+- **Keep structure unless it's hurting the piece.** Preserve the writer's progression and detours when they carry personality. If you reorganize, say why in the What changed section.++## Words to cut++Banned outright: delve, foster, leverage, utilize, facilitate, empower, streamline, robust, cutting-edge, paradigm shift, game changer, this is huge, this changes everything, tapestry, realm, beacon, multifaceted, meticulous, intricate, paramount, transformative, elevate, embark, supercharge, harness, ever-evolving.++Often-empty adverbs: just, literally, honestly, simply, actually, truly, fundamentally, importantly, crucially, inherently, inevitably. Cut them when they add nothing. Keep them when they carry emphasis, uncertainty, contrast, or the writer's natural spoken rhythm.++Often-empty phrases: it's worth noting, it's important to note, at the end of the day, when it comes to, at its core, in today's world, in the age of, in the world of, the reality is, the truth is, in terms of, with regard to, in order to, going forward, in this article, let's dive in. Cut them when they delay the point. Keep an occasional phrase when it is part of the writer's recognizable voice and the sentence still earns its place.++## Patterns to cut++**Binary contrasts.** "This is not X. It's Y." / "The question isn't X, it's Y." / "It's not just X but Y." State Y directly. "The question isn't the model. It's the eval." becomes "The eval matters more than the model."++**Throat-clearing openers.** "Here's the thing," "Here's what I mean," "Let me be clear," "I'll be honest," "The uncomfortable truth is." Cut them and state the point.++**Faux-insight setups.** "This is the part most people skip," "What most people get wrong," "Here's what nobody tells you," "The part everyone misses." These flatter the writer as the lone expert. Cut the setup and make the claim stand on its own. "The part everyone misses: distribution is the real moat" becomes "Distribution is the moat."++**Colon reveals.** A noun phrase, a colon, then a lowercase dramatic reveal: "The detail that makes it work: a separate agent grades it." "The best part: it learns." Rewrite as a plain sentence ("A separate agent does the grading, which is what makes it work"). Use colons for lists, labels, and quotes, not fake drama. Prefer sentence case after a colon unless grammar, a proper noun, a title, or code requires otherwise.++**Superficial analysis.** Cut trailing `-ing` clauses that pretend to explain meaning: "highlighting," "underscoring," "reflecting," "showcasing." "The launch adds file search, highlighting the team's commitment to better workflows" becomes "The launch adds file search, so users can find old drafts without leaving the editor."++**Importance puffery.** "Stands as a testament," "marks a pivotal moment," "plays a vital role," "solidifies its position," "underscores its significance." State the fact and let the reader judge whether it matters. "The launch marks a pivotal moment for the company" becomes "The launch is the company's first paid product."++**Weasel attribution.** "Experts agree," "industry reports suggest," "many argue," "widely regarded as," "studies show." Name the source or cut the claim. If the user has no source, ask instead of inventing one.++**Fake-strong verbs.** Prefer "is" and "has" when they are clearer. "The app serves as a centralized hub for sponsor management" becomes "The app tracks sponsors, drafts, due dates, and approvals in one place."++**Synonym cycling.** If the clear word is right, repeat it. Don't rotate terms for style. "The agent reviews the draft. The assistant scores the piece. The tool suggests fixes" becomes "The agent reviews the draft, scores it, and suggests fixes."++**Negative listing.** "Not a X. Not a Y. A Z." Just say Z.++**Dramatic fragmentation.** "X. And Y. And Z." or "That's it. That's the whole thing." Use complete sentences.++**Robotic rhythm.** Avoid repeated sentence shapes, identical paragraph structures, and stacked punchy fragments. Vary the shape only when it helps the point.++**Rhetorical setups.** "What if I told you...", "Think about it:", "Plot twist:", and self-answered "Question? Answer." pairs. Drop them and make the point.++**Fake-profound kickers.** Cut the final "deep" line when it turns the point into a cute metaphor, aphorism, or mic-drop sentence. Do not rewrite it into a better metaphor. Do not preserve the rhythm. Delete it, then end on the clearest concrete sentence already in the draft. If the ending needs more closure, add a plain takeaway or next action.++**Summary-recap endings.** "In conclusion," "Ultimately," "Overall," or a final paragraph that restates the piece. The reader was just there. End on the last concrete point, takeaway, or next action instead.++**Formatting slop.** Emoji in headings, bold sprinkled mid-sentence for emphasis, bullet lists where two sentences of prose would read better, and headers over two-sentence sections. Format should follow the content, not decorate it.++**Em dashes.** Do not use them as a default rhythm crutch. In short copy, use none. In longer drafts, 1-2 are fine if they clearly beat commas, periods, or parentheses. Remove clusters and decorative dashes.++## Workflow++1. Read the full draft before editing.+2. Identify the core point and 3-5 voice signals to preserve, such as vocabulary, cadence, bluntness, humor, uncertainty, or digressions. Keep this note internal. If you cannot identify the core point, ask the user.+3. For a detect request, return the findings report described in Two jobs and stop.+4. For an edit, make the minimum effective changes, then check the edited draft against `eval.md` yourself.+5. If any check fails, fix the draft and run the checks again.+6. Output the full edited draft and a short **What changed** section.diff --git a/.claude/skills/no-ai-slop/SOURCE.md b/.claude/skills/no-ai-slop/SOURCE.mdnew file mode 100644index 0000000..141ca85--- /dev/null+++ b/.claude/skills/no-ai-slop/SOURCE.md@@ -0,0 +1,12 @@+# Vendored skill++Source: https://github.com/petergyang/no-ai-slop (Peter Yang), MIT License.+Vendored into this vault 2026-07-23, unmodified except this note.++Validated against monotykamary/Tom's published writing before adoption: its+instructions match Tom's proven practice on concreteness, named sources, active+voice, killing fake-profound kickers and summary-recap endings, and formatting+restraint. It is stricter than Tom on binary contrasts / colon reveals (Tom uses+them sparingly for genuine reframes — the skill itself allows this as voice) and+on em dashes (Tom uses them freely; this vault's house rule bans them entirely, which+wins). Use as the final editing pass for blog posts and social copy.diff --git a/.claude/skills/no-ai-slop/eval.md b/.claude/skills/no-ai-slop/eval.mdnew file mode 100644index 0000000..a72a95e--- /dev/null+++ b/.claude/skills/no-ai-slop/eval.md@@ -0,0 +1,42 @@+# No AI slop eval++Use this after the rewrite. Answer each check with pass or fail. If any check fails, fix the draft before returning it.++For detect requests, make sure the response names each pattern found with a quoted line and a short fix, without rewriting the draft.++## Editing principles++1. Does the edit preserve the user's point without adding claims, examples, stats, quotes, or opinions?+2. Does it preserve the writer's distinctive vocabulary, cadence, bluntness, humor, uncertainty, digressions, and level of polish?+3. Does it leave strong human sentences alone instead of rewriting them for consistency or making every paragraph equally tidy?+4. Is the amount of cutting proportional to the actual slop, with no aggressive compression that strips out character?+5. Does the draft lead with what the reader needs while keeping personal setup that adds context, tension, or character?+6. Are points front-loaded where that improves clarity without forcing every unit into the same structure?+7. Do sentences earn their place, with concrete facts, protected details, and direct verbs where the draft supports them?+8. Does the draft use active voice with human subjects where possible?+9. Does the edit keep useful edge and preserve structure unless the structure was hurting the piece?+10. Are genuinely tangled sentences fixed while clear spoken cadence, fragments, and changes in pace remain intact?++## Words to cut++1. Are banned words, filler phrases, often-empty adverbs, and inflated claims removed unless quoted as examples?++## Patterns to cut++1. Are binary contrasts, negative listings, rhetorical setups, and throat-clearing openers removed?+2. Are faux-insight setups, colon reveals, superficial analysis, fake-strong verbs, synonym cycling, dramatic fragments, and robotic rhythm fixed?+3. Are importance puffery and weasel attribution replaced with plain facts and named sources, or flagged for the user when no source exists?+4. Are fake-profound kicker lines deleted instead of rewritten into better metaphors?+5. Are summary-recap endings cut so the piece ends on a concrete point, takeaway, or next action?+6. Is formatting slop removed: Emoji headings, decorative bold, bullets that should be prose, headers over tiny sections?+7. Are colons sentence case unless grammar, a proper noun, a title, or code requires otherwise?+8. Are em dashes used sparingly: Usually none in short copy, and only 1-2 in longer drafts when they clearly help?++## Final read++1. Was the edit checked directly against this file without requiring separate editor and evaluator agents?+2. Does the draft avoid robotic symmetry, repeated sentence shapes, and stacked punchy fragments?+3. Would the writer recognize the edited draft as their own voice?+4. Would the edited draft sound natural if read to a sharp colleague?+5. Does the final output include the full edited draft and a short **What changed** section?+6. For detect requests, does the response name each pattern with a quoted line and a short fix, without rewriting, scoring, or claiming AI authorship?diff --git a/.claude/skills/retro/SKILL.md b/.claude/skills/retro/SKILL.mdnew file mode 100644index 0000000..0a1dcfd--- /dev/null+++ b/.claude/skills/retro/SKILL.md@@ -0,0 +1,67 @@+---+name: retro+description: >+ CP-7 retrospective: audit checkpoints, evidence quality, action items,+ and harvest candidates. Closes the V-model cycle and feeds the next run.+ Use via /retro after ship, escalate, or significant session.+---++# /retro — CP-7 close the V++Every non-`tiny` shipped or escalated run gets a retro. Retro is **advisory** but strongly expected: it is how the harness improves.++## When to run++- After CP-6 ship (approved publish, merged PR, vault deliverable done)+- After escalate (capture why verifier failed)+- End of an `/ultragoal` phase (one retro per phase)+- Manual: `/retro <run-dir or spec path>`++## Phase 1 — Gather evidence bundle++Read:++1. Spec or card description + acceptance criteria+2. `04-projects/harness/runs/<id>/evidence/` (ledger, checkpoints.tsv, CP-* files)+3. `.claude/logs/loop-ledger.tsv` (last rows for this run)+4. `04-projects/<goal>/STATUS.md` if an ultragoal phase++## Phase 2 — Checkpoint audit++For each CP the lane required, mark Expected vs Actual vs Gap:++| CP | `tiny` | `normal` | `full` |+|---|---|---|---|+| CP-1 spec | skip | required | required |+| CP-3v component | skip | required | required |+| CP-4 integration | skip | skip | required if multi-task |+| CP-5 acceptance | if mutate | required | required |+| CP-6 ship | if external | if external | required |++## Phase 3 — Evidence quality pass++Ask:++- Any AC-n shipped without a PASS evidence row? (traceability violation)+- Any PASS row where observation is tool-return not artifact? (confident-but-unchecked)+- Any criterion that wasn't falsifiable? (fix in next spec)++## Phase 4 — Write retro++Copy `04-projects/harness/templates/retro.md` to:++`04-projects/harness/retro/YYYY-MM-DD-<slug>.md`++Fill all sections. Action items get IDs (`AI-01`…).++## Phase 5 — Feed forward++1. **Harvest**: append action items + lessons to today's harvest staging+2. **Backlog**: add `AI-n` rows to `04-projects/harness/BACKLOG.md` if harness work+3. **STATUS.md**: if an ultragoal phase, advance the phase state + log open `AC-n`+4. **Spec checkpoint log**: update spec `## Checkpoint log` CP-7 row+5. Record: `bash .claude/lib/checkpoint.sh record <run-dir> CP-7 PASS "retro: <path>"`++## Output to the user++TL;DR: outcome, top lesson, top action item, retro path.diff --git a/.claude/skills/review-cockpit/SKILL.md b/.claude/skills/review-cockpit/SKILL.mdnew file mode 100644index 0000000..78d4a48--- /dev/null+++ b/.claude/skills/review-cockpit/SKILL.md@@ -0,0 +1,67 @@+---+name: review-cockpit+description: Produce and continuously maintain ONE living review document for a multi-item session — a cockpit header (Progress checklist, Working folder, Context) plus per-item review cards that you approve or request changes on directly in the doc or side panel. Use whenever a session has multiple deliverables you need to review/approve (meeting-processing + planning, multi-ticket work, briefs with several drafts, any "do X, then plan/draft Y and Z"). The doc is the interaction surface: you edit it (or reply in chat) to approve/change; the agent keeps it live as work progresses.+---++# review-cockpit++## Purpose++A single, living **review document** that doubles as the control surface for a session. Instead of scattering a meeting note here, a ticket there, two drafts in chat, everything lands in **one file** you can open in the Obsidian side panel (or Claude side panel) and drive: see progress at a glance, review each item in place, approve or request changes inline, and watch the doc update as the agent works. Mirrors a "co-work" cockpit (Progress / Working folder / Context).++## When to use++- Any session with **≥2 things you need to review or approve** (the default for "process X then plan/draft Y, Z").+- Meeting-processing + pod planning, multi-ticket runs, briefs with several drafts, spec + plan + drafts.+- NOT for a single trivial deliverable (one file, no approval loop) — a plain file is fine there.++Pairs with `closed-loop` (verification), `harvest` (learnings), and the V-model checkpoints. This skill governs **how the deliverable is presented and driven**, not the verification pipeline.++## The one rule++**One doc per session.** It opens with a cockpit, then one review card per item. Every artifact the session produces is linked from the **Working folder** table (fan-out to sub-files mid-run is fine; the cockpit is the single front door). Never hand the user "see files A, B, C" — hand them the cockpit.++## Structure++Copy `04-projects/harness/templates/session-review.md`. Save the working copy in the relevant project folder as `YYYY-MM-DD-<slug>-review.md` (or `-plan.md`).++**Cockpit (top):**+1. **Status line** — one line: how many items await review + last-updated timestamp.+2. **🧭 Progress** — a checklist, one row per item, each with a status glyph; a text progress bar + "X/N done · A awaiting review · B pending". **Make each item a clickable anchor to its review card** — `[N. Title](#n-title)` using GitHub-slug rules (lowercase, spaces→`-`, drop punctuation/emoji). Keep item headings free of `+ # ← → ( )` so slugs stay clean single-hyphen and the links resolve in Obsidian + the Claude side panel.+3. **📁 Working folder** — table of every artifact produced this session with its `~/vault/...` path or link (meeting note, this doc, evidence dir, external issues/PRs, posted messages).+4. **🔌 Context** — sources the work is grounded in (recordings, Slack threads, issues), tools/connectors used, related tickets.++**Review items (below):** one card per item:+- **Status** — glyph + word (see vocabulary).+- **Action** — what was done or is proposed.+- **Deliverable** — link/path, or an inline draft placed directly under the card so you review it in place (messages to send, doc bodies).+- **Checklist** — the item's acceptance criteria as checkboxes.+- **🗒 Your call** — the approval slot you edit (`approve` / your requested changes).+- **Decision log** — append-only record of what happened / what you decided.++**Footer:** "How to drive this doc" (approve/change mechanics + status vocabulary), so the doc is self-explaining.++**Status vocabulary:** ⏳ pending · 🔄 in progress · 📝 needs review · ✏️ changes requested · ✅ done · ⛔ blocked++## Update protocol (keep it live)++- **After every meaningful step**, refresh: the Progress checklist + bar, the affected item's Status, the Working folder (add new artifacts), and the item's Decision log. Bump the `updated:` frontmatter + status line.+- Prefer targeted `Edit`s over full rewrites so your inline edits/approvals are never clobbered. **Before editing, re-read the file** — you may have typed approvals or change requests into **🗒 Your call** or ticked boxes.+- When you approve an item, execute it, move it to ✅, and log the outcome (with the external link — issue/PR/message URL) in the Decision log.+- When you request changes, set the item to ✏️ changes requested, apply them, re-draft in place, then return it to 📝 needs review.++## Interaction contract++The doc is the shared surface; you drive it two ways, both valid:+- **In the doc / side panel:** you edit **🗒 Your call** or tick checkboxes. Re-read and act.+- **In chat:** "3 is ok", "approve 2 and 4", "change the tone on the requirement comms". Map to item numbers and act.++Distinguish **draft** items (agent proposes, waits — e.g. a Slack message you own sending) from **auto** items (agent may execute directly — e.g. filing a GitHub issue you explicitly asked for). Draft items stay 📝 until approved; auto items go straight to ✅ with the artifact linked. When unsure whether an item is draft or auto, leave it 📝.++## Post-condition++Read-only for the doc itself, but the items it tracks often mutate external state — obey each item's own post-condition (fetch back the issue, confirm the Slack message landed, etc.) and record the verified link in the Decision log. Never mark ✅ from a mutation call alone.++## Optional: rendered view++The markdown doc is primary (you edit it to approve). If you want a richer at-a-glance view, additionally render an HTML **Artifact** of the cockpit (Progress + Working folder + Context + item statuses) — but the markdown stays the source of truth and the editable surface.diff --git a/.claude/skills/ultragoal/SKILL.md b/.claude/skills/ultragoal/SKILL.mdnew file mode 100644index 0000000..4f4c8ac--- /dev/null+++ b/.claude/skills/ultragoal/SKILL.md@@ -0,0 +1,157 @@+---+name: ultragoal+description: >+ Run a large, multi-session goal (e.g. shipping a whole side product) through the full V-model+ closed loop, one phase at a time, with cross-session state and a final+ north-star acceptance gate. Ultragoals never downgrade the lane: every+ phase runs CP-1→CP-6 with adversarial verification. Use via /ultragoal.+---++# Ultragoal — the closed loop for goals too big to ship in one run++An **ultragoal** is the term for a north-star that spans many sessions: fork the repos, combine the strong parts, ship one product. A normal `/execute` run is one task through the loop. An ultragoal is a *chain of phases*, each of which is its own full closed-loop run, tracked so any cold session can resume.++**Core rule (from dwarves-kit, adopted fully): the worker never grades its own homework, and wrongness compounds across sessions — so verify every phase, not just the end.**++## When to use++- `/ultragoal <name>` — resume or advance an existing ultragoal+- `/ultragoal new "<north-star>"` — charter a new one+- `/ultragoal status` — report all ultragoals from the registry+- Trigger phrases: "make this an ultragoal", "this is a long-running goal", "combine these into one product over time"++Do **not** use for single-run work — that is `/execute`. Rule of thumb: if it needs a phase decomposition and won't finish today, it is an ultragoal.++## Files (one goal = one folder)++| File | Role |+|---|---|+| `04-projects/harness/ultragoals.md` | Registry: every ultragoal, status, current phase |+| `04-projects/<goal>/spec.md` | Contract: north-star + `AC-n` acceptance criteria + phases `P0…Pn` + traceability matrix |+| `04-projects/<goal>/STATUS.md` | Living ledger: phase state, current phase, open `AC-n`, next action (resume from here) |+| `04-projects/<goal>/evidence/P<n>/` | Per-phase evidence bundle (ledger.md + CP-* files) |++Code, if any, lives outside the vault (e.g. `~/code/<goal>/`) — the spec/status/evidence stay in the vault.++## Phase 0 — Charter (`/ultragoal new`)++1. Interview the user for the **north-star** in one sentence (what "done" looks like).+2. Write `04-projects/<goal>/spec.md` from `04-projects/harness/templates/SPEC-template.md`:+ - North-star statement+ - Falsifiable `AC-n` acceptance criteria (these define done for the *whole* goal)+ - Phase decomposition `P0…Pn` — each phase is a shippable increment mapped to a subset of `AC-n`+ - Traceability matrix (`AC-n` ↔ phase ↔ status)+3. Create `STATUS.md` (see template below) and add a row to the registry.++Record: `bash .claude/lib/checkpoint.sh record 04-projects/<goal>/evidence/P0 CP-1 PASS "N criteria, M phases"`++## The phase loop (every phase, no lane downgrade)++Each phase runs the **full** closed loop. Do not shortcut with `tiny`. Ultragoals are `full` lane by construction.++```+select next phase from STATUS.md+ │+ ▼+CP-2 PLAN tasks for this phase ↔ AC-n → evidence/P<n>/CP-2-plan.md+ │+ ▼+CP-3 BUILD worker implements (traced to AC-n); returns paths only+ │+ ▼+CP-3v VERIFY task-verifier (fresh context, read-only) → evidence rows per AC-n+ │ ├── FAIL:fixable → fix-agent (max 2) → re-verify+ │ └── FAIL:escalate → stop, escalate to the user+ ▼+CP-4 INTEGRATE integration-verifier → does this phase wire correctly with prior phases?+ │ (always run for ultragoals — cross-phase regression is the main risk)+ ▼+CP-5 ACCEPT observe the artifact (curl / screenshot / re-fetch), not the tool return+ │ EVIDENCE AC-n | CP-5 | PASS | <observation> | <artifact>+ ▼+CP-6 SHIP external mutation? → Review Gate: you approve. Internal? → auto.+ │+ ▼+update STATUS.md (phase → done, advance current phase, log open AC-n)+ │+ ▼+CP-7 RETRO /retro 04-projects/<goal>/evidence/P<n> → harvest + STATUS+```++Merge every verifier's `EVIDENCE` rows into `evidence/P<n>/ledger.md`.++## The two acceptance gates++1. **Per-phase (CP-5):** every `AC-n` this phase claims has a PASS row before the phase is marked done.+2. **North-star (final):** before the ultragoal is declared complete, spawn a fresh-context verifier whose only job is to check the spec matrix — **every** `AC-n` across all phases has ≥1 PASS evidence row. Any `AC-n` without one is a gap, not a ship. This is the ultragoal-level analogue of CP-5.++```+North-star acceptance:+ read spec.md matrix (all AC-n)+ read every evidence/P*/ledger.md+ for each AC-n: assert ≥1 PASS row exists, artifact re-observed+ any miss → list open AC-n, STATUS stays "in progress", do NOT declare done+```++## The HTML report (regenerate at every phase gate + final)++Every ultragoal carries a single self-contained HTML report that **covers everything**: north-star, live status, all phases, the full `AC-n` traceability table with pass/open/fail, evidence rows per phase (with screenshots embedded as `data:` URIs), and the open-items / next-action block. It is the human-readable face of the evidence ledger.++- **Template:** `04-projects/harness/templates/report.html` (house style, theme-aware, rows-not-cards). Copy it, then fill every `{{token}}` and `<!-- FILL -->` / `<!-- REPEAT -->` block from `spec.md` + `STATUS.md` + `evidence/P*/`. You fill it by editing — do not build a parser.+- **Deliverable path:** `04-projects/<goal>/report.html`. One file, overwritten each phase (it always reflects current truth).+- **When:** regenerate at each phase gate (CP-6) and again at final north-star acceptance. The final report must show every `AC-n` with a PASS row — if any pill is `open`, the goal is not done.+- **Self-contained only:** inline everything, embed screenshots as `data:` URIs, so it also works when published as an Artifact (external hosts are blocked). Before publishing as an Artifact, load the `artifact-design` skill.+- **Surface it:** `SendUserFile 04-projects/<goal>/report.html` (display: render) so the user can open it, or publish via `Artifact` for a shareable link.++## STATUS.md template++```markdown+# <Goal> — status ledger++North-star: <one sentence>+Spec: 04-projects/<goal>/spec.md · Registry: 04-projects/harness/ultragoals.md+Current phase: P<n> · Overall: <not-started|in-progress|blocked|done>++## Phases+| Phase | AC covered | State | Evidence | Notes |+|---|---|---|---|---|+| P0 | AC-1,AC-2 | done | evidence/P0/ | <one line> |+| P1 | AC-3 | in-progress | evidence/P1/ | <what's left> |++## Open AC-n (no PASS row yet)+- AC-3 — <why still open>++## Next action (resume cold from here)+<the single next concrete step + any user-gated decision waiting>+```++## Resuming cold (most common entry)++`/ultragoal <name>` with no other context:+1. Read `04-projects/<goal>/STATUS.md` → "Next action" and "Open AC-n".+2. Read the spec's phase for the current phase only (progressive disclosure).+3. Run the phase loop for the current phase.+4. Never re-do a phase already marked `done` unless integration verify caught a regression.++## Rules++- **Never downgrade the lane.** Even a one-line phase inside an ultragoal runs CP-3v + CP-4. The point is compounding correctness.+- **UI/UX phases verify visually.** If a phase touches a UI/UX flow, capture rendered evidence with browser-harness (`evidence_shot` / `FlowRecorder.save_gif` / `pixel_diff`), read the image, fix any visual defect, and re-capture — do not accept a DOM check. Media lands in `evidence/P<n>/` and feeds `report.html`. See CLAUDE.md → Visual Verification.+- **Fresh-context verifiers.** `task-verifier`, `integration-verifier`, north-star verifier get paths only — never paste worker output in (CLAUDE.md fresh-context isolation).+- **Read-only verifiers.** They cannot edit files or mutate external state.+- **Gate all external.** Any publish / deploy / push waits at CP-6 for the user (Review Gate = your approval).+- **One STATUS.md is the source of truth** for where the goal stands. Update it at the end of every phase or it drifts.+- Model routing per CLAUDE.md: Sonnet workers build/collect/verify; Opus lead reasons, decomposes, synthesizes.++## Escalation template++```+ULTRAGOAL ESCALATED — <goal> / P<n>+Last CP: <CP-id> | Open AC: <list without PASS rows>+Evidence: 04-projects/<goal>/evidence/P<n>/+Decision needed: <one question>+```++## Registered ultragoals++Live list: `04-projects/harness/ultragoals.md`. Each ultragoal gets its own `04-projects/<goal>/` folder holding `spec.md`, `STATUS.md`, `evidence/`, and `report.html`.diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.jsonindex 412f959..c8680bc 100644--- a/.cursor-plugin/plugin.json+++ b/.cursor-plugin/plugin.json@@ -1,8 +1,8 @@{"name": "cog-second-brain","displayName": "COG: Agentic Second Brain",- "version": "3.7.1",- "description": "Self-evolving second brain powered by AI agents, Obsidian markdown, and Git. 21 skills, 6 worker agents, people CRM with tiered enrichment. Runtime-trust release: memory hygiene sweeps, skill post-condition checks, verbatim citations with verifier pass, autonomous content factory. Iterative skills are loop-engineered with deterministic verifiers and layered termination. Inspired by Garry Tan's gstack and gbrain patterns. Works with Claude Code, Cursor, Kiro, Gemini CLI, Codex, and any markdown-reading agent.",+ "version": "3.8.0",+ "description": "Self-evolving second brain powered by AI agents, Obsidian markdown, and Git. 31 skills, 10 agents (6 workers + 4 read-only verifiers), people CRM with tiered enrichment. Closed-loop harness release: V-model verification lifecycle with criterion-traced evidence, risk lanes, multi-session ultragoals with a north-star acceptance gate, and craft skills for writing and visuals. Works with Claude Code, Cursor, Kiro, Gemini CLI, and Codex.","author": {"name": "Huy Tieu","email": "[email protected]",@@ -41,27 +41,161 @@],"category": "productivity","skills": [- "onboarding",- "braindump",- "daily-brief",- "weekly-checkin",- "knowledge-consolidation",- "url-dump",- "loop-engineering",- "scout",- "update-cog",- "memory-hygiene",- "content-factory",- "team-brief",- "meeting-transcript",- "comprehensive-analysis",- "auto-research",- "create-user-story",- "generate-prd",- "generate-release-notes",- "export-open-issues",- "publish-to-confluence",- "update-knowledge-base"+ {+ "name": "onboarding",+ "path": ".claude/skills/onboarding/SKILL.md",+ "description": "Personalize COG for your workflow - creates profile, interests, and watchlist files (run this first!)"+ },+ {+ "name": "braindump",+ "path": ".claude/skills/braindump/SKILL.md",+ "description": "Quick capture of raw thoughts with intelligent domain classification and competitive intelligence extraction"+ },+ {+ "name": "daily-brief",+ "path": ".claude/skills/daily-brief/SKILL.md",+ "description": "Generate personalized news intelligence with verified sources (7-day freshness requirement)"+ },+ {+ "name": "weekly-checkin",+ "path": ".claude/skills/weekly-checkin/SKILL.md",+ "description": "Cross-domain pattern analysis and strategic reflection for weekly review"+ },+ {+ "name": "knowledge-consolidation",+ "path": ".claude/skills/knowledge-consolidation/SKILL.md",+ "description": "Build frameworks from scattered insights across all braindumps and notes"+ },+ {+ "name": "url-dump",+ "path": ".claude/skills/url-dump/SKILL.md",+ "description": "Quick capture URLs with automatic content extraction, insights, and categorization into knowledge booklets"+ },+ {+ "name": "loop-engineering",+ "path": ".claude/skills/loop-engineering/SKILL.md",+ "description": "Shared loop-engineering reference for iterative skills - the agent loop, deterministic verifiers, termination conditions, in-loop context management, and named patterns"+ },+ {+ "name": "team-brief",+ "path": ".claude/skills/team-brief/SKILL.md",+ "description": "Cross-reference GitHub, Linear, Slack, PostHog, meetings, and braindumps into a daily team intelligence brief with Linear sync-back"+ },+ {+ "name": "meeting-transcript",+ "path": ".claude/skills/meeting-transcript/SKILL.md",+ "description": "Process meeting recordings into structured decisions, action items, and team dynamics"+ },+ {+ "name": "comprehensive-analysis",+ "path": ".claude/skills/comprehensive-analysis/SKILL.md",+ "description": "Deep 7-day analysis for weekly reviews, board prep, or strategic planning"+ },+ {+ "name": "scout",+ "path": ".claude/skills/scout/SKILL.md",+ "description": "Triage a URL or tool (verify, classify, and check fit) before deciding whether to save it"+ },+ {+ "name": "update-cog",+ "path": ".claude/skills/update-cog/SKILL.md",+ "description": "Check for and apply upstream COG framework updates without touching personal content"+ },+ {+ "name": "memory-hygiene",+ "path": ".claude/skills/memory-hygiene/SKILL.md",+ "description": "Periodic trust sweep of persistent memory - re-verify environment-dependent claims, stamp last_verified + confidence, propose archiving drifted entries"+ },+ {+ "name": "content-factory",+ "path": ".claude/skills/content-factory/SKILL.md",+ "description": "Autonomous content pipeline - scout announcements, triage by trend momentum and personal angle, produce and publish with ledger dedup, volume caps, and post-condition verification"+ },+ {+ "name": "auto-research",+ "path": ".claude/skills/auto-research/SKILL.md",+ "description": "Deep strategic research engine with parallel research threads and actionable analysis"+ },+ {+ "name": "create-user-story",+ "path": ".claude/skills/create-user-story/SKILL.md",+ "description": "Create user stories with duplicate checking across Linear, GitHub Issues, or Jira"+ },+ {+ "name": "generate-prd",+ "path": ".claude/skills/generate-prd/SKILL.md",+ "description": "Draft PRDs with approval gate before publishing to Confluence or Notion"+ },+ {+ "name": "generate-release-notes",+ "path": ".claude/skills/generate-release-notes/SKILL.md",+ "description": "Generate release notes from GitHub milestones, Linear cycles, or manual input"+ },+ {+ "name": "export-open-issues",+ "path": ".claude/skills/export-open-issues/SKILL.md",+ "description": "Audit and export open issues from any project tracker"+ },+ {+ "name": "publish-to-confluence",+ "path": ".claude/skills/publish-to-confluence/SKILL.md",+ "description": "Publish vault markdown files to Confluence"+ },+ {+ "name": "update-knowledge-base",+ "path": ".claude/skills/update-knowledge-base/SKILL.md",+ "description": "Maintain product knowledge base from releases and feature updates"+ },+ {+ "name": "closed-loop",+ "path": ".claude/skills/closed-loop/SKILL.md",+ "description": "V-model execute pipeline - plan, build, component verify, integration verify, acceptance; the worker never grades its own homework and every evidence row traces to an AC-n criterion"+ },+ {+ "name": "ultragoal",+ "path": ".claude/skills/ultragoal/SKILL.md",+ "description": "Run a goal too big for one session as a chain of phases, each its own full closed-loop run, with cross-session state and a final north-star acceptance gate"+ },+ {+ "name": "harvest",+ "path": ".claude/skills/harvest/SKILL.md",+ "description": "Capture durable session learnings, stage them for human promotion into knowledge, and propose skill/CLAUDE.md patches - never writes durable knowledge unapproved"+ },+ {+ "name": "retro",+ "path": ".claude/skills/retro/SKILL.md",+ "description": "CP-7 retrospective - audit checkpoints, evidence quality, and action items; closes the V-model cycle and feeds the next run"+ },+ {+ "name": "review-cockpit",+ "path": ".claude/skills/review-cockpit/SKILL.md",+ "description": "One living review document per multi-item session - cockpit header plus per-item cards you approve or request changes on directly in the doc"+ },+ {+ "name": "no-ai-slop",+ "path": ".claude/skills/no-ai-slop/SKILL.md",+ "description": "Edit drafts into sharper, more human writing while preserving personal voice, or detect AI-slop patterns without rewriting"+ },+ {+ "name": "editorial-illustrations",+ "path": ".claude/skills/editorial-illustrations/SKILL.md",+ "description": "Generative guide for meaning-carrying editorial data-illustrations - teaches the claim-to-geometry method, renders self-contained theme-aware HTML/SVG figures"+ },+ {+ "name": "data-forms",+ "path": ".claude/skills/data-forms/SKILL.md",+ "description": "Pick the right form for a dataset so the finding lands in three seconds - 20+ chart and diagram forms with when-to-use, failure modes, and encoding discipline"+ },+ {+ "name": "museum-art",+ "path": ".claude/skills/museum-art/SKILL.md",+ "description": "Source authentic high-res public-domain artwork from museum open-access APIs instead of AI-generated or generic-stock imagery"+ },+ {+ "name": "daily-journal",+ "path": ".claude/skills/daily-journal/SKILL.md",+ "description": "A passive daily work journal the agent keeps for you - appends entries after meaningful work, runs a guided reflection on request"+ }],"agents": ["worker-data-collector",diff --git a/.cursorrules b/.cursorrulesindex 9fdc8ba..d18eba4 100644--- a/.cursorrules+++ b/.cursorrules@@ -9,7 +9,7 @@ COG exposes 17 skills via `.claude/skills/*/SKILL.md`. Each skill has a `name` a## Worker Agents-6 worker agents live in `.claude/agents/`. Workers handle data-heavy tasks; the lead session handles reasoning and synthesis.+10 agents live in `.claude/agents/`: 6 workers handle data-heavy tasks, 4 read-only verifiers check the result against acceptance criteria by observing the artifact. The lead session handles reasoning and synthesis.- worker-data-collector: Structured extraction from GitHub, Slack, Jira, Linear- worker-researcher: Web research with source citationsdiff --git a/.github/MARKETPLACE.md b/.github/MARKETPLACE.mdindex 1b88ca5..9ebc0b7 100644--- a/.github/MARKETPLACE.md+++ b/.github/MARKETPLACE.md@@ -18,7 +18,7 @@ COG ships marketplace metadata in multiple formats:| File | Platform | Purpose ||---|---|---|-| `.claude-plugin/plugin.json` | Claude Code marketplace | Canonical skill manifest (21 skills, 6 agents) |+| `.claude-plugin/plugin.json` | Claude Code marketplace | Canonical skill manifest (31 skills, 10 agents) || `.cursor-plugin/plugin.json` | cursor.directory | Cursor-compatible manifest || `.cursorrules` | Cursor | Editor rules for Cursor users || `marketplace-entry.json` | General marketplaces | Lightweight catalog entry |@@ -32,9 +32,9 @@ COG is a **multi-agent package**, not a single-surface plugin:| Surface | Coverage ||---|---:|-| Claude Code (`.claude/skills/`) | 21 native skills + 6 worker agents |+| Claude Code (`.claude/skills/`) | 31 native skills + 10 agents (6 workers + 4 verifiers) || Cursor (`.cursor-plugin/`) | Plugin manifest + rules |-| Universal docs (`AGENTS.md`) | 21+ documented commands |+| Universal docs (`AGENTS.md`) | 31+ documented commands || Kiro (`.kiro/powers/`) | 7 core powers || Gemini CLI (`.gemini/commands/`) | 7 core commands |diff --git a/AGENTS.md b/AGENTS.mdindex 8cb47d4..8148633 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -438,6 +438,238 @@ This document defines the available commands/skills for AI agents interacting wi---+### Verification Harness Skills++The following 5 skills implement the V-model closed loop described in `WORKFLOW.md`. They are the enforcement layer that keeps every other skill honest: the worker never grades its own homework.++---++### /closed-loop++**Description:** V-model execute pipeline — CP-2 plan → CP-3 build → CP-3v component verify → CP-4 integration verify → CP-5 acceptance. Every verify step emits evidence rows traced to acceptance criterion IDs (`AC-n`).++**Triggers:**+- `/execute <task>`+- "run this through the closed loop"+- Any `normal`-lane or higher build task+- Automatically, whenever a task mutates external state++**Purpose:** Prevent the **confident-but-unchecked** failure mode. A worker reports success, nothing downstream validates it, and a plausible-but-wrong result ships. The loop makes success a *verified observation*, not a claim.++**What it does:**+1. Classifies the task into a risk lane (`bash .claude/lib/lane-classify.sh classify "<task>"`)+2. Runs the worker at CP-3, traced to `AC-n`+3. Dispatches a fresh-context, read-only `task-verifier` at CP-3v that observes the *artifact* (curl the URL, re-read the file, screenshot the page) — never the worker's summary+4. On `FAIL:fixable`, dispatches `fix-agent` (max 2 retries), then re-verifies; on `FAIL:escalate`, stops+5. Runs `integration-verifier` at CP-4 for multi-task / `full`-lane work+6. Records checkpoints and evidence rows to the run's `evidence/ledger.md`++**Output:** Evidence ledger with one `EVIDENCE <AC-id> | <CP> | PASS|FAIL | <observation> | <artifact>` row per criterion, plus `.claude/logs/loop-ledger.tsv`.++---++### /ultragoal++**Description:** Run a goal too big to ship in one session — a chain of phases, each its own full closed-loop run, with cross-session state and a final north-star acceptance gate.++**Triggers:**+- `/ultragoal <goal>`+- "this is a multi-week thing"+- Resuming a long-running goal in a cold session+- Any goal that can't finish in one run++**Purpose:** Wrongness compounds across sessions. A goal spanning weeks accumulates unverified assumptions that no single run ever revisits. Ultragoals never downgrade the lane: every phase runs CP-1 → CP-6 with adversarial verification, and nothing is "done" until every `AC-n` has a PASS row.++**What it does:**+1. Interviews you for the **north-star** in one sentence, then writes falsifiable `AC-n` into `04-projects/<goal>/spec.md`+2. Decomposes into phases `P0…Pn`, each traced to criteria+3. Runs each phase as a complete closed-loop run with per-phase evidence in `04-projects/<goal>/evidence/P<n>/`+4. Maintains `04-projects/<goal>/STATUS.md` so any cold session resumes without re-reading history+5. Regenerates a self-contained `report.html` at every phase gate (north-star, phase timeline, `AC-n` traceability, evidence, next action)+6. Runs a final **north-star acceptance verifier** before the goal is declared done++**Output:** `04-projects/<goal>/` containing `spec.md`, `STATUS.md`, `evidence/`, and `report.html`.++---++### /harvest++**Description:** Capture durable session learnings, stage them for human promotion into `05-knowledge/`, and propose skill/CLAUDE.md patches. Never writes durable knowledge without your approval.++**Triggers:**+- `/harvest`+- SessionEnd hook (automatic staging)+- After a correction, a rejected deliverable, or a surprising discovery+- Nightly self-enhancement runs++**Purpose:** Tacit knowledge dies in the transcript. Corrections you made, workarounds discovered, and patterns that worked are all lost when the session closes. Harvest catches them at the boundary — but stages rather than commits, because auto-promoting session noise into durable knowledge poisons the well.++**What it does:**+1. Scans the session for corrections, rejected outputs, non-obvious discoveries, and repeated friction+2. Writes candidates to `04-projects/harness/harvest/staging-<date>.md` with the evidence that motivated each+3. Optionally dispatches `harvest-curator` (Sonnet, propose-only) to shape candidates into adoption notes+4. Presents them for approval; flags contradictions with existing knowledge rather than silently overwriting+5. On `/harvest promote`, writes approved items into `05-knowledge/` and proposes skill/CLAUDE.md patches++**Output:** `04-projects/harness/harvest/staging-<date>.md` (staged) → `05-knowledge/` (promoted, after approval).++---++### /retro++**Description:** CP-7 retrospective — audit the run's checkpoints, evidence quality, action items, and harvest candidates. Closes the V-model cycle and feeds the next one.++**Triggers:**+- `/retro <run or spec>`+- After any ship (CP-6) or escalation+- After a significant session, whatever the outcome++**Purpose:** A closed loop that never inspects itself stops improving. Retro asks the question the verifiers can't: *was the evidence any good?* A run can pass every checkpoint and still have shipped on weak observations.++**What it does:**+1. Reads the run's evidence ledger and checkpoint log+2. Audits evidence *quality* — did each row observe the artifact, or restate a tool return value?+3. Identifies which checkpoints caught real problems and which were ceremony+4. Extracts action items and harvest candidates+5. Writes `04-projects/harness/retro/YYYY-MM-DD-<slug>.md`++**Output:** A retro doc that feeds CP-0 of the next cycle. Advisory, but strongly expected.++---++### /review-cockpit++**Description:** One living review document per multi-item session — a cockpit header (Progress checklist, Working folder, Context) plus per-item review cards you approve or request changes on directly in the doc.++**Triggers:**+- Any session with **≥2 deliverables you need to review or approve**+- "process X, then plan/draft Y and Z"+- Multi-ticket work, briefs with several drafts++**Purpose:** Multi-file output makes review impossible. Instead of a meeting note here, a ticket there, and two drafts buried in chat, everything lands in one file you can open in a side panel and drive. The doc *is* the interaction surface, not a summary of it.++**What it does:**+1. Creates one doc: cockpit header (Progress / Working folder / Context) + one review card per item+2. Each card carries status, deliverable (linked or inlined for in-place review), a **🗒 Your call** approval slot, and an append-only decision log+3. Keeps the doc live as work progresses, using targeted edits so your inline approvals are never clobbered+4. Distinguishes **draft** items (agent proposes, waits) from **auto** items (agent executes directly); when unsure, leaves it draft+5. On approval, executes the item, marks it ✅, and logs the outcome with its external link++**Output:** One markdown doc that is both the deliverable index and the approval surface.++---++### Craft Skills++The following 5 skills raise output quality on writing and visual work. They encode taste as mechanical rules rather than vibes.++---++### /no-ai-slop++**Description:** Edit drafts into sharper, more human writing while preserving the writer's personal voice — or detect AI-slop patterns without rewriting.++**Triggers:**+- "make this less AI-sounding"+- "sharpen this draft"+- "does this read as AI?"+- Final pass before publishing any blog post or social copy++**Purpose:** Remove AI patterns without flattening distinctive writing into generic polished prose. The failure mode it guards against is the *other* direction too: an editor that strips voice along with slop.++**What it does:**+1. **Edit mode (default):** makes the minimum effective edit and returns the draft plus a "What changed" section+2. **Detect mode:** flags slop patterns without rewriting+3. Kills fake-profound kickers, summary-recap endings, hedge stacking, and formatting theater+4. Enforces concreteness, named sources, and active voice++**Attribution:** Vendored from [petergyang/no-ai-slop](https://github.com/petergyang/no-ai-slop) (MIT). `LICENSE` and `SOURCE.md` ship alongside it.++---++### /editorial-illustrations++**Description:** Generate meaning-carrying editorial data-illustrations in a near-black grayscale + single-accent aesthetic. A **generative guide**, not a template gallery — it teaches the "claim → geometry" method.++**Triggers:**+- "make a chart/diagram/illustration for this"+- "visualize this argument"+- Writing or illustrating a blog post, essay, spec, or slide++**Purpose:** Most generated figures decorate; they don't argue. This teaches the session to derive the *right* geometry from what the text actually claims, then render it as a self-contained, theme-aware, reduced-motion-safe HTML/SVG figure.++**What it does:**+1. Extracts the claim, then asks "where is the point?" — the one element that gets the accent+2. Selects geometry from the claim's shape (a rail, a ramp, a bridge, a lane split), not from a chart-type menu+3. Renders self-contained HTML/SVG with a grayscale ramp plus exactly one accent, AA-safe on both grounds+4. Runs a pre-flight checklist: one accent on the point, no clipped mono text, no misaligned SVG, theme toggle honored++**References:** `references/design-system.md`, `references/elements.md`, `references/worked-examples.md`, `assets/gallery.html`.++---++### /data-forms++**Description:** Pick the right way to represent a dataset so a reader gets the finding in three seconds — a catalog of 20+ chart and diagram forms with when-to-use and failure modes, plus the encoding decisions that make any of them readable.++**Triggers:**+- Charting survey results, benchmark data, usage metrics, or research findings+- "the default bar chart is burying the point"+- Building a post, brief, deck, or report with data in it++**Purpose:** A repertoire, not a style. What makes good data illustration work is not the palette — it's form selection and encoding discipline, both of which are portable to any visual language.++**What it does:**+1. Matches the dataset's question to a form from the catalog (with each form's failure modes stated)+2. Applies the encoding rules that carry across all of them: takeaway headline, direct labels, kill the axis, highlight-and-mute, show the caveat+3. Stays style-agnostic — hands off to `dataviz` (or your host design system) for palette and accessibility++**References:** `references/forms.md`.++---++### /museum-art++**Description:** Source authentic, high-res **public-domain** artwork from museum open-access APIs (Met, Cleveland, SMK, Rijksmuseum, NGA, Art Institute of Chicago, Getty, Smithsonian) instead of AI-generated or generic-stock imagery.++**Triggers:**+- Blog hero images, section breaks, mood imagery+- Deck backgrounds, social cards, essay figures, spec cover art+- Any visual that needs aesthetic weight and credibility++**Purpose:** Curated, historically significant art reads as credible and sophisticated; AI-generated imagery reads as slop. Stacks with `/no-ai-slop`. Does **not** replace `/editorial-illustrations`, which owns claim-driven diagrams — museum art is for photographic, hero, decorative, and mood imagery.++**What it does:**+1. Queries museum open-access APIs (verified keyless recipes per institution)+2. Confirms public-domain status and records the licensing terms+3. Returns high-res source URLs with attribution metadata+4. Fetches fresh each time — no reusable image pool, so visuals don't repeat across posts++**References:** one file per institution under `references/`.++---++### /daily-journal++**Description:** A passive daily work journal the agent keeps **for** you so you never have to write it. Appends short entries after meaningful work; runs a guided reflection on request.++**Triggers:**+- `/daily-journal` or `/daily-journal reflect [today|yesterday|YYYY-MM-DD]`+- "log this to my journal"+- Implicitly, after finishing a meaningful chunk of work in any session++**Purpose:** Distinct from `/weekly-checkin`, where you supply the input. Here **the agent is the author** and the log accrues in the background, so the record exists even on days you'd never sit down to write one.++**What it does:**+1. **`log` (default, mostly implicit):** appends one entry after meaningful work — what was done, focus thread, artifacts touched, optional signal+2. Skips trivia: one-line lookups, scratch work, its own writes, anything you asked to keep out+3. **`reflect`:** reads the day's log plus recent days, summarizes the day back to you, asks 2-4 light questions adapted to what the log shows, then writes your answers plus a synthesis into the day's file+4. On request, synthesizes the last 7 files into a week-in-review++**Output location:** `01-daily/journal/YYYY-MM-DD.md`.++---+### PM Workflow SkillsThe following 6 skills form a complete product management lifecycle:@@ -585,7 +817,9 @@ The following 6 skills form a complete product management lifecycle:## Worker Agents-COG includes 6 specialized worker agents (`.claude/agents/`) that handle data-heavy tasks using Sonnet while the lead session (Opus) handles reasoning and synthesis. Inspired by [garrytan/gstack](https://github.com/garrytan/gstack) specialist sessions and [garrytan/gbrain](https://github.com/garrytan/gbrain) knowledge patterns.+COG includes 10 specialized agents (`.claude/agents/`) that handle data-heavy and verification tasks using Sonnet while the lead session (Opus) handles reasoning and synthesis. Inspired by [garrytan/gstack](https://github.com/garrytan/gstack) specialist sessions and [garrytan/gbrain](https://github.com/garrytan/gbrain) knowledge patterns.++**Workers** — do the gathering and the mutating:| Agent | What it does | When it's used ||---|---|---|@@ -596,7 +830,18 @@ COG includes 6 specialized worker agents (`.claude/agents/`) that handle data-he| **worker-publisher** | Publishing to Slack, Confluence, Notion, webhooks | Brief publishing, wiki sync || **brief-people-updater** | Batch-update people profiles from meetings/briefs | After team briefs, meeting processing |-**Key rule:** Workers write results to `/tmp/{task-slug}.md` and return only a short status + file path. The lead session reads the file for synthesis.+**Verifiers** — read-only, fresh-context, and they cannot edit files or mutate external state:++| Agent | What it does | Checkpoint |+|---|---|---|+| **task-verifier** | Checks a worker's output against acceptance criteria by observing the artifact, not the worker's summary | CP-3v |+| **integration-verifier** | Cross-task wiring and global acceptance for multi-task specs | CP-4 |+| **fix-agent** | Targeted fixes after `task-verifier` returns `FAIL:fixable`; max 2 attempts | CP-3v retry |+| **harvest-curator** | Shapes session learnings into adoption notes; propose-only, never writes durable knowledge | CP-7 |++**Key rules:**+- Workers write results to `/tmp/{task-slug}.md` and return only a short status + file path. The lead session reads the file for synthesis.+- Verifiers receive **paths only** — never paste a worker's output into a verifier's prompt. Pasted context induces narrativisation: the verifier classifies the framing instead of independently reading the source.---diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f360649..89ed1bc 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,65 @@All notable changes to COG (Cognition + Obsidian + Git) will be documented in this file.+## [3.8.0] - 2026-07-27++### The Closed-Loop Harness++v3.7.0 made trust a runtime decision for stored facts and mutations. v3.8.0 asks the harder question: **who checks the checker?**++The unit of work in v3.7.0 was a skill run. A skill run reports success. Nothing above it decides whether that success was real, because the only thing that ever looked at the result was the agent that produced it. That is not a verification problem, it is a *structural* one — the worker grades its own homework.++v3.8.0 replaces the flat skill run with a **V-model lifecycle**. Work descends the left arm (goal → falsifiable criteria → tasks), builds at the apex, and ascends the right arm through gates that each demand **evidence traced back to a criterion ID**. A criterion with no evidence row does not ship. An evidence row with no criterion is noise. The verifier is a separate agent, read-only, with fresh context and no access to the worker's narrative — it looks at the artifact.++Two ideas do most of the work:++- **The worker never grades its own homework.** Verification is a different agent, observing the artifact (curl the URL, re-read the file on disk, screenshot the page), never the summary the worker wrote about it.+- **Ceremony scales with blast radius.** Five risk lanes mean a one-line fix doesn't pay for a spec and an integration verifier, while a publish does.++Closed-loop execution and the risk-lane concept are adapted from [dwarves-kit](https://github.com/dwarvesf/dwarves-kit); the V-model framing comes from SDLC practice.++### Added++#### New Skills — Verification Harness (5)+- **`closed-loop`** — the execute pipeline: CP-2 plan → CP-3 build → CP-3v component verify → CP-4 integration verify → CP-5 acceptance. Dispatches a fresh-context, read-only `task-verifier`, routes `FAIL:fixable` to `fix-agent` (max 2 retries), escalates otherwise. Every verify step emits `EVIDENCE <AC-id> | <CP> | PASS|FAIL | <observation> | <artifact>`.+- **`ultragoal`** — for goals too big to ship in one session. One spec with a north-star and `AC-n` criteria, decomposed into phases, each phase a complete closed-loop run with its own evidence bundle. A living `STATUS.md` lets a cold session resume without re-reading history. Two acceptance gates: per-phase, and a final north-star verifier that checks every criterion has a PASS row. Ultragoals never downgrade the lane, because wrongness compounds across sessions.+- **`harvest`** — captures durable session learnings (corrections, rejected outputs, non-obvious discoveries, repeated friction) at the session boundary and **stages** them. Auto-promoting session noise into durable knowledge poisons the well, so nothing reaches `05-knowledge/` without approval.+- **`retro`** — CP-7. Audits not just whether checkpoints passed but whether the **evidence was any good**: did each row observe an artifact, or restate a tool return value? Identifies which gates caught real problems and which were ceremony.+- **`review-cockpit`** — one living review doc per multi-item session. Cockpit header (Progress / Working folder / Context) plus per-item cards with a **🗒 Your call** approval slot you edit in place. The doc is the interaction surface, not a summary of it.++#### New Skills — Craft (5)+- **`no-ai-slop`** — edit a draft sharper while preserving voice, or detect slop without rewriting. Guards both failure directions: leaving AI patterns in, and stripping distinctive voice out along with them. Vendored from [petergyang/no-ai-slop](https://github.com/petergyang/no-ai-slop) (MIT, with `LICENSE` and `SOURCE.md`).+- **`editorial-illustrations`** — a generative guide, not a template gallery. Teaches the **claim → geometry** method: extract what the text argues, find where the point is, derive the right geometry from the claim's shape, then render a self-contained, theme-aware, reduced-motion-safe HTML/SVG figure with a grayscale ramp and exactly one accent.+- **`data-forms`** — 20+ chart and diagram forms with when-to-use and failure modes, plus the encoding decisions that carry across all of them (takeaway headline, direct labels, kill the axis, highlight-and-mute, show the caveat). Style-agnostic: a repertoire, not a palette.+- **`museum-art`** — source real public-domain artwork from museum open-access APIs (Met, Cleveland, SMK, Rijksmuseum, NGA, Art Institute of Chicago, Getty, Smithsonian) instead of AI-generated or stock imagery. Keyless recipes per institution, licensing rules included, fetched fresh so visuals don't repeat.+- **`daily-journal`** — a passive work journal the agent keeps *for* you. Appends entries after meaningful work; the record exists even on days you'd never sit down to write one.++#### New Agents (4)+All read-only except `fix-agent`, all fresh-context, none can mutate external state:+- **`task-verifier`** (CP-3v) — checks worker output against acceptance criteria by observing the artifact.+- **`integration-verifier`** (CP-4) — cross-task wiring and global acceptance for multi-task specs.+- **`fix-agent`** — targeted fixes after a `FAIL:fixable` verdict; implements only what the verifier flagged, max 2 attempts.+- **`harvest-curator`** (CP-7) — shapes session learnings into adoption notes; propose-only.++#### New Framework Files+- **`WORKFLOW.md`** — the V-model lifecycle: checkpoint table, gate classes (blocking vs advisory), the evidence row contract, risk-lane checkpoint depth, the verification pipeline, and file homes for specs, evidence bundles, and retro output.+- **`.claude/lib/checkpoint.sh`** — records checkpoint results to a run's evidence ledger.+- **`.claude/lib/lane-classify.sh`** — classifies a task into a risk lane (`classify` for the verdict, `explain` for the reasoning).++#### New Protocols in CLAUDE.md+- **V-Model Checkpoints** — CP-1 through CP-7 with per-lane blocking rules, the two-way verification requirement, and the **cross-model flagship gate**: on high-stakes runs, overlay a flagship model that is *not* the lead's own as advisor at CP-1 and critic at CP-4/5/6. Same-family verifiers share the lead's blind spots; a different family catches a different error class.+- **Closed-Loop Execute** — the pipeline, the five lanes, and when a verifier subagent is actually warranted. Notably: on `normal`-lane read-only work the lead verifies inline, because spawning an agent to re-read a file the lead just wrote buys nothing.+- **Risk Lanes** — `tiny` / `normal` / `full` / `bug` / `backfill`, classified before executing.+- **Ultragoal** — one spec, phases as full closed-loop runs, a living status ledger, two acceptance gates.+- **Visual Verification** — UI/UX work is not verified by a DOM check. The DOM can be present and the pixels still wrong. Capture the render, *read the image*, name the discrepancy, fix it, re-capture.+- **Delegation Cap** — delegation costs context re-establishment on both ends. Fan out only for genuinely independent, sizeable tracks; if one subagent can do it, use one.++### Changed+- **Skill count 21 → 31**, **agents 6 → 10** across `plugin.json`, `.cursor-plugin/plugin.json`, `marketplace-entry.json`, `AGENTS.md`, `README.md`, `SETUP.md`, `.cursorrules`, `.github/MARKETPLACE.md`, and `docs/AGENT-SUPPORT.md`.+- **Model Routing table** extended with the four new agents (all Sonnet).+- **`cog-update.sh`** — `FRAMEWORK_FILES` now covers the 10 new skills, 4 new agents, `WORKFLOW.md`, and both `.claude/lib/` scripts.+- Version bumped to **3.8.0** across `COG-VERSION` and all manifests.+## [3.7.1] - 2026-07-10### Addeddiff --git a/CLAUDE.md b/CLAUDE.mdindex 41efd42..69b0e12 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1,5 +1,89 @@# COG Second Brain — Framework Instructions+> Lifecycle: `WORKFLOW.md` (V-model harness) · Universal surface: `AGENTS.md`++## V-Model Checkpoints — ALWAYS APPLY++Work walks the **V**: decompose left (spec → plan), build at the apex, verify right with **evidence** traced to criterion IDs (`AC-n`). See `WORKFLOW.md` for the full diagram.++| CP | Phase | Blocking when |+|---|---|---|+| CP-1 | Spec + traceability matrix | `normal`+ |+| CP-2 | Plan (tasks ↔ AC-n) | `normal`+ |+| CP-3 | Build | always |+| CP-3v | Component verify (`task-verifier`) | `normal`+ |+| CP-4 | Integration verify (`integration-verifier`) | `full`+, multi-task |+| CP-5 | Acceptance (post-condition artifacts) | mutations |+| CP-6 | Ship (Review Gate / user approval) | external |+| CP-7 | Retro (`/retro`) + harvest | advisory, expected |++**Two-way verification:** every `AC-n` has a task on the left and ≥1 `EVIDENCE AC-n | CP-* | PASS | …` row on the right before ship. Record checkpoints with `bash .claude/lib/checkpoint.sh record <run-dir> <CP> PASS|FAIL "<note>"`. Evidence bundles live in `04-projects/harness/runs/<id>/evidence/ledger.md`.++**Cross-model flagship gate (`full`+ / ultragoal / irreversible):** overlay a flagship model that is NOT the lead's own as a cross-model advisor at CP-1 and critic at CP-4, CP-5, CP-6. Fresh context, read-only, advisory. Same-family verifiers share the lead's blind spots; a different model catches a different error class. A critical cross-model finding blocks auto-ship. Skip on `tiny`/`normal`.++## Closed-Loop Execute — ALWAYS APPLY (build tasks)++Every **build task** (`normal` lane and above) runs the verification pipeline before reporting success. Skill: `.claude/skills/closed-loop/SKILL.md`. Inspired by [dwarves-kit](https://github.com/dwarvesf/dwarves-kit).++```+worker → task-verifier (read-only) → fix-agent (max 2 retries) → escalate to the user+```++| Lane | Ceremony | Classifier |+|---|---|---|+| `tiny` | worker + post-condition if mutating | `bash .claude/lib/lane-classify.sh classify "<task>"` |+| `normal` | full pipeline above | default |+| `full` | pipeline + claim-verifier for auditable claims | briefs, publishes |+| `bug` | evidence ledger before fix; 3-fix wall | regressions |+| `backfill` | audit/plan only until approved | doc retrofits |++**Rules:**+- `task-verifier` and `fix-agent` are **fresh-context** subagents (paths only, never paste worker output into a verifier).+- Verifier agents are **read-only** — they cannot edit files or mutate external state.+- **Dispatch a verifier subagent when there is external state, or when a fresh pair of eyes is the point** — mutations (publishes, pushes, tracker transitions, deploys), auditable claims, `full`+ lanes, every ultragoal phase.+- **On `normal`-lane read-only work, the lead verifies inline instead.** Spawning a verifier to re-read a file the lead just wrote buys nothing.+- Verification means **observing the artifact** (curl the URL, screenshot the page, re-fetch the issue, diff the file), never re-reading the worker's own summary of it.+- Max **2** fix-agent retries per task, then `ESCALATE` with evidence. Log outcomes to `.claude/logs/loop-ledger.tsv`.++## Risk Lanes — ALWAYS APPLY++Classify before executing: `bash .claude/lib/lane-classify.sh explain "<task>"`.++- **tiny**: skip verifier unless external mutation.+- **normal**: closed-loop + single-file deliverable. Verifier subagent only when the task mutates external state.+- **full**: closed-loop + adversarial claim-verifier + Review Gate for external.+- **bug**: root cause before patch.+- **backfill**: no behavior change without approval.++## Ultragoal — ALWAYS APPLY (long-running goals)++An **ultragoal** is a large, multi-session goal that can't ship in one run. It gets the closed loop applied in full and is never lane-downgraded. Skill: `.claude/skills/ultragoal/SKILL.md`.++- **One spec, north-star + `AC-n`.** `04-projects/<goal>/spec.md` holds the north-star, falsifiable acceptance criteria, and a phase decomposition (`P0…Pn`).+- **Every phase is a full closed-loop run** (CP-1 → CP-6). No `tiny` shortcut inside an ultragoal.+- **Living status ledger.** `04-projects/<goal>/STATUS.md` tracks phase state, current phase, open `AC-n`, and next action so any session resumes cold.+- **Two acceptance gates.** Per-phase acceptance (CP-5) AND a final **north-star acceptance verifier** that checks every `AC-n` has a PASS row.+- **Adversarial by default.** Wrongness compounds across sessions, so verify every phase, not only the end.++## Visual Verification — ALWAYS APPLY (UI/UX tasks)++Any task that **implements or changes a UI/UX flow** is not verified by a DOM/selector check. The DOM can be present and the pixels still wrong: overflow, misalignment, clipped text, wrong contrast, broken responsive layout, z-index overlap.++- **Capture visual evidence.** Screenshot every meaningful state; record multi-step flows.+- **Actually read the image, then compare** against the intended design (mock, spec wireframe, prior state, house style). Name the discrepancy; never declare pass on "element exists."+- **Fix the UI error you spot** — part of the task, not a follow-up. Re-capture to prove it.+- Evidence lands in the run evidence dir and feeds the CP-5 post-condition row.++## Delegation Cap — ALWAYS APPLY++Delegation is not free: each subagent re-establishes context, re-explores, and reports back, and the lead then re-reads the report. Delegate when the payoff clearly exceeds that overhead — not by reflex.++- **Don't delegate work the lead can finish in a handful of tool calls.**+- **Fan out only for genuinely independent, sizeable tracks** — ≥3 unrelated items, a wide multi-source sweep, or parallel workers that would conflict on the same file.+- **If one subagent can do it, use one.** Keep spawn counts low.+- **Brief precisely the first time.** Avoid launch → wait → re-brief; never redo a subagent's work after it reports.+- Independent agents launched together go in **one message with multiple tool calls** so they run concurrently.+## Model Routing — ALWAYS APPLYWhen spawning subagents, use the correct model for the task:@@ -12,6 +96,10 @@ When spawning subagents, use the correct model for the task:| File operations (vault reads/writes, metadata, profiles) | **Sonnet** | `worker-file-ops` || Pre-approved mutations (Jira transitions, Linear updates, API calls) | **Sonnet** | `worker-executor` || People profile updates from brief/meeting data | **Sonnet** | `brief-people-updater` |+| Read-only verification (acceptance criteria, post-conditions) | **Sonnet** | `task-verifier` |+| Cross-task integration verify (CP-4) | **Sonnet** | `integration-verifier` |+| Targeted fixes after verifier FAIL:fixable | **Sonnet** | `fix-agent` |+| Harvest staging curation (propose-only) | **Sonnet** | `harvest-curator` || Reasoning, synthesis, cross-referencing, writing | **Opus** | Lead session (no delegation) || Editorial judgment, tone, strategic decisions | **Opus** | Lead session (no delegation) |@@ -156,7 +244,7 @@ Role packs live in `.claude/roles/`. New roles can be added by dropping a file f- `COMPETITIVE-WATCHLIST.md` — Companies/people being tracked### Framework files (updated via `cog-update.sh` or `/update-cog`)-- `.claude/skills/` — Claude Code skills (21 skills)+- `.claude/skills/` — Claude Code skills (31 skills)- `.claude/agents/` — Worker agent definitions (6 agents)- `.claude/roles/` — Role packs for personalized recommendations- `.kiro/powers/` — Kiro powersdiff --git a/COG-VERSION b/COG-VERSIONindex a76ccff..1981190 100644--- a/COG-VERSION+++ b/COG-VERSION@@ -1 +1 @@-3.7.1+3.8.0diff --git a/README.md b/README.mdindex 11cca5f..734a764 100644--- a/README.md+++ b/README.md@@ -11,10 +11,12 @@```mermaidgraph LRA[You] -- natural language --> B[AI Agent]- B -- runs --> C[21 Skills]- C -- delegates to --> W[6 Worker Agents]+ B -- runs --> C[31 Skills]+ C -- delegates to --> W[6 Workers]+ C -- verified by --> V[4 Read-Only Verifiers]C -- reads & writes --> D[.md Files]W -- reads & writes --> D+ V -- observes --> DC -- syncs with --> G[GitHub / Linear / Slack / PostHog]D --> E[Git]D --> F[iCloud]@@ -54,11 +56,11 @@ COG ships a **full Claude Code surface** plus **core native surfaces** for Kiro| Surface | Current support | Notes ||---|---|---|-| Claude Code | 21 native skills + 6 worker agents | Full first-class surface |+| Claude Code | 31 native skills + 10 agents (6 workers + 4 verifiers) | Full first-class surface || Cursor | Plugin manifest + rules | `.cursor-plugin/plugin.json` + `.cursorrules` || Kiro | 7 native powers | Core workflows today || Gemini CLI | 7 native commands | Core workflows today |-| `AGENTS.md` | 21 documented commands | Universal fallback for Codex and other agents |+| `AGENTS.md` | 31 documented commands | Universal fallback for Codex and other agents |Before publishing or updating framework files, run `./scripts/validate-agent-surface.sh` to catch drift between manifests, docs, and shipped files. See [docs/AGENT-SUPPORT.md](docs/AGENT-SUPPORT.md) for the detailed support matrix and contributor rules.@@ -110,7 +112,29 @@ Before publishing or updating framework files, run `./scripts/validate-agent-sur|---|---|---|| **content-factory** | Autonomous content pipeline — scout announcements, triage by trend momentum + your unique angle, publish with ledger dedup, hard volume caps, and screenshot-verified posting | "Run the content factory" |-### Worker Agents (Specialist Sessions)+### Verification Harness++The enforcement layer that keeps every other skill honest. Work walks a **V**: decompose left into falsifiable criteria, build at the apex, verify right with evidence traced back to each criterion. Full lifecycle in [WORKFLOW.md](WORKFLOW.md).++| Skill | What it does | Try saying... |+|---|---|---|+| **closed-loop** | Plan → build → component verify → integration verify → acceptance. The worker never grades its own homework; verifiers observe the artifact, not the worker's summary | "Run this through the closed loop" |+| **ultragoal** | A goal too big for one session, run as a chain of phases with cross-session state and a north-star acceptance gate | "Track this as an ultragoal" |+| **harvest** | Capture session learnings, stage them for approval, propose skill patches. Never writes durable knowledge unapproved | "Harvest what we learned" |+| **retro** | Audit the run's checkpoints and *evidence quality* — a run can pass every gate on weak observations | "Retro this run" |+| **review-cockpit** | One living doc per multi-item session: progress, per-item cards, and an approval slot you edit in place | "Set up a review cockpit" |++### Craft Skills (Writing & Visuals)++| Skill | What it does | Try saying... |+|---|---|---|+| **no-ai-slop** | Sharpen a draft without flattening its voice, or just detect AI-slop patterns | "Make this less AI-sounding" |+| **editorial-illustrations** | Claim → geometry: derive the *right* figure from what the text argues, render it as self-contained theme-aware HTML/SVG | "Make a diagram for this argument" |+| **data-forms** | 20+ chart and diagram forms with when-to-use, failure modes, and the encoding discipline that makes any of them readable | "The bar chart is burying the point" |+| **museum-art** | Real public-domain artwork from museum open-access APIs instead of AI-generated or stock imagery | "Find a hero image for this post" |+| **daily-journal** | A passive work journal the agent keeps for you, plus a guided reflection on request | "Reflect on today" |++### Agents (Specialist Sessions)COG uses a worker agent architecture inspired by [garrytan/gstack](https://github.com/garrytan/gstack) specialist sessions and [garrytan/gbrain](https://github.com/garrytan/gbrain) knowledge patterns. Workers handle data-heavy tasks cheaply (Sonnet) while the lead session does reasoning (Opus).@@ -123,7 +147,18 @@ COG uses a worker agent architecture inspired by [garrytan/gstack](https://githu| **worker-publisher** | Publishing to Slack, Confluence, Notion | Sonnet || **brief-people-updater** | Batch-update people profiles from meetings/briefs | Sonnet |+**Read-only verifiers** (they cannot edit files or mutate external state):++| Agent | What it does | Checkpoint |+|---|---|---|+| **task-verifier** | Checks output against acceptance criteria by observing the artifact | CP-3v |+| **integration-verifier** | Cross-task wiring and global acceptance | CP-4 |+| **fix-agent** | Targeted fixes after a `FAIL:fixable` verdict; max 2 attempts | CP-3v retry |+| **harvest-curator** | Shapes session learnings into adoption notes; propose-only | CP-7 |+> Workers write results to `/tmp/` files and return only a status + path. The lead reads the file for synthesis. This eliminates slow token generation in agent output.+>+> Verifiers receive **paths only** — never a worker's output. Pasted context induces narrativisation: the verifier classifies the framing instead of independently reading the source.### People CRM (Knowledge-Based Team Profiles)@@ -178,12 +213,13 @@ graph TD| **Privacy-First** — Local `.md` files, strict domain separation, no external servers | **Multi-Device** — iCloud sync to iPhone/iPad/Mac; Git for version history | **Obsidian Tasks** — `📅 YYYY-MM-DD` emoji format works with Tasks plugin dashboards || **Garry Tan Inspired** — gstack specialist sessions + gbrain knowledge patterns | **Multi-Platform** — Listed on [skills.sh](https://skills.sh), [agentskill.sh](https://agentskill.sh), [cursor.directory](https://cursor.directory) | **Worker Agents** — Sonnet handles I/O, Opus handles thinking || **Runtime Trust** — memory hygiene sweeps re-verify stored facts against the live environment | **Post-Condition Checks** — mutating skills observe the artifact before reporting success | **Skill Distillation** — [explore once, execute cheap](docs/SKILL-DISTILLATION.md) with small models |+| **V-Model Closed Loop** — every criterion has a task on the left and an evidence row on the right before ship | **Risk Lanes** — ceremony scales with blast radius instead of applying uniformly | **Cross-Model Gate** — a different model family catches a different error class |## Your Vault```COG-second-brain/-├── .claude/skills/ # Claude Code skills (21)+├── .claude/skills/ # Claude Code skills (31)├── .claude/agents/ # Worker agent definitions (6)├── .claude/roles/ # Role packs (7) — personalized recommendations├── .kiro/powers/ # Kiro powersdiff --git a/SETUP.md b/SETUP.mdindex cb4d40a..ed32ac3 100644--- a/SETUP.md+++ b/SETUP.md@@ -44,10 +44,10 @@ That's it! You now have a working second brain.**What just happened?**- The cloned `COG-second-brain` folder IS your second brain- COG now exposes a clear multi-agent support matrix:- - `.claude/skills/` - 21 Claude Code skills (full surface)+ - `.claude/skills/` - 31 Claude Code skills (full surface)- `.kiro/powers/` - 7 Kiro powers (core workflows)- `.gemini/commands/` + `.gemini/skills/` - 7 Gemini CLI commands (core workflows)- - `AGENTS.md` - 21 documented commands for Codex and other agents+ - `AGENTS.md` - 31 documented commands for Codex and other agents- Onboarding will create your personalized directory structure- You can validate the packaged agent surfaces anytime with `./scripts/validate-agent-surface.sh`@@ -131,7 +131,7 @@ COG-second-brain/ # This is your second brain folder├── .claude/│ ├── agents/ # 6 worker agent definitions│ ├── roles/ # 7 role packs for personalized recommendations-│ └── skills/ # 21 Claude Code skills+│ └── skills/ # 31 Claude Code skills│ ├── onboarding/│ ├── braindump/│ ├── daily-brief/diff --git a/WORKFLOW.md b/WORKFLOW.mdnew file mode 100644index 0000000..b06afb7--- /dev/null+++ b/WORKFLOW.md@@ -0,0 +1,177 @@+# Vault Harness Workflow++> **V-model harness**: decompose on the left, verify with evidence on the right, build at the apex, retro closes the loop.+> Adapted from [dwarves-kit](https://github.com/dwarvesf/dwarves-kit) + V-model SDLC discipline.++## The V-model (primary mental model)++Every non-`tiny` task walks the V. Each **checkpoint (CP)** is a gate: you cannot descend the left arm past a failed CP, and you cannot ascend the right arm without **evidence** tied back to a criterion ID.++```+ CP-0 INTAKE (think)+ ╱ evidence: questions answered+ ╱+ CP-1 SPEC ──────────────── CP-5 ACCEPTANCE+ ╱ criteria + trace matrix ╲ post-condition artifacts+ ╱ ╲+ CP-2 PLAN ───────────────────── CP-4 INTEGRATION+ task ↔ criterion map cross-task wiring+ ╲ ╱+ ╲ CP-3 BUILD ╱+ ╲ (execute) ╱+ ╲────────────╱+ component verify (task-verifier)+ │+ CP-6 SHIP+ │+ CP-7 RETRO ──► feeds CP-0 next cycle+```++### Two-way verification++| Direction | What | Artifact |+|---|---|---|+| **Down (left arm)** | Decompose goal → falsifiable criteria → tasks | Spec + traceability matrix (`AC-01` → task `T-01`) |+| **Up (right arm)** | Prove each task → prove wiring → prove acceptance | Evidence ledger rows (`AC-01` ← verifier observation) |+| **Bidirectional** | Every `AC-n` has ≥1 task AND ≥1 evidence row before ship | Matrix status = `traced` |++No criterion ships without a matching evidence row. No evidence row without a criterion ID.++## Checkpoints++| CP | Phase | Gate class | Pass requires | Evidence file |+|---|---|---|---|---|+| **CP-0** | Intake / think | advisory | Forcing questions answered or lane=`tiny` skip | `evidence/CP-0-intake.md` |+| **CP-1** | Spec | blocking (`normal`+) | `## Acceptance criteria` with IDs (`AC-01`…) | spec itself + matrix |+| **CP-2** | Plan | blocking (`normal`+) | Tasks reference `AC-n`; criteria falsifiable | `evidence/CP-2-plan.md` |+| **CP-3** | Build | — | Worker deliverable exists | deliverable path |+| **CP-3v** | Component verify | blocking | `task-verifier` PASS per task | `evidence/CP-3v-component.md` |+| **CP-4** | Integration verify | blocking (`full`+, multi-task) | `integration-verifier` PASS | `evidence/CP-4-integration.md` |+| **CP-5** | Acceptance | blocking (mutations) | Post-condition observed (not tool return) | `evidence/CP-5-acceptance.md` |+| **CP-6** | Ship | blocking (external) | Review Gate / your approval / deploy proof | `evidence/CP-6-ship.md` |+| **CP-7** | Retro | advisory | Retro doc + harvest staged | `04-projects/harness/retro/YYYY-MM-DD-<slug>.md` |++Record checkpoints: `bash .claude/lib/checkpoint.sh record <run-dir> <CP-id> PASS|FAIL|SKIP <note>`++### Evidence row contract (every verify pass)++```text+EVIDENCE <AC-id> | <checkpoint> | PASS|FAIL | <observation> | <artifact-path-or-command>+```++Verifier and post-condition steps emit these rows. Consolidate in `evidence/ledger.md` per run.++## Gate classes++| Class | Examples | Behavior |+|---|---|---|+| **Blocking** | CP-1 spec, CP-3v verifier, CP-5 post-condition, CP-6 ship, safety-gate | Stops a bad outcome |+| **Advisory** | CP-0 think, roundtable, slop-cleaner, CP-7 retro, cross-model flagship gate | Surfaces findings; retro strongly expected |++### Cross-model flagship gate (`full`+ / ultragoal / irreversible)++The read-only verifiers (`task-verifier` CP-3v, `integration-verifier` CP-4) are **same-family mechanical** checks — they share the lead's blind spots. On high-stakes runs, overlay a **flagship model that is NOT the lead's own** (spin off `Agent(model="fable")` when the lead is Opus) as a cross-model second opinion. Fresh context (paths + question, never the lead's draft-reasoning), read-only, advisory.++| CP | Flagship role | What it checks |+|---|---|---|+| **CP-1 Spec** | advisor | Are the `AC-n` falsifiable, complete, the *right* criteria? (highest leverage — a wrong spec poisons the left arm) |+| **CP-4 Integration** | critic | Cross-task wiring / global acceptance holds up under a different reasoner |+| **CP-5 Acceptance** | critic | Artifact truly satisfies the north-star, not just a passing post-condition |+| **CP-6 Ship** | critic | Break it before the user sees it — last gate before external/irreversible |+| **Ultragoal** | critic | Per-phase gate AND final north-star acceptance (adversarial by default; wrongness compounds across sessions) |++Advisory, not hard-blocking — but a **critical** cross-model finding means do not auto-ship; escalate the disagreement to the user to adjudicate. Skip entirely on `tiny`/`normal` runs (pure overhead there). If the flagship hard-refuses (offensive-security / bio-adjacent), rerun the check on Opus 5 rather than dropping it.++## Risk lanes (checkpoint depth)++| Lane | Checkpoints required |+|---|---|+| `tiny` | CP-3 → CP-5 (if mutating) only |+| `normal` | CP-1 → CP-2 → CP-3 → CP-3v → CP-5 |+| `full` | all through CP-4 + claim-verifier + CP-6 Review Gate |+| `bug` | CP-0 root-cause ledger → CP-3 → CP-3v (3-fix wall) |+| `backfill` | CP-1 audit only; no CP-3 until approved |++Classifier: `bash .claude/lib/lane-classify.sh classify "<task>"`++## Verification pipeline (right arm detail)++```+orchestrator (/execute or skill)+ │+ ▼+ CP-3 BUILD: worker implements (traced to AC-n)+ │+ ▼+ CP-3v: task-verifier (read-only) ──► evidence rows per AC-n+ │+ ├── FAIL:fixable ─► fix-agent (max 2) ─► re-verify+ └── FAIL:escalate ─► stop+ │+ ▼+ CP-4: integration-verifier (multi-task / full lane only)+ │+ ▼+ CP-5: post-condition (observe artifact: curl, screenshot, re-fetch)+ │+ ▼+ CP-6: ship gate (Review Gate: you approve external / gstack / deploy proof)+ │+ ▼+ CP-7: /retro + /harvest+```++## Domain routing++| Work type | Primary skill | Right-arm verifiers |+|---|---|---|+| Long-running goal | `/ultragoal` | full closed-loop per phase + north-star acceptance verifier |+| Team intelligence | `/team-brief` | claim-verifier (CP-3v) + CP-6 |+| Code / deploy | `/execute` + gstack | CP-3v + tests + CP-5 curl |+| Product dogfood | `/dogfood-release` | Playwright cross-verify (CP-4) |+| Content | content-factory | voice checklist + screenshot (CP-5) |+| AUT skills | aut-skill-capture | verdict taxonomy (CP-3v) |+| Knowledge | `/memory-hygiene` | environment re-verify (CP-5) |+| Session learnings | `/harvest` | human promotes (CP-7 input) |++## Self-enhancement loops++| Loop | CP | Output |+|---|---|---|+| **V execute** | CP-3 → CP-5 | Evidence ledger + loop-ledger.tsv |+| **Evolution** | CP-7 → aut-skill-capture | Skill patches from friction |+| **Ultragoal** | CP-1 → CP-6 per phase | `04-projects/<goal>/STATUS.md` + evidence per phase + `report.html` |+| **Harvest** | CP-7 | staging → lizard |+| **Memory hygiene** | CP-5 on memory store | `last_verified` stamps |+| **Retro** | CP-7 | `04-projects/harness/retro/` |++## File homes++| Artifact | Path |+|---|---|+| Spec + traceability matrix | `04-projects/<project>/specs/SPEC-NNN-<slug>.md` |+| Run evidence bundle | `04-projects/harness/runs/<id>/evidence/` |+| HTML report (ultragoal / big run) | `04-projects/<goal>/report.html` · `04-projects/harness/runs/<id>/report.html` |+| Report template | `04-projects/harness/templates/report.html` |+| Spec template | `04-projects/harness/templates/SPEC-template.md` |+| Retro outputs | `04-projects/harness/retro/YYYY-MM-DD-<slug>.md` |+| Harness backlog | `04-projects/harness/BACKLOG.md` |+| Harvest staging | `04-projects/harness/harvest/staging-<date>.md` |+| Checkpoint + loop logs | `.claude/logs/checkpoint-ledger.tsv`, `loop-ledger.tsv` |++## Commands++| Command | V-model phase |+|---|---|+| `/execute` | CP-2 through CP-5 |+| `/retro <run or spec>` | CP-7 |+| `/harvest` | CP-7 input |+| `/ultragoal` | full V per phase, across sessions |+| `/memory-hygiene` | CP-5 on memory |++## Install++```bash+bash .claude/lib/install-harness.sh+bash .claude/lib/install-harness.sh --check+```diff --git a/cog-update.sh b/cog-update.shindex 4b91c34..11d7b26 100755--- a/cog-update.sh+++ b/cog-update.sh@@ -33,6 +33,9 @@ FRAMEWORK_FILES=("cog-update.sh""docs/AGENT-SUPPORT.md""docs/SKILL-DISTILLATION.md"+ "WORKFLOW.md"+ ".claude/lib/checkpoint.sh"+ ".claude/lib/lane-classify.sh"".github/MARKETPLACE.md""scripts/validate-agent-surface.sh"@@ -58,6 +61,16 @@ FRAMEWORK_FILES=(".claude/skills/update-knowledge-base/SKILL.md"".claude/skills/memory-hygiene/SKILL.md"".claude/skills/content-factory/SKILL.md"+ ".claude/skills/closed-loop/SKILL.md"+ ".claude/skills/ultragoal/SKILL.md"+ ".claude/skills/harvest/SKILL.md"+ ".claude/skills/retro/SKILL.md"+ ".claude/skills/review-cockpit/SKILL.md"+ ".claude/skills/no-ai-slop/SKILL.md"+ ".claude/skills/editorial-illustrations/SKILL.md"+ ".claude/skills/data-forms/SKILL.md"+ ".claude/skills/museum-art/SKILL.md"+ ".claude/skills/daily-journal/SKILL.md"# Role packs".claude/roles/_template.md"@@ -75,6 +88,10 @@ FRAMEWORK_FILES=(".claude/agents/worker-executor.md"".claude/agents/worker-publisher.md"".claude/agents/brief-people-updater.md"+ ".claude/agents/task-verifier.md"+ ".claude/agents/integration-verifier.md"+ ".claude/agents/fix-agent.md"+ ".claude/agents/harvest-curator.md"# People CRM"05-knowledge/people/README.md"diff --git a/docs/AGENT-SUPPORT.md b/docs/AGENT-SUPPORT.mdindex ba17325..4956a7d 100644--- a/docs/AGENT-SUPPORT.md+++ b/docs/AGENT-SUPPORT.md@@ -8,7 +8,7 @@ This document is the packaging contract: it tells contributors and maintainers w| Surface | Shipped format | Coverage | Status ||---|---|---:|---|-| Claude Code | `.claude/skills/*/SKILL.md` | 21 skills | Full native surface |+| Claude Code | `.claude/skills/*/SKILL.md` | 31 skills | Full native surface || Universal agent docs | `AGENTS.md` | 17 commands | Full documented fallback || Kiro | `.kiro/powers/*/POWER.md` | 7 powers | Core workflows only || Gemini CLI | `.gemini/commands/*.toml` + `.gemini/skills/*.md` | 7 commands | Core workflows only |diff --git a/marketplace-entry.json b/marketplace-entry.jsonindex 18a2b46..6725478 100644--- a/marketplace-entry.json+++ b/marketplace-entry.json@@ -6,8 +6,8 @@"email": "[email protected]","url": "https://github.com/huytieu"},- "description": "Self-evolving second brain with 21 AI skills, 6 worker agents, and people CRM. Runtime-trust release: memory hygiene sweeps, skill post-condition checks, verbatim citations with adversarial verifier pass, autonomous content factory. Iterative skills are loop-engineered with deterministic verifiers and layered termination. Inspired by Garry Tan's gstack and gbrain. Works with Claude Code, Cursor, Kiro, Gemini CLI, Codex.",- "version": "3.7.1",+ "description": "Self-evolving second brain with 31 AI skills, 10 agents, and people CRM. Closed-loop harness release: V-model verification lifecycle with criterion-traced evidence, read-only verifier agents, risk lanes, multi-session ultragoals with a north-star acceptance gate, and craft skills for writing and visuals. Inspired by Garry Tan's gstack and gbrain, and dwarves-kit. Works with Claude Code, Cursor, Kiro, Gemini CLI, Codex.",+ "version": "3.8.0","keywords": ["second-brain","garry-tan",@@ -24,7 +24,12 @@"loop-engineering","memory-hygiene","runtime-trust",- "content-factory"+ "content-factory",+ "v-model",+ "closed-loop",+ "verification-harness",+ "ultragoal",+ "evidence-ledger"],"category": "productivity","homepage": "https://github.com/huytieu/COG-second-brain"