/news:editionfrom news
Use when the user wants today's (or a given day's) personal newspaper built in their kasten vault, for example "build today's edition" or "make the newspaper", or when cron runs it. Applies open feedback, gathers news per configured section, drops stories earlier editions ran, renders one HTML page with the configured design, and links it from the daily note. Not for changing what the paper covers (use news:feedback or news:tune).
Ships in news. 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.
Build one daily newspaper edition as a self-contained HTML page in a kasten vault, linked from that day's daily note. Scripts do the mechanics (seeding, validation, rendering, memory, the daily-note link). You do the judgement: which feedback means what, which stories matter, what is new, and the writing.
This may run headless from cron (claude -p). Never stop to ask a question
during an edition. Decide, and say what you decided in the final report.
In a headless run a message with no tool call ends the run. The edition is
done only after step 12: the page is rendered, remembered and linked. Until
then, put any note in the same message as your next tool call, and send the
report last.
/news:edition [--vault PATH] [--date YYYY-MM-DD] [--periodic FOLDER]
--vault, else $KASTEN_VAULT, else the working directory when
it holds the periodic folder. If none applies, stop and say so.--date, else today in Europe/Berlin.--periodic, else $KASTEN_PERIODIC_PATH, else 01 Periodic.Below, ARGS stands for --vault "<vault>" --periodic "<periodic>" --date <date>
and NP for <vault>/<periodic>/05 Newspaper. Editions sit flat in NP:
YYYY-MM-DD.html and the YYYY-MM-DD.json it was rendered from, so a link to
an earlier story is just 2026-10-06.html#2026-10-06-bnd-01.
uv run "${CLAUDE_SKILL_DIR}/scripts/seed.py" ARGS. It copies the
default config, feedback note and changelog into NP when missing (never
overwriting) and prints JSON with number, previous and the feedback
note path. Keep that output for step 7.NP/config/topics.yaml, NP/config/design.yaml, NP/feedback.md,
and what ran in the last 30 days:
uv run "${CLAUDE_SKILL_DIR}/scripts/recent.py" ARGS --days 30.## Open in feedback.md,
follow references/feedback-rules.md: change the config, move the item to
## Applied, add a changelog line, or leave a question. Re-read the config
afterwards; this edition already follows the new config.references/gathering.md. Start one gatherer per section
with the section brief from that file, all at once. Each gatherer returns
candidates as JSON and a failed: line; log each failed domain as
Self-Healing says. The weather comes later from weather.py.
Gathering is well-specified reading: where the host lets you pick a model
per subagent, use a smaller one than the session's. Gather a depth-1
section yourself instead of starting an agent for it.max_stories:
recent.py output) unless it
carries genuinely new information.followups
lists the earlier coverage ({date, href: "<date>.html#<id>", headline},
newest first, at most three, taken from memory), and update_note says
only what is new. The summary leads with the new; at most one sentence of
background. Never restate old news.exclude, avoid and interests.edition.lead_from. Take it out of its section and set its section.edition.max_stories across all sections, dropping the
lowest importance first and keeping at least two stories per section.edition.briefs.importance honestly (3 for the two or three stories of
the day, most stories 2, small items 1) and size the summary by it:
3 is 90 to 150 words with context, 2 is 50 to 90, 1 is 25 to 45. A section's
depth caps that: depth 2 writes no importance 3, depth 1 gives briefs only.
The page is read over breakfast, so a long day means fewer stories, not
longer ones. When edition.style is smart-brevity, write every summary,
the lead's included, as three paragraphs: a one-sentence lede, then
Warum das wichtig ist: (Why it matters: in English) with one or two
sentences, then Die Details: (The details:) with the rest. The word
ranges stay the same, so at importance 1 write only the lede and Warum das wichtig ist:. "Why it matters" analyses one level above the lede:
a consequence, a second-order effect, who wins or loses, or what the story
means for the reader's interests and sections. It never adds a fact,
number or quote; those go in the details. When no real "so what" exists,
leave the paragraph out instead of restating the lede. Follow
edition.why_it_matters in topics.yaml when it is set. Any other style
value, or none, means plain paragraphs. Facts come from the fetched article
only and no paragraph invents one; reasoning from those facts belongs in
"why it matters" alone, every other paragraph carries no opinion. No filler. Give every story entities and two to four
key_facts, which memory uses to spot repeats tomorrow. Story ids are
<date>-<slug>-NN, where slug is the section id or a short subject slug
(anthropic, bnd), lowercase ASCII, NN counting from 01 per slug.NP/<date>.json per references/edition-contract.md: title
and tagline from design.yaml, date_display in German ("Mittwoch, 7.
Oktober 2026"), number and previous from step 1, sections in config
order (skip a section with no stories and no briefs; at most 20; with
fewer than four, build the paper with what there is and say so in the
report) with local: true on
a section whose topics.yaml entry has it, weather: null unless you have
something better than a forecast, and feedback_hint as
Feedback: <periodic>/05 Newspaper/feedback.md. A section that has only
briefs (a depth-1 section, or one whose stories were all cut) stays in
with stories: [], so its briefs keep their section. Keep a candidate's
bracket on its story. Then
uv run "${CLAUDE_SKILL_DIR}/scripts/weather.py" ARGS fills a null
weather from Open-Meteo for topics.yaml's weather place (one request,
no key); a warning means the box stays empty, which is fine. Then
uv run "${CLAUDE_SKILL_DIR}/scripts/tables.py" ARGS fills tables on
every section whose topics.yaml entry lists tables:, from sportschau.de;
a warning means that league's table is left out.uv run "${CLAUDE_SKILL_DIR}/scripts/refetch.py" ARGS
fetches the lead's URL again and prints its og:title and og:description
(when present) as the first lines, then the page text. Never ask here; this
runs headless.
- <date> <domain> <code> to
NP/memory/source-failures.md (domain without port; code is the one
refetch printed: 404, 410, refused, timeout, dns or ssl) and apply the Self-Healing rule on a
repeat failure. Drop the old lead. Make the most important story from a
section in edition.lead_from the lead (ties go to the earlier section
in lead_from), set its section, and leave out a section the swap
empties. Run refetch again. Swap at most twice, then go on with what you
have and say so in the report.key_facts against the printed
text; a fact holds when the page states it, in any words, and it may hold
in the og lines alone (a paywalled body). When fewer than
two hold, rewrite the facts and summary from that text; when the text
gives fewer than two facts for the story, swap the lead as above.uv run "${CLAUDE_SKILL_DIR}/scripts/validate.py" "NP/<date>.json" --memory "NP/memory/stories.jsonl".
Fix every error and run it again until it reports 0 errors. If an error
is still there after two fixes, drop the story it names, run it again, and
say so in the report. A repeated URL
means drop the story or make it a real follow-up. It also fails on a
published day before the section's freshness_days window or after the
edition date: take the date from the article's own meta or text, or drop
the story. Length warnings do not block, but trim any summary more than a
third over its range.uv run "${CLAUDE_SKILL_DIR}/scripts/render.py" ARGS. It writes
NP/<date>.html with design.yaml's design and overrides, and fills the
footer's recent changes from the changelog, and the Berlin-time
published_display of each story. A warning that the design is
not installed means it fell back to plain; mention it in the report.uv run "${CLAUDE_SKILL_DIR}/scripts/remember.py" ARGS.
A rerun for the same date replaces that date's memory, never duplicates it.uv run "${CLAUDE_SKILL_DIR}/scripts/link_daily.py" ARGS. It adds
Zeitung: [[<periodic>/05 Newspaper/<date>.html]] to the daily note above
its first ## heading, once, creating the note in kasten's format if it is
missing.| Step | Claude Code | Codex |
|---|---|---|
| Gather | Agent tool, general-purpose type, one per section, all in one message | Its subagent tool, one per section; else inline in turn |
| Web | WebSearch to find, curl or WebFetch to read | Its web search tool, then curl |
| Scripts | uv run "${CLAUDE_SKILL_DIR}/scripts/<name>.py" | uv run <this skill's directory>/scripts/<name>.py |
Cursor: gather with one Task call per section, several Task calls in one message; else inline in turn. Web and scripts as in the Codex column.
uv missing: the scripts need uv (Python 3.11 or later). Without it,
stop and say so; do not hand-write the HTML, because memory and validation
would drift.NP/memory/source-failures.md as - <date> <domain> <code>. Block
a domain only when it refused (401, 403 or 429) in this edition and in the
previous one; a timeout never blocks. Add it to blocked_sources as
- <domain> # <date>, refused <code> twice and log it in the changelog. The
reader can unblock it with /news:tune sources.recent.py, never from guesswork.references/feedback-rules.md.NP and the one daily note.blocked_sources line Self-Healing adds after two
refusals.designs/README.md (opens in a new tab)designs/briefing/NOTES.md (opens in a new tab)designs/briefing/shot-mobile-light.png (opens in a new tab)designs/briefing/style.css.j2 (opens in a new tab)designs/briefing/template.html.j2 (opens in a new tab)designs/broadsheet/NOTES.md (opens in a new tab)designs/broadsheet/shot-mobile-light.png (opens in a new tab)designs/broadsheet/template.html.j2 (opens in a new tab)designs/heimatblatt/NOTES.md (opens in a new tab)designs/heimatblatt/base.css.j2 (opens in a new tab)designs/heimatblatt/layout.css.j2 (opens in a new tab)designs/heimatblatt/macros.html.j2 (opens in a new tab)designs/heimatblatt/shot-mobile-light.png (opens in a new tab)designs/heimatblatt/story.css.j2 (opens in a new tab)designs/heimatblatt/template.html.j2 (opens in a new tab)designs/magazine/NOTES.md (opens in a new tab)designs/magazine/shot-mobile-light.png (opens in a new tab)designs/magazine/style.css.j2 (opens in a new tab)designs/magazine/template.html.j2 (opens in a new tab)designs/plain/template.html.j2 (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pgoell/pgoell-claude-tools --plugin news3 skills in this plugin
/feedbackUse when the user gives feedback on their personal newspaper and wants it applied now, for example "less Polizeibericht", "GNZ is paywalled, drop it", or "/news:feedback shorter Deloitte stories". Turns the free text into config changes in the vault and shows the diff. Not for building an edition (the user runs /news:edition) or for a full reconfiguration interview (the user runs /news:tune)./tuneUse when the user wants to reconfigure their personal newspaper through a short interview, for example "tune my newspaper", "change the sections", "try another design" or "which designs are there". Walks through sections, depth, sources, interests and design one question at a time, rewrites the vault config, shows the diff, and can re-render today's edition with another design. Not for one quick change (use news:feedback) or for building an edition (use news:edition).Other plugins' skills for the same job