analysis-recipe

analysis-recipe is a skill for Claude Code from TimSimpsonJr/magpie. It costs 108 tokens per session (2,262 once invoked), scanned A, original, MIT.

A repeatable 13-point analysis process for FOIA records and audit logs. FOIA is a law that lets people request government records; the process cleans each dataset, checks defined patterns, and compares findings across sources.

In plain words
What is it for?
Use it to examine location, immigration-related reasons, pretexts, high-volume users, co-travel, and recurring people or patterns across agencies and datasets.
Why use it?
It makes investigations consistent and reduces the risk of applying different checks to different records.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the magpie plugin — 13 skills, 2 agents, 1 MCP server shipped together

Good fit Use it to examine location, immigration-related reasons, pretexts, high-volume users, co-travel, and recurring people or patterns across agencies and datasets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timsimpsonjr/magpie/analysis-recipe
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 TimSimpsonJr/magpie --skill analysis-recipe
Clone the repo
git clone --depth 1 https://github.com/TimSimpsonJr/magpie

Made for: Claude Code.

Or install magpie, the plugin that ships this one along with the rest of its 13 skills, 2 agents, 1 MCP server.

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 analysis-recipe

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/timsimpsonjr/magpie/analysis-recipe"><img src="https://agentmods.dev/badge/skills/timsimpsonjr/magpie/analysis-recipe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,262 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.00108 $0.02262
Opus 5 $0.00054 $0.01131
Sonnet 5 $0.00022 $0.00452
Haiku 4.5 $0.00011 $0.00226

Measured 9d ago against content hash 23a48fc684af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

analysis-recipe 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 9d 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/analysis-recipe/SKILL.md · 163 lines

How it starts

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

analysis-recipe

Run Magpie's repeatable investigative pass: a fixed, parameterized 13-point checklist applied identically to one FOIA / audit-log source, then a cross-source rollup that tests whether patterns and actors recur across sources. This is the Track A flagship's analysis layer — it sits on top of dataset-analyze (which loads, quality-gates, and derives each source) and feeds its findings to Librarian.

Two deterministic scripts do the work; the agent orchestrates the fan-out:

  • scripts/recipe.py::run_recipe(df, config) — the per-source 13-point pass.
  • scripts/rollup.py::rollup(findings_list) — the cross-source synthesis.

Both are pure and golden-tested. The verified-API contract and the exact findings / check / rollup schemas live in references/prior-art.md (the Phase 4 research gate) — consult §3 before changing a call or a config key.

Per-source pass

For each source, first produce a clean, derived DataFrame via the dataset-analyze pipeline (load → data-quality gate → derive: geo, reason_cat/reason_text, is_immigration, nets, has_case, base_type, date_et/hour_et). Then run the recipe:

from scripts.recipe import run_recipe

config = {
    "source_id": "simpsonville-network-audit",
    "checks": {
        "truncation": {},
        "out_of_state": {"geo_col": "geo", "out_label": "OOS", "unknown_label": "UNK"},
        "immigration": {"text_col": "reason_text", "keywords": ["ice", "immigration", "deportation", "cbp"]},
        "pretext": {"text_col": "reason_text", "keywords": ["traffic", "registration", "equipment"]},
        "pii": {"text_cols": ["reason_text"]},
        "accountability": {"case_col": "has_case", "group_col": "geo"},
        "co_travel": {"text_col": "reason_text", "keywords": ["convoy", "co-travel", "caravan"]},
        "blast_radius": {"nets_col": "nets", "severity_col": "base_type"},
        "mega_users": {"user_col": "agency"},
        "operations": {"user_col": "agency", "date_col": "date_et", "hour_col": "hour_et"},
        "ai_moderation": {"hour_col": "hour_et", "user_col": "agency", "timestamp_col": "ts"},
        "cross_agency": {"user_col": "agency", "external_geo_col": "geo", "external_label": "OOS"},
        "statistical_patterns": {"user_col": "agency"},
    },
}
findings = run_recipe(df, config)

Read the full file on GitHub · 163 lines

Files

What ships with it

1 file 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. 9d ago First seen · 163 lines · 108 tokens per session scan A 23a48fc684af

Subscribe to this mod's changes

analysis-recipe is a skill published in the GitHub repository TimSimpsonJr/magpie (2 stars, last pushed 2mo ago), licensed MIT. It adds 108 tokens to every session and 2,262 once invoked, about $0.0005 per session on Opus 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

pdf-table-extractor-brief

Produces a structured extraction plan and clean spreadsheet template for pulling tabular data out of a PDF document — identifying the table structure, defining column headers, flagging extraction pitfalls, and providing a ready-to-use template that ensures the data lands in a consistent, analysable format.

ur-grue/autopunk-media-skills · 61 tokens

foia-request-writer

Drafts legally complete public records requests (federal FOIA and all 50 state laws), administrative appeals, and redaction challenge strategies for U.S. government records.

ur-grue/autopunk-media-skills · 40 tokens

osint-tool-catalog

Produces a categorised catalog of open-source intelligence tools relevant to a journalist's investigation, with practical guidance on what each tool does, when to use it, and what its limitations are.

ur-grue/autopunk-media-skills · 43 tokens

social-media-intelligence

Produces a structured open-source intelligence brief on a social media account or set of accounts, covering account authenticity analysis, narrative tracking, and coordination-detection patterns to support investigative reporting.

ur-grue/autopunk-media-skills · 40 tokens

data-cleaning-brief

Writes clear, step-by-step instructions for cleaning a messy or inconsistent dataset — specifying exactly what needs to be standardised, corrected, or removed to make the data ready for analysis and publication.

ur-grue/autopunk-media-skills · 44 tokens

scraper-brief

Writes a clear, technical brief describing exactly what data needs to be collected from a website or set of web pages, how it should be structured, and what edge cases and legal/ethical considerations apply — for handoff to a developer or data team.

ur-grue/autopunk-media-skills · 55 tokens