qinghonglin/data2story-skill/data2story-pro
Claude Code and agent skill by qinghonglin/data2story-skill
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use to turn a dataset into a verifiable multimedia blog (a data story / data-driven article / interactive dashboard from a dataset). Orchestrator for the Data Journalist Agent (Data2Story): a 7-team newsroom (14 agents) running detective → scout → analyst → imagineer → editor → copywriter → designer → interaction → hero → cinematographer → programmer → auditor → critic → inspector in sequence. Trigger when the user hands over a dataset (CSV/JSON/folder/path) and wants a published story, blog post, or interactive report built from it. Creates a versioned project folder per run.
Install
npx vskill@latest install qinghonglin/data2story-skill/data2story-proSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as qinghonglin/data2story-skill/data2story-pro.
Data Journalist Agent (Data2Story)
Turn $ARGUMENTS into a blog. Orchestrates the roles below in sequence.
Orchestration rituals
Five process rules earned from real runs. Each is one rule + why it exists; follow them across every run regardless of topic.
- (D1) Candidate-image review loop. For any hero/cover image of a named person or specific real object, generate N candidates, then run a VLM (or human) review and select one — never ship the first render. Why: text2image of named people intermittently refuses outright and quality varies shot-to-shot, so a single render is a coin-flip; a small candidate pool plus a review step is the only reliable way to land a usable, correctly-identified image.
- (D2) Audit-before-finalize. Run the read-only multi-agent audit (provenance / repro / assets / IP lenses) to find every defect FIRST, collect them, and only THEN make one editing pass to fix them. Why: interleaving find-and-fix makes agents edit the same file against a moving target and re-introduce each other's defects; separating the finding phase from the fixing phase prevents that churn.
- (D3) Single owner of one big file. Parallel agents may produce data and assets concurrently, but exactly ONE agent writes
index.html. Why: the HTML is one indivisible artifact; concurrent edits to it interleave and corrupt it, so it must have a single writer even when everything feeding it is parallel. - (D4) Headless-verify-then-defer-render. Prove everything you can without a browser —
node --checkthe scripts, recompute a known model output and compare, byte-compare each inline JSON island to itsverify/file — then hand the final visual/browser sign-off to the user. Why: deterministic checks catch the failures that don't need eyes cheaply and early, while genuine render correctness needs a real browser this harness can't drive, so the human does that last mile (see also the chart-width-0 class of bug, invisible to node shims). - (D5) Verify-coexistence-with-zero-engine-edits. New interactive features layer on top of the frozen Verify engine (the in-page Inspector panel +
verify/artifacts); never edit the engine to make a feature fit. Why: the Verify layer is the paper's coding verifier and a hard gate — editing it to accommodate a feature risks silently breaking provenance, so features adapt to it, not the reverse.
The 7 teams
The newsroom is 7 teams (the paper's 7 canonical roles), staffed by 14 agents. Two teams are a single agent; five are a small team with a lead who coordinates one or more members. The folders stay flat and every Skill <name> call resolves by the member's frontmatter name: — the teams are a coordination overlay, not a folder move. You (this orchestrator) are the top coordinator across all 7 teams.
| Team (paper role) | Lead | Members | Kind | |
|---|---|---|---|---|
| Detective | Detective | + Scout | multi-agent | |
| Analyst | Analyst | + Imagineer | multi-agent | |
| Editor | Editor | + Copywriter | multi-agent | |
| Designer | Designer | + Interaction + Hero + Cinematographer | multi-agent | |
| Programmer | Programmer | — | single-lead | |
| Auditor | Auditor | + Critic (+ Playtester step) | multi-agent | |
| Inspector | Inspector | — | single-lead |
Each lead's SKILL.md carries a "Team coordination" section describing how it briefs and integrates its members; the member Skill <name> calls below are mirrored in those sections so a member is never silently skipped. The cross-team checkpoints (the two gates and the Critic revision loop) are owned by this top orchestrator, not delegated into any team.
Setup
Resolve paths before doing anything:
- Never hard-code machine-local paths and never ask the user to export path variables.
- Resolve
SKILL_DIR= the directory containing thisSKILL.md(.../skills/data2story-pro) - Resolve
ARCHIVE_DIR= the ancestor directory that containsskills/(two levels up fromSKILL_DIR, i.e.SKILL_DIR/../..) - Resolve
DATA2STORY_ROOT= parent ofARCHIVE_DIR - Commands below use symbolic placeholders such as
ARCHIVE_DIR; replace them with resolved, quoted paths before running Bash. DATA_NAME= the dataset folder name (e.g.pick_a_card). In URL / IDEA mode it is taken from theDATA_DIRthat Stage 0 — Input dispatch (below) resolves, so run Stage 0 before resolvingPROJECT_DIR.DATA_DIR= the validated dataset folder, resolved by Stage 0 — Input dispatch below. It originates from one of: the existing path in$ARGUMENTS(DATA MODE, path);find-data's output folder (DATA MODE, URL); orideation's output folder (IDEA MODE). For a bare dataset name with no Stage-0 acquisition, fall back toDATA2STORY_ROOT/data/{DATA_NAME}.TIMESTAMP= current time formatted asMMDD_HHMM(e.g.0401_1618):date +%m%d_%H%M(run in bash)PROJECT_DIR=DATA2STORY_ROOT/project/{DATA_NAME}/blog_{MODEL}_{TIMESTAMP}- Create
PROJECT_DIR/,PROJECT_DIR/assets/,PROJECT_DIR/code/— after Stage 0 has resolved `DATA_DIR`/`DATA_NAME` (immediate in path mode; after the Stage-0 acquisition in URL / IDEA mode). - Write
PROJECT_DIR/run_config.json={"run_profile": "premium"}or{"run_profile": "fast"}from the Stage-0 Run profile decision (below).validate.py/generate_viewer.pyread it; absent ⇒premium.
Windows: there is usually nopython3on PATH — run thepython3 …commands in this skill aspy(orpy -3). SetPYTHONUTF8=1(e.g.$env:PYTHONUTF8=1) to avoid GBK console errors when scripts print Unicode.
Sibling-skill dependency. This skill requires the sibling skills `frontend-design-pro/` and `dataviz-craft/` to live under the sameskills/parent (ARCHIVE_DIR/skills/). The Designer/Programmer/Auditor/Critic borrow their component recipes, design tokens, quality rubric, and dataviz craft from them via../frontend-design-pro/...and../dataviz-craft/...relative paths. Deploy all three together —data2story-pro/alone is incomplete; a clone missing either sibling will break the design/audit references. IDEA MODE additionally requires the sibling skills `find-data/` and `sparring-partner/` under the sameskills/parent: Stage 0'sideationsub-skill drivessparring-partnerto converge a topic andfind-datato acquire a real dataset. A clone missing either of these two can still run DATA MODE (a path or URL), but cannot run IDEA MODE (an empty/free-text idea).
Stage 0 — Input dispatch (data path · URL · idea)
Classify $ARGUMENTS before resolving DATA_DIR. This stage decides how DATA_DIR is obtained; every later stage (Detective → … → Inspector) is identical regardless of which branch ran. FIRST match wins:
- Empty / whitespace → IDEA MODE (open by inviting the idea: "what do you want to tell a story about?").
- An existing path on disk (
$ARGUMENTSresolves to a file or directory) → DATA MODE. The current behavior, unchanged: setDATA_DIRto that path and proceed into the pipeline. - A data URL (
$ARGUMENTSstarts withhttp://orhttps://) → DATA MODE via find-data url-mode. RunSkill find-data "<url>"— it fetches the resource and validates it against the 4 completeness gates, producing a dataset folder. SetDATA_DIRto that folder and continue the pipeline. - Otherwise (free-text prose, not a path) → IDEA MODE.
Ambiguity guard. If $ARGUMENTS LOOKS like a path (contains a slash, a drive letter, or a file extension) but does NOT exist on disk, do one quick confirmation question instead of silently treating it as an idea — e.g. "that looks like a path but I can't find it; did you mean a dataset folder, or a topic to research?" — and branch on the answer.
IDEA MODE
Hand the user's idea to the ideation sub-skill, passing the raw $ARGUMENTS text verbatim and the resolved DATA2STORY_ROOT:
ideation runs the brainstorming dialogue (reusing sparring-partner) to converge the vague idea into one concrete data-story topic, then runs find-data to acquire a real, validated dataset — with a user checkpoint after each step — and returns exactly one of:
- `DATA_DIR=<absolute path to the validated dataset folder>` — success. A
story_brief.jsonwill sit at<DATA_DIR>/meta/story_brief.json. SetDATA_DIRandDATA_NAMEfrom this folder and proceed into the EXISTING pipeline unchanged (Detective → … → Inspector). Nothing downstream differs. - `IDEATION_ABORTED: <reason>` — the user aborted, or no adequate real dataset could be found. Halt gracefully with an honest one-line message that relays the reason. Do NOT run the pipeline, and do NOT fabricate data or a dataset to "succeed".
Run profile — Fast vs Premium (select ONCE, then commit)
Data2Story ships two committed profiles. Resolve the profile once, here at Stage 0, and write it to PROJECT_DIR/run_config.json; do not revisit it mid-run. A profile is a self-consistent bundle (which stages run AND the matching gate set), NOT a pile of per-stage toggles.
- `premium` (default) — the full 14-agent newsroom: verified media (Scout), interactive playgrounds (Imagineer + Interaction), an animated cover (Hero), a cinematic scroll (Cinematographer), titling (Copywriter), the Critic revision loop, and the full runnable verify layer (in-page panel + runnable Pyodide cells + a reproducible notebook). ~2h40–2h50. The flagship.
- `fast` (~15–25 min) — the 7 canonical roles only: Detective → Analyst → Editor → Designer (charts + static images, no media generation) → Programmer → Auditor → Inspector. Keeps the in-page traceability panel (click any claim → its code/source) but NOT the runnable cells / reproducible notebook. Skips Scout, Imagineer, Copywriter, Interaction, Hero, Cinematographer, and the Critic loop. The premium floors (mandatory cinematic / BGM / richness / engagement / runnable-verify / playtest) do not apply.
Resolve it:
- If
$ARGUMENTScontains `--fast` →fast; `--premium` →premium. Strip the flag from$ARGUMENTSbefore input dispatch. A headless/automated call with no flag defaults topremium. - Otherwise (interactive, no flag) → ask one
AskUserQuestion: "Fast (~15–25 min — charts + static images, traceability only) or Premium (~2h40–2h50 — the full cinematic/interactive flagship)?" - Write the choice to
PROJECT_DIR/run_config.jsonas{"run_profile": "premium"}or{"run_profile": "fast"}right afterPROJECT_DIRis created (Setup). `validate.py` and `generate_viewer.py` read this file; absent ⇒ `premium`, so the default and every automated call is the full flagship.
Each stage heading below is marked [premium] when the fast profile skips it; unmarked stages run in both.
Archival
Immediately after creating PROJECT_DIR, snapshot the current skills:
This preserves the exact skill versions used for this run.
Tools available
All media tools route through OpenRouter. Set OPENROUTER_API_KEY before any generation call.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/data2story-pro/SKILL.md
Popularity
- Repository stars
- 156
- Repository forks
- 22
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/qinghonglin/data2story-skill/data2story-pro)