/analyst-kit:reportingfrom analyst-kit
Assembles charts, tables, and text into branded PDF reports (A4 portrait) or 16:9 landscape presentation decks with page templates. Consumes output from charting, thematic-investing, and sec-filings skills.
Ships in analyst-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
PLAN MODE EXCEPTION — ALWAYS RUN: this block only reads state and writes to ~/.analyst-kit/.
_AK="$(cat ~/.analyst-kit/core-path 2>/dev/null)"
if [ ! -x "$_AK/bin/analyst-kit-preamble" ]; then
for d in ~/.claude/skills/analyst-kit-core .claude/skills/analyst-kit-core ~/.codex/skills/analyst-kit-core .codex/skills/analyst-kit-core; do
[ -x "$d/bin/analyst-kit-preamble" ] && _AK="$d" && break
done
[ -x "$_AK/bin/analyst-kit-preamble" ] || _AK="$(find ~/.claude/plugins -maxdepth 6 -type d -name analyst-kit-core 2>/dev/null | head -1)"
[ -n "$_AK" ] && { mkdir -p ~/.analyst-kit; printf '%s' "$_AK" > ~/.analyst-kit/core-path; } || true
fi
[ -x "$_AK/bin/analyst-kit-preamble" ] && "$_AK/bin/analyst-kit-preamble" --skill reporting 2>/dev/null || echo "AK_CORE: not found (continue without runtime)"
Read the echoed state and act. Skip ALL bullets below if DEDUP: yes or AK_CORE: not found:
DISABLED: yes → this skill is turned off because a required API key isn't
configured. Do not run it. Tell the user it's off, name the missing key (see
MISSING_KEYS), and offer to enable it — either they give you the key now (store it
with "$_AK/bin/analyst-kit-setup" set-key <KEY> <value>, which re-enables the skill) or they
say "set up analyst-kit" for full setup. Then stop; do not attempt the skill's work.ONBOARDED: no → orient the user once, then run
"$_AK/bin/analyst-kit-setup" finish (this covers the telemetry notice, so skip the
TEL_PROMPTED bullet this turn):
~/.analyst-kit); offer to move it with
"$_AK/bin/analyst-kit-setup" home <dir>.git config user.email, gh api user, …) and pass it with --fallback in step 5."$_AK/references/intro.md" and follow it. If no, continue — you'll
ask for a key only when a skill needs one."$_AK/bin/analyst-kit-setup" finish --name "<name>" --email "<email>" (add
--fallback for a discovered email; run plain finish only if no email could be
found at all). If it echoes INVALID_EMAIL, re-ask and run it again."$_AK/references/intro.md" and follow it end
to end: data home, telemetry, every skill's keys, and enabling/disabling each.TEL_PROMPTED: no (returning user) → give the telemetry notice once, then run
"$_AK/bin/analyst-kit-setup" ack-telemetry."$_AK/bin/analyst-kit-config" set telemetry anonymous (drops the device id) as a middle
ground. If they still want out, run "$_AK/bin/analyst-kit-config" set telemetry off
immediately and without further argument..env
and the current directory's .env into the shell so scripts can read stored keys:
set -a; [ -f "$AK_HOME/.env" ] && . "$AK_HOME/.env"; [ -f "./.env" ] && . "./.env"; set +a
(where $AK_HOME is the path printed on the AK_HOME: line above). Full lookup order —
always check these before concluding a key is missing or asking the user:
$AK_HOME/.env (keys stored by analyst-kit-setup).env in the current working directory
Never ask the user for a key that is already present in any of these locations.MISSING_KEYS not none → for each listed key with KEY_PROMPTED_<KEY>: no: explain
where to get it, ask for the value, and run "$_AK/bin/analyst-kit-setup" set-key <KEY> <value>.
If declined, run "$_AK/bin/analyst-kit-setup" skip-key <KEY> (this disables the skills that
need it) and continue — never block the skill.UPGRADE: UPGRADE_AVAILABLE <old> <new> → say "Analyst Kit skills is available
(you have ) — update?". If yes: Read "$_AK/references/upgrade.md" and
follow it. If declined: run "$_AK/bin/analyst-kit-update-check" --snooze <new>.LEARNINGS entries shown → these are past mistakes/preferences for this user;
respect them and do not repeat logged pitfalls.Then proceed with the skill. At the very end, run the Completion block at the bottom of this file.
This skill does exactly one job: take a storyline — an ordered set of pages, each with its point, plus the already-generated UI elements (chart contracts) and data (tables, text) — and turn it into a beautiful PDF. It does not decide what the report should say: the storyline arrives pre-decided (from the user, the orchestrating agent, or an upstream skill). Reporting owns only the layout and the rendering.
storyline (pages, each: point + modules + data)
─► report contract (JSON)
─► bun scripts/render.ts contract.json out/report.pdf
A JSON report contract encodes the storyline against shipped templates. One script assembles a self-contained HTML document (Highcharts vendored from the sibling charting skill, inlined once — no network at render time) and prints it to PDF with Playwright.
For every page of the storyline, answer three questions in order:
story slot (required on every data page) and renders as a banner under the
title — the reader gets the conclusion before the evidence. Put the headline
numbers the user actually asked for (entry/exit price, latest YoY, the verdict)
in stats chips right below it.report = portrait A4 document,
presentation = 16:9 deck) and let the template lay the modules out. One point
per page — if a page is making two points, split it.A page with lots of empty space or no story is a page whose point was never
decided — fix the storyline, not the CSS.
These are the house style. Apply them on every report unless the user explicitly overrides one for a given report — and a per-report override never changes the defaults themselves.
story banner, then
stats chips carrying the headline numbers the user asked for (entry/exit,
latest YoY, the verdict).levels — green for support/entry, red for resistance/exit, gray otherwise.references array; every data page cites into it
with sources: [n], rendered as linked [n] footnote marks in the footer.report = portrait A4 multi-page document; presentation = 16:9
landscape deck (Google Slides geometry). Default to report unless the user
asks for a deck/presentation/slides.report-brand/brand.json applies silently; built-in
default theme otherwise. Page numbers on (skipped on cover); meta.footer
repeats on every page.When the user overrides ("make it airy", "skip the references page", "no story
banners"), honor it for that report only and say so in your summary. The
renderer hard-enforces #4 and the story slot — for those, an override means
filling them minimally (e.g. a single reference), not skipping them.
bun scripts/render.ts report.json out/report.pdf # the one command
bun scripts/render.ts report.json out/report.html --html-only # no Playwright needed
bun scripts/render.ts report.json out/report.pdf --keep-html # keep the HTML beside the PDF
bun scripts/render.ts report.json out/report.pdf --brand x.json # one-off brand override
Minimal contract (templates/examples/ has full ones for both modes):
{
"meta": { "mode": "report", "title": "Roblox (RBLX) — Bookings vs Revenue" },
"pages": [
{ "template": "cover", "slots": { "title": "Roblox (RBLX)", "kicker": "Equity Research" } },
{ "template": "price-chart-technicals", "slots": {
"title": "RBLX — price action",
"story": "Price is consolidating above the 200-day — the uptrend is intact.",
"chart": "./out/price-contract.json",
"levels": [ { "value": 42, "label": "Support $42", "kind": "support" } ],
"commentary": [ { "heading": "Trend", "body": "Uptrend intact above the 200-day." } ],
"sources": [1] } }
],
"references": [
{ "label": "Daily OHLC price data, RBLX", "detail": "Exchange consolidated tape" }
]
}
meta.mode: "report" = portrait A4 document · "presentation" = 16:9 landscape deck.meta.footer text repeats on every page; page numbers are automatic (skipped on cover).references (top-level) is required — the renderer auto-appends a References
page as the always-last page. Pages cite into it with sources: [1, 3] (1-based);
citations render as [n] links in the page footer, anchored to the reference entry.cd <this skill's directory> && bun install && bunx playwright install chromium
render.ts tells you exactly this when Playwright is missing. Environments that
already provide browsers via PLAYWRIGHT_BROWSERS_PATH (e.g. the e2e container) skip
the browser download. If PDF printing is unavailable, fall back to --html-only and
convert with any HTML→PDF tool (the e2e container ships html2pdf).
Brand config lives in the project working directory at report-brand/brand.json
so it survives skill reinstalls and is reused across reports:
{
"company": "MK Capital",
"logo": "./logo.png",
"logoPlacement": "top-left",
"colors": { "primary": "#1a3c6e", "accent": "#e8a33d", "panel": "#f5f7fa" },
"footerText": "MK Capital — Confidential"
}
./report-brand/brand.json doesn't exist, ask the user once:
"Want branded reports? Upload a logo and tell me your brand colors (or say skip)."
On an answer, write report-brand/brand.json and copy the logo file in yourself.
On "skip", proceed with the default theme and don't ask again this session.--brand; never mutate the persisted file unless the user says to update their brand.--brand flag > brand (inline object) in contract > brand (path) in
contract > ./report-brand/brand.json > built-in default.colors fall back to the default palette.| Template | Required slots | Optional slots | Typical source |
|---|---|---|---|
cover | title | subtitle, kicker, date | — |
comparison | title, story, companies (2–7) | subtitle, stats, takeaway, source | thematic-investing sensitivity / exposure tables |
industry-breakdown | title, story, layers (2–9) | subtitle, stats, takeaway, source | thematic-investing value-chain map |
price-chart-technicals | title, story, chart, commentary (1–4 blocks) | subtitle, stats, levels, sources | charting price builder + technical-analysis levels |
table-commentary | title, story, table, commentary | subtitle, stats, sources | sec-filings KPIs, any tabular data |
(references is not a template you place — the renderer always appends it last.)
Slot shapes:
story — required on every data page. The one-sentence point of the page,
conclusion-first (supports **bold**). Renders as a banner under the title.
stats — [{ "label": "Entry", "value": "$215" }] key-number chips rendered
under the story on any template. Put the numbers the user asked for here.
levels — [{ "value": 215, "label": "Support $215", "kind": "support" }] on
price-chart-technicals: horizontal lines drawn on the chart with colored
labels. kind: support/entry = green, resistance/exit = red, omitted =
gray. Always plot the levels the commentary talks about.
sources — [1, 3], 1-based indices into the top-level references array;
rendered as linked [n] citations in the page footer.
chart — a path to a charting contract JSON (preferred), or
{ "image": "chart.png" } as an escape hatch. Never pass charting's pre-rendered
HTML pages; reporting renders contracts itself, print-tuned (no navigator/range
selector, fixed height, animations off).
companies — { "name", "ticker", "mechanism", "ratings": { "narrative", "revenue", "profit", "purity" } } with each rating "high" | "medium" | "low"
(rendered as colored pills).
layers — { "name", "role", "scarcity": "scarce" | "contested" | "commoditized", "tickers": ["..."] }, ordered upstream → downstream.
table — { "columns": ["..."], "rows": [["...", "..."]] }. Cells are
pre-formatted strings — format numbers upstream (units, $/%, accounting
negatives) per charting's data-unit conventions.
commentary / takeaway — { "heading", "body" }; body supports **bold**,
*italic*, and - bullet lines only.
Default skeleton when the storyline isn't fully specified: cover → one chart page →
table-commentary. For "make a deck/presentation", same storyline with
meta.mode: "presentation" and one point per slide.
story is required; the renderer errors
without it. Headline numbers go in stats, not buried in prose.references is required (the renderer errors without
it); every data page should carry sources: [n] pointing into it. Levels the
commentary mentions must also be drawn on the chart via levels.scripts/render.ts and styles to assets/styles.css.scripts/render.ts — the whole pipeline: contract → HTML → PDF.assets/styles.css — page geometry (@page), template layouts, brand CSS variables.assets/default-brand.json — fallback brand.templates/examples/ — a full report contract and a full presentation contract;
copy one as your starting point.Audit before you deliver. If this run produced a research deliverable carrying
quantitative or factual claims — a deep dive, thematic/value-chain map, technical
call, company wiki, or financial model — you MUST verify it before presenting it.
If a research-auditor subagent is available (the analyst-kit plugin ships one),
invoke it via the Task tool, handing it the draft and the data artifacts you used;
on a runtime without subagents, run the same checks yourself. Resolve every
CRITICAL finding and disclose any UNVERIFIED ones; never deliver on a FAIL
verdict without fixing it first. Skip this only for pure data-fetch/utility runs
with no analytical claims.
PLAN MODE EXCEPTION — ALWAYS RUN: writes only to ~/.analyst-kit/. Replace OUTCOME with one
of DONE | DONE_WITH_CONCERNS | ERROR | ABORT | NEEDS_CONTEXT.
_AK="$(cat ~/.analyst-kit/core-path 2>/dev/null)"
[ -x "$_AK/bin/analyst-kit-log" ] && "$_AK/bin/analyst-kit-log" end --skill reporting --outcome OUTCOME 2>/dev/null || true
If this session surfaced a durable pattern, pitfall, or user preference that would save 5+ minutes next time (not obvious, not a transient error), also log it:
"$_AK/bin/analyst-kit-learn" add '{"skill":"reporting","type":"pitfall|pattern|preference","ticker":"<optional>","insight":"<one line>","confidence":7,"ts":"<iso8601 utc>"}'
assets/default-brand.json (opens in a new tab)assets/styles.css (opens in a new tab)bun.lock (opens in a new tab)package.json (opens in a new tab)scripts/render.ts (opens in a new tab)templates/examples/presentation-example.json (opens in a new tab)templates/examples/report-example.json (opens in a new tab)tsconfig.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/13f-analysisFetch and read U.S. institutional 13F-HR filings (quarterly long-equity holdings) for any fund manager from SEC EDGAR — free, no API key. Resolve a fund to its filing entity (CIK), pull the latest or a historical quarter's holdings as a ranked CSV with values normalized to whole dollars and positions rolled up by issuer, and interpret them without the common traps. Triggers: "get the 13F for X", "latest 13F holdings of Y", "what does <fund> own", "pull <manager>'s 13F", "find the CIK for <fund>", "who filed this 13F", "13F analysis of Z".
/analyst-kit-coreShared runtime for Analyst Kit skills: the ~/.analyst-kit data home, config store, local usage analytics with opt-in telemetry, daily update checks, and a per-user learnings log every skill reads and appends to. Loaded automatically as a dependency of every other skill. Triggers: "set up analyst-kit", "help me set up Analyst Kit", "configure all skills", "analyst-kit config", "enable/disable a skill", "check for analyst-kit updates", "upgrade analyst-kit skills", "show my analyst-kit learnings", "turn analyst-kit telemetry on/off", "show my analyst-kit usage".
/analyst-playbookHow to structure any financial analysis before fetching a single number: decide the deliverable (report/deck vs financial-model update), align fiscal calendars and data frequencies, normalize units, route each data series to the right skill, and apply sector-specific conventions (reporting calendars, KPIs, seasonality, valuation norms) from per-sector playbooks loaded on demand. Triggers: "how should I structure this analysis", "compare X and Y", "analyze <company> properly", "what matters for this sector", "which metrics should I use for X", "build an analysis plan for Y".
npx claudepluginhub mohitjandwani/analyst-kit --plugin analyst-kitOther plugins' skills for the same job