shadow-partner

shadow-partner is a skill for Claude Code, Codex from forefy/.context. It costs 34 tokens per session (916 once invoked), scanned A, original, MIT.

A research helper that gathers posts from a technical person's X account and brings recurring tips, tools, workflows, and rules of thumb into context for a task. X is the social network formerly known as Twitter.

In plain words
What is it for?
Use it to study a technical persona's methods and apply their shared guidance to a specific task.
Why use it?
It helps collect a person's public working advice instead of relying on isolated posts or manual browsing. It estimates the cost and post volume before fetching the posts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to study a technical persona's methods and apply their shared guidance to a specific task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forefy/.context/shadow-partner
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 forefy/.context --skill shadow-partner
Clone the repo
git clone --depth 1 https://github.com/forefy/.context

Made for: Claude Code, Codex.

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 shadow-partner

README.md
[![agentmods](https://agentmods.dev/badge/skills/forefy/.context/shadow-partner/github.svg)](https://agentmods.dev/skills/forefy/.context/shadow-partner)
Your own site
<a href="https://agentmods.dev/skills/forefy/.context/shadow-partner"><img src="https://agentmods.dev/badge/skills/forefy/.context/shadow-partner/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 shadow-partner

Your own site · 80×15
<a href="https://agentmods.dev/skills/forefy/.context/shadow-partner"><img src="https://agentmods.dev/badge/skills/forefy/.context/shadow-partner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 916 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.00034 $0.00916
Opus 5.5 $0.00014 $0.00366
Sonnet 5.5 $0.00007 $0.00183
Haiku 4.5 $0.00003 $0.00092

Measured 1mo ago against content hash 65532c289ae0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shadow-partner 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/estimate.py, scripts/pull.py, scripts/xapi.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/generic-utils/shadow-partner/SKILL.md · 95 lines

How it starts

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

shadow-partner

shadow-partner uses the X MCP to bring a technical persona into context, fetching common tips and alpha shared on their tweeter account to amplify specifics or methodology of a task.

Run the scripts from this skill's directory so scripts/ resolves and output lands in the user's out/.

1. Credentials

python3 scripts/estimate.py <handle>

It reads X_API_KEY/X_API_SECRET, else a 1Password item via the op CLI (X_OP_ITEM, default "X API"; X_OP_ACCOUNT optional). Follow the secure-1pass-access skill for the one-shot retrieval pattern - confirm the account and vault with the user once, then read. Any credential error points at references/setup.md; read that file to the user's situation rather than guessing, especially for 403 client-not-enrolled, which means the app is not attached to a Project and no amount of retrying fixes it.

2. Estimate, then stop

The estimate costs about ten cents and prints a lifetime rate, a current rate, a projected post count and a cost range. Show the user that range and wait for an explicit yes. Never run pull.py on the same turn as the estimate.

State plainly, once: X has no Highlights endpoint. "Highlights" here means their top posts ranked by engagement, which pull.py prints.

If the estimate warns about the 3,200-post ceiling, say how far back the pull will actually reach before the user approves.

3. Pull

python3 scripts/pull.py <handle> --years 2 --cap <approved>

Originals only - no retweets, no replies. Writes out/shadow_<handle>/posts.json and prints the top 15. Pass the approved figure as --cap; it is a hard stop.

4. Mine the alpha

Read in tiers, because two years can be 1,500+ posts:

  • Every post in the top decile by engagement: read in full.
  • The rest: chunk ~200 posts per subagent, ask each for candidate alpha with post ids, then merge. Run the chunks in parallel.

Keep only what transfers to someone in the same field:

  • named tools, and specifically how they use them
  • workflows and sequences ("I always X before Y")
  • heuristics with a number or a threshold attached
  • failure modes they warn about, and what they do instead
  • sources, datasets and people they rely on
  • framings that reliably land with their audience

Read the full file on GitHub · 95 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 95 lines · 34 tokens per session scan A 65532c289ae0

Subscribe to this mod's changes

shadow-partner is a skill published in the GitHub repository forefy/.context (156 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 916 once invoked, about $0.0001 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-10-29.

Related

shadow-partner compared with skills from other repositories

shadow-partner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shadow-partnerforefy/.contextSkill156yesterdayMITA34Claude Code, Codex
eresus-manual-security-auditEresusSecurity/appsec-skillsSkill77mo agoApache-2.0A145Claude Code, Codex
eresus-php-auditEresusSecurity/appsec-skillsSkill77mo agoApache-2.0A92Claude Code, Codex
eresus-sast-scannerEresusSecurity/appsec-skillsSkill77mo agoApache-2.0A100Claude Code, Codex
eresus-python-auditEresusSecurity/appsec-skillsSkill77mo agoApache-2.0A101Claude Code, Codex
eresus-remediatorEresusSecurity/appsec-skillsSkill77mo agoApache-2.0A84Claude Code, Codex
eresus-variant-analysisEresusSecurity/appsec-skillsSkill77mo agoApache-2.0A85Claude Code, Codex