News front page

From pipecat-ai/gradient-bang · View interactive version

News front page is an AI agent skill from the GitHub repository pipecat-ai/gradient-bang. Generate a Gradient News & Observer newspaper front page for a time window. Pulls game events into a structured digest, writes ten illustrated story ledes (7 straight news + 2 gossip + 1 market box) into a markdown file, then renders a 2160x3840 newspaper front-page PNG. Usage `/news-front-page [dur

How to use this skill

Skill file

Generate Newspaper Front Page

Produce a complete edition of The Gradient News & Observer for a requested time window: digest → markdown stories → image.

Parameters

/news-front-page [duration]

If duration is missing, default to 24h and proceed — do not ask.

Output files

All under artifacts/. Use the digest's end timestamp formatted as YYYYMMDD-HHMMSSZ UTC for the stem, and past-<duration> as the suffix:

Steps

1. Generate the digest JSON

Run news-digest to pull events for the requested window into a structured JSON file. Use the entry-point script (registered in pyproject.toml):

uv run news-digest \
  --env-file .env.cloud \
  --duration <duration> \
  --format json \
  --output artifacts/news-digest-<stem>-past-<duration>.json

2. Mine the digest for storylines

Read the JSON with small Python scripts (via Bash) to surface the angles. Useful queries:

You don't need TaskCreate for the mining — it's all read-only Python. Spawn a single Explore agent only if the JSON exceeds ~10MB and you want a focused report.

Pick 9 storylines from what you find. Mix should match the structure below: 7 grounded news beats + 2 dishy gossip angles. Lean toward conflict, status changes, public statements, and surprising aggregates.

3. Write the front-page Markdown

Write to artifacts/gradient-news-observer-front-page-<stem>-past-<duration>.md using the structure below verbatim. The image generator's prompt template assumes this exact section count and ordering.

Structure (10 sections, in order)

| # | Type | Length | Section tag |

|---|---|---|---|

| 1 | Straight news (lead) | Two paragraphs | Story-specific newspaper section — see tagging guide below |

| 2 | Straight news | Two paragraphs | Story-specific newspaper section |

| 3 | Straight news | One short paragraph | Story-specific newspaper section |

| 4 | Straight news | One short paragraph | Story-specific newspaper section |

| 5 | Straight news | One short paragraph | Story-specific newspaper section |

| 6 | Straight news | One short paragraph | Story-specific newspaper section |

| 7 | Straight news | One short paragraph | Story-specific newspaper section |

| 8 | Gossip | 2–3 punchy sentences | Oblique, catty, insider-y tag |

| 9 | Gossip | 2–3 punchy sentences | Oblique, catty, insider-y tag |

| 10 | Market Update | Two markdown tables + footnote | Literally *Market Update* |

File template
# THE GRADIENT NEWS & OBSERVER

**Front-Page Edition — <window length> ending <YYYY-MM-DD HH:MM> UTC**

*"All the news the void allows."*

---

## 1. <Headline>

*<Story-specific section tag — e.g. Combat Wire, Trade & Lanes, Open Channel>*

<Lede paragraph — the strongest single fact or scene.>

<Second paragraph — context, quoted broadcasts, supporting numbers.>

---

## 2. <Headline>

*<Story-specific section tag>*

<Two paragraphs, same shape as story 1.>

---

## 3–7. <Headlines>

*<Story-specific section tag — different per story>*

<One short paragraph each — three to five sentences.>

---

## 8. <Headline>

*<Oblique, catty, insider-y tag — e.g. Salvage Talk>*

<Two or three short, punchy sentences. Vary the opening — see persona guide.>

---

## 9. <Headline>

*<Different oblique, catty, insider-y tag — e.g. The Mega-Port Set>*

<Two or three short, punchy sentences. Different opening from story 8.>

---

## 10. Market Update — <Window> Galactic Index

*Market Update*

| Measure | Value |
| --- | ---: |
| Gross trade volume | $... |
| ... |

| Top of the Boards | Pilot | Score |
| --- | --- | ---: |
| Wealth (lifetime) | ... | ... |
| ... |

---

*All sector numbers used appear in the period's open broadcasts; private direct messages and non-public sector references have been withheld.*

The closing italic footnote is required — the image template renders it as a footnote.

4. Render the front-page image

Unless skip-image was passed, run:

uv run news-front-page-image \
  --front-page-md artifacts/gradient-news-observer-front-page-<stem>-past-<duration>.md

5. Report

Print the three artifact paths (digest JSON, front-page Markdown, image PNG) and the headline of story 1 so the user can open the right files.

Personas — write in these voices

Straight news — *New York Times* house style

Gossip — dishy, varied openings

Section tags

Each story carries a single italic line directly under its headline that names the newspaper section it belongs to. These tags are part of the look — they make the page feel like an actual newspaper instead of a numbered list of stories. Write a fresh tag for every story; never re-use one.

Tags for straight news (stories 1–7)

Pick a section name that fits the story. Real-newspaper analogues are great when they're the obvious fit (Markets, Corporate Affairs, Cartography). Lean into the retro-space-game theme when there's room to be a little playful (Combat Wire, Trade & Lanes, Open Channel, Shipyard). Keep them short — two or three words, title-cased, no punctuation. A few worked examples for reference:

If two stories would land on the same tag — adjacent or not — change one. Each tag must be unique on the page; visual rhythm and section variety depend on it. If a straight-news story and a gossip beat both spring from open-channel chatter, give the gossip the Open-Channel Confidential variant and keep the news as Open Channel.

Tags for gossip (stories 8–9)

Oblique. Catty. Insider-y. The reader should feel they've stumbled into the back room of a yacht club. Two or three words, title-cased; "The X Set" / "On the X Beat" / "X Talk" patterns work. Worked examples:

The tag should hint at the gist of the gossip without naming it outright. If your tag basically restates the headline, it's too literal — make it more sideways.

Tag for the market box (story 10)

Always literally *Market Update*. No variants. The image template expects this string.

Privacy and content rules — non-negotiable

These constraints flow into the image prompt verbatim. Violating them in the markdown means a wrong front page.

Story-mining heuristics

Strong story signals, in roughly decreasing order of front-page value:

  1. A public broadcast that announces intent — toll lanes, recruitment, accusations, "public notice" kill claims, declarations of war. These almost always lead the page.
  2. An exchange of broadcasts between two pilots — accusation + denial, ultimatum + response. Story 2 territory.
  3. A new corporation with a public manifesto broadcast in the window.
  4. A combat day above baseline — count ship.destroyed and combat.ended. Fourteen ship destructions is a lot; one is a footnote.
  5. A leaderboard sweep — same name in #1 across multiple boards, or three sister ships in the top three of one board.
  6. A run of ship purchases with a clear narrative (e.g., a pilot who lost a hull and re-bought).
  7. An autonomous-fleet survey record — "468 sectors in 24 hours" is a clean explorer beat.
  8. Garrison drama in or near Fed Space. Garrisons placed close to fedspace, especially if destroyed within hours, are reliable conflict copy.

Weak signals — generally skip:

Things this skill does NOT do

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.