/spotlight:report-draftingfrom spotlight
Synthesizes investigation findings into a structured report (Markdown, HTML, evidence ledger) during the report phase of a data-detective workflow. Validates finding references and renders final deliverables.
Ships in spotlight. 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.
You are in the Report phase. The Investigation gate has approved the structured findings and independent verdicts. You own the editorial synthesis; deterministic code owns file construction and evidence/confidence enforcement.
| File | Audience | What it is |
|---|---|---|
case/findings-report.md | editor / fact-checker | canonical claim-by-claim audit generated from structured inputs |
case/report.html | publication / reader | one page laid out by scripts/report_html.py with the canonical template stylesheet: summary and verdict counts, diagrams, a findings table whose rows open onto their evidence and sources, limitations, methodology and a source index |
case/evidence-map.json | audit / replication | machine-readable claim → verdict → source ledger |
The renderer places this at the top of the page. Do not soften:
AI assistance notice: Spotlight is designed to help surface, organize, and cross-check information, but AI can make mistakes. You are responsible for verifying sources, confirming authenticity, assessing risks, and deciding what is publishable.
Read {CASE_DIR}/data/findings.json and {CASE_DIR}/data/fact-check.json.
Write the prose of {CASE_DIR}/data/report-draft.json in the report's natural language. The file holds the report's structure: one finding_treatments entry per finding the member kept at the Investigation gate, the same IDs in finding_order and framing_finding_ids, and empty prose. If it does not exist, create it with scripts/spotlight-python scripts/spotlight-orchestration.py report-skeleton {CASE_DIR}, which also lists the passages you may quote. Write the title, the deck, and each finding's headline, concise summary and why it matters; none may stay empty. You may reorder finding_order (and finding_treatments with it), narrow framing_finding_ids, and add caveats and next steps. Keep every finding_id; add or remove none. Every prose block must reference the fact-checked finding IDs it interprets; do not author verdicts or confidence.
Significance may explain how a finding answers the approved question; no new implication is required. Preserve the accepted actor, quantifiers, scope, exact date or vintage, and uncertainty. Name the dates when releases share a month. Do not turn one documented source into a claim about where everyone obtained their information.
When an existing structure would clarify the report, add an optional
diagrams item. For relationship structures, select one of flow,
hierarchy, network, or loop; cite its supporting finding IDs; and select
its existing connections using exact {from, to, relationship} values from
findings.json. Keep it to one question, at most nine nodes and twelve
connections. A loop is one simple cycle and has exactly one focal starting
entity. For data charts, either select timeline with 1–12 indicator_ids
that resolve to entries in findings.json technical_indicators (the renderer
draws each recorded first→last observation span in chronological order), or
select bar with a metric of verdict_tally, confidence_distribution, or
source_types, counted deterministically over your finding_ids or all
findings. Never author Mermaid, SVG, HTML, JavaScript, CSS, URLs, coordinates,
counts, or layout settings: the renderer owns those.
A structural diagram (not a loop) may add groups: up to four labelled
clusters, each listing entities the selected connections already draw, with
no entity in two groups. Use them to set two sides of a story apart, for
example [{"label": "Russian side, as reported", "entities": [...]}, {"label": "Domestic side", "entities": [...]}]; the renderer draws grouped
diagrams top-down with the groups side by side. Line styles come from each
connection's basis in findings.json (record heavy, reported plain,
inferred dotted and undirected), never from the draft.
The report's findings table can be grouped by theme with optional
sections: up to eight {label, finding_ids} items that together hold every
finding in finding_order exactly once. Rows keep finding_order within a
section. Without sections the table is one group.
quote_selections in the example below is optional. It may cite only an
expression marked direct_quote: true; when none qualifies, omit it.
{
"schema_version": "1.0",
"title": "A clear journalist-grade title",
"deck": "The central synthesis and its most important qualification.",
"framing_finding_ids": ["F2", "F1"],
"finding_order": ["F2", "F1"],
"finding_treatments": [
{
"finding_id": "F2",
"headline": "Editorial headline for this finding",
"summary": "A concise synthesis of the validated record.",
"why_it_matters": "The editorial significance without adding facts.",
"quote_selections": [{"expression_id": "SX2"}]
},
{
"finding_id": "F1",
"headline": "Editorial headline for this finding",
"summary": "A concise synthesis of the validated record.",
"why_it_matters": "The editorial significance without adding facts."
}
],
"diagrams": [
{
"id": "money-flow",
"type": "flow",
"title": "How funds moved through the structure",
"caption": "The selected connections show the recorded route through two intermediaries.",
"finding_ids": ["F2", "F1"],
"connections": [
{"from": "Payer", "to": "Intermediary", "relationship": "paid"},
{"from": "Intermediary", "to": "Recipient", "relationship": "transferred"}
],
"focal_entities": ["Recipient"]
}
],
"caveats": [
{"text": "Important limitation for readers.", "finding_ids": ["F2"]}
],
"next_steps": [
{"text": "A reporting step that would close a gap.", "finding_ids": ["F2"]}
]
}
In an activated 1.1 case, an optional quote_selections item contains
expression_id only. A selection must cite an expression marked
direct_quote: true in data/source-expressions.json; when none qualifies,
the draft omits quote_selections. Never copy quote text or attribution into
the draft. The deterministic renderer resolves the active canonical expression,
escapes its exact text and attribution, and records its locator, hashes,
relation, and lifecycle in evidence-map.json. Legacy 1.0 reports do not
accept expression selections.
Decision check (optional). Pi harness: not in this runtime. Otherwise, if this case ran decision checks at the Investigation gate
(data/decision-signals.json exists), check the prose before finalizing:
execute-shell("scripts/spotlight-python scripts/decision-signals.py {CASE_DIR} --phase report")
It asks the decision model whether each deck, headline, summary,
why-it-matters and caveat says more than its findings and verdicts allow
(added certainty, cause, motive, scope, actor, amount or date; a dropped
"allegedly"; an unverified finding stated as fact). Revise only the flagged
fields in data/report-draft.json and rerun the check (at most two rounds).
If the editor judges a flag wrong, record an override in
data/decision-signals.json with the flagged item's target and
input_sha256 plus reviewer, reason and at. It applies only to that
exact sentence with those findings, verdicts and confidences, and lapses
when any of them changes. The finalizer's
report_fidelity stage reads these stored signals offline: in enforce
mode it fails on unrevised flags or on prose changed after the check; in
advisory mode it only warns.
Return the completed structured draft to the phase-report owner. The
member's decision on the review page (or, in a runtime without the page,
spotlight_transition({operation: "decideReport", payload: {decision: "completed"}}) after the user answers) applies the transition; the
resolver invokes the deterministic finalizer, validates both inputs,
renders all three artifacts, and records their hashes before advancing to
Ingest.
If that transition reports a report_draft or report_fidelity failure, revise only
data/report-draft.json using the exact failure. If fact-check fails, return
to the fact-checker. Never repair generated HTML or Markdown by hand.
Present generated report artifacts only after the transition succeeds.
The renderer is byte-deterministic for identical inputs, HTML-escapes all case text, permits links only to HTTP(S) sources or existing files within the case, and caps every non-verified finding at Low confidence. Activated reports also require every reportable positive finding to retain an active supporting expression through the fact-check trail. Missing, dangling, tampered, superseded, or withdrawn expression references fail before valid report artifacts are replaced.
When decision checks ran, findings-report.md and evidence-map.json show each finding's decision-check line and flags; in enforce mode a fresh, judged grounding signal can lower displayed confidence (never raise it), and validate-report.py fails if any displayed confidence exceeds its applied cap.
The structural validator is deliberately language-neutral. It proves reference coverage and verdict placement; it does not pretend to prove semantic entailment from prose. Independent fact-checking and the final human editorial gate remain responsible for whether the model's synthesis accurately interprets the cited findings.
Model writes: case/data/report-draft.json.
Renderer reads: case/data/{findings,fact-check,report-draft,methodology}.json, plus case-contract.json and source-expressions.json for activated 1.1 cases, and case-local sources.
Renderer writes: case/findings-report.md, case/report.html, case/evidence-map.json.
references/report-template.html — canonical stylesheet (the review app's look) and legacy manual skeleton; the renderer reads its CSS.references/citation-discipline.md — editorial rationale behind source-closure rules.references/design-discipline.md — design semantics retained by the renderer.references/diagram-design.md — report-diagram type selection and visual grammar.references/interactive-diagrams.md — Mermaid/ELK rendering and canvas behavior.references/anti-patterns.md — historical failures that motivated deterministic finalization.references/anti-patterns.md (opens in a new tab)references/citation-discipline.md (opens in a new tab)references/design-discipline.md (opens in a new tab)references/diagram-design.md (opens in a new tab)references/finding-structure.md (opens in a new tab)references/html-protocol.md (opens in a new tab)references/interactive-diagrams.md (opens in a new tab)references/methodology-pattern.md (opens in a new tab)references/report-template.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (buriedsignals/spotlight) — no native marketplace selected
npx claudepluginhub p/buriedsignals-spotlight26 skills in this plugin
/acquisition-graduationConvert repeated dev-browser acquisition successes into durable Spotlight acquisition guidance. Use after a non-trivial browser acquisition works repeatedly and should become a reusable source/domain path without storing secrets, cookies, or fragile session details./arbiterUse the native Arbiter HTTPS API to browse or create bounded social-media case studies and attach its analytics to a Spotlight report./content-accessWork through the legal access hierarchy for paywalled or restricted sources before marking them inaccessible and downgrading confidenceOther plugins' skills for the same job