[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HV3F8QKBXSFB62GHMP91NR":3,"skill-same:01M6HV3F8QKBXSFB62GHMP91NR":78},{"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":22,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":60,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6HV3F8QKBXSFB62GHMP91NR","capture-activity-rpe",null,"Captures RPE (1-10) and subjective notes when the operator replies to a daily fitness-brief notification on any configured channel. Triggers on inbound channel messages matching RPE grammar while state\u002Fstrava-pending-rpe.json has a sync from the last 24h. Channel-agnostic.","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\u002Fcapture-activity-rpe\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"capture activity rpe","capture","activity","bun","when","pending","notification","rm","last","lab","replies","triggers","MCP","daily","json","Bash","messages","brief","state","plugin","notes","discord","2026-11-10 10:12:30",false,"---\nname: capture-activity-rpe\ndescription: Captures RPE (1-10) and subjective notes when the operator replies to a daily fitness-brief notification on any configured channel. Triggers on inbound channel messages matching RPE grammar while state\u002Fstrava-pending-rpe.json has a sync from the last 24h. Channel-agnostic.\nallowed-tools:\n  - Read\n  - Bash(bun *fitness-lab.ts*)\n  - Bash(rm .hermit\u002Fstate\u002Fstrava-pending-rpe.json)\n  - mcp__plugin_discord_discord__reply\n---\n\n# Capture Activity RPE\n\nRecords the operator's perceived effort and subjective notes for the most recent synced activity.\n\nSelf-triggers on RPE-shaped replies while `state\u002Fstrava-pending-rpe.json` is fresh. The skill's `description` is intentionally narrower than `hermitd:channel-responder`'s so the harness picks it for these specific messages; any non-matching message exits silently and the normal `channel-responder` flow proceeds. Re-checks `allowed_users` itself.\n\n## Steps\n\n1. Read `.hermit\u002Fstate\u002Fstrava-pending-rpe.json`. If the file is absent: exit silently. If `synced_at` is more than 24 hours ago: run `rm .hermit\u002Fstate\u002Fstrava-pending-rpe.json` and exit silently (reply window closed).\n\n2. **Authorization.** Read `.hermit\u002Fconfig.json` → `channels.\u003Cchannel>.allowed_users` for the inbound channel (extract the channel name from the inbound message metadata):\n   - If `allowed_users` exists and the sender's platform user ID is **not** in it: exit silently. No response, no log, no state write.\n   - If `allowed_users` is absent: accept (backwards-compatible).\n   - If `allowed_users` is `[]`: reject all — exit silently.\n\n3. Parse the inbound message body (case-insensitive, leading\u002Ftrailing whitespace stripped):\n\n   ```\n   ^(?:RPE\\s*:?\\s*)?(\\d{1,2})(?:\\s*\u002F\\s*10)?(?:[\\s,:]+(.+))?$\n   ```\n\n   This matches: `7`, `7\u002F10`, `RPE 7`, `RPE: 7`, `RPE:7`, `7 heavy legs`, `RPE 7, heavy legs`, `RPE: 7 heavy legs`.\n\n   - Extract `rpe` (group 1) and `notes` (group 2). If group 2 is absent or an empty string after trim, treat `notes` as `null`.\n   - Validate `rpe` is an integer from 1 to 10 inclusive.\n   - If parse fails or validation fails: exit silently. (Bare `yes`\u002F`no`\u002F`y`\u002F`n` cannot match `\\d{1,2}` so they are naturally excluded; the micro-approval branch in `channel-responder` handles them.)\n\n4. Persist the entry via the script (atomic upsert into `state\u002Factivity-notes.json`, keyed by `\u003Cpending.activity_id>`, overwriting silently):\n\n   ```\n   bun ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ffitness-lab.ts rpe \u003Cpending.activity_id> \u003Crpe> [notes...]\n   ```\n\n   Pass the parsed `rpe`; append the notes words only when group 2 matched (omit entirely when notes are null). The script writes `{rpe, notes, recorded_at}` — `notes` is always present, `null` when none were captured — and stamps `recorded_at` itself. No Strava call is made (the activity ID is supplied, not `latest`), so this never touches the network.\n\n5. Run `rm .hermit\u002Fstate\u002Fstrava-pending-rpe.json` so the same sync cannot bind twice.\n\n6. Reply via the channel's `reply` tool with `{chat_id, text}`. `allowed-tools` only lists Discord (`mcp__plugin_discord_discord__reply`); on non-Discord channels this step will fail with a permission error, but the RPE is already persisted in step 4. Extend `allowed-tools` when adding Telegram or iMessage.\n   ```\n   Got it — RPE \u003Crpe>\u002F10 saved for \u003Cpending.name>.\n   ```\n\n7. **Refresh the deep-dive.** If `pending.sport` is `Run`, re-invoke `\u002Fhermitd-fitness:activity-deep-dive \u003Cpending.activity_id>`. The `fitness-brief` evening run generated this activity's deep-dive before any RPE existed, so re-running now folds the RPE in — the skill reads `state\u002Factivity-notes.json` at its step 3b and overwrites `compiled\u002Factivity-\u003Cid>-*.md`. For non-`Run` sports the brief writes no deep-dive, so skip.\n","# Capture Activity RPE\n\nRecords the operator's perceived effort and subjective notes for the most recent synced activity.\n\nSelf-triggers on RPE-shaped replies while `state\u002Fstrava-pending-rpe.json` is fresh. The skill's `description` is intentionally narrower than `hermitd:channel-responder`'s so the harness picks it for these specific messages; any non-matching message exits silently and the normal `channel-responder` flow proceeds. Re-checks `allowed_users` itself.\n\n## Steps\n\n1. Read `.hermit\u002Fstate\u002Fstrava-pending-rpe.json`. If the file is absent: exit silently. If `synced_at` is more than 24 hours ago: run `rm .hermit\u002Fstate\u002Fstrava-pending-rpe.json` and exit silently (reply window closed).\n\n2. **Authorization.** Read `.hermit\u002Fconfig.json` → `channels.\u003Cchannel>.allowed_users` for the inbound channel (extract the channel name from the inbound message metadata):\n   - If `allowed_users` exists and the sender's platform user ID is **not** in it: exit silently. No response, no log, no state write.\n   - If `allowed_users` is absent: accept (backwards-compatible).\n   - If `allowed_users` is `[]`: reject all — exit silently.\n\n3. Parse the inbound message body (case-insensitive, leading\u002Ftrailing whitespace stripped):\n\n   ```\n   ^(?:RPE\\s*:?\\s*)?(\\d{1,2})(?:\\s*\u002F\\s*10)?(?:[\\s,:]+(.+))?$\n   ```\n\n   This matches: `7`, `7\u002F10`, `RPE 7`, `RPE: 7`, `RPE:7`, `7 heavy legs`, `RPE 7, heavy legs`, `RPE: 7 heavy legs`.\n\n   - Extract `rpe` (group 1) and `notes` (group 2). If group 2 is absent or an empty string after trim, treat `notes` as `null`.\n   - Validate `rpe` is an integer from 1 to 10 inclusive.\n   - If parse fails or validation fails: exit silently. (Bare `yes`\u002F`no`\u002F`y`\u002F`n` cannot match `\\d{1,2}` so they are naturally excluded; the micro-approval branch in `channel-responder` handles them.)\n\n4. Persist the entry via the script (atomic upsert into `state\u002Factivity-notes.json`, keyed by `\u003Cpending.activity_id>`, overwriting silently):\n\n   ```\n   bun ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ffitness-lab.ts rpe \u003Cpending.activity_id> \u003Crpe> [notes...]\n   ```\n\n   Pass the parsed `rpe`; append the notes words only when group 2 matched (omit entirely when notes are null). The script writes `{rpe, notes, recorded_at}` — `notes` is always present, `null` when none were captured — and stamps `recorded_at` itself. No Strava call is made (the activity ID is supplied, not `latest`), so this never touches the network.\n\n5. Run `rm .hermit\u002Fstate\u002Fstrava-pending-rpe.json` so the same sync cannot bind twice.\n\n6. Reply via the channel's `reply` tool with `{chat_id, text}`. `allowed-tools` only lists Discord (`mcp__plugin_discord_discord__reply`); on non-Discord channels this step will fail with a permission error, but the RPE is already persisted in step 4. Extend `allowed-tools` when adding Telegram or iMessage.\n   ```\n   Got it — RPE \u003Crpe>\u002F10 saved for \u003Cpending.name>.\n   ```\n\n7. **Refresh the deep-dive.** If `pending.sport` is `Run`, re-invoke `\u002Fhermitd-fitness:activity-deep-dive \u003Cpending.activity_id>`. The `fitness-brief` evening run generated this activity's deep-dive before any RPE existed, so re-running now folds the RPE in — the skill reads `state\u002Factivity-notes.json` at its step 3b and overwrites `compiled\u002Factivity-\u003Cid>-*.md`. For non-`Run` sports the brief writes no deep-dive, so skip.\n",{"name":5,"description":7,"allowed-tools":50},[51,52,53,54],"Read","Bash(bun *fitness-lab.ts*)","Bash(rm .hermit\u002Fstate\u002Fstrava-pending-rpe.json)","mcp__plugin_discord_discord__reply","main","79e254360ba999b70a827541bbcfd2d4cc525992","plugins\u002Fhermitd-fitness\u002Fskills\u002Fcapture-activity-rpe",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":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add gtapps\u002Fhermitd --skill capture-activity-rpe",{"tool":70,"command":71},"bunx","bunx skills add gtapps\u002Fhermitd --skill capture-activity-rpe",{"tool":73,"command":74},"pnpm","pnpm dlx skills add gtapps\u002Fhermitd --skill capture-activity-rpe","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd-fitness\u002Fskills\u002Fcapture-activity-rpe\u002FSKILL.md",true,[],[79,87,103,118,144,160],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":86},"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":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":45},"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",[],[89,94,95,96,97,98,99,100,101,102],"transcript","with","maintenance","memory","validation","snapshot","pages","auto","memory maintenance",{"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":45},"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",[],[27,110,111,112,113,114,115,116,117],"done","switch","when done switch to","model","for","use","drop","sonnet",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":45},"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",[],[125,126,127,128,129,130,131,132,133,114,134,135,136,137,138,139,140,141,142,143],"weekly review","review","weekly","plain","routine","channel","hermit","summary","report","iso","review report","dev","plain-language","detail","you","decisions","via","generate","at",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":45},"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",[],[146,151,152,153,154,155,156,157,158,159,141],"events","ZeRO","tokens","tool","monitor","cost","ad","config","background",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":45},"01M6HVCRMG53K3Y63WAH59YVFJ","watch-activate","Activate the config watch monitor.","https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd\u002Fskills\u002Fwatch-activate\u002FSKILL.md",[],[167,168,146,155,158],"activate","watch activate"]