fb-reply

fb-reply is a skill for Claude Code from tonydzi/second-brain-starter-kit. It costs 52 tokens per session (3,611 once invoked), scanned A, original, MIT.

A tool for reading comments on your recent Facebook posts and preparing personalized replies through your logged-in Chrome browser.

In plain words
What is it for?
Use it to review comments on your own posts, draft individual responses, and publish approved replies with controlled pacing.
Why use it?
It reduces the effort of handling comment backlogs while using draft approval and posting limits to reduce spam and account-risk problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the second-brain-skills plugin — 248 skills, 1 plugin shipped together

Good fit Use it to review comments on your own posts, draft individual responses, and publish approved replies with controlled pacing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/fb-reply
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonydzi/second-brain-starter-kit --skill fb-reply
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 248 skills, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fb-reply

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/fb-reply/github.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/fb-reply)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/fb-reply"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/fb-reply/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fb-reply

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/fb-reply"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/fb-reply.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,611 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.03611
Opus 5.5 $0.00021 $0.01444
Sonnet 5.5 $0.00010 $0.00722
Haiku 4.5 $0.00005 $0.00361

Measured 11d ago against content hash e7a7a493ecb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fb-reply scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fb-reply/SKILL.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/fb-reply — reply to the comments under the owner's posts (safely)

Why. Comments pile up under the posts (often valuable — like the counter-thesis one engineer left about tailscale). Replying on your OWN posts is a low-risk task, but Facebook still bans for PACE. So: read safely, write personally in the owner's voice, post one at a time with pauses, under a counter.

