content-ideas
Your For You page. Scrapes every platform where your tracked creators publish,
scores what's performing, and turns it into content ideas you can act on.
Designed to run daily — each run creates a dated feed under
.
The output is a single self-contained HTML page (two tabs: Posts — one
sortable, filterable feed merging tracked-account posts and discovered niche
outliers — and Ideas) that you can open in a browser, react to, and
keep. Reactions are captured for future personalization.
Resolve the skill directory
Everything this skill runs lives under its own folder. The skill installs the
same way on Claude Code and Codex, so resolve
against both plugin
caches (and a plain repo checkout) once, before anything else:
bash
# 1) Codex plugin cache, or a repo cloned into ~/.codex/skills/ (latest wins on upgrade).
SKILL_DIR="$(ls -d "$HOME/.codex/plugins/cache/"*/content-ideas/*/skills/content-ideas/ "$HOME/.codex/skills/"*/skills/content-ideas/ 2>/dev/null | sort -V | tail -1)"
SKILL_DIR="${SKILL_DIR%/}"
# 2) Claude Code plugin cache.
if [ -z "$SKILL_DIR" ] || [ ! -f "$SKILL_DIR/scripts/scrape.py" ]; then
CLAUDE_ROOT="$(ls -d "$HOME/.claude/plugins/cache/content-ideas/content-ideas/"*/ 2>/dev/null | sort -V | tail -1)"
CLAUDE_ROOT="${CLAUDE_ROOT%/}"
[ -n "$CLAUDE_ROOT" ] && [ -f "$CLAUDE_ROOT/skills/content-ideas/scripts/scrape.py" ] && SKILL_DIR="$CLAUDE_ROOT/skills/content-ideas"
fi
# 3) Plugin root passed by the host, or a repo checkout / local dev.
if [ -z "$SKILL_DIR" ] || [ ! -f "$SKILL_DIR/scripts/scrape.py" ]; then
for dir in "${CLAUDE_PLUGIN_ROOT:-}/skills/content-ideas" "${CLAUDE_PLUGIN_ROOT:-}" "${GEMINI_EXTENSION_DIR:-}/skills/content-ideas" "./skills/content-ideas" "."; do
[ -n "$dir" ] && [ -f "$dir/scripts/scrape.py" ] && SKILL_DIR="$dir" && break
done
fi
echo "$SKILL_DIR"
If you can already see this file's path, just use its directory. The two
scripts you'll call are
$SKILL_DIR/scripts/scrape.py
and
$SKILL_DIR/scripts/generate_feed.py
. The renderer template is
$SKILL_DIR/assets/for-you-template.html
(the generator finds it automatically).
Resolve the content home
All persistent files this skill reads and writes — the
profile and the
dated
runs — live under one stable base,
never the current
working directory. The skill runs daily and is invoked from anywhere, so the
base must be the same every time or it loses the profile and the run history.
Resolve it once and capture the concrete path:
bash
CONTENT_HOME="${CONTENT_HOME:-$HOME/Documents/Content}"
mkdir -p "$CONTENT_HOME/brand" "$CONTENT_HOME/research"
echo "$CONTENT_HOME"
Throughout this guide every
and
path is relative to
(so
means
$CONTENT_HOME/brand/profile.md
).
Use the printed absolute path for every Read/Write of those files — the
file tools don't expand shell variables, so writing a bare
would land it in the wrong directory. (Credentials stay separate, in
.) The scrape/generate scripts read
themselves, so a relative
passed to them resolves here too.
Step 0: First-run setup
Run this before anything else, even if the user gave a topic. Detect first
run by checking whether
exists and contains
. Check silently. If it's already set up, skip to Step 1.
0a. Welcome + API key
Setup has three quick parts: an API key, your profile (built from your own
channels), and the competitors you want to track. Only the key is required —
the rest the skill bootstraps for you and you can refine any time. Nothing to
install; one ScrapeCreators API key covers all four platforms — X, Instagram,
TikTok, and YouTube (including transcripts).
Show this as a normal message, then call
(don't repeat the
welcome inside the modal):
I turn your social presence into a daily For You feed: I build a profile from
your own channels, track the competitors you pick, and surface what's
performing as content ideas backed by real engagement. I just need a
ScrapeCreators API key (one key covers all four platforms; 100 free calls, no
card).
— "Add your ScrapeCreators API key?"
- Open scrapecreators.com to grab a free key
- I'll paste a key now
- Skip for now
If they pick "Open scrapecreators.com", run
open https://scrapecreators.com
,
then ask them to paste the key. When the user pastes a key, write
(create dirs; append, don't clobber other keys):
SCRAPECREATORS_API_KEY={key}
SETUP_COMPLETE=true
If they skip, write only
.
0b. Manual alternative
If they'd rather configure by hand, tell them to add those two lines to
. Offer to write the file if they paste the key here.
0c. Build your brand profile
This is what personalizes everything: ideas get framed against your niche,
pillars, and goal, and checked against what you've already posted. Build it from
the user's own presence rather than a long questionnaire.
Ask for their own channels (
: "Set up your profile now?" →
I'll share my handles /
Skip — I'll add it later). When they share
handles — free-form across any platforms (
on X, a YouTube channel, a
TikTok, etc.) — normalize them into the
shape and scrape
them like competitors, but over a much wider window (
, the max) so
you characterize their work from a full quarter, not just recent posts:
bash
python3 "$SKILL_DIR/scripts/scrape.py" \
'{"x": ["me"], "youtube": ["@mychannel"]}' \
--pillars "" --days 90
From the returned posts (plus comments/transcripts), draft the profile:
- Niche, Audience, Voice Notes — infer from recurring topics, framing, tone.
- Content Pillars — the 3–5 themes their posts actually cluster into. These
drive on every future run, so get them right.
- My Social Profiles — handle, follower count, bio, and a one-line content-
style note per platform, taken from the scrape.
- Target Platforms / Research Channels — the platforms they're active on.
- Search Terms — concrete keywords from their top topics.
Two things you can't scrape —
ask (
), then fold the answers in:
- Content Goal — why they post (lead gen / awareness / growth / thought
leadership / selling…), where they drive traffic, and what they're promoting.
- Pillar confirmation — show the 3–5 pillars you inferred and let them
edit or confirm before writing.
Write
per the schema in
. If the scrape
returned enough of their own posts, also write an initial
(performance summary, what's working, topics covered, and audience requests
distilled from their comments) — this powers anti-cannibalization and the "your
audience is asking for" banner from day one.
If they skipped (or there's no API key yet to scrape with), don't block:
build a minimal
from a 2–3 question Q&A (niche, rough
pillars, goal), note that re-running setup with a key auto-enriches it, and move
on.
0d. Track competitors
Ask who they want to track (
: list them now / skip and use an
example). If they list handles, create
brand/tracked-accounts/{platform}.md
files per the schema in the plugin's
. If they skip, run a
small example so they see the shape, and tell them they can add real
competitors later.
End of first-run setup. Then continue with the user's original request.
Step 1: Load context
1a. Ingest the previous run's feedback into taste memory
Before anything else, fold the
last run's reactions into your memory — this
is what makes each run better than the one before. List the dated subfolders of
(
) and take the most recent one. If it has a
, read it and distill each entry in
(▲ "more like
this" / ▼ "less" / a note) into the
generalizable taste signal, not the
one-off:
- "▲ on three contrarian takes in the user's niche" → "gravitates toward
contrarian takes"; "▼ on listicles" → "listicle formats don't land." A
note often states the reason directly — use it.
- Record these to your project memory (the auto-memory you maintain) as the
user's content taste — the same place 1b recalls from. Update an existing
taste note rather than duplicating it; let a single ▼ inform, not override, an
established preference. Don't record one-off reactions with no pattern,
anything already obvious from , or post/run specifics (those
live in ). Taste only.
If there's no prior dated folder, no
, or no reactions in it,
skip silently. If auto-memory isn't available in this environment, skip too —
the reactions stay in
for whenever it is. (The current run's
reactions are ingested by the
next run, the same way — there's no end-of-run
distillation step.)
1b. Recall taste and load brand context
Read whatever brand context exists (all optional — degrade gracefully):
- — niche, pillars, search terms, content goal, audience
brand/tracked-accounts/*.md
— tracked creators per platform
- — the user's own content performance + audience requests
Recall the user's content taste from your memory. This skill stores an
evolving taste profile in your project memory (the auto-memory you maintain). Before generating ideas, recall what you know about what this
user gravitates toward — preferred topics, formats, angles, creators they keep
saving, and what doesn't land for them. If relevant taste signals are already
surfaced in context, use them; if not and memory is available, look for taste
notes tagged for this skill. This is the single most important personalization
input: engagement metrics measure what
audiences like, taste memory measures
what
this user likes. If auto-memory isn't available, fall back to engagement
signals alone (and to
if present).
If there are no tracked accounts and no topic filter, ask for handles or a
topic before scraping.
1c. Refresh your own content ()
Before generating ideas, bring
up to date — this is the
per-run counterpart to the one-time build in Step 0c, and it's what keeps
anti-cannibalization and the "your audience is asking for" banner honest as the
user keeps posting. (
is declared
updated each run in
; this is the step that does it.)
Take the user's own handles from the
section of the
you just loaded, normalize them into the
shape, and re-scrape them over a window wide enough to catch their own cadence
(
— a creator's own posts are sparser than the merged competitor
feed, but keep it "recent," not the 90-day profile build from Step 0c):
bash
python3 "$SKILL_DIR/scripts/scrape.py" \
'{"x": ["me"], "youtube": ["@mychannel"]}' \
--pillars "<pillars from profile.md>" --days 30
The scraper already pulls comments on the top posts, so the returned data
carries the audience replies you need. Rewrite
from it per
the schema in
(performance summary, what's working / not,
topics covered, and audience requests distilled from the comments) — it's
replaced, not appended. Use this fresh version, not the copy you read in 1b, for
the rest of the run.
Best-effort — never block the feed. If
has no own handles (the
user skipped profile setup), or the scrape returns nothing or errors, keep the
existing
and continue. This refresh is an enrichment, not a gate.
Step 2: Create the daily run folder
List existing dated subfolders of
(
). The most recent
one that is
not today is the last-run date — pass it as
in Step 3
so the scrape only keeps posts on/after that day. If there are no prior dated
folders, there's no
.
Either way, the scraper enforces a
recency window so the daily feed never
surfaces stale posts: by default it keeps only the
last 7 days (
).
can only
narrow that window, never widen it — so first runs and
long-gap runs are both bounded to a week by default. (The script's hard cap is
90 days; for the daily feed keep it tight — a month at most. The 90-day window
is for one-off profile builds in Step 0c, not the daily feed.)
Create
$CONTENT_HOME/research/{today}/
.
If $CONTENT_HOME/research/{today}/feed-data.json
already exists, ask whether to:
- Refresh — re-pull and rebuild (reuse the same / )
- Expand — widen the window: drop and/or raise (keep the
feed within ~30 days) when the user wants more than the last week
- View — just (re)open the existing feed (skip to Step 6)
Step 3: Scrape competitors
Build a JSON object mapping each platform to its tracked handles. Pass content
pillars (from
, or the user's niche/topic) via
so
the script scores relevance, and the last-run date via
. Leave
at its default (7) unless the user asks for a wider window, then raise it (max
31).
bash
python3 "$SKILL_DIR/scripts/scrape.py" \
'{"x": ["h1","h2"], "instagram": ["h3"], "youtube": ["@h4"]}' \
--pillars "<the user's content pillars>" \
--since 2026-04-15 \
--days 7
Tell the user this takes a few minutes; progress streams to stderr. The script
fetches all accounts in parallel, drops anything outside the recency window,
scores engagement and relevance, flags outliers, and pulls comments/transcripts
on top posts. It returns:
json
{ "results": { "x": { "h1": [ {post}, ... ] } }, "errors": [] }
Each post has
,
,
,
,
,
,
(weighted),
(0–1 vs pillars),
(Nx the account
average),
(bool), and — on top posts —
/
.
On errors: report which accounts failed and proceed with what came back.
Ad-hoc: fetch specific posts by URL
When the user hands you specific post URLs (a competitor's viral post, a link
they saw), use URL mode instead of profile mode. It returns a flat
array with the same shape:
bash
python3 "$SKILL_DIR/scripts/scrape.py" urls "https://x.com/u/status/1" "https://www.tiktok.com/@u/video/2" --pillars "..."
Step 4: Review the scored data
The script pre-computes
,
,
, and
.
Identify the top-performing posts and the topics/themes/angles driving
engagement — especially high-relevance ones. This is the raw material for the
Ideas tab.
Step 5: Build the feed
Two tabs. Everything shown has proven engagement. Build a
object
and write it (Step 6). Field-by-field structure is in the plugin's
(
).
Tab 1 — Posts. One flat
array merging two sources into a single
sortable, filterable feed (the page handles sorting and grouping client-side —
do
not pre-sort or pre-group):
-
Tracked-account posts — every post from tracked accounts (no engagement
gate). Set
/
vs the account baseline
(e.g.
,
).
-
Discovered niche outliers — statistical outliers (
, z-score
2+, or baseline 2x+). Set
and a
line.
Per post, regardless of source, provide: a 1–3 sentence
summary,
,
+
(creator filter),
, an
object, a hook callout when notable, and the two fields that make the feed
work —
(ISO 8601, drives
Recent sort + relative time) and
(numeric total engagement/reach, drives the default
Popular
sort). A post is flagged as an outlier (intensity-scaled badge + accent bar)
whenever it has a
or performanceDirection: "up"
— so a tracked
post that beat its baseline shows as an outlier too.
Tab 2 — Ideas. The one place you editorialize (label it as AI suggestion).
Generate up to 10 ideas, each with: a specific differentiated angle, real
evidence from competitor performance, and clear differentiation from what
competitors already covered.
For the generative craft — turning a topic into a differentiated angle, writing
hooks, classifying funnel stage (TOFU/MOFU/BOFU), aligning CTAs, repurposing
across platforms, and producing a full brief —
read
references/content-strategy.md
. The short version to keep in mind while
building this tab:
- Make YOUR version, never repackage. A good angle answers at least one of:
what do you know the original creator doesn't (expertise), what have you done
the audience hasn't seen (access), or where do you disagree (contrarian)?
- Anti-cannibalization. When exists, don't re-pitch a
topic the user already covered unless the angle has a genuine differentiator
(more depth, different format, an update, a response to feedback). Note prior
coverage explicitly.
- Own-audience demand wins. Requests from the user's own audience
() outrank competitor signals — foreground them in the
brief's "why now."
- Taste memory biases selection. An idea that aligns with the taste signals
you recalled in Step 1 (topics/formats/angles this user gravitates toward)
is a stronger pick than one justified by engagement alone — and worth calling
out ("this fits a pattern you keep coming back to"). Conversely, deprioritize
anything that matches a recorded "doesn't land" signal.
Step 6: Write and open the feed
Write the feed data to
$CONTENT_HOME/research/{today}/feed-data.json
— a JSON object with
keys
,
,
(see
).
Do
not write HTML yourself; the generator embeds this JSON into the
template.
Then render it. Default to the live server (lets the user react to items, which
saves to
for future personalization):
bash
python3 "$SKILL_DIR/scripts/generate_feed.py" "$CONTENT_HOME/research/{today}"
This starts a local server and
automatically opens the feed in the user's
default browser. Still hand the user the
URL the
command prints, so they can reopen it if the tab closes. (Pass
to
suppress the auto-open; the URL is printed either way.) The command runs in the
foreground until the user stops it with Ctrl+C, so run it in the background if
you need to keep working.
In a headless/no-display environment, write a self-contained file instead and
point the user at it (the page lets them download their reactions):
bash
python3 "$SKILL_DIR/scripts/generate_feed.py" "$CONTENT_HOME/research/{today}" --static
# → $CONTENT_HOME/research/{today}/for-you.html
Then present a short text summary (post count, how many are outliers, a couple
of standout posts) and the page location.
Step 7: Offer next steps
The user reacts to the feed in the browser; their reactions save to
research/{today}/feedback.json
on their own — automatically in server mode,
or via the page's download button in static mode. There's no "done" signal and
nothing for you to read or distill now: the file just accumulates reactions,
and the
next run folds them into taste memory at Step 1a. This keeps the
workflow simple and, crucially, captures reactions the user makes after this
conversation has ended.
Offer to: dig deeper on any idea, add/remove tracked accounts, or rerun with a
different topic focus.
Notes
- Reactions / feedback → taste memory. The feed page lets the user mark
items (▲ more like this / ▼ less / a note) across both tabs. In server
mode these save to
research/{date}/feedback.json
automatically as the user
clicks; in static mode the user downloads that file into the run folder. The
file is just an accumulating list of reactions — no status, no submit step.
The next run reads the previous run's at Step 1a and
distills it into your project memory so future runs are personalized — there
is no taste file; taste lives in auto-memory.
- No API key = no run. Both profile and URL mode require
— every platform, including YouTube transcripts, goes
through ScrapeCreators. If the key is missing, the script returns an error;
stop and show setup instructions rather than inventing data.