[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HV3Y166T11AZ0GDQKHDHBJ":3,"skill-same:01M6HV3Y166T11AZ0GDQKHDHBJ":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":61},"01M6HV3Y166T11AZ0GDQKHDHBJ","hatch",null,"One-time fitness hermit setup. Configures Strava MCP access, wires domain skills as routines into config.json. Run once per project after \u002Fhermitd:hatch.","gtapps\u002Fhermitd","gtapps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16778396?v=4","01M6HTX8TNTPQN3NXRVA63VHTH","01M6HTX8Z23S531ZPPA5DKJVD0",85,"MIT","https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd-fitness\u002Fskills\u002Fhatch\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"strava","fitness","true","hermit","as","project","time","domain","MCP","mcp access","json","access","run","setup","config","routines","2026-11-10 10:12:30",false,"---\nname: hatch\ndescription: One-time fitness hermit setup. Configures Strava MCP access, wires domain skills as routines into config.json. Run once per project after \u002Fhermitd:hatch.\ndisable-model-invocation: true\n---\n\n# Hatch — hermitd-fitness\n\nIdempotent setup wizard for the fitness plugin. Run **after** `\u002Fhermitd:hatch` has already been completed.\n\n---\n\n## Step 1 — Prerequisite check\n\nCheck whether `.hermit\u002Fconfig.json` exists.\n\nIf it does not:\n\nPrint this block and stop:\n\n```markdown\n## ▶ Next step — type this now\n\n    \u002Fhermitd:hatch\n\nI can't run setup wizards for you (they're operator-run by design).\nAfter it finishes, come back and type `\u002Fhermitd-fitness:hatch`.\n```\n\nIf it does exist, run `.hermit\u002Fbin\u002Fhermitd-run domain-hatch preflight hermitd-fitness` and parse the JSON verdict. Branch on `action`:\n\n- **`bootstrap_core` \u002F `upgrade_core_package` \u002F `upgrade_core_applied`** → tell the operator to run the `next_steps` commands in order, then stop. An older core prints the dashed form of these with a `remedy` instead: relay `remedy` and stop.\n- **`verify`** → say:\n\n  > \"hermitd-fitness {self_version} is already installed. Skip to Step 6 to re-verify the installation, or reply 'full' to re-run the full wizard.\"\n\n  Use `AskUserQuestion`: \"(verify \u002F full)\" — **verify** → skip to Step 6; **full** → continue from Step 2.\n- **`full`** → continue from Step 2.\n- **`error`**, or any `domain-hatch` command in this skill that prints `error` → tell the operator in plain words what its token means, then stop.\n\n---\n\n## Step 2 — .env verification\n\n**IMPORTANT: Do NOT read `.env` yourself (no `Read`, `grep`, `cat` or `echo`): the values would land in the transcript, and `Bash(cat .env*)` is a seeded native deny. Use `fitness-lab.ts env-check` only.**\n\nTell the operator:\n\n> \"This plugin needs four Strava OAuth credentials in `.env`. If you haven't done this yet:\n>\n> 1. Create `.env` at the project root\n> 2. Open `.env` and fill in all four values from your Strava developer app:\n>    - `STRAVA_CLIENT_ID` — numeric app ID\n>    - `STRAVA_CLIENT_SECRET` — app secret\n>    - `STRAVA_ACCESS_TOKEN` — initial access token\n>    - `STRAVA_REFRESH_TOKEN` — refresh token\n>\n> See https:\u002F\u002Fdevelopers.strava.com\u002Fdocs\u002Fauthentication\u002F to create a Strava app if you haven't.\n> Reply 'done' when the file is filled in, or 'abort' to stop.\"\n\nUse `AskUserQuestion`: \"(done \u002F abort)\"\n\n- **abort** → stop.\n- **done** → continue.\n\nRun:\n\n```bash\nbun ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ffitness-lab.ts env-check\n```\n\nIt prints `OK` when every key is set, or `{\"status\":\"missing_keys\",\"missing\":[...]}` with key names only, never values. A key counts as missing when it is absent, empty, or still `replace_me`. On `missing_keys`, report those names and loop back to the `AskUserQuestion` above. Do not proceed until it prints `OK`.\n\n---\n\n## Step 3 — MCP registration\n\n**Step 3.0 — Detect an ambient Strava MCP server.** The operator may already run a Strava MCP server (user-scoped, or configured by another tool). Run `claude mcp list` (Bash) and scan for a server that talks to Strava — a name containing `strava`, or an entry whose command\u002Fargs reference a Strava MCP package (e.g. `strava-mcp-server`). \n\n- **None found** → proceed to install the bundled server below (the default path).\n- **One found** → ask with `AskUserQuestion` (header: \"Strava MCP\"): **Reuse the existing `\u003Cname>` server** (recommended — no duplicate) \u002F **Install the bundled `@r-huijts\u002Fstrava-mcp-server`**. \n  - **Reuse** → skip the `.mcp.json` write entirely. Record which server key the skills should target (if it is not `strava`, note in the final report that skill\u002Fsettings matchers assume the key `strava`, so the operator should either rename their server to `strava` or accept that the fitness skills call `mcp__strava__*`). Continue to Step 4.\n  - **Install bundled** → proceed below.\n\nThis is a local reuse-vs-install choice only — do not attempt to reconcile or edit the operator's other MCP configs.\n\nWrite the Strava MCP server entry into the project's `.mcp.json` with:\n\n```bash\nbun ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ffitness-lab.ts mcp-config\n```\n\nIt reads `.env` itself, so the credentials never enter the conversation. Do not Read `.env` or `.mcp.json` to write this entry by hand. It prints JSON with no secret:\n- `action: \"added\"` → entry written.\n- `action: \"replaced\"` → an old entry with `${...}` placeholders was rewritten with literal values (Claude Code passes MCP `env` blocks literally; it does not expand shell variable syntax).\n- `action: \"updated\"` → an existing literal entry had different credentials than `.env`; only the four credential values were refreshed.\n- `action: \"skipped\"` → the existing `strava` entry already matches `.env`.\n- `status: \"missing_keys\"` → relay `missing` (key names), go back to Step 2, then re-run.\n- `{\"error\":\"invalid_mcp_json\"}` (exit 1) → `.mcp.json` is not a JSON object with an `mcpServers` object. Ask the operator to fix or remove it, then re-run.\n\nThe entry it writes has this shape:\n\n```json\n{\n  \"strava\": {\n    \"command\": \"npx\",\n    \"args\": [\"-y\", \"@r-huijts\u002Fstrava-mcp-server\"],\n    \"env\": {\n      \"STRAVA_CLIENT_ID\": \"\u003Cliteral from .env>\",\n      \"STRAVA_CLIENT_SECRET\": \"\u003Cliteral from .env>\",\n      \"STRAVA_ACCESS_TOKEN\": \"\u003Cliteral from .env>\",\n      \"STRAVA_REFRESH_TOKEN\": \"\u003Cliteral from .env>\"\n    }\n  }\n}\n```\n\n**Add `.mcp.json` and `.env` to `.gitignore`** if not already present. Read the project `.gitignore`, check for each entry; append any that are missing on new lines using Edit.\n\n---\n\n## Step 4: Install the weekly patterns gate\n\nInstall the shipped gate into the consumer project, always overwriting the previous gate:\n\n```bash\ninstall -m 755 \"${CLAUDE_PLUGIN_ROOT}\u002Fstate-templates\u002Fbin\u002Ffitness-weekly-patterns-gate\" .hermit\u002Fbin\u002Ffitness-weekly-patterns-gate\n```\n\nThis read-only gate calls `fitness-lab.ts weekly-patterns` through core's `hermitd-run sibling-run`. It translates the reported trend into `SKIP` or `WAKE`; the trend rule remains in `fitness-lab.ts`. Invalid output or a failed child returns non-zero, so the routine monitor records the gate error and wakes normally.\n\n## Step 5 — Knowledge-schema extension\n\nRead `.hermit\u002Fknowledge-schema.md`.\n\nCheck if `activity-streams:` is present in the file. This string only appears in the Raw Captures section, which is the last thing written — so its presence means both blocks were fully written on a prior run.\n\nIf **absent**, append the following block under `## Work Products` (create the section header if the base schema only has a template stub):\n\n```\n- weekly-plan: weekly training structure suggestion (7-day breakdown). Triggered by the `hermitd-fitness:monday-planning` routine (Mon 09:30). location: compiled\u002Fweekly-plan-\u003CYYYY-MM-DD>.md\n- weekly-summary: week-over-week training load review. Triggered by the `hermitd-fitness:weekly-load-review` routine (Sun 18:00). location: compiled\u002Fweekly-summary-\u003CYYYY-MM-DD>.md\n- recovery-assessment: recovery indicators from recent activity data. Triggered by operator request or an evening brief flag. location: compiled\u002Frecovery-assessment-\u003CYYYY-MM-DD>.md\n- fitness-snapshot: current fitness state snapshot. Triggered by operator request. location: compiled\u002Ffitness-snapshot-\u003CYYYY-MM-DD>.md\n- activity-note: per-activity coaching analysis. Triggered by activity-deep-dive skill. location: compiled\u002Factivity-\u003Cid>-\u003CYYYY-MM-DD>.md\n- domain-brainstorm: report from a domain plugin's `domain-brainstorm` skill, written only when the run created at least one proposal. location: compiled\u002Fdomain-brainstorm-\u003CYYYY-MM-DD-HHMM>.md\n```\n\nAnd under `## Raw Captures` (create if absent):\n\n```\n- activity-fetch: raw activity list from Strava. Feeds weekly-plan, weekly-summary, recovery-assessment. Retention: 3 days. location: raw\u002Factivity-fetch-\u003Cdate>.json\n- activity-streams: HR\u002Fpace\u002Fpower time-series for a specific activity. Feeds recovery-assessment, activity-note, fitness-snapshot. Retention: 7 days. location: raw\u002Factivity-streams-\u003Cid>-\u003Cdate>.json\n```\n\nOmit the `domain-brainstorm` bullet when `## Work Products` already declares it (another domain plugin's hatch may have added it).\n\nIf already present: skip (idempotent).\n\nUse Edit to make the changes.\n\n---\n\n## Step 6 — Stamp and register in config.json\n\nRe-read `.hermit\u002Fconfig.json` now — the wizard has been running since Step 1 and the on-disk file may have changed. Apply the merges below to that fresh copy.\n\n### 6a — Stamp version\n\nSet `_hermit_versions[\"hermitd-fitness\"]` to `self_version` from Step 1's preflight.\n\nIf the key already exists: update the value. If absent: add it alongside the existing `_hermit_versions[\"hermitd\"]` entry.\n\n### 6b — Merge routines\n\nIn the `routines` array: A row matches a seeded entry when its full skill string (including arguments) or its `id` equals the seeded one's; preserve every field on a matching row. Add an entry below only when no row matches.\n\n```json\n{\n  \"id\": \"hermitd-fitness:morning-brief\",\n  \"schedule\": \"30 7 * * *\",\n  \"skill\": \"hermitd-fitness:fitness-brief --morning\",\n  \"enabled\": true\n},\n{\n  \"id\": \"hermitd-fitness:evening-brief\",\n  \"schedule\": \"30 21 * * *\",\n  \"skill\": \"hermitd-fitness:fitness-brief --evening\",\n  \"enabled\": true\n},\n{\n  \"id\": \"hermitd-fitness:weekly-load-review\",\n  \"schedule\": \"0 18 * * 0\",\n  \"skill\": \"hermitd-fitness:weekly-load-review\",\n  \"enabled\": true\n},\n{\n  \"id\": \"hermitd-fitness:monday-planning\",\n  \"schedule\": \"30 9 * * 1\",\n  \"skill\": \"hermitd-fitness:monday-planning\",\n  \"enabled\": true\n}\n```\n\n### 6c: Merge the weekly patterns routine\n\nMerge this entry into `config.routines` by the same matching rule. Create the array if absent. Append the entry only when no row matches and leave all other config fields unchanged. No prompt is needed for these read-only analyses.\n\n```json\n{\"id\": \"hermitd-fitness:weekly-coaching-patterns\", \"schedule\": \"5 9 * * 1\", \"skill\": \"hermitd:reflect --check-id weekly-coaching-patterns --check hermitd-fitness:weekly-coaching-patterns\", \"enabled\": true, \"precheck\": \".hermit\u002Fbin\u002Ffitness-weekly-patterns-gate\", \"precheck_timeout_s\": 60}\n```\n\nThe weekly routine checks for a trend before waking. Findings pass through reflection gates into the proposal pipeline.\n\nWrite the updated `config.json` using Write tool (full file replacement to ensure valid JSON).\n\n## Native approval rules\n\nIf `needs_target_question` is true, ask with `AskUserQuestion` (header: \"Visibility\") — `target_default` at position 0 with `(recommended)`: **`.local` files** (gitignored — operator-personal) \u002F **Committed files** (shared with teammates). Then record it:\n\n```bash\n.hermit\u002Fbin\u002Fhermitd-run domain-hatch ensure-target hermitd-fitness --target \u003Cchoice>\n```\n\n\nResolve the project settings target through `.hermit\u002Fbin\u002Fhermitd-run domain-hatch preflight hermitd-fitness`. Map `target` (or `target_default` when absent): `local` to `.claude\u002Fsettings.local.json`, `committed` to `.claude\u002Fsettings.json`.\n\nRun `bun ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fnative-permissions.ts \u003Cresolved-settings-file>`. Name any `deny_conflicts` it prints in the final report. On `error`, relay it and stop.\n\n## Step 7 — Final report\n\nPrint a structured summary:\n\n```\nhermitd-fitness {version} setup complete.\n\nInstallation summary:\n  ✓ Prerequisite: hermitd {base_version} confirmed\n  ✓ .env: all four Strava credentials present\n  ✓ .mcp.json: strava server entry written (or was already present)\n  ✓ .gitignore: .mcp.json and .env covered\n  ✓ knowledge-schema.md: fitness types added (or were already present)\n  ✓ config.json: _hermit_versions stamped, {K}\u002F4 routines added, `hermitd-fitness:weekly-coaching-patterns` routine registered with precheck\n\nManual steps remaining:\n  - Restart Claude Code so the `strava` MCP server loads from .mcp.json\n  - Approve the `strava` server when prompted on first use\n  - Run \u002Fmcp to confirm `strava` is connected\n  - Verify connectivity: call mcp__strava__check-strava-connection\n\nGo always-on (recommended):\n  - Docker:     \u002Fhermitd:docker-setup\n      Builds the container and walks you through channel pairing in one go.\n  - Bare tmux:  hermitd start\n      For channels (Discord\u002FTelegram) with tmux, run\n      \u002Fhermitd:channel-setup first.\n\nPrefer to test interactively first? After restarting, run:\n  \u002Fhermitd:hermit-routines load\n    — activates the fitness routines in the current Claude session.\n\nThe always-on runtime activates routines automatically — the interactive\nsteps are only for a test drive before handing over to the runtime.\n\nInstalled skills:\n  \u002Fhermitd-fitness:fitness-brief             — daily morning\u002Fevening brief (--morning|--evening|--slot)\n  \u002Fhermitd-fitness:activity-deep-dive        — per-activity coaching analysis\n  \u002Fhermitd-fitness:weekly-coaching-patterns  — weekly cardiac-drift trend check (weekly routine)\n\nInstalled subagent:\n  @hermitd-fitness:strava-data-cruncher — bulk Strava data aggregation (Haiku)\n\nSecurity reminder: .env and .mcp.json contain real Strava credentials. Both are gitignored — verify before any git push.\n```\n\n---\n\n## Docker network requirements\n\nRead by `\u002Fhermitd:docker-security` when the operator enables LAN containment + DNS policy. Each entry is surfaced as a per-entry confirmation prompt; nothing here is auto-applied.\n\n### Domains (DNS allowlist)\n\n- strava.com\n\n`server=\u002Fstrava.com\u002F...` matches both `www.strava.com` (web) and `api.strava.com` (API) via dnsmasq's subdomain-match semantics. The Strava MCP server (`@r-huijts\u002Fstrava-mcp-server` via `npx`) also needs `npmjs.org`, but that's already in the wizard's seed allowlist for npm\u002Fplugin installs.\n\n### LAN allowlist suggestions\n\n(none — Strava is a cloud service)\n","# Hatch — hermitd-fitness\n\nIdempotent setup wizard for the fitness plugin. Run **after** `\u002Fhermitd:hatch` has already been completed.\n\n---\n\n## Step 1 — Prerequisite check\n\nCheck whether `.hermit\u002Fconfig.json` exists.\n\nIf it does not:\n\nPrint this block and stop:\n\n```markdown\n## ▶ Next step — type this now\n\n    \u002Fhermitd:hatch\n\nI can't run setup wizards for you (they're operator-run by design).\nAfter it finishes, come back and type `\u002Fhermitd-fitness:hatch`.\n```\n\nIf it does exist, run `.hermit\u002Fbin\u002Fhermitd-run domain-hatch preflight hermitd-fitness` and parse the JSON verdict. Branch on `action`:\n\n- **`bootstrap_core` \u002F `upgrade_core_package` \u002F `upgrade_core_applied`** → tell the operator to run the `next_steps` commands in order, then stop. An older core prints the dashed form of these with a `remedy` instead: relay `remedy` and stop.\n- **`verify`** → say:\n\n  > \"hermitd-fitness {self_version} is already installed. Skip to Step 6 to re-verify the installation, or reply 'full' to re-run the full wizard.\"\n\n  Use `AskUserQuestion`: \"(verify \u002F full)\" — **verify** → skip to Step 6; **full** → continue from Step 2.\n- **`full`** → continue from Step 2.\n- **`error`**, or any `domain-hatch` command in this skill that prints `error` → tell the operator in plain words what its token means, then stop.\n\n---\n\n## Step 2 — .env verification\n\n**IMPORTANT: Do NOT read `.env` yourself (no `Read`, `grep`, `cat` or `echo`): the values would land in the transcript, and `Bash(cat .env*)` is a seeded native deny. Use `fitness-lab.ts env-check` only.**\n\nTell the operator:\n\n> \"This plugin needs four Strava OAuth credentials in `.env`. If you haven't done this yet:\n>\n> 1. Create `.env` at the project root\n> 2. Open `.env` and fill in all four values from your Strava developer app:\n>    - `STRAVA_CLIENT_ID` — numeric app ID\n>    - `STRAVA_CLIENT_SECRET` — app secret\n>    - `STRAVA_ACCESS_TOKEN` — initial access token\n>    - `STRAVA_REFRESH_TOKEN` — refresh token\n>\n> See https:\u002F\u002Fdevelopers.strava.com\u002Fdocs\u002Fauthentication\u002F to create a Strava app if you haven't.\n> Reply 'done' when the file is filled in, or 'abort' to stop.\"\n\nUse `AskUserQuestion`: \"(done \u002F abort)\"\n\n- **abort** → stop.\n- **done** → continue.\n\nRun:\n\n```bash\nbun ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ffitness-lab.ts env-check\n```\n\nIt prints `OK` when every key is set, or `{\"status\":\"missing_keys\",\"missing\":[...]}` with key names only, never values. A key counts as missing when it is absent, empty, or still `replace_me`. On `missing_keys`, report those names and loop back to the `AskUserQuestion` above. Do not proceed until it prints `OK`.\n\n---\n\n## Step 3 — MCP registration\n\n**Step 3.0 — Detect an ambient Strava MCP server.** The operator may already run a Strava MCP server (user-scoped, or configured by another tool). Run `claude mcp list` (Bash) and scan for a server that talks to Strava — a name containing `strava`, or an entry whose command\u002Fargs reference a Strava MCP package (e.g. `strava-mcp-server`). \n\n- **None found** → proceed to install the bundled server below (the default path).\n- **One found** → ask with `AskUserQuestion` (header: \"Strava MCP\"): **Reuse the existing `\u003Cname>` server** (recommended — no duplicate) \u002F **Install the bundled `@r-huijts\u002Fstrava-mcp-server`**. \n  - **Reuse** → skip the `.mcp.json` write entirely. Record which server key the skills should target (if it is not `strava`, note in the final report that skill\u002Fsettings matchers assume the key `strava`, so the operator should either rename their server to `strava` or accept that the fitness skills call `mcp__strava__*`). Continue to Step 4.\n  - **Install bundled** → proceed below.\n\nThis is a local reuse-vs-install choice only — do not attempt to reconcile or edit the operator's other MCP configs.\n\nWrite the Strava MCP server entry into the project's `.mcp.json` with:\n\n```bash\nbun ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ffitness-lab.ts mcp-config\n```\n\nIt reads `.env` itself, so the credentials never enter the conversation. Do not Read `.env` or `.mcp.json` to write this entry by hand. It prints JSON with no secret:\n- `action: \"added\"` → entry written.\n- `action: \"replaced\"` → an old entry with `${...}` placeholders was rewritten with literal values (Claude Code passes MCP `env` blocks literally; it does not expand shell variable syntax).\n- `action: \"updated\"` → an existing literal entry had different credentials than `.env`; only the four credential values were refreshed.\n- `action: \"skipped\"` → the existing `strava` entry already matches `.env`.\n- `status: \"missing_keys\"` → relay `missing` (key names), go back to Step 2, then re-run.\n- `{\"error\":\"invalid_mcp_json\"}` (exit 1) → `.mcp.json` is not a JSON object with an `mcpServers` object. Ask the operator to fix or remove it, then re-run.\n\nThe entry it writes has this shape:\n\n```json\n{\n  \"strava\": {\n    \"command\": \"npx\",\n    \"args\": [\"-y\", \"@r-huijts\u002Fstrava-mcp-server\"],\n    \"env\": {\n      \"STRAVA_CLIENT_ID\": \"\u003Cliteral from .env>\",\n      \"STRAVA_CLIENT_SECRET\": \"\u003Cliteral from .env>\",\n      \"STRAVA_ACCESS_TOKEN\": \"\u003Cliteral from .env>\",\n      \"STRAVA_REFRESH_TOKEN\": \"\u003Cliteral from .env>\"\n    }\n  }\n}\n```\n\n**Add `.mcp.json` and `.env` to `.gitignore`** if not already present. Read the project `.gitignore`, check for each entry; append any that are missing on new lines using Edit.\n\n---\n\n## Step 4: Install the weekly patterns gate\n\nInstall the shipped gate into the consumer project, always overwriting the previous gate:\n\n```bash\ninstall -m 755 \"${CLAUDE_PLUGIN_ROOT}\u002Fstate-templates\u002Fbin\u002Ffitness-weekly-patterns-gate\" .hermit\u002Fbin\u002Ffitness-weekly-patterns-gate\n```\n\nThis read-only gate calls `fitness-lab.ts weekly-patterns` through core's `hermitd-run sibling-run`. It translates the reported trend into `SKIP` or `WAKE`; the trend rule remains in `fitness-lab.ts`. Invalid output or a failed child returns non-zero, so the routine monitor records the gate error and wakes normally.\n\n## Step 5 — Knowledge-schema extension\n\nRead `.hermit\u002Fknowledge-schema.md`.\n\nCheck if `activity-streams:` is present in the file. This string only appears in the Raw Captures section, which is the last thing written — so its presence means both blocks were fully written on a prior run.\n\nIf **absent**, append the following block under `## Work Products` (create the section header if the base schema only has a template stub):\n\n```\n- weekly-plan: weekly training structure suggestion (7-day breakdown). Triggered by the `hermitd-fitness:monday-planning` routine (Mon 09:30). location: compiled\u002Fweekly-plan-\u003CYYYY-MM-DD>.md\n- weekly-summary: week-over-week training load review. Triggered by the `hermitd-fitness:weekly-load-review` routine (Sun 18:00). location: compiled\u002Fweekly-summary-\u003CYYYY-MM-DD>.md\n- recovery-assessment: recovery indicators from recent activity data. Triggered by operator request or an evening brief flag. location: compiled\u002Frecovery-assessment-\u003CYYYY-MM-DD>.md\n- fitness-snapshot: current fitness state snapshot. Triggered by operator request. location: compiled\u002Ffitness-snapshot-\u003CYYYY-MM-DD>.md\n- activity-note: per-activity coaching analysis. Triggered by activity-deep-dive skill. location: compiled\u002Factivity-\u003Cid>-\u003CYYYY-MM-DD>.md\n- domain-brainstorm: report from a domain plugin's `domain-brainstorm` skill, written only when the run created at least one proposal. location: compiled\u002Fdomain-brainstorm-\u003CYYYY-MM-DD-HHMM>.md\n```\n\nAnd under `## Raw Captures` (create if absent):\n\n```\n- activity-fetch: raw activity list from Strava. Feeds weekly-plan, weekly-summary, recovery-assessment. Retention: 3 days. location: raw\u002Factivity-fetch-\u003Cdate>.json\n- activity-streams: HR\u002Fpace\u002Fpower time-series for a specific activity. Feeds recovery-assessment, activity-note, fitness-snapshot. Retention: 7 days. location: raw\u002Factivity-streams-\u003Cid>-\u003Cdate>.json\n```\n\nOmit the `domain-brainstorm` bullet when `## Work Products` already declares it (another domain plugin's hatch may have added it).\n\nIf already present: skip (idempotent).\n\nUse Edit to make the changes.\n\n---\n\n## Step 6 — Stamp and register in config.json\n\nRe-read `.hermit\u002Fconfig.json` now — the wizard has been running since Step 1 and the on-disk file may have changed. Apply the merges below to that fresh copy.\n\n### 6a — Stamp version\n\nSet `_hermit_versions[\"hermitd-fitness\"]` to `self_version` from Step 1's preflight.\n\nIf the key already exists: update the value. If absent: add it alongside the existing `_hermit_versions[\"hermitd\"]` entry.\n\n### 6b — Merge routines\n\nIn the `routines` array: A row matches a seeded entry when its full skill string (including arguments) or its `id` equals the seeded one's; preserve every field on a matching row. Add an entry below only when no row matches.\n\n```json\n{\n  \"id\": \"hermitd-fitness:morning-brief\",\n  \"schedule\": \"30 7 * * *\",\n  \"skill\": \"hermitd-fitness:fitness-brief --morning\",\n  \"enabled\": true\n},\n{\n  \"id\": \"hermitd-fitness:evening-brief\",\n  \"schedule\": \"30 21 * * *\",\n  \"skill\": \"hermitd-fitness:fitness-brief --evening\",\n  \"enabled\": true\n},\n{\n  \"id\": \"hermitd-fitness:weekly-load-review\",\n  \"schedule\": \"0 18 * * 0\",\n  \"skill\": \"hermitd-fitness:weekly-load-review\",\n  \"enabled\": true\n},\n{\n  \"id\": \"hermitd-fitness:monday-planning\",\n  \"schedule\": \"30 9 * * 1\",\n  \"skill\": \"hermitd-fitness:monday-planning\",\n  \"enabled\": true\n}\n```\n\n### 6c: Merge the weekly patterns routine\n\nMerge this entry into `config.routines` by the same matching rule. Create the array if absent. Append the entry only when no row matches and leave all other config fields unchanged. No prompt is needed for these read-only analyses.\n\n```json\n{\"id\": \"hermitd-fitness:weekly-coaching-patterns\", \"schedule\": \"5 9 * * 1\", \"skill\": \"hermitd:reflect --check-id weekly-coaching-patterns --check hermitd-fitness:weekly-coaching-patterns\", \"enabled\": true, \"precheck\": \".hermit\u002Fbin\u002Ffitness-weekly-patterns-gate\", \"precheck_timeout_s\": 60}\n```\n\nThe weekly routine checks for a trend before waking. Findings pass through reflection gates into the proposal pipeline.\n\nWrite the updated `config.json` using Write tool (full file replacement to ensure valid JSON).\n\n## Native approval rules\n\nIf `needs_target_question` is true, ask with `AskUserQuestion` (header: \"Visibility\") — `target_default` at position 0 with `(recommended)`: **`.local` files** (gitignored — operator-personal) \u002F **Committed files** (shared with teammates). Then record it:\n\n```bash\n.hermit\u002Fbin\u002Fhermitd-run domain-hatch ensure-target hermitd-fitness --target \u003Cchoice>\n```\n\n\nResolve the project settings target through `.hermit\u002Fbin\u002Fhermitd-run domain-hatch preflight hermitd-fitness`. Map `target` (or `target_default` when absent): `local` to `.claude\u002Fsettings.local.json`, `committed` to `.claude\u002Fsettings.json`.\n\nRun `bun ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fnative-permissions.ts \u003Cresolved-settings-file>`. Name any `deny_conflicts` it prints in the final report. On `error`, relay it and stop.\n\n## Step 7 — Final report\n\nPrint a structured summary:\n\n```\nhermitd-fitness {version} setup complete.\n\nInstallation summary:\n  ✓ Prerequisite: hermitd {base_version} confirmed\n  ✓ .env: all four Strava credentials present\n  ✓ .mcp.json: strava server entry written (or was already present)\n  ✓ .gitignore: .mcp.json and .env covered\n  ✓ knowledge-schema.md: fitness types added (or were already present)\n  ✓ config.json: _hermit_versions stamped, {K}\u002F4 routines added, `hermitd-fitness:weekly-coaching-patterns` routine registered with precheck\n\nManual steps remaining:\n  - Restart Claude Code so the `strava` MCP server loads from .mcp.json\n  - Approve the `strava` server when prompted on first use\n  - Run \u002Fmcp to confirm `strava` is connected\n  - Verify connectivity: call mcp__strava__check-strava-connection\n\nGo always-on (recommended):\n  - Docker:     \u002Fhermitd:docker-setup\n      Builds the container and walks you through channel pairing in one go.\n  - Bare tmux:  hermitd start\n      For channels (Discord\u002FTelegram) with tmux, run\n      \u002Fhermitd:channel-setup first.\n\nPrefer to test interactively first? After restarting, run:\n  \u002Fhermitd:hermit-routines load\n    — activates the fitness routines in the current Claude session.\n\nThe always-on runtime activates routines automatically — the interactive\nsteps are only for a test drive before handing over to the runtime.\n\nInstalled skills:\n  \u002Fhermitd-fitness:fitness-brief             — daily morning\u002Fevening brief (--morning|--evening|--slot)\n  \u002Fhermitd-fitness:activity-deep-dive        — per-activity coaching analysis\n  \u002Fhermitd-fitness:weekly-coaching-patterns  — weekly cardiac-drift trend check (weekly routine)\n\nInstalled subagent:\n  @hermitd-fitness:strava-data-cruncher — bulk Strava data aggregation (Haiku)\n\nSecurity reminder: .env and .mcp.json contain real Strava credentials. Both are gitignored — verify before any git push.\n```\n\n---\n\n## Docker network requirements\n\nRead by `\u002Fhermitd:docker-security` when the operator enables LAN containment + DNS policy. Each entry is surfaced as a per-entry confirmation prompt; nothing here is auto-applied.\n\n### Domains (DNS allowlist)\n\n- strava.com\n\n`server=\u002Fstrava.com\u002F...` matches both `www.strava.com` (web) and `api.strava.com` (API) via dnsmasq's subdomain-match semantics. The Strava MCP server (`@r-huijts\u002Fstrava-mcp-server` via `npx`) also needs `npmjs.org`, but that's already in the wizard's seed allowlist for npm\u002Fplugin installs.\n\n### LAN allowlist suggestions\n\n(none — Strava is a cloud service)\n",{"name":5,"description":7,"disable-model-invocation":39},true,"main","79e254360ba999b70a827541bbcfd2d4cc525992","plugins\u002Fhermitd-fitness\u002Fskills\u002Fhatch",16,"https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd","https:\u002F\u002Fhermitd.dev","https:\u002F\u002Fgithub.com\u002Fgtapps","Software engineer from Portugal.\r\nBuilding and deploying agents for real companies.","2026-11-15 03:26:28",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":39},[51,54,57],{"tool":52,"command":53},"npx","npx skills add gtapps\u002Fhermitd --skill hatch",{"tool":55,"command":56},"bunx","bunx skills add gtapps\u002Fhermitd --skill hatch",{"tool":58,"command":59},"pnpm","pnpm dlx skills add gtapps\u002Fhermitd --skill hatch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd-fitness\u002Fskills\u002Fhatch\u002FSKILL.md",[],[63,71,87,103,128,143],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M764SQEZ58RFPJC4T31WZ8P0","task-decide","Record the operator's typed task decision.","https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd\u002Fskills\u002Ftask-decide\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":34},"01M718AB18DTYHVGXA6VF1VVR2","dream","Nightly memory maintenance from transcript ground truth. Verifies, enriches and tidies auto-memory and topic pages with snapshot validation and undo. Also handles 'undo the dream'.","https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd\u002Fskills\u002Fdream\u002FSKILL.md",[],[73,78,79,80,81,82,83,84,85,86],"transcript","with","maintenance","memory","validation","snapshot","pages","auto","memory maintenance",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":34},"01M6HVD4WX8RB5EKH49HM66M8X","when-done-switch-to","Arm a deferred model or effort switch. Use for \"when done switch to\", \"after this drop to sonnet\", or \"switch model when idle\".","https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd\u002Fskills\u002Fwhen-done-switch-to\u002FSKILL.md",[],[94,95,96,97,98,99,100,101,102],"when","done","switch","when done switch to","model","for","use","drop","sonnet",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":34},"01M6HVD0ZA2Q1RD7CA0X8VWF3T","weekly-review","Generate the weekly review report for the current ISO week. Writes to .hermit\u002Fcompiled\u002Freview-weekly-YYYY-Www.md (dev-facing detail) and sends a plain-language channel summary (Delivered \u002F Decisions \u002F Waiting on you \u002F Spend). Runs every Sunday at 23:00 via routine.","https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd\u002Fskills\u002Fweekly-review\u002FSKILL.md",[],[110,111,112,113,114,115,21,116,117,99,118,119,120,121,122,123,124,125,126,127],"weekly review","review","weekly","plain","routine","channel","summary","report","iso","review report","dev","plain-language","detail","you","decisions","via","generate","at",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":34},"01M6HVCW8PHZXSPYAZQBZXB9DX","watch","Background events via the config watch monitor or ad-hoc Monitor tool. Quiet watches cost zero tokens.","https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd\u002Fskills\u002Fwatch\u002FSKILL.md",[],[130,135,136,137,138,139,140,141,32,142,125],"events","ZeRO","tokens","tool","monitor","cost","ad","background",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":34},"01M6HVCRMG53K3Y63WAH59YVFJ","watch-activate","Activate the config watch monitor.","https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd\u002Fskills\u002Fwatch-activate\u002FSKILL.md",[],[150,151,130,139,32],"activate","watch activate"]