Main rules (from Deep Research #32):

  • Pace decides, not "bot vs human". Every reply passes fb_guard check reply: ≤40/day, ≥5 min between replies, no back-to-back series. The guard physically will not let you overshoot.
  • Every reply is personal and different (top-tier model, the owner's voice). The same text sent to many people = a spam flag → a ban.
  • Draft-first: show the owner a batch of drafts, post only after a +.
  • Account safety: do NOT click "View more comments" on reshares — it navigates away. Read what already loaded under the original.

0. The fuse — status at the start

python "$USERPROFILE/.claude/scripts/fb_guard.py" status

Shows how many replies went out today and whether we are paused. If reply is already at the daily limit — tell the owner and defer.

1. Browser + reading the commenters (no risky clicks)

Strictly LOCAL, a live tab, we never touch the login. Is the Chrome MCP connected? (list_connected_browsers). ⛔ IP gate (owner, 07-16): Facebook commenting happens ONLY from the hub (a stable IP). On another machine do NOT reply — send the task to the hub as text. Canon: ip-sensitive-actions-hub-only.

  1. Open the owner's post (he gives the link, or go to facebook.com/<profile> → his latest posts). ⛔ PITFALL 2026-07-28: the profile wall does NOT hand out permalinks. Scrolling the profile yields zero pfbid links (Facebook populates href only on hover), and the feed is virtualized — a JS scroll outruns lazy loading and the posts stay skeletons. The working entrance = the notifications feed facebook.com/notifications: every row "X commented on your post" already carries a ready /posts/pfbid… and tells you WHO wrote and WHEN. One pass over it replaces the whole wall scroll. The Graph-API path (fb_posts_poll.py) is dead for now — there is no FB_USER_TOKEN. ⚠️ An open Messenger window pollutes the results: its div[role="article"] elements are DM messages, not comments. Close the chat window before collecting.
  2. Extract the commenters INSIDE THE PAGE ITSELF (Facebook hides names/links across the MCP boundary → match and filter inside the page, and hand out only safe text). Through mcp__Claude_in_Chrome__javascript_tool:
    const out = [];
    const seen = new Set();
    document.querySelectorAll('div[role="article"][aria-label]').forEach(a => {
      const al = a.getAttribute('aria-label') || '';
      if (!/^Comment by|^Reply by/i.test(al)) return;                     // comments only
      const blocks = [...a.querySelectorAll('div[dir="auto"]')]
        .map(d => (d.innerText || '').trim()).filter(Boolean);
      const text = (blocks.sort((x, y) => y.length - x.length)[0] || '').slice(0, 500);
      if (!text || seen.has(text)) return;
      seen.add(text);
      const link = a.querySelector('a[role="link"][href]');               // the author's profile
      const handle = link ? (new URL(link.href).pathname.replace(/\//g,'')) : '';
      const hasImg = !!a.querySelector('img[src*="scontent"],img[src*="fbcdn"]');
      out.push({ handle, text, hasImg });                                  // handle = username, not a display name
    });
    out;
    
    You get back a list of {handle, text, hasImg} — no hidden strings, safe to display. (If Facebook runs in another language, add that locale's aria-label prefixes to the regex.)
  3. Virtualization: if there are few comments, gently scroll the comments area (computer scroll down the page, WITHOUT clicking expander buttons) and repeat §1.2. On a RESHARED post do NOT press "View more".
  4. ⚠️ MANDATORY: expand collapsed threads BEFORE choosing "who to reply to" (lesson 2026-07-05): Facebook hides existing replies under "View N replies" — the owner has often ALREADY replied himself, and from the outside you cannot see it (a duplicate = embarrassment + a spam signal). On YOUR OWN post the inline thread expanders are safe (not to be confused with "View more comments" on reshares). Through JS: click every toggle matching /View (\d+ )?repl/i, wait ~3s, then collect aria-label^="Reply by <owner's name> to <Name>" → the list of ALREADY answered people; reply only to those not on it. In the 2026-07-05 run this filtered out 7 of 8 "candidates".

Read the full file on GitHub · 156 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · -1 lines e7a7a493ecb7
  2. 16d ago Changed · -127 lines · -47 tokens per session b1ad82518923
  3. 25d ago Changed · +125 lines · +47 tokens per session 0ff109a19284
  4. 1mo ago Changed · +1 lines · -26 tokens per session b5ed49e57d0e
  5. 1mo ago First seen · 158 lines · 78 tokens per session scan A 49db7fd2b75a

Subscribe to this mod's changes

fb-reply is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (9 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 3,611 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

defuddle

Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion.

AgriciDaniel/claude-obsidian · 57 tokens

facebook-personal-browser

Read your own signed-in personal Facebook inside Agent Chrome, strictly read-only. Open and read a specific post and its comments (fb-read), look inside a group you belong to, or check your own notifications or posts. Use when asked to "open this Facebook post", "read the comments on", "check my Facebook…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 151 tokens

last30days-plus

The last30days research skill with your own subscriptions added as extra research lanes, driven inside Agent Chrome. Grok (Private Chat) for X/Twitter, Perplexity Deep research (Incognito) for the web and news, and Meta's Muse for Facebook groups and Instagram (experimental). Runs the upstream last30days skill…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 152 tokens

muse-browser

EXPERIMENTAL. Research Facebook and Instagram (trends, Reels, creators, and conversations in Facebook groups you belong to) by asking Meta's own AI agent Muse (muse.ai) inside Agent Chrome, in a fresh side chat with a read-only instruction. Muse searches Facebook, Instagram and Threads posts your account can see and…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 159 tokens

perplexity-browser

Research with your own Perplexity subscription inside Agent Chrome instead of the paid Perplexity API. Quick cited web answers (Search) or Perplexity Deep research reports with dozens of sources, always in Incognito and with a neutral preface so your personalization and memory don't shape the answer. Use when asked to…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 140 tokens

grok-browser

Research what people are saying on X (Twitter) through Grok on grok.com inside Agent Chrome, always in Grok Private Chat so nothing lands in your Grok history, memory or model training. Grok searches X live (with engagement filters like minfaves) and returns posts with handles, dates and status URLs; the driver checks…

AiAi-Mastermind/aiai-mastermind-tools-and-skills · 149 tokens