[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C3C1PK46QB6Q73CF6JT4DK":3,"skill-same:01M6C3C1PK46QB6Q73CF6JT4DK":178},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":58,"linkOnly":59,"markdownContent":60,"markdownBody":61,"frontMatter":62,"refName":113,"commitSha":114,"skillDirectory":115,"forksCount":116,"repositoryHtmlUrl":117,"repositoryHomepageUrl":13,"ownerHtmlUrl":118,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":119,"install":120,"resources":133},"01M6C3C1PK46QB6Q73CF6JT4DK","evidence-attach-to-slack","Slack 证据文件内联附加","Attach local evidence files (PNG\u002FJPG\u002FGIF\u002FMP4\u002FPDF) to Slack threads so they\nrender INLINE — not as bare file paths or `MEDIA:\u002Fpath` text tokens.\nv1.3 cluster-anchor; v1.4 gist-raw-URL fallback; v1.5 Pre-Send Gate;\nv1.6 OAuth preflight + f-string pitfall; v1.7 misrouted-fix; v1.8 gist\nbinary pitfall (clone-and-replace for PNG\u002FMP4); v1.9 text-file gist delta\n(`gh gist create` works directly for `.patch`\u002F`.diff`\u002F`.json`\u002F`.md`\u002F`.txt`);\nv1.10 MP4 + curl-ARG_MAX quirks (subprocess.run arg-limit + clone-and-replace\ncontent-type for MP4 = `application\u002Foctet-stream`);\nv1.11 bot-side `files:write` scope closed (2026-07-19) — xoxp pending.\nv1.12 added 2 new pitfall rows: (a) `chat.delete` destroys evidence\nattachments if sorted by text-length heuristic (PR #8561 2026-07-24);\n(b) `page.evaluate()` computed style ≠ visual proof — always\n`vision_analyze` pixels before claiming visibility.\nAnti-trigger: plain-text evidence → fenced code blocks.","将本地证据文件（PNG\u002FJPG\u002FGIF\u002FMP4\u002FPDF）附加到 Slack 会话线程，使其以内联方式渲染——而非显示为纯文件路径或 `MEDIA:\u002Fpath` 文本标记。v1.3 集群锚定；v1.4 gist 原始 URL 回退；v1.5 发送前门禁；v1.6 OAuth 预检 + f-string 陷阱；v1.7 错误路由修复；v1.8 gist 二进制文件陷阱（PNG\u002FMP4 采用克隆替换）；v1.9 文本文件 gist 增量更新（`gh gist create` 可直接用于 `.patch`\u002F`.diff`\u002F`.json`\u002F`.md`\u002F`.txt`）；v1.10 MP4 + curl-ARG_MAX 怪异行为（`subprocess.run` 参数限制 + MP4 克隆替换时 content-type = `application\u002Foctet-stream`）；v1.11 机器人端 `files:write` 权限范围已关闭（2026-07-19）——xoxp 待处理。v1.12 新增 2 条陷阱记录：(a) 若按文本长度启发式排序，`chat.delete` 会破坏证据附件（PR #8561 2026-07-24）；(b) `page.evaluate()` 计算样式 ≠ 视觉证明——在声称可见之前务必对像素执行 `vision_analyze`。反触发条件：纯文本证据 → 使用围栏代码块。","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX",null,"01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BREN0B06CC08183RHQ4ETG","即时通讯与消息处理","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57],"slack","attach","evidence attach to slack","evidence","text","send","you","URL","SOUL.md","local","show","files","up","auto","fix","PDF","analyze","show me","Media","browser","code","learn","run","delete","create","commit","bot","MCP","2026-11-10 10:12:30",false,"---\nname: evidence-attach-to-slack\nversion: 1.12.0\ndescription: |\n  Attach local evidence files (PNG\u002FJPG\u002FGIF\u002FMP4\u002FPDF) to Slack threads so they\n  render INLINE — not as bare file paths or `MEDIA:\u002Fpath` text tokens.\n  v1.3 cluster-anchor; v1.4 gist-raw-URL fallback; v1.5 Pre-Send Gate;\n  v1.6 OAuth preflight + f-string pitfall; v1.7 misrouted-fix; v1.8 gist\n  binary pitfall (clone-and-replace for PNG\u002FMP4); v1.9 text-file gist delta\n  (`gh gist create` works directly for `.patch`\u002F`.diff`\u002F`.json`\u002F`.md`\u002F`.txt`);\n  v1.10 MP4 + curl-ARG_MAX quirks (subprocess.run arg-limit + clone-and-replace\n  content-type for MP4 = `application\u002Foctet-stream`);\n  v1.11 bot-side `files:write` scope closed (2026-07-19) — xoxp pending.\n  v1.12 added 2 new pitfall rows: (a) `chat.delete` destroys evidence\n  attachments if sorted by text-length heuristic (PR #8561 2026-07-24);\n  (b) `page.evaluate()` computed style ≠ visual proof — always\n  `vision_analyze` pixels before claiming visibility.\n  Anti-trigger: plain-text evidence → fenced code blocks.\n\nwhen_to_use: |\n  When the user asks for \"before\u002Fafter\", \"screenshot\", \"GIF evidence\", or\n  any message claims visual proof that lives as a local file. Also fires\n  when the user corrects you: \"you forgot the screenshot\" \u002F \"attach the\n  proof as media\" \u002F \"use \u002Fharness and fix it\".\n\n  **Auto-load contract (paired with SOUL.md `evidence-attach-presend-gate`):**\n  Load THIS skill before invoking `mcp__slack__conversations_add_message`\n  or `chat.postMessage` if your draft body contains any of:\n    - `MEDIA:\u002Fabsolute\u002Fpath` token referencing a binary file\n    - absolute path matching `\u002FUsers\u002F[^ ]+\\.(png|jpg|jpeg|gif|webp|mp4|pdf)`\n    - \"BEFORE\"\u002F\"AFTER\"\u002F\"screenshot\"\u002F\"see attached\"\u002F\"here's what it looks like\"\n      alongside any local path\n\ntriggers:\n  - \"attach proof as media\"\n  - \"you forgot the screenshot\"\n  - \"post the screenshot to the thread\"\n  - \"MEDIA: not rendering\"\n  - \"evidence didn't show up in slack\"\n  - \"use \u002Fharness and fix it\"\n  - \"use \u002Flearn and fix it\"\n  - \"show before after in thread\"\n  - \"show screenshots here\"\n  - \"show me screenshots\"\n  - \"see screenshots\"\n  - \"with screenshots\"\n  - \"and screenshots\"\n  - \"and show screenshots\"\n  - \"All PRs need attached media in PR desc and slack\"\n  - \"evidence should be in gist urls\"\n  - \"put evidence in a gist\"\n  - \"don't commit screenshots to the PR\"\n  - \"I need the media evidence on this thread\"\n  - \"where are the screenshots\"\n  - \"post evidence to this thread\"\n  - \"you keep skipping the upload\"\n  - \"you keep skipping this\"\n  - \"\u002Flearn and remember this\"\n  - \"before\u002Fafter\"\n  - \"BEFORE\u002FAFTER\"\n  - \"PNG\"\n  # PRE-SEND GATE TRIGGERS (v1.5.0)\n  - \"MEDIA:\u002Fpath with .png\u002F.jpg\u002F.gif in draft body\"\n  - \"\u002FUsers\u002F...\u002Fpath\u002F.png in draft body\"\n  - \"draft body says BEFORE \u002F AFTER \u002F screenshot \u002F here is what it looks like\"\n  # RECURRING-CORRECTION PHRASES (v1.6.0)\n  - \"you always forget\"\n  - \"you always fail to attach\"\n  - \"you always do Y\"\n  - \"stop forgetting\"\n  - \"stop doing X\"\n  - \"why do you always\"\n  # RECURRING-CORRECTION PHRASES (v1.7.0 — PR #7953, 2026-07-15)\n  - \"use \u002Fbrowser\"\n  - \"use browser to fix your scopes\"\n  - \"why are you struggling so much to show UI screenshots\"\n  - \"fix your scopes\"\n\nallowed-tools:\n  - mcp__slack__conversations_add_message\n  - mcp__slack__conversations_replies\n  - read_file\n  - terminal\n\ncontext: inline\n---\n\n# evidence-attach-to-slack\n\nAttach local evidence files to Slack messages so the user can see them inline in the thread.\n\n## ⚠️ Pre-Send Gate (NEW in v1.5.0 — paired with SOUL.md `## COMMIT: evidence-attach-presend-gate`)\n\n**Before invoking `mcp__slack__conversations_add_message` or `chat.postMessage`, run this gate.**\n\nThe gate regex (lives in SOUL.md, mirrored here for quick check):\n\n```python\nimport re\n\nGATE_PATTERNS = {\n    \"media_token\": re.compile(\n        r\"MEDIA:\u002F[^\\s]+\\.(?:png|jpg|jpeg|gif|webp|mp4|pdf)\\b\", re.IGNORECASE),\n    \"absolute_path\": re.compile(\n        r\"(?:^|\\s)\u002FUsers\u002F[^\\s]+\\.(?:png|jpg|jpeg|gif|webp|mp4|pdf)\\b\", re.IGNORECASE),\n    \"phrase_with_path\": re.compile(\n        r\"(?i)\\b(BEFORE|AFTER|screenshot|see attached|here'?s what it looks like)\\b\"),\n}\n\ndef evidence_gate_fires(draft_text: str) -> bool:\n    return any(p.search(draft_text) for p in GATE_PATTERNS.values())\n```\n\n**If the gate fires, you MUST run the recipe below BEFORE calling the message tool.** Skipping this gate is the exact failure mode that caused PRs #8139, #7953, #8337 to ship with text-only \"evidence\" that the user couldn't see. Verified by `tests\u002Ftest_evidence_attach_presend_contract.py` (8 tests, all green).\n\n**The principle:** when a recurring user correction has hit ≥3 times (as this one has), the fix must be a pre-send gate that intercepts the failure BEFORE the bad message is sent — not a post-hoc remediation rule that fires after the user complains. See `references\u002Frecurring-failure-pattern-2026-07.md` for a brief historical record; its former operational recipes are retired.\n\n## Scope preflight status\n\nDo not run the historical `check_token_scopes.py` helper as an operational\nrouting decision; it contains stale fallback guidance. Use the configured,\nauthorized native uploader and follow the API-error guidance under\n“Missing upload scope” below.\n\n## When to use\n\nYou MUST use this skill when **all** of these hold:\n\n1. You have **local binary evidence** (PNG \u002F JPG \u002F WebP \u002F GIF \u002F MP4 \u002F PDF) on disk — typically from a Playwright\u002FChromium screenshot, ffmpeg-converted GIF, browser recording, or audit-PDF generator.\n2. The artifact is **central to the claim** in your Slack message — i.e. the message says \"BEFORE\u002FAFTER\", \"this is fixed\", \"here's what it looks like\", etc., and the proof is the file itself, not the text around it.\n3. The message will land in a **Slack thread** (most common case) or a Slack DM\u002Fchannel where the user expects to see the evidence inline.\n\nYou MUST NOT use this skill when:\n\n- You have only textual evidence (logs, command output, JSON, code diffs). Paste fenced code blocks instead — Slack renders them as native monospace.\n- The file is on a remote URL. Markdown image syntax (`![alt](https:\u002F\u002F...)`) works for public URLs.\n- The user already has the file (e.g. you uploaded it earlier and they're confirming receipt).\n\n## The recipe — Slack `files.completeUploadExternal` flow\n\nThe `MEDIA:\u002Fpath` inline convention does NOT WORK through the\n`mcp__slack__conversations_add_message` tool — it renders as plain text and\nthe Slack client never receives an attachment. The correct path is the\n3-stage Slack `files.upload` API.\n\n### Stage 1 — Get upload URL\n\n**MUST use `-F` form fields, NOT `-d` JSON.** Verified 2026-07-12 (PR #8337):\nJSON-encoded body silently drops the form fields; the API returns `invalid_arguments`.\n\n```bash\ncurl -fsS -X POST https:\u002F\u002Fslack.com\u002Fapi\u002Ffiles.getUploadURLExternal \\\n    -H \"Authorization: Bearer ${SLACK_BOT_TOKEN}\" \\\n    -F \"filename=before-mobile-wizard-390x844.png\" \\\n    -F \"length=149206\"\n```\n\nReturns `{ \"ok\": true, \"upload_url\": \"https:\u002F\u002Ffiles.slack.com\u002Fupload\u002Fv1\u002F...\", \"file_id\": \"\u003CSLACK_ID>\" }`.\n\n### Stage 2 — POST the file\n\n```bash\ncurl -fsS -X POST \"${upload_url}\" \\\n    -F \"file=@\u002Fabsolute\u002Fpath\u002Fto\u002Fbefore-mobile-wizard-390x844.png\"\n```\n\nReturns `OK - \u003Cbytes_uploaded>` on success.\n\n### Stage 3 — Complete upload + share to thread\n\n**Use form-encoded body, NOT JSON.** Verified 2026-07-12: JSON parser is\nstrict about per-file extra properties; form-encoded parser is permissive.\n\n```bash\ncurl -fsS -X POST https:\u002F\u002Fslack.com\u002Fapi\u002Ffiles.completeUploadExternal \\\n    -H \"Authorization: Bearer ${SLACK_BOT_TOKEN}\" \\\n    -H \"Content-Type: application\u002Fx-www-form-urlencoded\" \\\n    --data-urlencode \"$(python3 -c 'import json,urllib.parse; print(urllib.parse.urlencode({\"files\": json.dumps([{\"id\": \"\u003CSLACK_ID>\", \"title\": \"BEFORE: mobile wizard 390x844\"}])}))')\" \\\n    --data-urlencode \"channel_id=\u003CSLACK_ID>\" \\\n    --data-urlencode \"thread_ts=1783038068.695729\"\n```\n\nOr use `scripts\u002Fupload_batch.py` (canonical parallel uploader) which handles the form-encoding for you.\n\n### Stage 3½ — Post consolidated summary message (MANDATORY)\n\nAfter uploading all the files, post a single text message in the thread that names each attachment file-by-file. **Do NOT skip this step.** The attachments themselves become separate bot messages in the thread, which — combined with the channel-bridge's tendency to echo internal narration into the same thread — can bury the screenshots under 4-8 bot messages. The summary message is the cluster anchor the user actually reads.\n\n### Stage 4 — Re-verify (Pattern A: verify BEFORE summary, NOT after)\n\n**Do NOT re-verify via `mcp__slack__conversations_replies` AFTER posting the summary** — every call to that tool echoes a `:gear: mcp__slack__conversations_replies:` line into the thread as a bot message, which lands AFTER the summary and contradicts the \"ignore the chatter above\" anchor. Verified failure 2026-07-11 PR #8139.\n\n**Pattern A — verify before summary (preferred):** Inside the same `execute_code` that ran Stage 1+2+3 for all N files, call `conversations.replies` ONE time and assert the file_ids landed, THEN post the summary. Pattern B (skip verification) is OK only if you can see uploads succeed in the same turn.\n\n**`chat.getPermalink` is the post-send verification that does NOT echo** (verified 2026-07-15, PR #7953). After posting the summary, call `chat.getPermalink?channel=X&message_ts=Y` — it returns the public URL without spamming the thread with bot messages. Use this for \"did my message land?\" checks after the summary is posted.\n\n**`conversations.replies` `not_in_channel` is NOT a post failure** (NEW v1.8.0). If the bot has `chat:write.public` but is not a member of the channel, `chat.postMessage` succeeds and `chat.getPermalink` returns the URL, but `conversations.replies` and `conversations.history` return `not_in_channel`. Don't treat that error as evidence the post failed — verify via permalink instead.\n\n## Token source\n\n**Use `HERMES_SLACK_BOT_TOKEN`** from `~\u002F.bashrc`. Pull the token explicitly if `subprocess.run(..., shell=False)` doesn't auto-source bashrc.\n\nFor xoxp fallback: `grep '^export SLACK_USER_TOKEN=' ~\u002F.profile | sed 's\u002F^export SLACK_USER_TOKEN=\u002F\u002F;s\u002F\"\u002F\u002Fg'` — it lives in `~\u002F.profile`, NOT `~\u002F.bashrc` (verified 2026-07-14, `bashrc-profile-xapp-drift-blocks-launchd` memory).\n\n**Current scope:** Use the configured authorized uploader and its native upload\nflow. Treat the Slack API response as authoritative for this attempt. If it\nreports a scope error, report the exact blocker and stop; do not route around it\nthrough a public gist, personal browser session, OAuth reinstall, or\ncredential\u002Fscope change.\n\n## Python 3.14 f-string pitfall (NEW in v1.6.0)\n\n**Symptom:** `SyntaxError: leading zeros in decimal integer literals are not permitted` when an f-string contains `{02,04,05}` or similar.\n\n```python\n# WRONG — Python 3.14 parses {02,04,05} as set literal with octal-int SyntaxError\ntext = f\"Briefing dates: {02,04,05}.md\"\n\n# RIGHT — three options:\ntext = f\"Briefing dates: {'02,04,05'}.md\"           # Option A: quote the contents\ntext = f\"Briefing dates: 02.md, 04.md, 05.md\"        # Option B: don't use set-literal-looking syntax\ntext = \"Briefing dates: \" + \",\".join([\"02\", \"04\", \"05\"]) + \".md\"  # Option C: build outside f-string\n```\n\nVerified 2026-07-14 on PR #8139 evidence-post: this exact SyntaxError blocked my first `chat.postMessage` attempt. Quick fix, but the lesson generalizes — any time a date or ID list uses leading zeros, build the string outside the f-string or quote it.\n\n## Common failure modes\n\n(Updated v1.6.0 — added rows for the 2 new failure modes observed today.)\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| Post lands with `[MEDIA:\u002Fpath\u002Fto\u002Ffile.png]` as literal text and `FileCount: 0` | Used the wrong recipe — `mcp__slack__conversations_add_message` doesn't honor `MEDIA:` inline tokens | Run the **Pre-Send Gate** (top of this file) BEFORE invoking the message tool |\n| User says \"you always fail to attach\" \u002F \"you always forget\" | The pre-send gate was not enforced; agent defaulted to `MEDIA:\u002Fpath` text tokens | The user's complaint IS the trigger — load this skill NOW and attach the missing media. Don't argue, don't ask, just upload. |\n| Both configured tokens return `missing_scope: files:write` on Stage 1 | The configured uploader lacks the required scope | Report the exact error and stop. Use only an already-authorized native uploader with its configured scope; do not substitute a public gist, change scopes, or alter credentials. |\n| Stage 1 returns `invalid_arguments` with `missing required field: length, filename` | Used `-d` JSON instead of `-F` form fields. JSON silently drops form fields. | Use `curl -F filename=... -F length=...` (NOT `-d '{\"filename\":...,\"length\":...}'`). |\n| Stage 3 returns `invalid_arguments` with `invalid additional property: initial_comment [json-pointer:\u002Ffiles\u002F0]` | `initial_comment` is a top-level Stage 3 parameter, NOT a per-file property | Move `initial_comment` from `files[i]` to the top-level payload. |\n| `SyntaxError: leading zeros in decimal integer literals` when posting | Python 3.14 parses `{02,04,05}` inside f-string as set literal with octal-int | Quote the contents: `f\"{'02,04,05'}\"` or build the string outside the f-string. |\n| `conversations.replies` shows my message has `FileCount: 0` even though upload succeeded | Slack quirk — `completeUploadExternal` shares surface attachments via `files` array, not `file_count` integer | Verify via the `files` array, not `file_count`. Both are correct; `file_count: 0` is just unreliable. |\n| Attachments uploaded but user says \"where's the screenshot?\" | Internal narration (think-block, tool-call echoes) buried the attachments under 4-8 bot messages | Post the consolidated summary message AFTER the upload batch — it's the cluster anchor the user reads. |\n| Agent `chat.delete`s an evidence attachment by mistake while trying to clean up thread noise (verified 2026-07-24 PR #8561) | `conversations.replies` returned short bot messages interleaved with file-bearing messages. Agent sorted by `text` length, picked the shortest message that \"looked like terminal noise\", and called `chat.delete`. That message's `files` array contained the captioned MP4 — Slack returned `ok:true`, the MP4 vanished from the thread, no recovery. | **NEVER delete bot messages in a thread that contains evidence attachments.** If the thread is cluttered, post ONE clean summary message that re-anchors on the existing native attachments by file name instead of deleting anything. If you absolutely must clean up, only delete messages whose `files` array is empty AND whose `text` does NOT contain BEFORE\u002FAFTER\u002Fscreenshot patterns. Verify intent with a precise `ts` filter — never pick by `text`-length heuristics. |\n| User catches false visual evidence — `page.evaluate()` reported `display:flex, opacity:1` but the element was visually hidden by a sibling (verified 2026-07-24 PR #8561, hit twice) | **v2 evidence pitfall (added 2026-07-24).** `page.evaluate()` returns computed style but does not account for stacking-context painting order, parent stacking contexts, or sibling z-index. An element can have `display:flex, opacity:1, rect.y=X` and still be visually hidden by another element on top. PR #8561 v1+v2 both shipped \"chevron visible\" claims where the chevron was hidden behind sticky `.wizard-navigation` (`z-index:50`). User: \"lmao arrows \u002F your screenshots are showing lmao arrows\". | **ALWAYS vision_analyze the actual screenshot pixel content before claiming visual proof.** Two-step gate: (1) computed style confirms DOM presence, (2) `vision_analyze` confirms pixel-level visibility. If vision returns \"I don't see X\" or \"the area is blank\", the proof is invalid regardless of computed-style state. Companion gate belongs in `~\u002F.hermes\u002Fskills\u002Fvisual-evidence-with-playwright\u002F` (proposed new skill). Also: Playwright `is_mobile=False` + viewport 390x844 matches `matchMedia('(max-width: 768px)')` but does NOT replicate mobile layout (sticky positioning, touch targets) — use `is_mobile=True` for mobile evidence. |\n| Historical gist URL has incorrect content type | Retired workaround path | Do not repair or use public gist evidence as a substitute for authorized native attachment. Report the blocker. |\n| `conversations.replies` returns `not_in_channel` error but my `chat.postMessage` succeeded | **NEW v1.8.0** — Slack quirk: bots with `chat:write.public` can post to public channels they are NOT members of, but the read-side APIs (`conversations.replies`, `conversations.history`) require membership | Don't treat `not_in_channel` on `conversations.replies` as a post failure. Use `chat.getPermalink?channel=X&message_ts=Y` instead — it does NOT require channel membership and returns the public URL. |\n\n\n\n\n\n\n## Missing upload scope\n\nThe former third-tier public-gist fallback is retired. If an authorized native\nupload reports `missing_scope: files:write`, report the exact error and stop.\nUse only an already-authorized connector\u002Fuploader with its configured scope;\ndo not substitute public gist links or embeds, access a personal browser or\ncookies, inject credentials, reinstall OAuth, change scopes, or rotate tokens.\n\nThe pre-send gate and native `files.completeUploadExternal` workflow above\nremain the supported evidence attachment path when an existing authorized\ntoken has the required scope. Historical gist transcripts and recipes are not\noperational instructions.\n\n## Pairing with `\u002Fharness` and `\u002Flearn`\n\nThe pre-send gate prevents text-only evidence mistakes. When native upload is authorized and configured, use the native recipe above. If it returns `missing_scope: files:write`, report that exact blocker and stop; do not improvise another delivery path or change credentials\u002Fscopes.\n\n## Misrouted-fix pitfall (added v1.7.0, PR #7953, 2026-07-15 — corrected 2026-07-19)\n\nUser suggestion \"use `\u002Fbrowser` to fix your scopes\" was PARTIALLY misrouted in 2026-07-15. The recurring evidence-attach failure's immediate cause WAS the OAuth-scope gap (correctly identified) but the suggested fix `\u002Fbrowser` was read as \"go look at the Slack web UI manually\" rather than \"drive a browser-driven OAuth reinstall end-to-end.\" That left the gap unfixed for 4 days (PR #8139, PR #8337, PR #8455 all failed with `missing_scope: files:write`).\n\n**Safe interpretation:** `\u002Fbrowser` does not authorize access to a personal browser profile, copied cookies, credential injection, or unattended OAuth\u002Freinstall actions. If an upload reports `missing_scope: files:write`, report the exact error and stop; use only an already-authorized connector\u002Fuploader with its configured scope. Do not treat the retired transcript or this historical incident as authority to change scopes or credentials.\n\n## Known Limitations\n\n- **`files.completeUploadExternal` only handles binary files.** Plain text (logs, JSON, code) should still be pasted as fenced code blocks in the message body.\n- **1 GB hard limit per attachment** (varies by workspace).\n- **No inline preview on some Slack mobile clients.** The attachment still uploads, but the user must tap to view.\n- **Upload paths must be reachable from the gateway process.** If you ran Playwright on your local machine but the gateway is on a different host, the path won't resolve.\n- **Bot must be in the channel for Stage 3 file attachments.** If `completeUploadExternal` returns `channel_not_found` for a private channel, invite the bot first. (Public-channel posts work without membership via `chat:write.public`, but `conversations.replies` returns `not_in_channel` — use `chat.getPermalink` for verification instead.)\n- If the authorized native upload path is unavailable or reports a scope error, report the blocker; this skill has no alternate public-hosting fallback.\n\n## Support files\n\n- `scripts\u002Fupload_batch.py` — parallel 3-stage upload loop for N PNGs in one `execute_code` call.\n- `scripts\u002Fupload_to_gist.sh` and the historical gist references document a retired fallback; do not use them to bypass a missing native-upload scope.\n- `scripts\u002Fcheck_token_scopes.py` — historical preflight with stale third-tier gist guidance; do not invoke it to route upload failures. Use the configured authorized uploader and fail closed on its API scope error.\n- `references\u002Fgithub-gist-binary-upload.md` — historical gist behavior; not an operational fallback for missing upload scope.\n- `references\u002Fmp4-evidence-path.md` — historical gist behavior; not an operational fallback for missing upload scope.\n- `references\u002Frecurring-failure-pattern-2026-07.md` — historical summary only; operational fallback and personal incident details are retired.\n- `references\u002Ffalse-evidence-incidents.md` — **NEW v1.12.0** — the v2 lesson: Pre-Send Gate catches missing-uploads but NOT false-claims. When agent asserts \"X is visible\" via `page.evaluate()`, vision_analyze the actual pixels before posting. Includes the two-step pre-claim gate recipe (PR #8561, 2026-07-24).\n","# evidence-attach-to-slack\n\nAttach local evidence files to Slack messages so the user can see them inline in the thread.\n\n## ⚠️ Pre-Send Gate (NEW in v1.5.0 — paired with SOUL.md `## COMMIT: evidence-attach-presend-gate`)\n\n**Before invoking `mcp__slack__conversations_add_message` or `chat.postMessage`, run this gate.**\n\nThe gate regex (lives in SOUL.md, mirrored here for quick check):\n\n```python\nimport re\n\nGATE_PATTERNS = {\n    \"media_token\": re.compile(\n        r\"MEDIA:\u002F[^\\s]+\\.(?:png|jpg|jpeg|gif|webp|mp4|pdf)\\b\", re.IGNORECASE),\n    \"absolute_path\": re.compile(\n        r\"(?:^|\\s)\u002FUsers\u002F[^\\s]+\\.(?:png|jpg|jpeg|gif|webp|mp4|pdf)\\b\", re.IGNORECASE),\n    \"phrase_with_path\": re.compile(\n        r\"(?i)\\b(BEFORE|AFTER|screenshot|see attached|here'?s what it looks like)\\b\"),\n}\n\ndef evidence_gate_fires(draft_text: str) -> bool:\n    return any(p.search(draft_text) for p in GATE_PATTERNS.values())\n```\n\n**If the gate fires, you MUST run the recipe below BEFORE calling the message tool.** Skipping this gate is the exact failure mode that caused PRs #8139, #7953, #8337 to ship with text-only \"evidence\" that the user couldn't see. Verified by `tests\u002Ftest_evidence_attach_presend_contract.py` (8 tests, all green).\n\n**The principle:** when a recurring user correction has hit ≥3 times (as this one has), the fix must be a pre-send gate that intercepts the failure BEFORE the bad message is sent — not a post-hoc remediation rule that fires after the user complains. See `references\u002Frecurring-failure-pattern-2026-07.md` for a brief historical record; its former operational recipes are retired.\n\n## Scope preflight status\n\nDo not run the historical `check_token_scopes.py` helper as an operational\nrouting decision; it contains stale fallback guidance. Use the configured,\nauthorized native uploader and follow the API-error guidance under\n“Missing upload scope” below.\n\n## When to use\n\nYou MUST use this skill when **all** of these hold:\n\n1. You have **local binary evidence** (PNG \u002F JPG \u002F WebP \u002F GIF \u002F MP4 \u002F PDF) on disk — typically from a Playwright\u002FChromium screenshot, ffmpeg-converted GIF, browser recording, or audit-PDF generator.\n2. The artifact is **central to the claim** in your Slack message — i.e. the message says \"BEFORE\u002FAFTER\", \"this is fixed\", \"here's what it looks like\", etc., and the proof is the file itself, not the text around it.\n3. The message will land in a **Slack thread** (most common case) or a Slack DM\u002Fchannel where the user expects to see the evidence inline.\n\nYou MUST NOT use this skill when:\n\n- You have only textual evidence (logs, command output, JSON, code diffs). Paste fenced code blocks instead — Slack renders them as native monospace.\n- The file is on a remote URL. Markdown image syntax (`![alt](https:\u002F\u002F...)`) works for public URLs.\n- The user already has the file (e.g. you uploaded it earlier and they're confirming receipt).\n\n## The recipe — Slack `files.completeUploadExternal` flow\n\nThe `MEDIA:\u002Fpath` inline convention does NOT WORK through the\n`mcp__slack__conversations_add_message` tool — it renders as plain text and\nthe Slack client never receives an attachment. The correct path is the\n3-stage Slack `files.upload` API.\n\n### Stage 1 — Get upload URL\n\n**MUST use `-F` form fields, NOT `-d` JSON.** Verified 2026-07-12 (PR #8337):\nJSON-encoded body silently drops the form fields; the API returns `invalid_arguments`.\n\n```bash\ncurl -fsS -X POST https:\u002F\u002Fslack.com\u002Fapi\u002Ffiles.getUploadURLExternal \\\n    -H \"Authorization: Bearer ${SLACK_BOT_TOKEN}\" \\\n    -F \"filename=before-mobile-wizard-390x844.png\" \\\n    -F \"length=149206\"\n```\n\nReturns `{ \"ok\": true, \"upload_url\": \"https:\u002F\u002Ffiles.slack.com\u002Fupload\u002Fv1\u002F...\", \"file_id\": \"\u003CSLACK_ID>\" }`.\n\n### Stage 2 — POST the file\n\n```bash\ncurl -fsS -X POST \"${upload_url}\" \\\n    -F \"file=@\u002Fabsolute\u002Fpath\u002Fto\u002Fbefore-mobile-wizard-390x844.png\"\n```\n\nReturns `OK - \u003Cbytes_uploaded>` on success.\n\n### Stage 3 — Complete upload + share to thread\n\n**Use form-encoded body, NOT JSON.** Verified 2026-07-12: JSON parser is\nstrict about per-file extra properties; form-encoded parser is permissive.\n\n```bash\ncurl -fsS -X POST https:\u002F\u002Fslack.com\u002Fapi\u002Ffiles.completeUploadExternal \\\n    -H \"Authorization: Bearer ${SLACK_BOT_TOKEN}\" \\\n    -H \"Content-Type: application\u002Fx-www-form-urlencoded\" \\\n    --data-urlencode \"$(python3 -c 'import json,urllib.parse; print(urllib.parse.urlencode({\"files\": json.dumps([{\"id\": \"\u003CSLACK_ID>\", \"title\": \"BEFORE: mobile wizard 390x844\"}])}))')\" \\\n    --data-urlencode \"channel_id=\u003CSLACK_ID>\" \\\n    --data-urlencode \"thread_ts=1783038068.695729\"\n```\n\nOr use `scripts\u002Fupload_batch.py` (canonical parallel uploader) which handles the form-encoding for you.\n\n### Stage 3½ — Post consolidated summary message (MANDATORY)\n\nAfter uploading all the files, post a single text message in the thread that names each attachment file-by-file. **Do NOT skip this step.** The attachments themselves become separate bot messages in the thread, which — combined with the channel-bridge's tendency to echo internal narration into the same thread — can bury the screenshots under 4-8 bot messages. The summary message is the cluster anchor the user actually reads.\n\n### Stage 4 — Re-verify (Pattern A: verify BEFORE summary, NOT after)\n\n**Do NOT re-verify via `mcp__slack__conversations_replies` AFTER posting the summary** — every call to that tool echoes a `:gear: mcp__slack__conversations_replies:` line into the thread as a bot message, which lands AFTER the summary and contradicts the \"ignore the chatter above\" anchor. Verified failure 2026-07-11 PR #8139.\n\n**Pattern A — verify before summary (preferred):** Inside the same `execute_code` that ran Stage 1+2+3 for all N files, call `conversations.replies` ONE time and assert the file_ids landed, THEN post the summary. Pattern B (skip verification) is OK only if you can see uploads succeed in the same turn.\n\n**`chat.getPermalink` is the post-send verification that does NOT echo** (verified 2026-07-15, PR #7953). After posting the summary, call `chat.getPermalink?channel=X&message_ts=Y` — it returns the public URL without spamming the thread with bot messages. Use this for \"did my message land?\" checks after the summary is posted.\n\n**`conversations.replies` `not_in_channel` is NOT a post failure** (NEW v1.8.0). If the bot has `chat:write.public` but is not a member of the channel, `chat.postMessage` succeeds and `chat.getPermalink` returns the URL, but `conversations.replies` and `conversations.history` return `not_in_channel`. Don't treat that error as evidence the post failed — verify via permalink instead.\n\n## Token source\n\n**Use `HERMES_SLACK_BOT_TOKEN`** from `~\u002F.bashrc`. Pull the token explicitly if `subprocess.run(..., shell=False)` doesn't auto-source bashrc.\n\nFor xoxp fallback: `grep '^export SLACK_USER_TOKEN=' ~\u002F.profile | sed 's\u002F^export SLACK_USER_TOKEN=\u002F\u002F;s\u002F\"\u002F\u002Fg'` — it lives in `~\u002F.profile`, NOT `~\u002F.bashrc` (verified 2026-07-14, `bashrc-profile-xapp-drift-blocks-launchd` memory).\n\n**Current scope:** Use the configured authorized uploader and its native upload\nflow. Treat the Slack API response as authoritative for this attempt. If it\nreports a scope error, report the exact blocker and stop; do not route around it\nthrough a public gist, personal browser session, OAuth reinstall, or\ncredential\u002Fscope change.\n\n## Python 3.14 f-string pitfall (NEW in v1.6.0)\n\n**Symptom:** `SyntaxError: leading zeros in decimal integer literals are not permitted` when an f-string contains `{02,04,05}` or similar.\n\n```python\n# WRONG — Python 3.14 parses {02,04,05} as set literal with octal-int SyntaxError\ntext = f\"Briefing dates: {02,04,05}.md\"\n\n# RIGHT — three options:\ntext = f\"Briefing dates: {'02,04,05'}.md\"           # Option A: quote the contents\ntext = f\"Briefing dates: 02.md, 04.md, 05.md\"        # Option B: don't use set-literal-looking syntax\ntext = \"Briefing dates: \" + \",\".join([\"02\", \"04\", \"05\"]) + \".md\"  # Option C: build outside f-string\n```\n\nVerified 2026-07-14 on PR #8139 evidence-post: this exact SyntaxError blocked my first `chat.postMessage` attempt. Quick fix, but the lesson generalizes — any time a date or ID list uses leading zeros, build the string outside the f-string or quote it.\n\n## Common failure modes\n\n(Updated v1.6.0 — added rows for the 2 new failure modes observed today.)\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| Post lands with `[MEDIA:\u002Fpath\u002Fto\u002Ffile.png]` as literal text and `FileCount: 0` | Used the wrong recipe — `mcp__slack__conversations_add_message` doesn't honor `MEDIA:` inline tokens | Run the **Pre-Send Gate** (top of this file) BEFORE invoking the message tool |\n| User says \"you always fail to attach\" \u002F \"you always forget\" | The pre-send gate was not enforced; agent defaulted to `MEDIA:\u002Fpath` text tokens | The user's complaint IS the trigger — load this skill NOW and attach the missing media. Don't argue, don't ask, just upload. |\n| Both configured tokens return `missing_scope: files:write` on Stage 1 | The configured uploader lacks the required scope | Report the exact error and stop. Use only an already-authorized native uploader with its configured scope; do not substitute a public gist, change scopes, or alter credentials. |\n| Stage 1 returns `invalid_arguments` with `missing required field: length, filename` | Used `-d` JSON instead of `-F` form fields. JSON silently drops form fields. | Use `curl -F filename=... -F length=...` (NOT `-d '{\"filename\":...,\"length\":...}'`). |\n| Stage 3 returns `invalid_arguments` with `invalid additional property: initial_comment [json-pointer:\u002Ffiles\u002F0]` | `initial_comment` is a top-level Stage 3 parameter, NOT a per-file property | Move `initial_comment` from `files[i]` to the top-level payload. |\n| `SyntaxError: leading zeros in decimal integer literals` when posting | Python 3.14 parses `{02,04,05}` inside f-string as set literal with octal-int | Quote the contents: `f\"{'02,04,05'}\"` or build the string outside the f-string. |\n| `conversations.replies` shows my message has `FileCount: 0` even though upload succeeded | Slack quirk — `completeUploadExternal` shares surface attachments via `files` array, not `file_count` integer | Verify via the `files` array, not `file_count`. Both are correct; `file_count: 0` is just unreliable. |\n| Attachments uploaded but user says \"where's the screenshot?\" | Internal narration (think-block, tool-call echoes) buried the attachments under 4-8 bot messages | Post the consolidated summary message AFTER the upload batch — it's the cluster anchor the user reads. |\n| Agent `chat.delete`s an evidence attachment by mistake while trying to clean up thread noise (verified 2026-07-24 PR #8561) | `conversations.replies` returned short bot messages interleaved with file-bearing messages. Agent sorted by `text` length, picked the shortest message that \"looked like terminal noise\", and called `chat.delete`. That message's `files` array contained the captioned MP4 — Slack returned `ok:true`, the MP4 vanished from the thread, no recovery. | **NEVER delete bot messages in a thread that contains evidence attachments.** If the thread is cluttered, post ONE clean summary message that re-anchors on the existing native attachments by file name instead of deleting anything. If you absolutely must clean up, only delete messages whose `files` array is empty AND whose `text` does NOT contain BEFORE\u002FAFTER\u002Fscreenshot patterns. Verify intent with a precise `ts` filter — never pick by `text`-length heuristics. |\n| User catches false visual evidence — `page.evaluate()` reported `display:flex, opacity:1` but the element was visually hidden by a sibling (verified 2026-07-24 PR #8561, hit twice) | **v2 evidence pitfall (added 2026-07-24).** `page.evaluate()` returns computed style but does not account for stacking-context painting order, parent stacking contexts, or sibling z-index. An element can have `display:flex, opacity:1, rect.y=X` and still be visually hidden by another element on top. PR #8561 v1+v2 both shipped \"chevron visible\" claims where the chevron was hidden behind sticky `.wizard-navigation` (`z-index:50`). User: \"lmao arrows \u002F your screenshots are showing lmao arrows\". | **ALWAYS vision_analyze the actual screenshot pixel content before claiming visual proof.** Two-step gate: (1) computed style confirms DOM presence, (2) `vision_analyze` confirms pixel-level visibility. If vision returns \"I don't see X\" or \"the area is blank\", the proof is invalid regardless of computed-style state. Companion gate belongs in `~\u002F.hermes\u002Fskills\u002Fvisual-evidence-with-playwright\u002F` (proposed new skill). Also: Playwright `is_mobile=False` + viewport 390x844 matches `matchMedia('(max-width: 768px)')` but does NOT replicate mobile layout (sticky positioning, touch targets) — use `is_mobile=True` for mobile evidence. |\n| Historical gist URL has incorrect content type | Retired workaround path | Do not repair or use public gist evidence as a substitute for authorized native attachment. Report the blocker. |\n| `conversations.replies` returns `not_in_channel` error but my `chat.postMessage` succeeded | **NEW v1.8.0** — Slack quirk: bots with `chat:write.public` can post to public channels they are NOT members of, but the read-side APIs (`conversations.replies`, `conversations.history`) require membership | Don't treat `not_in_channel` on `conversations.replies` as a post failure. Use `chat.getPermalink?channel=X&message_ts=Y` instead — it does NOT require channel membership and returns the public URL. |\n\n\n\n\n\n\n## Missing upload scope\n\nThe former third-tier public-gist fallback is retired. If an authorized native\nupload reports `missing_scope: files:write`, report the exact error and stop.\nUse only an already-authorized connector\u002Fuploader with its configured scope;\ndo not substitute public gist links or embeds, access a personal browser or\ncookies, inject credentials, reinstall OAuth, change scopes, or rotate tokens.\n\nThe pre-send gate and native `files.completeUploadExternal` workflow above\nremain the supported evidence attachment path when an existing authorized\ntoken has the required scope. Historical gist transcripts and recipes are not\noperational instructions.\n\n## Pairing with `\u002Fharness` and `\u002Flearn`\n\nThe pre-send gate prevents text-only evidence mistakes. When native upload is authorized and configured, use the native recipe above. If it returns `missing_scope: files:write`, report that exact blocker and stop; do not improvise another delivery path or change credentials\u002Fscopes.\n\n## Misrouted-fix pitfall (added v1.7.0, PR #7953, 2026-07-15 — corrected 2026-07-19)\n\nUser suggestion \"use `\u002Fbrowser` to fix your scopes\" was PARTIALLY misrouted in 2026-07-15. The recurring evidence-attach failure's immediate cause WAS the OAuth-scope gap (correctly identified) but the suggested fix `\u002Fbrowser` was read as \"go look at the Slack web UI manually\" rather than \"drive a browser-driven OAuth reinstall end-to-end.\" That left the gap unfixed for 4 days (PR #8139, PR #8337, PR #8455 all failed with `missing_scope: files:write`).\n\n**Safe interpretation:** `\u002Fbrowser` does not authorize access to a personal browser profile, copied cookies, credential injection, or unattended OAuth\u002Freinstall actions. If an upload reports `missing_scope: files:write`, report the exact error and stop; use only an already-authorized connector\u002Fuploader with its configured scope. Do not treat the retired transcript or this historical incident as authority to change scopes or credentials.\n\n## Known Limitations\n\n- **`files.completeUploadExternal` only handles binary files.** Plain text (logs, JSON, code) should still be pasted as fenced code blocks in the message body.\n- **1 GB hard limit per attachment** (varies by workspace).\n- **No inline preview on some Slack mobile clients.** The attachment still uploads, but the user must tap to view.\n- **Upload paths must be reachable from the gateway process.** If you ran Playwright on your local machine but the gateway is on a different host, the path won't resolve.\n- **Bot must be in the channel for Stage 3 file attachments.** If `completeUploadExternal` returns `channel_not_found` for a private channel, invite the bot first. (Public-channel posts work without membership via `chat:write.public`, but `conversations.replies` returns `not_in_channel` — use `chat.getPermalink` for verification instead.)\n- If the authorized native upload path is unavailable or reports a scope error, report the blocker; this skill has no alternate public-hosting fallback.\n\n## Support files\n\n- `scripts\u002Fupload_batch.py` — parallel 3-stage upload loop for N PNGs in one `execute_code` call.\n- `scripts\u002Fupload_to_gist.sh` and the historical gist references document a retired fallback; do not use them to bypass a missing native-upload scope.\n- `scripts\u002Fcheck_token_scopes.py` — historical preflight with stale third-tier gist guidance; do not invoke it to route upload failures. Use the configured authorized uploader and fail closed on its API scope error.\n- `references\u002Fgithub-gist-binary-upload.md` — historical gist behavior; not an operational fallback for missing upload scope.\n- `references\u002Fmp4-evidence-path.md` — historical gist behavior; not an operational fallback for missing upload scope.\n- `references\u002Frecurring-failure-pattern-2026-07.md` — historical summary only; operational fallback and personal incident details are retired.\n- `references\u002Ffalse-evidence-incidents.md` — **NEW v1.12.0** — the v2 lesson: Pre-Send Gate catches missing-uploads but NOT false-claims. When agent asserts \"X is visible\" via `page.evaluate()`, vision_analyze the actual pixels before posting. Includes the two-step pre-claim gate recipe (PR #8561, 2026-07-24).\n",{"name":5,"context":63,"version":64,"triggers":65,"description":106,"when_to_use":107,"allowed-tools":108},"inline","1.12.0",[66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],"attach proof as media","you forgot the screenshot","post the screenshot to the thread","MEDIA: not rendering","evidence didn't show up in slack","use \u002Fharness and fix it","use \u002Flearn and fix it","show before after in thread","show screenshots here","show me screenshots","see screenshots","with screenshots","and screenshots","and show screenshots","All PRs need attached media in PR desc and slack","evidence should be in gist urls","put evidence in a gist","don't commit screenshots to the PR","I need the media evidence on this thread","where are the screenshots","post evidence to this thread","you keep skipping the upload","you keep skipping this","\u002Flearn and remember this","before\u002Fafter","BEFORE\u002FAFTER","PNG","MEDIA:\u002Fpath with .png\u002F.jpg\u002F.gif in draft body","\u002FUsers\u002F...\u002Fpath\u002F.png in draft body","draft body says BEFORE \u002F AFTER \u002F screenshot \u002F here is what it looks like","you always forget","you always fail to attach","you always do Y","stop forgetting","stop doing X","why do you always","use \u002Fbrowser","use browser to fix your scopes","why are you struggling so much to show UI screenshots","fix your scopes","Attach local evidence files (PNG\u002FJPG\u002FGIF\u002FMP4\u002FPDF) to Slack threads so they\nrender INLINE — not as bare file paths or `MEDIA:\u002Fpath` text tokens.\nv1.3 cluster-anchor; v1.4 gist-raw-URL fallback; v1.5 Pre-Send Gate;\nv1.6 OAuth preflight + f-string pitfall; v1.7 misrouted-fix; v1.8 gist\nbinary pitfall (clone-and-replace for PNG\u002FMP4); v1.9 text-file gist delta\n(`gh gist create` works directly for `.patch`\u002F`.diff`\u002F`.json`\u002F`.md`\u002F`.txt`);\nv1.10 MP4 + curl-ARG_MAX quirks (subprocess.run arg-limit + clone-and-replace\ncontent-type for MP4 = `application\u002Foctet-stream`);\nv1.11 bot-side `files:write` scope closed (2026-07-19) — xoxp pending.\nv1.12 added 2 new pitfall rows: (a) `chat.delete` destroys evidence\nattachments if sorted by text-length heuristic (PR #8561 2026-07-24);\n(b) `page.evaluate()` computed style ≠ visual proof — always\n`vision_analyze` pixels before claiming visibility.\nAnti-trigger: plain-text evidence → fenced code blocks.\n","When the user asks for \"before\u002Fafter\", \"screenshot\", \"GIF evidence\", or\nany message claims visual proof that lives as a local file. Also fires\nwhen the user corrects you: \"you forgot the screenshot\" \u002F \"attach the\nproof as media\" \u002F \"use \u002Fharness and fix it\".\n\n**Auto-load contract (paired with SOUL.md `evidence-attach-presend-gate`):**\nLoad THIS skill before invoking `mcp__slack__conversations_add_message`\nor `chat.postMessage` if your draft body contains any of:\n  - `MEDIA:\u002Fabsolute\u002Fpath` token referencing a binary file\n  - absolute path matching `\u002FUsers\u002F[^ ]+\\.(png|jpg|jpeg|gif|webp|mp4|pdf)`\n  - \"BEFORE\"\u002F\"AFTER\"\u002F\"screenshot\"\u002F\"see attached\"\u002F\"here's what it looks like\"\n    alongside any local path\n",[109,110,111,112],"mcp__slack__conversations_add_message","mcp__slack__conversations_replies","read_file","terminal","main","42ccd02cbf5e8e47839dc3eab6fc754dc6b339cf","hermes\u002Fskills\u002Fevidence-attach-to-slack",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":9,"skillName":5,"commands":121,"prompt":131,"zipAvailable":132},[122,125,128],{"tool":123,"command":124},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill evidence-attach-to-slack",{"tool":126,"command":127},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill evidence-attach-to-slack",{"tool":129,"command":130},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill evidence-attach-to-slack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002FSKILL.md",true,[134,140,144,148,152,156,162,166,170,174],{"path":135,"resourceType":136,"resourceTypeDesc":137,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Ffalse-evidence-incidents.md","REFERENCE","参考文档",5918,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Freferences\u002Ffalse-evidence-incidents.md",{"path":141,"resourceType":136,"resourceTypeDesc":137,"sizeBytes":142,"sourceHtmlUrl":143},"references\u002Fgithub-gist-binary-upload.md",671,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Freferences\u002Fgithub-gist-binary-upload.md",{"path":145,"resourceType":136,"resourceTypeDesc":137,"sizeBytes":146,"sourceHtmlUrl":147},"references\u002Fmp4-evidence-path.md",705,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Freferences\u002Fmp4-evidence-path.md",{"path":149,"resourceType":136,"resourceTypeDesc":137,"sizeBytes":150,"sourceHtmlUrl":151},"references\u002Frecurring-failure-pattern-2026-07.md",949,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Freferences\u002Frecurring-failure-pattern-2026-07.md",{"path":153,"resourceType":136,"resourceTypeDesc":137,"sizeBytes":154,"sourceHtmlUrl":155},"references\u002Ftest-v1.6.0-extensions.md",631,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Freferences\u002Ftest-v1.6.0-extensions.md",{"path":157,"resourceType":158,"resourceTypeDesc":159,"sizeBytes":160,"sourceHtmlUrl":161},"scripts\u002Fcheck_token_scopes.py","SCRIPT","脚本",4264,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Fscripts\u002Fcheck_token_scopes.py",{"path":163,"resourceType":158,"resourceTypeDesc":159,"sizeBytes":164,"sourceHtmlUrl":165},"scripts\u002Fupload_batch.py",5509,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Fscripts\u002Fupload_batch.py",{"path":167,"resourceType":158,"resourceTypeDesc":159,"sizeBytes":168,"sourceHtmlUrl":169},"scripts\u002Fupload_to_gist.sh",5209,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Fscripts\u002Fupload_to_gist.sh",{"path":171,"resourceType":158,"resourceTypeDesc":159,"sizeBytes":172,"sourceHtmlUrl":173},"tests\u002Ftest_evidence_attach_presend_contract.py",5759,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Ftests\u002Ftest_evidence_attach_presend_contract.py",{"path":175,"resourceType":158,"resourceTypeDesc":159,"sizeBytes":176,"sourceHtmlUrl":177},"tests\u002Ftest_post_upload_contract.py",11942,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fevidence-attach-to-slack\u002Ftests\u002Ftest_post_upload_contract.py",[179,187,194,202,210,219],{"skillNo":180,"name":181,"nameZh":13,"description":182,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":186},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":188,"name":189,"nameZh":13,"description":190,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":186},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":195,"name":196,"nameZh":13,"description":197,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":201},"01M7622KQJ32AV4K5BXEMVSSEB","pr","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":203,"name":204,"nameZh":13,"description":205,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":209},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":211,"name":212,"nameZh":13,"description":213,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":214,"licenseFileUrl":215,"sourceHtmlUrl":216,"categories":217,"keywords":218,"publishedAt":209},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":220,"name":221,"nameZh":13,"description":222,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":223,"categories":224,"keywords":225,"publishedAt":209},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]