[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAPQZE8H31K2X0FPDEF8D8":3,"skill-same:01M6CAPQZE8H31K2X0FPDEF8D8":266},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":25,"publishedAt":60,"linkOnly":61,"markdownContent":62,"markdownBody":63,"frontMatter":64,"refName":93,"commitSha":94,"skillDirectory":95,"forksCount":96,"repositoryHtmlUrl":97,"repositoryHomepageUrl":6,"ownerHtmlUrl":98,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":99,"install":100,"resources":113},"01M6CAPQZE8H31K2X0FPDEF8D8","social-poster",null,"Discover relevant Reddit communities and existing Reddit\u002FX discussions for\neach source post; draft standalone posts or tailored replies. Reddit and X\nare the default destinations. Other supported platforms are explicit opt-ins.\nDraft requests never auto-stage or publish. Publication requires explicit\nauthorization for reviewed content, account, and destinations.","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX","01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[26,27,28,29,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,58,59],"social poster","social","poster","social post","default","show","project","discover","communities","never","relevant","posts","threads","standalone","inline","hacker","when","instagram","share","content","publish","authorization","Bash","grep","twitter","linkedin","prepare","command","read","write","edit","user","use","auto","2026-11-10 10:12:30",false,"---\nname: social-poster\nversion: 0.1.0\ndescription: |\n  Discover relevant Reddit communities and existing Reddit\u002FX discussions for\n  each source post; draft standalone posts or tailored replies. Reddit and X\n  are the default destinations. Other supported platforms are explicit opt-ins.\n  Draft requests never auto-stage or publish. Publication requires explicit\n  authorization for reviewed content, account, and destinations.\nwhen_to_use: |\n  Use when the user asks to draft a post for any social platform, share a project\n  on LinkedIn\u002FHN\u002FTwitter, post to Reddit, prepare a Show HN, draft an Instagram\n  caption, or any \"draft a post\" \u002F \"post to \u003Cplatform>\" \u002F \"share on social\" \u002F\n  \"\u002Fsocial \u003Cintent>\" request. Also fires on \"\u002Fsocial \u003Cintent>\" slash command.\nallowed-tools:\n  - Read\n  - Write\n  - Bash\n  - Edit\n  - Grep\ntriggers:\n  - \"draft a social post\"\n  - \"draft a post\"\n  - \"post to social\"\n  - \"post to linkedin\"\n  - \"post to hacker news\"\n  - \"post to reddit\"\n  - \"post to twitter\"\n  - \"post to threads\"\n  - \"post to facebook\"\n  - \"post to instagram\"\n  - \"draft linkedin post\"\n  - \"draft hacker news post\"\n  - \"draft reddit post\"\n  - \"draft tweet\"\n  - \"draft twitter thread\"\n  - \"draft instagram caption\"\n  - \"draft threads post\"\n  - \"show hn\"\n  - \"social poster\"\n  - \"\u002Fsocial\"\ncontext: inline\n---\n\n# Social Poster — Draft-Only, POST APPROVED Gated\n\n## Request scope and supported access (takes precedence over legacy recipes)\n\nDefault research, drafting, staging, and publishing destination allowlist:\n`reddit,twitter` (`x` is an alias for `twitter`). LinkedIn, Instagram, Facebook,\nand **Meta Threads** are excluded unless explicitly selected in the current\nrequest. “X threads” means discussions on Twitter\u002FX, never Meta Threads.\nOther supported platforms remain explicit opt-ins. A supplied source URL may\nbe read as source evidence without opting its platform into destination research.\n\nPass the same resolved allowlist to the drafter's `--platforms`, stagers'\n`--only`, and publisher's `--platforms`. Omitted script flags default to\nReddit\u002FX, even if a directory contains old excluded-platform drafts. Never\ninfer opt-in from stale files, manifest history, or enabled cross-share toggles.\nFor Instagram, keep Threads\u002FFacebook cross-share disabled unless each is\nexplicitly selected; stop if that cannot be verified. Selection does not grant\npublication permission.\n\n`reddit` selects the Reddit family; `reddit_example` selects only r\u002Fexample.\nThe drafter accepts either form. `--reddit-subs` narrows the Reddit targets;\nwithout it, scoped selections name their own targets and a bare `reddit` creates\nan untargeted local draft. For example, `--platforms reddit_example\n--reddit-subs example,sibling` produces only `reddit_example.md`. Disjoint\nsubreddit selections and empty\u002Finvalid allowlists are errors, not successful\nempty draft runs. The publisher intersects token and flag scopes symmetrically:\n`POST APPROVED reddit_example` plus `--platforms reddit` still authorizes only\n`reddit_example`, never sibling communities. An empty intersection exits with\nan error before submission; it cannot fall back to default permission.\n\nThe latest request controls the action: **draft\u002Fresearch means discovery and\nlocal drafts only**, with no auto-staging, scheduling, or publishing. Stage only\nwhen requested. Publish only reviewed content to the verified account and\nselected destinations after explicit authorization; preserve any independently\nrequired tool confirmation. A prior approval does not override a later draft\nrequest. No magic user phrase is required; legacy tokens are internal bookkeeping.\n\nUse supported read-only search, authorized connectors, or the normal browser\nsession. Stop and report access limits rather than extracting cookies\u002Ftokens,\ncopying credentials, decrypting browser stores, or using hidden API fallbacks.\nDo not run `cookie_inject_and_stage.py` or legacy credential\u002Ffallback recipes.\nThese rules apply to every platform and all referenced historical notes.\n\n## Phase 0 — Per-source discovery (agent workflow, not a crawler)\n\nFor **each input source URL**, independently:\n\n1. Inspect the original post, author, full text, linked context, and original\n   photo\u002Fvideo. Record what was actually visible and any inaccessible media;\n   search snippets are leads, not proof the full source was read. Do not invent\n   details or reuse the announcement template for unrelated commentary.\n2. Find relevant Reddit communities **and specific existing Reddit\u002FX threads**.\n   Search by the source's topic, claims, terminology, and canonical links.\n   Open candidate discussions, verify their original and latest activity dates,\n   and read enough context to explain relevance. Prefer active discussions;\n   label older threads, locked\u002Farchived threads, and any uncertainty.\n3. **Mandatory Reddit promotion-rule gate:** before recommending a destination or drafting for it,\n   verify current subreddit-specific rules and pinned guidance for promotion eligibility,\n   affiliation disclosure, required flair, frequency\u002Fduplicate limits,\n   AI\u002Fbot restrictions, account eligibility (such as age, karma, or prior\n   participation), and link policies. Record each rule source URL and check date,\n   relevant restrictions, and a disposition: `allowed`, `conditional`,\n   `prohibited`, or `unverified`. For `conditional`, identify the conditions and\n   verify that the proposed content and intended account satisfy them before\n   recommending or drafting. If rules or account eligibility are inaccessible or ambiguous,\n   do not assume promotion is allowed: mark the destination `unverified` and\n   withhold a destination-specific promotional draft, or choose a verified alternative.\n   Skip prohibited promotion even if the community was explicitly requested.\n   Historical rule tables are leads only, never current verification. Passing\n   this gate does not grant publication permission.\n4. Inspect the intended user's prior posts **and replies** for matching source\n   links, text\u002Fmedia, or the same topic in each candidate community\u002Fthread.\n   Record existing permalinks and the history window searched. If identity or\n   history access is missing, mark duplicate checking incomplete, do not claim\n   no duplicates, and do not publish until the uncertainty is resolved.\n5. Choose a new **standalone post**, a useful **tailored reply**, or **skip** for\n   each target. Replies must answer the actual discussion and add value; avoid\n   promotional link drops or repeating the user's existing contribution.\n   Return an existing matching permalink instead of another copy, even if\n   publishing was approved. Recheck live history immediately before any\n   authorized submission and after uncertain outcomes before retrying.\n6. Hand-author source-faithful drafts for the chosen targets. Use separate local\n   directories per source if invoking the single-source template CLI. The CLI\n   does not search, inspect media, verify rules\u002Fdates, or check account history;\n   its manifest explicitly reports `discovery_status: not_performed`.\n\n### Per-source discovery output contract\n\nReturn a separate section keyed by **every input source URL**, including sources\nthat are blocked or have no suitable targets. Do not pool multiple source posts\ninto a single unmapped recommendation. Each section must include:\n\n- Source URL, verified source summary, original media inspection and access limits.\n- For each target: platform, exact community URL and exact existing thread URL\n  (for replies), discussion date\u002Flatest activity, relevance, current rules URL\n  and checked-at date, flair\u002Flink constraints, and prior-user-post\u002Freply evidence.\n  For Reddit, include the promotion disposition (`allowed`, `conditional`,\n  `prohibited`, or `unverified`) and evidence for any eligibility conditions.\n- Decision: `standalone`, `reply`, `existing`, or `skip`, with rationale. Include\n  the exact existing permalink when found; no duplicate draft for that target.\n- The complete tailored draft (Reddit title\u002Fbody for standalone; reply text for\n  replies), explicitly mapped to its target URL and source URL. Standalone\n  targets use the community URL, not an invented future post permalink.\n- Coverage limits: searches and history window actually checked, inaccessible\n  sources\u002Fmedia\u002Frules\u002Fhistory, unverified dates, and platforms excluded by scope.\n  If no suitable target exists, say so; never fabricate links or search receipts.\n- State: `draft only`, `staged` only with verified requested staging evidence,\n  or `published` only with an authorized, verified final permalink.\n\nThis is a procedural output contract. Offline instruction tests can check that\nit is present; they cannot establish that a real discovery run occurred.\n\n## Twitter\u002FX browser workflow\n\nThis section takes precedence over generic staging\u002Fauth recipes for Twitter\u002FX.\nDraft and stage requests remain unpublished. An ordinary explicit request such\nas \"Cross post this to Twitter\" authorizes publishing the identified, reviewed\ncontent to the intended account and destination. Do not require the user to\nrepeat a magic phrase. Ask only for missing content\u002Faccount\u002Fdestination details\nor confirmation independently required by the active tool or policy. Material\nchanges to the approved content or destination need renewed approval.\n\n`POST APPROVED` is an internal execution token for legacy publisher scripts,\nnot a required user phrase. Supply it only after recording the actual user\ninstruction and verified account\u002Fcontent, and always pass the selected platform\nallowlist; never use the token to manufacture permission. If an active tool or\npolicy requires separate confirmation, obtain it normally. Invocation, login,\nand staging alone do not authorize posting, and no future posts are approved.\n\n1. Reuse a supported browser session and inspect the signed-in handle before\n   drafting or staging. If signed out, prefer the normal **Continue with Google**\n   flow when offered, select the intended existing Google account, and verify\n   the resulting X handle. A Google email alone does not prove the X identity.\n2. For a normal login failure, try one supported recovery (return to the official\n   login page or select the intended existing account), then report the exact\n   blocker. Stop for human-only challenges or denied actions. Never extract or\n   decrypt cookies, tokens, passwords, or browser credential stores; never bypass\n   access denial or switch to a hidden API to work around a blocked UI.\n3. Read the source post and retain its original text and original photo\u002Fvideo\n   when requested. Verify the uploaded media preview; do not silently replace\n   the original asset with a screenshot or omit it. Report inaccessible media.\n4. Inspect the verified account's recent posts for the source link and matching\n   text\u002Fmedia before submission. If a matching post exists, return its permalink\n   rather than creating a duplicate. If history cannot be checked, resolve that\n   uncertainty before posting. Recheck after any timeout or uncertain submission\n   before retrying; a timeout is not proof that posting failed.\n5. Before shortening text or building a thread, check the current account's\n   composer for supported long posts. When the full source fits, prefer one post\n   with the original media unless the user requested a thread. If it does not\n   fit, prepare a faithful shorter draft or thread for review. Do not assume a\n   subscription or a fixed limit from an old template; verify the full text\n   remains in the composer with no truncation or limit warning.\n6. Verify the exact visible text, intended handle, and media before the gated\n   publish action. Submit once. Then open the resulting permalink and verify\n   the author handle, visible full text (expand when needed), and original media.\n   Return the permalink with the verification result. A cleared composer or\n   success toast alone is not proof; report an uncertain outcome without retrying\n   until the profile\u002Fhistory check establishes whether the post exists.\n\n## Contract\n\n1. **Draft only by default** — produce discovery results and local drafts. No browser staging without a stage request and no publishing without explicit authorization.\n2. **Supported browser session** — reuse the intended signed-in account and verify identity; do not copy credentials between browsers.\n3. **Per-platform conformance** — character limits, title rules, hashtag placement, threading, self-promo ratios checked at draft time (no \"fix it after posting\").\n4. **Current community rules** — verify live rules during Phase 0; `references\u002Fsubreddit-rules.md` is historical guidance only.\n5. **POST APPROVED token** — `scripts\u002Fpost_approved.py` checks for literal `POST APPROVED` (or per-platform like `POST APPROVED linkedin,hackernews`) before clicking any submit button. Without the token, exits code 2 with \"BLOCKED — no POST APPROVED token\".\n6. **No provider calls in the template CLI** — deterministic local text only. Discovery and tailored drafting are agent instructions, not an implemented search or LLM backend.\n7. **No auto-stage on \u002Fsocial** — follow the latest request. Discovery\u002Fdrafting stops before Phase 2 unless staging is requested.\n\n## Supported Platforms\n\n| Platform | Template | Has web compose? | Notes |\n|----------|----------|------------------|-------|\n| LinkedIn | `templates\u002Flinkedin.md` | ✅ | long-form + 300-char short variant |\n| Hacker News | `templates\u002Fhackernews.md` | ✅ | \"Show HN:\" prefix when self-promo; title ≤80 chars |\n| Twitter\u002FX | `templates\u002Ftwitter.md` | ✅ | single tweet + thread; hashtags at end of last tweet only |\n| Reddit | `templates\u002Freddit.md` | ✅ | one file per subreddit; text-post preferred over link-post |\n| Threads | `templates\u002Fthreads.md` | ✅ | ≤500 chars, casual |\n| Facebook | `templates\u002Ffacebook.md` | ✅ | medium-length, link-friendly |\n| Instagram | `templates\u002Finstagram.md` | ⚠️ no web compose | caption + 30-hashtag block; surfaces mobile instructions |\n| Mastodon | `templates\u002Fmastodon.md` | ✅ | 500-char default; configurable instance |\n| Dev.to | `templates\u002Fdevto.md` | ✅ | markdown article format |\n\n## Phases\n\n### Phase 1 — Draft (deterministic, no browser)\n\nRun `scripts\u002Fdraft_social_post.py` with intent + key-points + link + platforms. Produces per-platform files in `--out \u003Cdir>`. Character-limit hard-rejects; spam-rule soft-warns.\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fdraft_social_post.py\npython3 \"$PY\" \\\n  --intent \"announce jleechanclaw open-source release\" \\\n  --key-points \"AI agent orchestration, hermes deploy pipeline, skill framework\" \\\n  --link \"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechanclaw\" \\\n  --platforms reddit,twitter \\\n  --reddit-subs \"LocalLLaMA,Rag,OpenAI\" \\\n  --image \"\" \\\n  --out \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-06\u002F\n```\n\nOutput: one `.md` file per platform (or per subreddit for Reddit). Filename-safe slugs.\n\n### Phase 2 — Stage in Aside (browser, no auto-post)\n\n**Prefer the MCP path (`stage_in_aside_mcp.py`) when available.** The `aside repl` CLI silently no-ops on programmatic paste (lesson #11; verified 2026-07-17 across 9\u002F11 platforms failed despite \"compose-ready\" status). The HTTP MCP at 127.0.0.1:8013\u002Fmcp with `openTab()` + Playwright `locator().fill()` reliably pastes when the session is healthy.\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fstage_in_aside_mcp.py\npython3 \"$PY\" --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-17\u002F\n# allowlist sub-stage, e.g. only HN + Twitter for retry runs:\npython3 \"$PY\" --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-17\u002F --only hackernews,twitter\n```\n\nFalls back to the legacy `aside repl` script when MCP is unreachable:\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fstage_in_aside.py\npython3 \"$PY\" --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-17\u002F\n```\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fstage_in_aside.py\npython3 \"$PY\" --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-06\u002F\n```\n\n**Contract (v3, 2026-07-11):** The script now enforces paste-and-verify. For each platform:\n\n1. Opens a new Aside tab on the platform's compose URL.\n2. Optional trigger click (LinkedIn \"Start a post\", Facebook \"What's on your mind\").\n3. Pastes the draft into the relevant field via per-platform paste function:\n   - `react_textarea` — vanilla `\u003Ctextarea>` \u002F `\u003Cinput>` (Reddit, HN, Mastodon, Dev.to)\n   - `exec_command` — contentEditable (Twitter, LinkedIn, Facebook, Threads); uses `document.execCommand('insertText', false, text)` after `el.focus()` — the only reliable pattern for React-controlled contentEditable fields.\n4. **Reads the field back** with `verify_text(selector)` and compares against expected draft length (≥70% threshold to allow for trailing whitespace stripping).\n5. Captures post-paste screenshot → `\u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-06\u002Fscreenshots\u002F\u003Cplatform>.png`.\n6. Sets status:\n   - `\"staged\"` — paste verified, screenshot saved\n   - `\"paste_failed\"` — compose form loaded but text didn't persist (user must paste manually)\n   - `\"login_wall\"` — page is a sign-in screen, no paste attempted\n   - `\"load_only\"` — Instagram (no web compose)\n   - `\"failed\"` — Aside subprocess error (e.g. extension bridge dead)\n\nThe script will NOT claim a platform is \"ready\" unless the draft text was verified inside the field. Vision-verify at least one screenshot per platform after staging for a final cross-check.\n\n**Aside recipes** for each platform's compose URL live in `references\u002Faside-recipes.md`.\n\n### Phase 3 — Surface to user\n\nReturn the per-source discovery output contract above, plus draft paths. Include screenshots only for requested, verified staging. Deliver in the current conversation unless another destination was explicitly requested.\n\n### Phase 4 — Post (gated)\n\nOnly after the latest user request explicitly authorizes publishing the reviewed content, verified account, and selected destinations, complete the live duplicate check and tool confirmations, then run:\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fpost_approved.py\npython3 \"$PY\" \\\n  --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-06\u002F \\\n  --approval-token \"POST APPROVED\" \\\n  --publish-request \\\n  --platforms reddit,twitter  # always pass the current request allowlist\n```\n\nBehavior per platform:\n- LinkedIn \u002F HN \u002F Twitter \u002F Reddit \u002F Threads \u002F Facebook \u002F Mastodon \u002F Dev.to → click submit, capture post-URL.\n- Instagram → surface draft caption as text + print mobile instructions (no web compose). Manual copy-paste from phone.\n\nPosting log written to `--drafts\u002Fposted.json` with timestamps + captured URLs.\nCompleted, existing, and uncertain submissions in that directory are not retried.\nFor a live-discovered duplicate, record `{\"status\": \"existing\", \"url\": \"\u003Cpermalink>\"}`\nunder its platform key in `posted.json` → `results` and return the permalink.\nThis local retry guard is not a live history search; Phase 0 and the pre-submit\nlive check remain required. Keep each source in its own draft directory.\n\n## Safety Gates\n\n1. **`POST APPROVED` required** — see `scripts\u002Fpost_approved.py` `check_approval()` function. Hard exit 2 if missing.\n2. **Current publish request** — `--publish-request` is an operator attestation of the latest explicit authorization, never supplied for draft\u002Fstage requests. Without it, existing drafts cannot be published even with a stale approval token.\n3. **Per-platform allowlist** — `POST APPROVED linkedin` only posts LinkedIn. Comma-separated = OR. Default = Reddit\u002FX only; flags cannot broaden a token allowlist.\n4. **No silent failures** — any platform that fails to post writes to `posted.json` with `{\"status\": \"failed\", \"error\": \"...\"}`. User is notified.\n5. **Audit log** — every draft run writes `--out\u002Fmanifest.json` with timestamp, intent, platforms, character counts, spam-rule warnings.\n\n## Historical subreddit leads (reverify current rules and relevance)\n\n| Content type | Primary | Secondary | Tertiary |\n|---|---|---|---|\n| Open-source \u002F local AI tool | r\u002FLocalLLaMA | r\u002FOpenSourceAI | r\u002Fsingularity (opinion-only) |\n| RAG \u002F retrieval \u002F vector DB | r\u002FRag | r\u002FLocalLLaMA | — |\n| Coding agent \u002F dev tool | r\u002FOpenAI (text post) | r\u002FLocalLLaMA | — |\n| General AI news \u002F opinion | r\u002FOpenAI | r\u002FLocalLLaMA | r\u002FClaudeAI (Claude-specific) |\n\n**Banned \u002F avoid:**\n- r\u002FAItools, r\u002FAutoGen, r\u002FLMStudio → banned subs.\n- r\u002Fsingularity, r\u002FAGI, r\u002FFuturism, r\u002FMachineLearning → zero self-promo.\n- r\u002Fphilosophy, r\u002FProgrammerHumor → AI content banned outright.\n\n## Anti-Patterns\n\n- ❌ Auto-posting without `POST APPROVED` (bypasses the safety gate)\n- ❌ Using `mcp__playwright-mcp__*` for localhost testing — use `aside` (signed-in session)\n- ❌ Calling `aside show_browser` \u002F headed mode without explicit opt-in (headless-only default)\n- ❌ Hardcoding API keys in `draft_social_post.py` (LLM augmentation must route through `~\u002F.hermes\u002Fconfig.yaml`)\n- ❌ Stripping 10\u002F90 framing from Reddit drafts (\"I built this, here's the link\") — guarantees removal\n- ❌ Posting the same draft verbatim across Reddit subs (each sub has different norms; per-sub files required)\n- ❌ Posting link-only to r\u002FOpenAI — requires text post + context (verified rule)\n- ❌ Clicking submit in Phase 2 (stage-only)\n- ❌ **Treating `draft_social_post.py` output as final without reading it** — the templater hallucinates key-points into the wrong slots when the intent is a commentary\u002Fopinion piece rather than a project announcement (e.g. \"Fable AI oneshot a 2D game\" gets turned into \"jleechanclaw does X\"). **Always read every generated `.md` file before staging.** If templating misfires, hand-author the drafts directly (write `.md` files in `--out`) and re-run staging on the hand-authored files. Worked example: `references\u002Ffable-2d-game-2026-07-11.md`.\n- ❌ **Trusting `stage_in_aside.py`'s \"compose-ready\" DOM verdict without vision-verification.** The script's DOM-detector only checks for selectors like `input[name=\"title\"]`; it does NOT verify that the text was actually pasted into the field. Programmatic paste via React setter \u002F contentEditable frequently fails silently on Twitter, LinkedIn, HN, and Reddit modals. After every staging run, vision-verify AT LEAST ONE screenshot per platform (`vision_analyze(\"Is the draft text visible in the compose field, or is it empty?\")`). If empty, the compose form is loaded but paste didn't stick — user must paste manually from the `.md` files.\n- ❌ **Trusting `listBrowserTabs()` as proof the platform is signed in** — it proves the *tab* is signed in, but `openTab(compose-url)` may still hit a session-revalidation redirect to a login wall (LinkedIn, Facebook, Dev.to, Mastodon, Threads all did this on 2026-07-11). The source-of-truth check is: vision-verify the staged screenshot shows a compose form with user avatar\u002Fhandle visible, NOT a login wall.\n- ❌ **Staging a Twitter draft that exceeds 280 chars (verified 2026-07-17).** The compose modal accepts arbitrary input but disables the Post button (red highlight + \"-666\" counter visible) once the limit is exceeded. The drafter must keep single-tweet drafts ≤280 chars; longer content needs a `--thread` flag that splits into N tweets. The default `templates\u002Ftwitter.md` does NOT enforce this — check after drafting.\n- ❌ **Splitting the staging workflow across multiple MCP `tools\u002Fcall` invocations** (verified 2026-07-17). See lesson 19 — each `openTab` opens a fresh tab, so call 2's paste lands on a different form instance than call 1's open. Always bundle `(openTab → fill → verify → screenshot)` in ONE IIFE per platform.\n\n## LinkedIn login-wall unblock signals (verified 2026-07-11)\n\nWhen LinkedIn staging returns a \"Welcome back\" password screen, do NOT conclude LinkedIn is unreachable. Check for these one-click unblock signals in the screenshot before declaring the platform blocked:\n\n1. **Google One-Tap prompt** (top-right overlay, dark gray box, \"Sign in to LinkedIn with Google\" + blue \"Continue as Jeffrey\" button) — one click unblocks the session.\n2. **Continue with Google button** (white button below \"Sign in\" with Google G logo) — same OAuth flow, one click.\n3. **Sign in with Apple button** — same UX as Google.\n\nIf any of these are visible AND the email shown matches `$USER@your-project.com`, the user can unblock LinkedIn in 1-2 clicks. Tell them which button to click.\n\nIf NO unblock signal is visible (just an empty password field), the session is fully expired and the user must type their password.\n\n## Trigger → Action Map\n\n| User says | Action |\n|-----------|--------|\n| `\u002Fsocial \u003Cintent>` or `draft posts for \u003CURLs>` | Phase 0 per source + Phase 1, then return the discovery output contract |\n| `draft + stage a post` | Phase 0 + Phase 1 + Phase 2 for selected targets |\n| Explicit publish\u002Fcrosspost request | Verify approval, account\u002Fcontent\u002Fdestinations, live duplicates and any tool confirmation before Phase 4 |\n| `revise the draft` | Revise local text only unless staging is requested |\n\nFor replies, use the exact reviewed thread\u002Fcomment composer when staging is\nrequested. The legacy scripts open standalone composers; they do not support\nreply targeting. Use a supported browser workflow or return manual-use drafts,\nnever stage a reply as a standalone post by accident.\n\n## Summary delivery\n\nReturn results in the current conversation. If explicitly asked to send elsewhere,\nuse the supported connector and its permissions. On denied\u002Funavailable access,\nreport the blocker; do not switch identity or use a hidden token\u002FAPI fallback.\n\n## Files\n\n- `scripts\u002Fdraft_social_post.py` — deterministic drafter\n- `scripts\u002Fstage_in_aside.py` — opens Aside tabs + screenshots (legacy `aside repl` path — silent paste failure mode)\n- `scripts\u002Fstage_in_aside_mcp.py` — **preferred**: opens Aside tabs + pastes via HTTP MCP at 127.0.0.1:8013\u002Fmcp. One MCP call per platform bundles open + paste + verify + screenshot on a single `page` object (avoiding the \"fresh tab = lost paste\" failure). Verified selectors for HN, Twitter, Mastodon, Reddit ×3, Dev.to, LinkedIn, Facebook, Threads (2026-07-17).\n- `scripts\u002Fcookie_inject_and_stage.py` — legacy, prohibited in this workflow; do not execute.\n- `scripts\u002Fpost_approved.py` — gated publisher\n- `templates\u002F*.md` — 9 platform templates\n- `references\u002Fsubreddit-rules.md` — live-verified per-sub rules\n- `references\u002Fplatform-character-limits.md` — hard limits + soft guidance\n- `references\u002Faside-recipes.md` — `aside repl` snippets per platform\n- `references\u002Fplatform-session-status.md` — per-platform cookie injection + anti-bot results (verified 2026-07-05). Historical evidence only; do not execute cookie-injection recipes.\n- `references\u002Fblog-post-to-gdoc.md` — recipe for \"draft a blog post in Google Docs\" (canonical `gws docs` path + local-markdown fallback when gws OAuth is unauthenticated).\n- `references\u002Faside-repl-session-state.md` — verified auth state per platform for `aside repl` workflows (2026-07-06). Includes the `listBrowserTabs()` live-tab probe recipe, the `document` scope-doesn't-persist-across-REPL-calls pitfall, and per-platform paste workarounds for LinkedIn contentEditable \u002F Facebook click-first \u002F Twitter thread pagination.\n- `references\u002Faside-repl-playwright-pattern.md` — verified `openTab()` returns a Playwright `Page` object with `screenshot()` (Buffer→base64), `evaluate()`, `locator()`, `frameLocator()`. Includes 6 working paste\u002Fclick\u002Finspect idioms. Source of truth for the 2026-07-06 staging rewrite.\n- `references\u002Ffable-2d-game-2026-07-11.md` — worked example for commentary\u002Fopinion drafts (NOT project announcements). Documents the Fable 2D-game run, the templater failure mode, the vision-verify matrix, and the recommended workflow for future commentary runs.\n- `references\u002Ffable-quota-skill-2026-07-15.md` — worked example for **commentary\u002Fopinion about a third-party capability + a personal artifact (gist\u002Fskills)**. Documents lessons 15 (`require('fs')` is not in the REPL; capture screenshots via base64 stdout redirect), 16 (Mastodon URLs: `\u002Fcompose` is 404, use `\u002Fpublish`), and 17 (LinkedIn share-box trigger has obfuscated classes; programmatic click fails). Its historical token fallback is prohibited by the supported-access rules above.\n- `tests\u002Ftest_*.py` — unit + integration tests\n- `references\u002Fstaged-vs-pasted-verification.md` — **CRITICAL**: how to verify drafts actually got pasted into compose forms (vs. just having the page loaded). Use the explicit \"what text is in the field?\" vision prompt + the verification snippet. The stage script's `staged: True` is not enough.\n- `references\u002Faside-mcp-cli-gmail-profile.md` — Aside automation via HTTP MCP at 127.0.0.1:8013\u002Fmcp with `mcp-session-id` header flow + gmail (u0) profile. Reusable Python client snippet. The most reliable automation path when the Chrome extension bridge is alive. **Includes the verified openTab + locator.fill() + screenshot pipeline, per-platform selector table for HN \u002F Twitter \u002F Mastodon \u002F Reddit \u002F Dev.to \u002F LinkedIn \u002F Facebook \u002F Threads, and 7 stage pitfalls (MCP degradation, Reddit fragility, login walls, subprocess.run vs Popen) verified 2026-07-17.**\n\n## Operator rules\n\nUse the supported session; report unavailable staging without blocking drafts.\nVerify actual visible text, account, media, and selected destinations before\nclaiming staging succeeded. Do not run historical credential-copy recipes.\n\n## Critical lessons (from real sessions, not theoretical)\n\n0. **`staged` ≠ `pasted`.** The stage_in_aside.py script labels every successfully-navigated compose form as \"staged\" even when the paste silently failed (React-controlled-field re-render ate the programmatic input). **Vision-verify the actual TEXT inside the title input + body textarea, not just the page state.** A logged-in compose form with empty fields looks identical to a logged-in compose form with empty fields — vision models will say \"compose form ready\" either way unless explicitly asked \"what text is currently inside the field?\" (lesson from 2026-07-11 Fable-2D-game run, user pushback: \"all of those drafts are obviously wrong and just random login screens so youre not even close to working\"). See `references\u002Fstaged-vs-pasted-verification.md` for the verify-paste checklist + reusable paste verification snippet.\n\n0a. **Use `--account u0` ($USER@gmail.com) for `aside repl` automation.** Default active is `u1` (your-project.com) and the extension bridge can be more brittle on that profile. Verified 2026-07-11 — user pushed \"use $USER@gmail.com profile next time and use the mcp or cli its supposed dto work\". See `references\u002Faside-mcp-cli-gmail-profile.md`.\n\n0b. **Aside HTTP MCP at 127.0.0.1:8013\u002Fmcp is the most reliable automation path** (when the extension bridge is alive). Tools surface: just `repl` (single tool wrapping the persistent JS REPL). MCP initialize handshake requires reading the `mcp-session-id` header from the response and sending it on subsequent calls + `notifications\u002Finitialized`. Top-level `await` is NOT allowed in the REPL — wrap in `(async () => { ... })();`. The REPL has persistent scope (vars persist across calls), `fs` module via `node:fs\u002Fpromises`, `display()` for inline image preview, `sleep(ms)`, `fetch()` with user cookies. See `references\u002Faside-mcp-cli-gmail-profile.md` for the full request flow + reusable client snippet.\n\n1. **`aside account list` does NOT show per-platform auth state.** It only shows the active Google account ID. To gauge whether LinkedIn\u002FTwitter\u002FFacebook\u002Fetc. are actually signed in, run `aside repl \"const tabs = await listBrowserTabs(); console.log(tabs.map(t => t.url).join(' | '))\"`. A signed-in tab on the platform = the session is valid, even if a fresh `openTab(compose-url)` shows a login wall (compose-URL navigation may trigger session re-auth).\n\n2. **`document` scope does NOT persist across `aside repl` calls.** Each call gets a fresh JS context. Multi-step workflows (open → click → paste → verify) must be bundled in ONE async IIFE in a single call. Screenshot via `annotatedScreenshot(pageObj)` returned from `openTab()`, not `annotatedScreenshot(null)`.\n\n3. **Programmatic paste into LinkedIn\u002FTwitter\u002FFacebook compose modals is unreliable.** Twitter's textarea + React setter trick works in a single bundled call. LinkedIn's contentEditable div + `el.innerHTML = text` works but React state may not sync (manual paste is more reliable). Facebook requires click-first on \"What's on your mind, [Name]?\" before the modal opens. **When staging is requested and paste fails: report the empty composer honestly and return manual-use drafts.** This avoids the React control gymnastics entirely and the user still gets visual proof the compose UI is loaded.\n\n4. Publishing requires explicit current authorization; the script token is internal bookkeeping, not a magic user phrase.\n\n5. **`aside session` ≠ `account list` ≠ Chrome cookie DB.** The source of truth is `listBrowserTabs()`. If the user says \"I'm signed in to LinkedIn\", verify with that probe before declaring a platform unreachable.\n\n6. **`openTab(url)` returns a Playwright `Page` object**, not a serializable tab descriptor. Use `p.screenshot()` directly (returns a Buffer that base64-encodes for stdout), or `p.locator(...)` \u002F `p.evaluate(() => ...)` for DOM ops. `annotatedScreenshot(null)` throws `Cannot read properties of null (reading 'snapshot')`; `annotatedScreenshot(pageObj)` works but `p.screenshot()` is simpler. See `references\u002Faside-repl-playwright-pattern.md` for the verified idioms.\n\n7. **Reddit compose URL must end in `?selftext=true`.** `https:\u002F\u002Fold.reddit.com\u002Fr\u002F\u003Csub>\u002Fsubmit` lands on the link-post form by default, which navigates through the \"link vs text\" tab UI and triggers a session re-auth redirect. The `?selftext=true` param lands directly on the text-post form with title (textarea[name=\"title\"]) + body (textarea[name=\"text\"]) fields visible. `stage_in_aside.py`'s compose URL for Reddit MUST include this param. Verified 2026-07-06 for r\u002FLocalLLaMA, r\u002FOpenAI, r\u002FRag — all three compose forms loaded immediately with no auth redirect when the `?selftext=true` suffix was used.\n\n8. **Vision-verify compose-vs-login, don't DOM-detect.** A DOM-only check like `document.querySelector('input[name=\"title\"]')` can give false negatives if the page is still loading. The deterministic check is `p.screenshot()` → save → `vision_analyze(image_url, \"Is the compose form for posting to r\u002FX visible, with title input and body textarea? Or is it a login wall?\")`. The user said \"Many of these screenshots are login screens I wanna find the draft post screen \u002F Still not good enough\" on 2026-07-06 — the lesson: ALWAYS confirm by vision, never trust URL or DOM-only state when the user wants visual proof.\n\n9. **Aside daemon restart = sessions break.** If `aside repl` returns \"fetch failed\" and you `pkill -f AsideDaemon` to recover, all open tabs are lost. Subsequent `openTab()` calls hit login walls even though the underlying Chrome cookie DB still has valid sessions, because Aside's tab-object state is gone. `listBrowserTabs()` returns `TOTAL_TABS 1` (a single fresh tab) instead of the prior 17-tab state. **Fix:** instead of `pkill`, try `open -a \"Aside\"` first — sometimes the daemon recovers without losing tabs. If you must restart, plan for a sign-in re-pass on platforms that were \"previously signed in.\"\n\n10. **`draft_social_post.py` cannot tell a project announcement from a commentary\u002Fopinion piece.** When the source URL is a personal reaction to a third-party capability (e.g. \"Fable AI oneshot a 2D game from my text sim\"), the templater will hallucinate the user's open-source project as the subject and stuff every key-point into the wrong slot. **Always read every generated `.md` before staging.** If misfires, hand-author directly into the same files. Worked example: `references\u002Ffable-2d-game-2026-07-11.md`.\n\n11. **Compose-ready ≠ paste-stuck (re-confirmed 2026-07-11).** Even when the compose form is loaded and vision-verified, programmatic paste via React setter \u002F contentEditable frequently fails silently on Twitter, HN, Reddit, and LinkedIn. After staging, vision-verify ONE screenshot per platform with the question \"What text is actually in the compose field? Empty or has content?\" If empty, the form loaded but paste didn't stick — surface this to the user as \"compose form ready, paste manually from the `.md` file.\" Do NOT claim the draft is staged-and-pasted when the field is empty.\n\n12. **`web_extract` cannot fetch LinkedIn post bodies (re-confirmed 2026-07-11).** The `ddgs` backend returned `ddgs is a search-only backend and cannot extract URL content`. Workaround: `curl -A \"Mozilla\u002F5.0 ... Chrome\u002F126.0.0.0 ...\" \u003Clinkedin-url> -o \u002Ftmp\u002Fpost.html`, then `python3 -c \"import re; m = re.search(r'\u003Cmeta[^>]+property=\\\"og:description\\\"[^>]+content=\\\"([^\\\"]+)\\\"', open('\u002Ftmp\u002Fpost.html').read()); print(m.group(1) if m else 'NONE')\"`. LinkedIn embeds the full post body in og:description.\n\n13. **Aside MCP `repl` tool: SKIP `notifications\u002Finitialized` (verified 2026-07-11).** The MCP initialize handshake works, but if you send `notifications\u002Finitialized` after the initialize, subsequent `tools\u002Fcall` requests return `Bad Request: No valid session ID provided` even though the session-id header is correctly attached. **The working pattern:** init → read `mcp-session-id` from response header → call `tools\u002Fcall` immediately, skip `notifications\u002Finitialized`. Also: use top-level `await` directly in REPL code (the REPL is in module mode) — DO NOT wrap in `(async () => { ... })();` IIFEs because the IIFE swallows `console.log` output via the SSE stream. Top-level `console.log('HELLO')` works synchronously; `await fetch('https:\u002F\u002Fapi.ipify.org')` then `console.log(await r.text())` works async.\n\n14. Legacy cookie-injection recovery is prohibited. Use normal supported login or return drafts with the access limitation.\n\n15. **`require('fs')` is NOT available in the Aside REPL (verified 2026-07-15).** Trying `require('fs').writeFileSync(...)` inside `aside repl` returns `Error: External modules are not available in the REPL.` The screenshot Buffer from `p.screenshot()` cannot be saved directly from inside the REPL. **The verified pattern** — capture the base64 via `console.log` then grep+decode in the parent shell:\n\n```bash\naside repl \"\nconst p = await openTab('\u003Curl>');\nawait sleep(3000);\nconst ss = await p.screenshot();\nconsole.log('SCREENSHOT_B64:' + ss.toString('base64'));\n\" > \u002Ftmp\u002Fout.txt 2>&1\ngrep '^SCREENSHOT_B64:' \u002Ftmp\u002Fout.txt | sed 's\u002F^SCREENSHOT_B64:\u002F\u002F' | base64 --decode > \u002Ftmp\u002Fshot.png\n```\n\nThis works because top-level `await` is allowed directly in the REPL (no IIFE wrapper needed — see lesson 13). For multi-platform staging loops, wrap in a Python `subprocess.run` loop that parses each `SCREENSHOT_B64:` line and decodes to disk.\n\n16. **Mastodon URLs: `mastodon.social\u002Fcompose` is a 404; use `mastodon.social\u002Fpublish` (verified 2026-07-15).** Old docs and recipes reference `\u002Fcompose`, but the modern Mastodon (v4.x) instance returns a 404 Not Found for that path. The compose preview lives at `\u002Fpublish`. **Caveat:** `\u002Fpublish` shows the compose form to unauthenticated users, but the \"Post\" button won't work until you sign in. Verify session state with vision (\"Login \u002F Create account buttons visible on the right?\") before staging. Other instances (e.g. `mastodon.social\u002F@user`) have different canonical paths; check the instance's help docs.\n\n17. **LinkedIn share-box trigger uses obfuscated class names that defeat programmatic clicks (verified 2026-07-15).** `.locator('button[aria-label*=\"Start a post\"]')` returns 0 matches. Click-by-text (`document.querySelectorAll('button').forEach(el => { if (el.textContent.includes('Start a post')) el.click() })`) also returns 0 — LinkedIn renders the \"Start a post\" box as a `\u003Cdiv>` with `role=\"button\"` and randomized class names like `share-box-feed-entry__closed-share-box`. After 3 failed attempts (locator, click-by-text, click-by-placeholder), the recommended path is: **tell the user \"click 'Start a post' manually, then paste from linkedin.md\"**. Same fallback applies to Threads (sometimes), Facebook (modal requires click on \"What's on your mind, [Name]?\" first), and Instagram (no web compose at all).\n\n18. **`aside repl` CLI silently no-ops on programmatic paste — use Aside HTTP MCP instead (verified 2026-07-17).** Switching the staging script from `aside repl \"...\"` to the HTTP MCP at `127.0.0.1:8013\u002Fmcp` is the difference between 9\u002F11 platforms stuck at \"compose-ready with empty fields\" and 3\u002F11 platforms actually having the draft text in the field. The `aside repl` path looks identical — every `await loc.fill(...)` returns without error — but the field stays empty because the underlying Chrome DevTools clipboard-write hook is silently disabled in that mode. Use `scripts\u002Fstage_in_aside_mcp.py` as the canonical staging entry point; treat `aside repl` paste as a known-broken path.\n\n19. **Bundle open + paste + verify + screenshot in ONE MCP call per platform, never split (verified 2026-07-17).** Each `openTab(url)` opens a fresh tab. If the JS code is split across multiple MCP calls — call 1 opens the tab, call 2 types, call 3 verifies — the typed text is lost because call 2's `openTab` reopens a new tab on the same URL, which resets the compose form. The fix is one MCP `tools\u002Fcall` per platform wrapping `(async () => { openTab → fill → verify → screenshot })()` in a single IIFE; the screenshot base64 emits on a separate `SHOT_\u003Cvar>:` line so the companion `RESULT_\u003Cvar>=\u003Cjson>` line stays small enough to parse reliably.\n\n20. **MCP server at 127.0.0.1:8013\u002Fmcp degrades after ~6-8 bundled calls (verified 2026-07-17).** Symptom: subsequent `tools\u002Fcall` requests return 0 bytes (no SSE error, no console output, the curl process times out after 180s with empty body). Cause: Chrome \u002F Aside daemon contention from too many open tabs \u002F `playwright.Page` handles held across calls. Recovery: `pkill -9 -f aside` then `open -a \"Aside\"` and wait 10s; `aside account use u0`; `openTab \u003Cwarmup-url>` once to confirm the window has focus; re-run. Or, if the same script that worked minutes ago now returns empty, restart Between MCP sessions — every fresh session starts healthy.\n\n21. **Reddit's old.reddit.com form is fragile — fill sometimes hangs Chrome entirely (verified 2026-07-17).** Symptom: `locator.fill()` for `textarea[name='text']` on `\u002Fr\u002FX\u002Fsubmit?selftext=true` triggers an indefinite Chrome hang (no MCP response after 60s+). The same code works for HN (`textarea[name='text']`) and Mastodon (`\u003Ctextarea>`) — the difference is old.reddit's anti-spam heuristics. Workaround: run each Reddit subreddit in its own fresh MCP session, fill title first, then body in a separate call. If the body fill still hangs, surface the draft `.md` file to the user for manual paste.\n\n22. **Login walls silently reappeared for LinkedIn \u002F Facebook \u002F Threads \u002F Dev.to with Chrome profile u0 = $USER@gmail.com (verified 2026-07-17).** Earlier sessions (2026-07-11) reported these platforms as \"signed in for the session via fresh `openTab`\"; the cookies appear to have rotated or expired between sessions. Symptom: `openTab` on the compose URL redirects to the platform's sign-in form (Dev.to shows `input#user_email` + `input#user_password`; LinkedIn shows \"Welcome back\" page). Fix: one-time manual login in the Aside GUI, then re-run staging — u0 cookies refresh for the next 24-72h. If login is unavailable, return local drafts and report the blocker.\n\n23. **Use `subprocess.Popen + .communicate(timeout=...)`, NOT `subprocess.run(timeout=...)` for MCP `curl` calls (verified 2026-07-17).** `subprocess.run(..., timeout=180)` silently drops output if the curl process writes its SSE bytes between Python's timeout firing and the process exiting cleanly. `Popen` + `communicate(timeout=180)` captures the same data. Indistinguishable on a happy path; visible failure mode is `len(out) == 0` after a \"successful\" call.\n\n24. **Always vision-verify the actual TEXT inside the field after staging (verified 2026-07-17 re-confirmation).** The HN stage reported `paste: ok=true, len=1131` via the verify step, but the saved screenshot showed only the last 2 sentences of a multi-paragraph body. Playwright's `locator.fill()` silently truncates on certain React-controlled textareas when the input exceeds ~1000 chars and the field has not been focused first. The fix is `await loc.click(); await sleep(300); await loc.fill(text)` (already in `stage_in_aside_mcp.py`), BUT vision-verify is the only reliable cross-check — the verify step reads `document.querySelector().value.length` which disagrees with what's actually visible after a re-render. Always end Phase 2 with one `vision_analyze` per platform asking \"what text is currently in the field?\" before declaring success.\n","# Social Poster — Draft-Only, POST APPROVED Gated\n\n## Request scope and supported access (takes precedence over legacy recipes)\n\nDefault research, drafting, staging, and publishing destination allowlist:\n`reddit,twitter` (`x` is an alias for `twitter`). LinkedIn, Instagram, Facebook,\nand **Meta Threads** are excluded unless explicitly selected in the current\nrequest. “X threads” means discussions on Twitter\u002FX, never Meta Threads.\nOther supported platforms remain explicit opt-ins. A supplied source URL may\nbe read as source evidence without opting its platform into destination research.\n\nPass the same resolved allowlist to the drafter's `--platforms`, stagers'\n`--only`, and publisher's `--platforms`. Omitted script flags default to\nReddit\u002FX, even if a directory contains old excluded-platform drafts. Never\ninfer opt-in from stale files, manifest history, or enabled cross-share toggles.\nFor Instagram, keep Threads\u002FFacebook cross-share disabled unless each is\nexplicitly selected; stop if that cannot be verified. Selection does not grant\npublication permission.\n\n`reddit` selects the Reddit family; `reddit_example` selects only r\u002Fexample.\nThe drafter accepts either form. `--reddit-subs` narrows the Reddit targets;\nwithout it, scoped selections name their own targets and a bare `reddit` creates\nan untargeted local draft. For example, `--platforms reddit_example\n--reddit-subs example,sibling` produces only `reddit_example.md`. Disjoint\nsubreddit selections and empty\u002Finvalid allowlists are errors, not successful\nempty draft runs. The publisher intersects token and flag scopes symmetrically:\n`POST APPROVED reddit_example` plus `--platforms reddit` still authorizes only\n`reddit_example`, never sibling communities. An empty intersection exits with\nan error before submission; it cannot fall back to default permission.\n\nThe latest request controls the action: **draft\u002Fresearch means discovery and\nlocal drafts only**, with no auto-staging, scheduling, or publishing. Stage only\nwhen requested. Publish only reviewed content to the verified account and\nselected destinations after explicit authorization; preserve any independently\nrequired tool confirmation. A prior approval does not override a later draft\nrequest. No magic user phrase is required; legacy tokens are internal bookkeeping.\n\nUse supported read-only search, authorized connectors, or the normal browser\nsession. Stop and report access limits rather than extracting cookies\u002Ftokens,\ncopying credentials, decrypting browser stores, or using hidden API fallbacks.\nDo not run `cookie_inject_and_stage.py` or legacy credential\u002Ffallback recipes.\nThese rules apply to every platform and all referenced historical notes.\n\n## Phase 0 — Per-source discovery (agent workflow, not a crawler)\n\nFor **each input source URL**, independently:\n\n1. Inspect the original post, author, full text, linked context, and original\n   photo\u002Fvideo. Record what was actually visible and any inaccessible media;\n   search snippets are leads, not proof the full source was read. Do not invent\n   details or reuse the announcement template for unrelated commentary.\n2. Find relevant Reddit communities **and specific existing Reddit\u002FX threads**.\n   Search by the source's topic, claims, terminology, and canonical links.\n   Open candidate discussions, verify their original and latest activity dates,\n   and read enough context to explain relevance. Prefer active discussions;\n   label older threads, locked\u002Farchived threads, and any uncertainty.\n3. **Mandatory Reddit promotion-rule gate:** before recommending a destination or drafting for it,\n   verify current subreddit-specific rules and pinned guidance for promotion eligibility,\n   affiliation disclosure, required flair, frequency\u002Fduplicate limits,\n   AI\u002Fbot restrictions, account eligibility (such as age, karma, or prior\n   participation), and link policies. Record each rule source URL and check date,\n   relevant restrictions, and a disposition: `allowed`, `conditional`,\n   `prohibited`, or `unverified`. For `conditional`, identify the conditions and\n   verify that the proposed content and intended account satisfy them before\n   recommending or drafting. If rules or account eligibility are inaccessible or ambiguous,\n   do not assume promotion is allowed: mark the destination `unverified` and\n   withhold a destination-specific promotional draft, or choose a verified alternative.\n   Skip prohibited promotion even if the community was explicitly requested.\n   Historical rule tables are leads only, never current verification. Passing\n   this gate does not grant publication permission.\n4. Inspect the intended user's prior posts **and replies** for matching source\n   links, text\u002Fmedia, or the same topic in each candidate community\u002Fthread.\n   Record existing permalinks and the history window searched. If identity or\n   history access is missing, mark duplicate checking incomplete, do not claim\n   no duplicates, and do not publish until the uncertainty is resolved.\n5. Choose a new **standalone post**, a useful **tailored reply**, or **skip** for\n   each target. Replies must answer the actual discussion and add value; avoid\n   promotional link drops or repeating the user's existing contribution.\n   Return an existing matching permalink instead of another copy, even if\n   publishing was approved. Recheck live history immediately before any\n   authorized submission and after uncertain outcomes before retrying.\n6. Hand-author source-faithful drafts for the chosen targets. Use separate local\n   directories per source if invoking the single-source template CLI. The CLI\n   does not search, inspect media, verify rules\u002Fdates, or check account history;\n   its manifest explicitly reports `discovery_status: not_performed`.\n\n### Per-source discovery output contract\n\nReturn a separate section keyed by **every input source URL**, including sources\nthat are blocked or have no suitable targets. Do not pool multiple source posts\ninto a single unmapped recommendation. Each section must include:\n\n- Source URL, verified source summary, original media inspection and access limits.\n- For each target: platform, exact community URL and exact existing thread URL\n  (for replies), discussion date\u002Flatest activity, relevance, current rules URL\n  and checked-at date, flair\u002Flink constraints, and prior-user-post\u002Freply evidence.\n  For Reddit, include the promotion disposition (`allowed`, `conditional`,\n  `prohibited`, or `unverified`) and evidence for any eligibility conditions.\n- Decision: `standalone`, `reply`, `existing`, or `skip`, with rationale. Include\n  the exact existing permalink when found; no duplicate draft for that target.\n- The complete tailored draft (Reddit title\u002Fbody for standalone; reply text for\n  replies), explicitly mapped to its target URL and source URL. Standalone\n  targets use the community URL, not an invented future post permalink.\n- Coverage limits: searches and history window actually checked, inaccessible\n  sources\u002Fmedia\u002Frules\u002Fhistory, unverified dates, and platforms excluded by scope.\n  If no suitable target exists, say so; never fabricate links or search receipts.\n- State: `draft only`, `staged` only with verified requested staging evidence,\n  or `published` only with an authorized, verified final permalink.\n\nThis is a procedural output contract. Offline instruction tests can check that\nit is present; they cannot establish that a real discovery run occurred.\n\n## Twitter\u002FX browser workflow\n\nThis section takes precedence over generic staging\u002Fauth recipes for Twitter\u002FX.\nDraft and stage requests remain unpublished. An ordinary explicit request such\nas \"Cross post this to Twitter\" authorizes publishing the identified, reviewed\ncontent to the intended account and destination. Do not require the user to\nrepeat a magic phrase. Ask only for missing content\u002Faccount\u002Fdestination details\nor confirmation independently required by the active tool or policy. Material\nchanges to the approved content or destination need renewed approval.\n\n`POST APPROVED` is an internal execution token for legacy publisher scripts,\nnot a required user phrase. Supply it only after recording the actual user\ninstruction and verified account\u002Fcontent, and always pass the selected platform\nallowlist; never use the token to manufacture permission. If an active tool or\npolicy requires separate confirmation, obtain it normally. Invocation, login,\nand staging alone do not authorize posting, and no future posts are approved.\n\n1. Reuse a supported browser session and inspect the signed-in handle before\n   drafting or staging. If signed out, prefer the normal **Continue with Google**\n   flow when offered, select the intended existing Google account, and verify\n   the resulting X handle. A Google email alone does not prove the X identity.\n2. For a normal login failure, try one supported recovery (return to the official\n   login page or select the intended existing account), then report the exact\n   blocker. Stop for human-only challenges or denied actions. Never extract or\n   decrypt cookies, tokens, passwords, or browser credential stores; never bypass\n   access denial or switch to a hidden API to work around a blocked UI.\n3. Read the source post and retain its original text and original photo\u002Fvideo\n   when requested. Verify the uploaded media preview; do not silently replace\n   the original asset with a screenshot or omit it. Report inaccessible media.\n4. Inspect the verified account's recent posts for the source link and matching\n   text\u002Fmedia before submission. If a matching post exists, return its permalink\n   rather than creating a duplicate. If history cannot be checked, resolve that\n   uncertainty before posting. Recheck after any timeout or uncertain submission\n   before retrying; a timeout is not proof that posting failed.\n5. Before shortening text or building a thread, check the current account's\n   composer for supported long posts. When the full source fits, prefer one post\n   with the original media unless the user requested a thread. If it does not\n   fit, prepare a faithful shorter draft or thread for review. Do not assume a\n   subscription or a fixed limit from an old template; verify the full text\n   remains in the composer with no truncation or limit warning.\n6. Verify the exact visible text, intended handle, and media before the gated\n   publish action. Submit once. Then open the resulting permalink and verify\n   the author handle, visible full text (expand when needed), and original media.\n   Return the permalink with the verification result. A cleared composer or\n   success toast alone is not proof; report an uncertain outcome without retrying\n   until the profile\u002Fhistory check establishes whether the post exists.\n\n## Contract\n\n1. **Draft only by default** — produce discovery results and local drafts. No browser staging without a stage request and no publishing without explicit authorization.\n2. **Supported browser session** — reuse the intended signed-in account and verify identity; do not copy credentials between browsers.\n3. **Per-platform conformance** — character limits, title rules, hashtag placement, threading, self-promo ratios checked at draft time (no \"fix it after posting\").\n4. **Current community rules** — verify live rules during Phase 0; `references\u002Fsubreddit-rules.md` is historical guidance only.\n5. **POST APPROVED token** — `scripts\u002Fpost_approved.py` checks for literal `POST APPROVED` (or per-platform like `POST APPROVED linkedin,hackernews`) before clicking any submit button. Without the token, exits code 2 with \"BLOCKED — no POST APPROVED token\".\n6. **No provider calls in the template CLI** — deterministic local text only. Discovery and tailored drafting are agent instructions, not an implemented search or LLM backend.\n7. **No auto-stage on \u002Fsocial** — follow the latest request. Discovery\u002Fdrafting stops before Phase 2 unless staging is requested.\n\n## Supported Platforms\n\n| Platform | Template | Has web compose? | Notes |\n|----------|----------|------------------|-------|\n| LinkedIn | `templates\u002Flinkedin.md` | ✅ | long-form + 300-char short variant |\n| Hacker News | `templates\u002Fhackernews.md` | ✅ | \"Show HN:\" prefix when self-promo; title ≤80 chars |\n| Twitter\u002FX | `templates\u002Ftwitter.md` | ✅ | single tweet + thread; hashtags at end of last tweet only |\n| Reddit | `templates\u002Freddit.md` | ✅ | one file per subreddit; text-post preferred over link-post |\n| Threads | `templates\u002Fthreads.md` | ✅ | ≤500 chars, casual |\n| Facebook | `templates\u002Ffacebook.md` | ✅ | medium-length, link-friendly |\n| Instagram | `templates\u002Finstagram.md` | ⚠️ no web compose | caption + 30-hashtag block; surfaces mobile instructions |\n| Mastodon | `templates\u002Fmastodon.md` | ✅ | 500-char default; configurable instance |\n| Dev.to | `templates\u002Fdevto.md` | ✅ | markdown article format |\n\n## Phases\n\n### Phase 1 — Draft (deterministic, no browser)\n\nRun `scripts\u002Fdraft_social_post.py` with intent + key-points + link + platforms. Produces per-platform files in `--out \u003Cdir>`. Character-limit hard-rejects; spam-rule soft-warns.\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fdraft_social_post.py\npython3 \"$PY\" \\\n  --intent \"announce jleechanclaw open-source release\" \\\n  --key-points \"AI agent orchestration, hermes deploy pipeline, skill framework\" \\\n  --link \"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechanclaw\" \\\n  --platforms reddit,twitter \\\n  --reddit-subs \"LocalLLaMA,Rag,OpenAI\" \\\n  --image \"\" \\\n  --out \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-06\u002F\n```\n\nOutput: one `.md` file per platform (or per subreddit for Reddit). Filename-safe slugs.\n\n### Phase 2 — Stage in Aside (browser, no auto-post)\n\n**Prefer the MCP path (`stage_in_aside_mcp.py`) when available.** The `aside repl` CLI silently no-ops on programmatic paste (lesson #11; verified 2026-07-17 across 9\u002F11 platforms failed despite \"compose-ready\" status). The HTTP MCP at 127.0.0.1:8013\u002Fmcp with `openTab()` + Playwright `locator().fill()` reliably pastes when the session is healthy.\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fstage_in_aside_mcp.py\npython3 \"$PY\" --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-17\u002F\n# allowlist sub-stage, e.g. only HN + Twitter for retry runs:\npython3 \"$PY\" --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-17\u002F --only hackernews,twitter\n```\n\nFalls back to the legacy `aside repl` script when MCP is unreachable:\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fstage_in_aside.py\npython3 \"$PY\" --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-17\u002F\n```\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fstage_in_aside.py\npython3 \"$PY\" --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-06\u002F\n```\n\n**Contract (v3, 2026-07-11):** The script now enforces paste-and-verify. For each platform:\n\n1. Opens a new Aside tab on the platform's compose URL.\n2. Optional trigger click (LinkedIn \"Start a post\", Facebook \"What's on your mind\").\n3. Pastes the draft into the relevant field via per-platform paste function:\n   - `react_textarea` — vanilla `\u003Ctextarea>` \u002F `\u003Cinput>` (Reddit, HN, Mastodon, Dev.to)\n   - `exec_command` — contentEditable (Twitter, LinkedIn, Facebook, Threads); uses `document.execCommand('insertText', false, text)` after `el.focus()` — the only reliable pattern for React-controlled contentEditable fields.\n4. **Reads the field back** with `verify_text(selector)` and compares against expected draft length (≥70% threshold to allow for trailing whitespace stripping).\n5. Captures post-paste screenshot → `\u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-06\u002Fscreenshots\u002F\u003Cplatform>.png`.\n6. Sets status:\n   - `\"staged\"` — paste verified, screenshot saved\n   - `\"paste_failed\"` — compose form loaded but text didn't persist (user must paste manually)\n   - `\"login_wall\"` — page is a sign-in screen, no paste attempted\n   - `\"load_only\"` — Instagram (no web compose)\n   - `\"failed\"` — Aside subprocess error (e.g. extension bridge dead)\n\nThe script will NOT claim a platform is \"ready\" unless the draft text was verified inside the field. Vision-verify at least one screenshot per platform after staging for a final cross-check.\n\n**Aside recipes** for each platform's compose URL live in `references\u002Faside-recipes.md`.\n\n### Phase 3 — Surface to user\n\nReturn the per-source discovery output contract above, plus draft paths. Include screenshots only for requested, verified staging. Deliver in the current conversation unless another destination was explicitly requested.\n\n### Phase 4 — Post (gated)\n\nOnly after the latest user request explicitly authorizes publishing the reviewed content, verified account, and selected destinations, complete the live duplicate check and tool confirmations, then run:\n\n```bash\nPY=$HOME\u002F.hermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fpost_approved.py\npython3 \"$PY\" \\\n  --drafts \u002Ftmp\u002Fdrafts\u002Fsocial-2026-07-06\u002F \\\n  --approval-token \"POST APPROVED\" \\\n  --publish-request \\\n  --platforms reddit,twitter  # always pass the current request allowlist\n```\n\nBehavior per platform:\n- LinkedIn \u002F HN \u002F Twitter \u002F Reddit \u002F Threads \u002F Facebook \u002F Mastodon \u002F Dev.to → click submit, capture post-URL.\n- Instagram → surface draft caption as text + print mobile instructions (no web compose). Manual copy-paste from phone.\n\nPosting log written to `--drafts\u002Fposted.json` with timestamps + captured URLs.\nCompleted, existing, and uncertain submissions in that directory are not retried.\nFor a live-discovered duplicate, record `{\"status\": \"existing\", \"url\": \"\u003Cpermalink>\"}`\nunder its platform key in `posted.json` → `results` and return the permalink.\nThis local retry guard is not a live history search; Phase 0 and the pre-submit\nlive check remain required. Keep each source in its own draft directory.\n\n## Safety Gates\n\n1. **`POST APPROVED` required** — see `scripts\u002Fpost_approved.py` `check_approval()` function. Hard exit 2 if missing.\n2. **Current publish request** — `--publish-request` is an operator attestation of the latest explicit authorization, never supplied for draft\u002Fstage requests. Without it, existing drafts cannot be published even with a stale approval token.\n3. **Per-platform allowlist** — `POST APPROVED linkedin` only posts LinkedIn. Comma-separated = OR. Default = Reddit\u002FX only; flags cannot broaden a token allowlist.\n4. **No silent failures** — any platform that fails to post writes to `posted.json` with `{\"status\": \"failed\", \"error\": \"...\"}`. User is notified.\n5. **Audit log** — every draft run writes `--out\u002Fmanifest.json` with timestamp, intent, platforms, character counts, spam-rule warnings.\n\n## Historical subreddit leads (reverify current rules and relevance)\n\n| Content type | Primary | Secondary | Tertiary |\n|---|---|---|---|\n| Open-source \u002F local AI tool | r\u002FLocalLLaMA | r\u002FOpenSourceAI | r\u002Fsingularity (opinion-only) |\n| RAG \u002F retrieval \u002F vector DB | r\u002FRag | r\u002FLocalLLaMA | — |\n| Coding agent \u002F dev tool | r\u002FOpenAI (text post) | r\u002FLocalLLaMA | — |\n| General AI news \u002F opinion | r\u002FOpenAI | r\u002FLocalLLaMA | r\u002FClaudeAI (Claude-specific) |\n\n**Banned \u002F avoid:**\n- r\u002FAItools, r\u002FAutoGen, r\u002FLMStudio → banned subs.\n- r\u002Fsingularity, r\u002FAGI, r\u002FFuturism, r\u002FMachineLearning → zero self-promo.\n- r\u002Fphilosophy, r\u002FProgrammerHumor → AI content banned outright.\n\n## Anti-Patterns\n\n- ❌ Auto-posting without `POST APPROVED` (bypasses the safety gate)\n- ❌ Using `mcp__playwright-mcp__*` for localhost testing — use `aside` (signed-in session)\n- ❌ Calling `aside show_browser` \u002F headed mode without explicit opt-in (headless-only default)\n- ❌ Hardcoding API keys in `draft_social_post.py` (LLM augmentation must route through `~\u002F.hermes\u002Fconfig.yaml`)\n- ❌ Stripping 10\u002F90 framing from Reddit drafts (\"I built this, here's the link\") — guarantees removal\n- ❌ Posting the same draft verbatim across Reddit subs (each sub has different norms; per-sub files required)\n- ❌ Posting link-only to r\u002FOpenAI — requires text post + context (verified rule)\n- ❌ Clicking submit in Phase 2 (stage-only)\n- ❌ **Treating `draft_social_post.py` output as final without reading it** — the templater hallucinates key-points into the wrong slots when the intent is a commentary\u002Fopinion piece rather than a project announcement (e.g. \"Fable AI oneshot a 2D game\" gets turned into \"jleechanclaw does X\"). **Always read every generated `.md` file before staging.** If templating misfires, hand-author the drafts directly (write `.md` files in `--out`) and re-run staging on the hand-authored files. Worked example: `references\u002Ffable-2d-game-2026-07-11.md`.\n- ❌ **Trusting `stage_in_aside.py`'s \"compose-ready\" DOM verdict without vision-verification.** The script's DOM-detector only checks for selectors like `input[name=\"title\"]`; it does NOT verify that the text was actually pasted into the field. Programmatic paste via React setter \u002F contentEditable frequently fails silently on Twitter, LinkedIn, HN, and Reddit modals. After every staging run, vision-verify AT LEAST ONE screenshot per platform (`vision_analyze(\"Is the draft text visible in the compose field, or is it empty?\")`). If empty, the compose form is loaded but paste didn't stick — user must paste manually from the `.md` files.\n- ❌ **Trusting `listBrowserTabs()` as proof the platform is signed in** — it proves the *tab* is signed in, but `openTab(compose-url)` may still hit a session-revalidation redirect to a login wall (LinkedIn, Facebook, Dev.to, Mastodon, Threads all did this on 2026-07-11). The source-of-truth check is: vision-verify the staged screenshot shows a compose form with user avatar\u002Fhandle visible, NOT a login wall.\n- ❌ **Staging a Twitter draft that exceeds 280 chars (verified 2026-07-17).** The compose modal accepts arbitrary input but disables the Post button (red highlight + \"-666\" counter visible) once the limit is exceeded. The drafter must keep single-tweet drafts ≤280 chars; longer content needs a `--thread` flag that splits into N tweets. The default `templates\u002Ftwitter.md` does NOT enforce this — check after drafting.\n- ❌ **Splitting the staging workflow across multiple MCP `tools\u002Fcall` invocations** (verified 2026-07-17). See lesson 19 — each `openTab` opens a fresh tab, so call 2's paste lands on a different form instance than call 1's open. Always bundle `(openTab → fill → verify → screenshot)` in ONE IIFE per platform.\n\n## LinkedIn login-wall unblock signals (verified 2026-07-11)\n\nWhen LinkedIn staging returns a \"Welcome back\" password screen, do NOT conclude LinkedIn is unreachable. Check for these one-click unblock signals in the screenshot before declaring the platform blocked:\n\n1. **Google One-Tap prompt** (top-right overlay, dark gray box, \"Sign in to LinkedIn with Google\" + blue \"Continue as Jeffrey\" button) — one click unblocks the session.\n2. **Continue with Google button** (white button below \"Sign in\" with Google G logo) — same OAuth flow, one click.\n3. **Sign in with Apple button** — same UX as Google.\n\nIf any of these are visible AND the email shown matches `$USER@your-project.com`, the user can unblock LinkedIn in 1-2 clicks. Tell them which button to click.\n\nIf NO unblock signal is visible (just an empty password field), the session is fully expired and the user must type their password.\n\n## Trigger → Action Map\n\n| User says | Action |\n|-----------|--------|\n| `\u002Fsocial \u003Cintent>` or `draft posts for \u003CURLs>` | Phase 0 per source + Phase 1, then return the discovery output contract |\n| `draft + stage a post` | Phase 0 + Phase 1 + Phase 2 for selected targets |\n| Explicit publish\u002Fcrosspost request | Verify approval, account\u002Fcontent\u002Fdestinations, live duplicates and any tool confirmation before Phase 4 |\n| `revise the draft` | Revise local text only unless staging is requested |\n\nFor replies, use the exact reviewed thread\u002Fcomment composer when staging is\nrequested. The legacy scripts open standalone composers; they do not support\nreply targeting. Use a supported browser workflow or return manual-use drafts,\nnever stage a reply as a standalone post by accident.\n\n## Summary delivery\n\nReturn results in the current conversation. If explicitly asked to send elsewhere,\nuse the supported connector and its permissions. On denied\u002Funavailable access,\nreport the blocker; do not switch identity or use a hidden token\u002FAPI fallback.\n\n## Files\n\n- `scripts\u002Fdraft_social_post.py` — deterministic drafter\n- `scripts\u002Fstage_in_aside.py` — opens Aside tabs + screenshots (legacy `aside repl` path — silent paste failure mode)\n- `scripts\u002Fstage_in_aside_mcp.py` — **preferred**: opens Aside tabs + pastes via HTTP MCP at 127.0.0.1:8013\u002Fmcp. One MCP call per platform bundles open + paste + verify + screenshot on a single `page` object (avoiding the \"fresh tab = lost paste\" failure). Verified selectors for HN, Twitter, Mastodon, Reddit ×3, Dev.to, LinkedIn, Facebook, Threads (2026-07-17).\n- `scripts\u002Fcookie_inject_and_stage.py` — legacy, prohibited in this workflow; do not execute.\n- `scripts\u002Fpost_approved.py` — gated publisher\n- `templates\u002F*.md` — 9 platform templates\n- `references\u002Fsubreddit-rules.md` — live-verified per-sub rules\n- `references\u002Fplatform-character-limits.md` — hard limits + soft guidance\n- `references\u002Faside-recipes.md` — `aside repl` snippets per platform\n- `references\u002Fplatform-session-status.md` — per-platform cookie injection + anti-bot results (verified 2026-07-05). Historical evidence only; do not execute cookie-injection recipes.\n- `references\u002Fblog-post-to-gdoc.md` — recipe for \"draft a blog post in Google Docs\" (canonical `gws docs` path + local-markdown fallback when gws OAuth is unauthenticated).\n- `references\u002Faside-repl-session-state.md` — verified auth state per platform for `aside repl` workflows (2026-07-06). Includes the `listBrowserTabs()` live-tab probe recipe, the `document` scope-doesn't-persist-across-REPL-calls pitfall, and per-platform paste workarounds for LinkedIn contentEditable \u002F Facebook click-first \u002F Twitter thread pagination.\n- `references\u002Faside-repl-playwright-pattern.md` — verified `openTab()` returns a Playwright `Page` object with `screenshot()` (Buffer→base64), `evaluate()`, `locator()`, `frameLocator()`. Includes 6 working paste\u002Fclick\u002Finspect idioms. Source of truth for the 2026-07-06 staging rewrite.\n- `references\u002Ffable-2d-game-2026-07-11.md` — worked example for commentary\u002Fopinion drafts (NOT project announcements). Documents the Fable 2D-game run, the templater failure mode, the vision-verify matrix, and the recommended workflow for future commentary runs.\n- `references\u002Ffable-quota-skill-2026-07-15.md` — worked example for **commentary\u002Fopinion about a third-party capability + a personal artifact (gist\u002Fskills)**. Documents lessons 15 (`require('fs')` is not in the REPL; capture screenshots via base64 stdout redirect), 16 (Mastodon URLs: `\u002Fcompose` is 404, use `\u002Fpublish`), and 17 (LinkedIn share-box trigger has obfuscated classes; programmatic click fails). Its historical token fallback is prohibited by the supported-access rules above.\n- `tests\u002Ftest_*.py` — unit + integration tests\n- `references\u002Fstaged-vs-pasted-verification.md` — **CRITICAL**: how to verify drafts actually got pasted into compose forms (vs. just having the page loaded). Use the explicit \"what text is in the field?\" vision prompt + the verification snippet. The stage script's `staged: True` is not enough.\n- `references\u002Faside-mcp-cli-gmail-profile.md` — Aside automation via HTTP MCP at 127.0.0.1:8013\u002Fmcp with `mcp-session-id` header flow + gmail (u0) profile. Reusable Python client snippet. The most reliable automation path when the Chrome extension bridge is alive. **Includes the verified openTab + locator.fill() + screenshot pipeline, per-platform selector table for HN \u002F Twitter \u002F Mastodon \u002F Reddit \u002F Dev.to \u002F LinkedIn \u002F Facebook \u002F Threads, and 7 stage pitfalls (MCP degradation, Reddit fragility, login walls, subprocess.run vs Popen) verified 2026-07-17.**\n\n## Operator rules\n\nUse the supported session; report unavailable staging without blocking drafts.\nVerify actual visible text, account, media, and selected destinations before\nclaiming staging succeeded. Do not run historical credential-copy recipes.\n\n## Critical lessons (from real sessions, not theoretical)\n\n0. **`staged` ≠ `pasted`.** The stage_in_aside.py script labels every successfully-navigated compose form as \"staged\" even when the paste silently failed (React-controlled-field re-render ate the programmatic input). **Vision-verify the actual TEXT inside the title input + body textarea, not just the page state.** A logged-in compose form with empty fields looks identical to a logged-in compose form with empty fields — vision models will say \"compose form ready\" either way unless explicitly asked \"what text is currently inside the field?\" (lesson from 2026-07-11 Fable-2D-game run, user pushback: \"all of those drafts are obviously wrong and just random login screens so youre not even close to working\"). See `references\u002Fstaged-vs-pasted-verification.md` for the verify-paste checklist + reusable paste verification snippet.\n\n0a. **Use `--account u0` ($USER@gmail.com) for `aside repl` automation.** Default active is `u1` (your-project.com) and the extension bridge can be more brittle on that profile. Verified 2026-07-11 — user pushed \"use $USER@gmail.com profile next time and use the mcp or cli its supposed dto work\". See `references\u002Faside-mcp-cli-gmail-profile.md`.\n\n0b. **Aside HTTP MCP at 127.0.0.1:8013\u002Fmcp is the most reliable automation path** (when the extension bridge is alive). Tools surface: just `repl` (single tool wrapping the persistent JS REPL). MCP initialize handshake requires reading the `mcp-session-id` header from the response and sending it on subsequent calls + `notifications\u002Finitialized`. Top-level `await` is NOT allowed in the REPL — wrap in `(async () => { ... })();`. The REPL has persistent scope (vars persist across calls), `fs` module via `node:fs\u002Fpromises`, `display()` for inline image preview, `sleep(ms)`, `fetch()` with user cookies. See `references\u002Faside-mcp-cli-gmail-profile.md` for the full request flow + reusable client snippet.\n\n1. **`aside account list` does NOT show per-platform auth state.** It only shows the active Google account ID. To gauge whether LinkedIn\u002FTwitter\u002FFacebook\u002Fetc. are actually signed in, run `aside repl \"const tabs = await listBrowserTabs(); console.log(tabs.map(t => t.url).join(' | '))\"`. A signed-in tab on the platform = the session is valid, even if a fresh `openTab(compose-url)` shows a login wall (compose-URL navigation may trigger session re-auth).\n\n2. **`document` scope does NOT persist across `aside repl` calls.** Each call gets a fresh JS context. Multi-step workflows (open → click → paste → verify) must be bundled in ONE async IIFE in a single call. Screenshot via `annotatedScreenshot(pageObj)` returned from `openTab()`, not `annotatedScreenshot(null)`.\n\n3. **Programmatic paste into LinkedIn\u002FTwitter\u002FFacebook compose modals is unreliable.** Twitter's textarea + React setter trick works in a single bundled call. LinkedIn's contentEditable div + `el.innerHTML = text` works but React state may not sync (manual paste is more reliable). Facebook requires click-first on \"What's on your mind, [Name]?\" before the modal opens. **When staging is requested and paste fails: report the empty composer honestly and return manual-use drafts.** This avoids the React control gymnastics entirely and the user still gets visual proof the compose UI is loaded.\n\n4. Publishing requires explicit current authorization; the script token is internal bookkeeping, not a magic user phrase.\n\n5. **`aside session` ≠ `account list` ≠ Chrome cookie DB.** The source of truth is `listBrowserTabs()`. If the user says \"I'm signed in to LinkedIn\", verify with that probe before declaring a platform unreachable.\n\n6. **`openTab(url)` returns a Playwright `Page` object**, not a serializable tab descriptor. Use `p.screenshot()` directly (returns a Buffer that base64-encodes for stdout), or `p.locator(...)` \u002F `p.evaluate(() => ...)` for DOM ops. `annotatedScreenshot(null)` throws `Cannot read properties of null (reading 'snapshot')`; `annotatedScreenshot(pageObj)` works but `p.screenshot()` is simpler. See `references\u002Faside-repl-playwright-pattern.md` for the verified idioms.\n\n7. **Reddit compose URL must end in `?selftext=true`.** `https:\u002F\u002Fold.reddit.com\u002Fr\u002F\u003Csub>\u002Fsubmit` lands on the link-post form by default, which navigates through the \"link vs text\" tab UI and triggers a session re-auth redirect. The `?selftext=true` param lands directly on the text-post form with title (textarea[name=\"title\"]) + body (textarea[name=\"text\"]) fields visible. `stage_in_aside.py`'s compose URL for Reddit MUST include this param. Verified 2026-07-06 for r\u002FLocalLLaMA, r\u002FOpenAI, r\u002FRag — all three compose forms loaded immediately with no auth redirect when the `?selftext=true` suffix was used.\n\n8. **Vision-verify compose-vs-login, don't DOM-detect.** A DOM-only check like `document.querySelector('input[name=\"title\"]')` can give false negatives if the page is still loading. The deterministic check is `p.screenshot()` → save → `vision_analyze(image_url, \"Is the compose form for posting to r\u002FX visible, with title input and body textarea? Or is it a login wall?\")`. The user said \"Many of these screenshots are login screens I wanna find the draft post screen \u002F Still not good enough\" on 2026-07-06 — the lesson: ALWAYS confirm by vision, never trust URL or DOM-only state when the user wants visual proof.\n\n9. **Aside daemon restart = sessions break.** If `aside repl` returns \"fetch failed\" and you `pkill -f AsideDaemon` to recover, all open tabs are lost. Subsequent `openTab()` calls hit login walls even though the underlying Chrome cookie DB still has valid sessions, because Aside's tab-object state is gone. `listBrowserTabs()` returns `TOTAL_TABS 1` (a single fresh tab) instead of the prior 17-tab state. **Fix:** instead of `pkill`, try `open -a \"Aside\"` first — sometimes the daemon recovers without losing tabs. If you must restart, plan for a sign-in re-pass on platforms that were \"previously signed in.\"\n\n10. **`draft_social_post.py` cannot tell a project announcement from a commentary\u002Fopinion piece.** When the source URL is a personal reaction to a third-party capability (e.g. \"Fable AI oneshot a 2D game from my text sim\"), the templater will hallucinate the user's open-source project as the subject and stuff every key-point into the wrong slot. **Always read every generated `.md` before staging.** If misfires, hand-author directly into the same files. Worked example: `references\u002Ffable-2d-game-2026-07-11.md`.\n\n11. **Compose-ready ≠ paste-stuck (re-confirmed 2026-07-11).** Even when the compose form is loaded and vision-verified, programmatic paste via React setter \u002F contentEditable frequently fails silently on Twitter, HN, Reddit, and LinkedIn. After staging, vision-verify ONE screenshot per platform with the question \"What text is actually in the compose field? Empty or has content?\" If empty, the form loaded but paste didn't stick — surface this to the user as \"compose form ready, paste manually from the `.md` file.\" Do NOT claim the draft is staged-and-pasted when the field is empty.\n\n12. **`web_extract` cannot fetch LinkedIn post bodies (re-confirmed 2026-07-11).** The `ddgs` backend returned `ddgs is a search-only backend and cannot extract URL content`. Workaround: `curl -A \"Mozilla\u002F5.0 ... Chrome\u002F126.0.0.0 ...\" \u003Clinkedin-url> -o \u002Ftmp\u002Fpost.html`, then `python3 -c \"import re; m = re.search(r'\u003Cmeta[^>]+property=\\\"og:description\\\"[^>]+content=\\\"([^\\\"]+)\\\"', open('\u002Ftmp\u002Fpost.html').read()); print(m.group(1) if m else 'NONE')\"`. LinkedIn embeds the full post body in og:description.\n\n13. **Aside MCP `repl` tool: SKIP `notifications\u002Finitialized` (verified 2026-07-11).** The MCP initialize handshake works, but if you send `notifications\u002Finitialized` after the initialize, subsequent `tools\u002Fcall` requests return `Bad Request: No valid session ID provided` even though the session-id header is correctly attached. **The working pattern:** init → read `mcp-session-id` from response header → call `tools\u002Fcall` immediately, skip `notifications\u002Finitialized`. Also: use top-level `await` directly in REPL code (the REPL is in module mode) — DO NOT wrap in `(async () => { ... })();` IIFEs because the IIFE swallows `console.log` output via the SSE stream. Top-level `console.log('HELLO')` works synchronously; `await fetch('https:\u002F\u002Fapi.ipify.org')` then `console.log(await r.text())` works async.\n\n14. Legacy cookie-injection recovery is prohibited. Use normal supported login or return drafts with the access limitation.\n\n15. **`require('fs')` is NOT available in the Aside REPL (verified 2026-07-15).** Trying `require('fs').writeFileSync(...)` inside `aside repl` returns `Error: External modules are not available in the REPL.` The screenshot Buffer from `p.screenshot()` cannot be saved directly from inside the REPL. **The verified pattern** — capture the base64 via `console.log` then grep+decode in the parent shell:\n\n```bash\naside repl \"\nconst p = await openTab('\u003Curl>');\nawait sleep(3000);\nconst ss = await p.screenshot();\nconsole.log('SCREENSHOT_B64:' + ss.toString('base64'));\n\" > \u002Ftmp\u002Fout.txt 2>&1\ngrep '^SCREENSHOT_B64:' \u002Ftmp\u002Fout.txt | sed 's\u002F^SCREENSHOT_B64:\u002F\u002F' | base64 --decode > \u002Ftmp\u002Fshot.png\n```\n\nThis works because top-level `await` is allowed directly in the REPL (no IIFE wrapper needed — see lesson 13). For multi-platform staging loops, wrap in a Python `subprocess.run` loop that parses each `SCREENSHOT_B64:` line and decodes to disk.\n\n16. **Mastodon URLs: `mastodon.social\u002Fcompose` is a 404; use `mastodon.social\u002Fpublish` (verified 2026-07-15).** Old docs and recipes reference `\u002Fcompose`, but the modern Mastodon (v4.x) instance returns a 404 Not Found for that path. The compose preview lives at `\u002Fpublish`. **Caveat:** `\u002Fpublish` shows the compose form to unauthenticated users, but the \"Post\" button won't work until you sign in. Verify session state with vision (\"Login \u002F Create account buttons visible on the right?\") before staging. Other instances (e.g. `mastodon.social\u002F@user`) have different canonical paths; check the instance's help docs.\n\n17. **LinkedIn share-box trigger uses obfuscated class names that defeat programmatic clicks (verified 2026-07-15).** `.locator('button[aria-label*=\"Start a post\"]')` returns 0 matches. Click-by-text (`document.querySelectorAll('button').forEach(el => { if (el.textContent.includes('Start a post')) el.click() })`) also returns 0 — LinkedIn renders the \"Start a post\" box as a `\u003Cdiv>` with `role=\"button\"` and randomized class names like `share-box-feed-entry__closed-share-box`. After 3 failed attempts (locator, click-by-text, click-by-placeholder), the recommended path is: **tell the user \"click 'Start a post' manually, then paste from linkedin.md\"**. Same fallback applies to Threads (sometimes), Facebook (modal requires click on \"What's on your mind, [Name]?\" first), and Instagram (no web compose at all).\n\n18. **`aside repl` CLI silently no-ops on programmatic paste — use Aside HTTP MCP instead (verified 2026-07-17).** Switching the staging script from `aside repl \"...\"` to the HTTP MCP at `127.0.0.1:8013\u002Fmcp` is the difference between 9\u002F11 platforms stuck at \"compose-ready with empty fields\" and 3\u002F11 platforms actually having the draft text in the field. The `aside repl` path looks identical — every `await loc.fill(...)` returns without error — but the field stays empty because the underlying Chrome DevTools clipboard-write hook is silently disabled in that mode. Use `scripts\u002Fstage_in_aside_mcp.py` as the canonical staging entry point; treat `aside repl` paste as a known-broken path.\n\n19. **Bundle open + paste + verify + screenshot in ONE MCP call per platform, never split (verified 2026-07-17).** Each `openTab(url)` opens a fresh tab. If the JS code is split across multiple MCP calls — call 1 opens the tab, call 2 types, call 3 verifies — the typed text is lost because call 2's `openTab` reopens a new tab on the same URL, which resets the compose form. The fix is one MCP `tools\u002Fcall` per platform wrapping `(async () => { openTab → fill → verify → screenshot })()` in a single IIFE; the screenshot base64 emits on a separate `SHOT_\u003Cvar>:` line so the companion `RESULT_\u003Cvar>=\u003Cjson>` line stays small enough to parse reliably.\n\n20. **MCP server at 127.0.0.1:8013\u002Fmcp degrades after ~6-8 bundled calls (verified 2026-07-17).** Symptom: subsequent `tools\u002Fcall` requests return 0 bytes (no SSE error, no console output, the curl process times out after 180s with empty body). Cause: Chrome \u002F Aside daemon contention from too many open tabs \u002F `playwright.Page` handles held across calls. Recovery: `pkill -9 -f aside` then `open -a \"Aside\"` and wait 10s; `aside account use u0`; `openTab \u003Cwarmup-url>` once to confirm the window has focus; re-run. Or, if the same script that worked minutes ago now returns empty, restart Between MCP sessions — every fresh session starts healthy.\n\n21. **Reddit's old.reddit.com form is fragile — fill sometimes hangs Chrome entirely (verified 2026-07-17).** Symptom: `locator.fill()` for `textarea[name='text']` on `\u002Fr\u002FX\u002Fsubmit?selftext=true` triggers an indefinite Chrome hang (no MCP response after 60s+). The same code works for HN (`textarea[name='text']`) and Mastodon (`\u003Ctextarea>`) — the difference is old.reddit's anti-spam heuristics. Workaround: run each Reddit subreddit in its own fresh MCP session, fill title first, then body in a separate call. If the body fill still hangs, surface the draft `.md` file to the user for manual paste.\n\n22. **Login walls silently reappeared for LinkedIn \u002F Facebook \u002F Threads \u002F Dev.to with Chrome profile u0 = $USER@gmail.com (verified 2026-07-17).** Earlier sessions (2026-07-11) reported these platforms as \"signed in for the session via fresh `openTab`\"; the cookies appear to have rotated or expired between sessions. Symptom: `openTab` on the compose URL redirects to the platform's sign-in form (Dev.to shows `input#user_email` + `input#user_password`; LinkedIn shows \"Welcome back\" page). Fix: one-time manual login in the Aside GUI, then re-run staging — u0 cookies refresh for the next 24-72h. If login is unavailable, return local drafts and report the blocker.\n\n23. **Use `subprocess.Popen + .communicate(timeout=...)`, NOT `subprocess.run(timeout=...)` for MCP `curl` calls (verified 2026-07-17).** `subprocess.run(..., timeout=180)` silently drops output if the curl process writes its SSE bytes between Python's timeout firing and the process exiting cleanly. `Popen` + `communicate(timeout=180)` captures the same data. Indistinguishable on a happy path; visible failure mode is `len(out) == 0` after a \"successful\" call.\n\n24. **Always vision-verify the actual TEXT inside the field after staging (verified 2026-07-17 re-confirmation).** The HN stage reported `paste: ok=true, len=1131` via the verify step, but the saved screenshot showed only the last 2 sentences of a multi-paragraph body. Playwright's `locator.fill()` silently truncates on certain React-controlled textareas when the input exceeds ~1000 chars and the field has not been focused first. The fix is `await loc.click(); await sleep(300); await loc.fill(text)` (already in `stage_in_aside_mcp.py`), BUT vision-verify is the only reliable cross-check — the verify step reads `document.querySelector().value.length` which disagrees with what's actually visible after a re-render. Always end Phase 2 with one `vision_analyze` per platform asking \"what text is currently in the field?\" before declaring success.\n",{"name":5,"context":40,"version":65,"triggers":66,"description":86,"when_to_use":87,"allowed-tools":88},"0.1.0",[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,26,85],"draft a social post","draft a post","post to social","post to linkedin","post to hacker news","post to reddit","post to twitter","post to threads","post to facebook","post to instagram","draft linkedin post","draft hacker news post","draft reddit post","draft tweet","draft twitter thread","draft instagram caption","draft threads post","show hn","\u002Fsocial","Discover relevant Reddit communities and existing Reddit\u002FX discussions for\neach source post; draft standalone posts or tailored replies. Reddit and X\nare the default destinations. Other supported platforms are explicit opt-ins.\nDraft requests never auto-stage or publish. Publication requires explicit\nauthorization for reviewed content, account, and destinations.\n","Use when the user asks to draft a post for any social platform, share a project\non LinkedIn\u002FHN\u002FTwitter, post to Reddit, prepare a Show HN, draft an Instagram\ncaption, or any \"draft a post\" \u002F \"post to \u003Cplatform>\" \u002F \"share on social\" \u002F\n\"\u002Fsocial \u003Cintent>\" request. Also fires on \"\u002Fsocial \u003Cintent>\" slash command.\n",[89,90,48,91,92],"Read","Write","Edit","Grep","main","05df7380981a2c4af868ce0fa57962ae0eea62a9","hermes\u002Fskills\u002Fsocial-poster",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":8,"skillName":5,"commands":101,"prompt":111,"zipAvailable":112},[102,105,108],{"tool":103,"command":104},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill social-poster",{"tool":106,"command":107},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill social-poster",{"tool":109,"command":110},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill social-poster","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002FSKILL.md",true,[114,120,124,128,132,136,140,144,148,152,156,160,164,168,172,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250,254,258,262],{"path":115,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":118,"sourceHtmlUrl":119},"_meta.json","REFERENCE","参考文档",139,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fcardano\u002F_meta.json",{"path":121,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":122,"sourceHtmlUrl":123},"references\u002Faside-mcp-cli-gmail-profile.md",17811,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Faside-mcp-cli-gmail-profile.md",{"path":125,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":126,"sourceHtmlUrl":127},"references\u002Faside-recipes.md",5497,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Faside-recipes.md",{"path":129,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Faside-repl-playwright-pattern.md",6171,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Faside-repl-playwright-pattern.md",{"path":133,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Faside-repl-session-state.md",6022,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Faside-repl-session-state.md",{"path":137,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Fblog-post-to-gdoc.md",3868,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Fblog-post-to-gdoc.md",{"path":141,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":142,"sourceHtmlUrl":143},"references\u002Fconcepts.md",895,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fcardano\u002Freferences\u002Fconcepts.md",{"path":145,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":146,"sourceHtmlUrl":147},"references\u002Ffable-2d-game-2026-07-11.md",6266,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Ffable-2d-game-2026-07-11.md",{"path":149,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":150,"sourceHtmlUrl":151},"references\u002Ffable-quota-skill-2026-07-15.md",10365,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Ffable-quota-skill-2026-07-15.md",{"path":153,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":154,"sourceHtmlUrl":155},"references\u002Fmcp-tools.md",619,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fcardano\u002Freferences\u002Fmcp-tools.md",{"path":157,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":158,"sourceHtmlUrl":159},"references\u002Fplatform-character-limits.md",2304,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Fplatform-character-limits.md",{"path":161,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":162,"sourceHtmlUrl":163},"references\u002Fplatform-session-status.md",6877,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Fplatform-session-status.md",{"path":165,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":166,"sourceHtmlUrl":167},"references\u002Fstaged-vs-pasted-verification.md",5701,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Fstaged-vs-pasted-verification.md",{"path":169,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":170,"sourceHtmlUrl":171},"references\u002Fsubreddit-rules.md",3688,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Freferences\u002Fsubreddit-rules.md",{"path":173,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":176,"sourceHtmlUrl":177},"scripts\u002Fcookie_inject_and_stage.py","SCRIPT","脚本",14558,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fcookie_inject_and_stage.py",{"path":179,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":180,"sourceHtmlUrl":181},"scripts\u002Fdraft_social_post.py",22070,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fdraft_social_post.py",{"path":183,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":184,"sourceHtmlUrl":185},"scripts\u002Fplatform_policy.py",2021,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fplatform_policy.py",{"path":187,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":188,"sourceHtmlUrl":189},"scripts\u002Fpost_approved.py",9225,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fpost_approved.py",{"path":191,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":192,"sourceHtmlUrl":193},"scripts\u002Fstage_in_aside_mcp.py",15361,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fstage_in_aside_mcp.py",{"path":195,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":196,"sourceHtmlUrl":197},"scripts\u002Fstage_in_aside.py",28831,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Fscripts\u002Fstage_in_aside.py",{"path":199,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":200,"sourceHtmlUrl":201},"skill-card.md",2234,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fcardano\u002Fskill-card.md",{"path":203,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":204,"sourceHtmlUrl":205},"SOURCE.md",266,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fcardano\u002FSOURCE.md",{"path":207,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":208,"sourceHtmlUrl":209},"sub-skills\u002Fsubmit-tx.md",613,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fcardano\u002Fsub-skills\u002Fsubmit-tx.md",{"path":211,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":212,"sourceHtmlUrl":213},"templates\u002Fdevto.md",1272,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Fdevto.md",{"path":215,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":216,"sourceHtmlUrl":217},"templates\u002Ffacebook.md",1043,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Ffacebook.md",{"path":219,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":220,"sourceHtmlUrl":221},"templates\u002Fhackernews.md",1554,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Fhackernews.md",{"path":223,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":224,"sourceHtmlUrl":225},"templates\u002Finstagram.md",1354,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Finstagram.md",{"path":227,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":228,"sourceHtmlUrl":229},"templates\u002Flinkedin.md",1962,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Flinkedin.md",{"path":231,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":232,"sourceHtmlUrl":233},"templates\u002Fmastodon.md",983,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Fmastodon.md",{"path":235,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":236,"sourceHtmlUrl":237},"templates\u002Freddit.md",3864,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Freddit.md",{"path":239,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":240,"sourceHtmlUrl":241},"templates\u002Fthreads.md",996,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Fthreads.md",{"path":243,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":244,"sourceHtmlUrl":245},"templates\u002Ftwitter.md",1398,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftemplates\u002Ftwitter.md",{"path":247,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":248,"sourceHtmlUrl":249},"tests\u002Ftest_draft_social_post.py",7736,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftests\u002Ftest_draft_social_post.py",{"path":251,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":252,"sourceHtmlUrl":253},"tests\u002Ftest_post_approved_blocks.py",2693,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftests\u002Ftest_post_approved_blocks.py",{"path":255,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":256,"sourceHtmlUrl":257},"tests\u002Ftest_social_scope.py",11216,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftests\u002Ftest_social_scope.py",{"path":259,"resourceType":174,"resourceTypeDesc":175,"sizeBytes":260,"sourceHtmlUrl":261},"tests\u002Ftest_templates_exist.py",2576,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fsocial-poster\u002Ftests\u002Ftest_templates_exist.py",{"path":263,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":264,"sourceHtmlUrl":265},"TRUST.auto.yaml",2211,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fcardano\u002FTRUST.auto.yaml",[267,275,282,290,298,307],{"skillNo":268,"name":269,"nameZh":6,"description":270,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":271,"categories":272,"keywords":273,"publishedAt":274},"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":276,"name":277,"nameZh":6,"description":278,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":279,"categories":280,"keywords":281,"publishedAt":274},"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":283,"name":284,"nameZh":6,"description":285,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":286,"categories":287,"keywords":288,"publishedAt":289},"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":291,"name":292,"nameZh":6,"description":293,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":294,"categories":295,"keywords":296,"publishedAt":297},"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":299,"name":300,"nameZh":6,"description":301,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":302,"licenseFileUrl":303,"sourceHtmlUrl":304,"categories":305,"keywords":306,"publishedAt":297},"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":308,"name":309,"nameZh":6,"description":310,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":311,"categories":312,"keywords":313,"publishedAt":297},"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",[],[]]