--- name: operon-obsidian-setup description: "Installs or repairs the laboratory's Operon task boards and project views in an Obsidian vault. Use when the user sets up a new vault, asks to install Operon or the Reading and Personal boards, or reports that boards, plugins, or the startup layout are broken." version: 1.0.0 tags: [Obsidian, Operon, Tasks, Setup, ProjectPages] --- # Operon + Project Pages setup ## Current starter kit For a NEW vault use the [current repository starter](https://github.com/brain-lab-research/claude-brainlab/tree/main/obsidian-setup). Read its README and run its installer. It pins Operon 3.0.1, Border, fourteen enabled plugins, Personal and Reading boards, startup layout and checked display patches. The installer refuses existing folders. Never apply the legacy 2.2.1 patcher to 3.x. For an existing vault, inspect versions and compare with a separate starter vault. Keep the target Obsidian closed before changing its configuration, back it up and preserve all tasks, statuses, presets, notes and access settings. Do not enable the archive job as part of setup. Hermes has a deterministic, read-only board projection in each work's own `notes/Hermes/` (local, not in git). A system scheduler refreshes it every 15 minutes without an LLM. Keep source task IDs and statuses. Private Hermes steps are not a copy of the shared GitLab issues of the work. SSH access and project routes are configured by the recipient. The following instructions are a legacy 2.2.1 reference, not the current starter recipe. Reproduce the lab's Operon task-manager setup and project-page conventions in an Obsidian vault: flat `project` tags, a "my tasks" table dashboard, service-link badges, emoji task icons, and external day-boundary archiving. Target Operon version **2.2.1** (code patches in step 6 are version-gated; everything else is version-independent). ## Required input Resolve before starting: - **VAULT** — absolute path to the vault. From explicit user input, else `${OBSIDIAN_VAULT}`. - **OWNER** — task owner name/handle (used for `assignees` and the "my tasks" filter). Ask if unknown. - **OS** — macOS / Windows / Linux (only step 7 differs; launchd is macOS-only). Bundled files live under `${CLAUDE_PLUGIN_ROOT}/skills/operon-obsidian-setup/` in `scripts/` and `assets/`. Read `references/OPERON-SETUP-RUNBOOK.md` for full rationale, the data model, and troubleshooting. ## GUI-only steps (hand to the user, wait for confirmation) Some steps cannot be done from the filesystem — surface exact clicks and wait: 1. Settings → Community plugins → install & enable **Operon** (2.2.1) and **Dataview**. 2. Dataview → enable **Enable JavaScript Queries** (`enableDataviewJs`). 3. Settings → Appearance → CSS snippets → refresh → enable `project-link-badges` (after step 3 below). 4. Final full **restart** of Obsidian (config is read at startup; live edits do not apply). ## Procedure 1. **Folders.** Create `VAULT/Operon/{Projects,Archives,Templates,Tasks}` and `VAULT/_System/Templates`. 2. **Templates.** Copy into the vault, substituting `` and ``: - `assets/Task.template.md` → `VAULT/Operon/Templates/Task.md` (replace ``). - `assets/Project-Page.template.md` → `VAULT/_System/Templates/Project Page.md`. - `assets/Project-Literature.template.md` → `VAULT/_System/Templates/Project Literature.md`. 3. **CSS badges.** Copy `assets/project-link-badges.css` → `VAULT/.obsidian/snippets/project-link-badges.css`, then trigger the GUI enable step above. 4. **Plugin config.** Run the idempotent configurator (backs up `data.json`, sets the Project status pipeline, the `project` custom list field, excluded folders, Task Creator folders/template, disables native auto-archive, and adds the `fs_mytasks` filter for OWNER): ```bash python3 "${CLAUDE_PLUGIN_ROOT}/skills/operon-obsidian-setup/scripts/operon_configure.py" "" "" ``` 5. **Table preset.** Copy `assets/table-preset.json` → `VAULT/.obsidian/plugins/operon/data/table-presets/table-preset-my-first-table.json` (back up any existing file first). Ensure its id is listed in the sibling `index.json`. 6. **Dashboard.** Create `VAULT/Dashboard.md` per the runbook (a `dataviewjs` button row that opens Kanban/Calendar/Finder + an embedded Operon table `presetId: "table-preset-my-first-table"`). 7. **Display patches (optional).** Status shown without the `Project.` prefix, `assignees` picker sourced from `people/` cards, and emoji task icons. Version-gated to Operon 2.2.1; aborts cleanly otherwise. Re-run after every Operon update (updates overwrite `main.js`): ```bash python3 "${CLAUDE_PLUGIN_ROOT}/skills/operon-obsidian-setup/scripts/operon_patches.py" "" ``` 8. **Auto-archive (optional, macOS).** Install `scripts/operon_daily_archive.py` (dry-run test: `--vault "" --dry-run`), then render `assets/com.OWNER.operon-archive.plist.template` (substitute ``, ``, ``) into `~/Library/LaunchAgents/` and `launchctl load` it. Windows/Linux: schedule the same command via Task Scheduler / cron. Two retention windows, on purpose: **finished** statuses (`Прочитано`, `Готово`, `Finished`) are archived the next day, **cancelled** ones (`Reading._Trash`, `Dropped`) only after `--cancelled-grace-days` (default 1). A rejection is a decision worth revisiting and an accidental drag has to be recoverable from the column itself, not from the archive. Pin an individual card with `archiveHold: true` in its frontmatter. Under launchd the script usually cannot read `.obsidian/plugins/operon/data.json` (macOS TCC on the iCloud folder) and silently falls back to the hardcoded status lists — keep `FALLBACK_FINISHED_STATUSES` / `FALLBACK_CANCELLED_STATUSES` in sync when a pipeline changes, or grant the launchd `python3` Full Disk Access. 9. **Restart & verify** (GUI restart above), then check: Task Creator writes file-tasks to `Operon/Tasks` with the Описание/Прогресс/Результат body and `assignees: [OWNER]`; statuses show without the `Project.` prefix; the `project` column is present; `Dashboard.md` renders the table + working buttons; external links render as service badges; (if patched) `taskIcon: 🤖` renders as emoji. ## Data model (essentials) - Every task is an Operon task (`operonId`, `status: Project.