content-engagement
Skill0 starsChanged 6 months agoMITView on GitHub
Read engagement back for published content posts and recover any orphaned posts, using the Scrapling MCP (the broadcast surface's feedback loop). Scrapes each confirmed post's like / reshare / comment / impression counts via a stealth browser session and feeds them into the optimization report as DELTAS (never cumulative snapshots, so re-polls do not double-count). Also recovers an auto-published post whose confirm was lost to a crash by scraping the author's recent posts. Best-effort and honest: a channel with no readable signal or a broken scrape produces no event, and the report says "no signal" rather than a fabricated number.
In this repository11 other files it gives its agents.
- competitor-customersSkill
- dispatch-contentSkill
- dispatch-outreachSkill
- draft-contentSkill
- draft-outreachSkill
- find-funded-foundersSkill
- find-leadsSkill
- humanizerSkill
- onboardSkill
- research-prospectSkill
- send-outreachSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
If no match is found, leave it: do NOT fabricate a post id.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/content-engagement - scrape-back the feedback loop
The cold side has no feedback loop by design. The broadcast side does: this reads each published post's engagement back via the Scrapling MCP and feeds the optimization report. Scrapling can READ (fetch + extract) but cannot POST, which is exactly the safe half. Read-only against the platform; it never writes a post.
Pairs with /dispatch-content. See ADR-0082 D415. The pure correlation + delta + ledger-write logic lives in orchestrator/content_reconcile.py; this skill supplies the Scrapling reads.
⚙️ Pre-flight - config + session cookies
cat ~/.outreach-factory/config.ymlEngagement read needs your platform SESSION COOKIES (logged-out LinkedIn shows almost nothing; X is increasingly gated). Reuse the same cookie sources /find-leads and /research-prospect already use ({scraper_auth.twitter_cookies_path}, your LinkedIn session). Open one stealth Scrapling session and reuse it across fetches:
open_session(session_type="stealthy", cookies=<your platform cookies>) -> session_idClose it at the end (close_session).
Phase 1 - recover any orphaned posts (the read-back, Pass A analog)
Auto-published posts can crash between distribution_intent and distribution_confirmed. Find them:
python {config.factory.home}/orchestrator/content_reconcile.py --orphans --json # if a CLI is wiredOr inline: content_reconcile.find_orphaned_distribution_intents(led.all_events(), now=...). For each orphan, scrape the author's recent posts on that channel with stealthy_fetch(<author profile/posts URL>, session_id=..., css_selector=...), find the post whose body matches the piece's hook (author + recency + the verbatim hook line), and record it:
content_reconcile.synthesize_confirmed_from_readback(led, intent_event=orphan, post_id=<scraped id>)
If no match is found, leave it: do NOT fabricate a post id. (Under the v2 draft-and-manual posture there are usually no orphans, since manual posts write their intent + confirm together at confirm time.)
Phase 2 - read engagement back (the feedback loop)
List the confirmed posts to poll, then scrape each:
python {config.factory.home}/orchestrator/content_reconcile.py --poll --jsonOr inline: content_reconcile.posts_to_poll(led.all_events()) returns {content_id, channel, post_id} per published post. For each, stealthy_fetch the post's public URL and extract the CUMULATIVE counts with a CSS selector (likes / reshares / comments / impressions, whatever the channel exposes). Then ingest:
content_reconcile.ingest_engagement(led, content_id=..., channel=..., scraped_metrics={"likes": 50, "comments": 8}, observed_at=<now>)
ingest_engagement converts the cumulative scrape into a DELTA versus what is already in the ledger and appends engagement_observed only when something changed. Pass the CUMULATIVE numbers you scraped; the module does the delta math (ADR-0082 D416). A failed or empty scrape (selector broke, post deleted, channel not readable) -> pass {} and it emits nothing; the report shows "no signal" honestly.
Cadence: re-poll a post a few times over its first week (engagement front-loads), then stop. Do not hammer; you are using a logged-in session.
Phase 3 - read the report
python {config.factory.home}/orchestrator/content_scheduler.py --reportThe per-channel engagement totals are the summed deltas (the cumulative). The "what is working" read is correlational and human-in-the-loop: it surfaces, you decide. What you never do here: post anything, write to any platform, or invent a number a scrape did not return.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

