build-setup
Set up build environment and test fixtures for COBOL-to-Java migrations. Creates compilation infrastructure for both languages…
Create an automation that reads a list of public RSS and Atom feeds on a schedule - daily by default - keeps what is new and matches the configured topics, and has an agent write a short digest of it. It needs no credentials: the feeds are public URLs and, on a local Agent
$ npx -y skills add openhands/extensions --skill news-digest --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/news-digestContext preview
The summary Claude sees to decide when to auto-load this skill.
Create an automation that reads a list of public RSS and Atom feeds on a schedule - daily by default - keeps what is new and matches the configured topics, and has an agent write a short digest of it. It needs no credentials: the feeds are public URLs and, on a local Agent
name: news-digest description: > Create an automation that reads a list of public RSS and Atom feeds on a schedule - daily by default - keeps what is new and matches the configured topics, and has an agent write a short digest of it. It needs no credentials: the feeds are public URLs and, on a local Agent Canvas, the conversation is started with no secrets and no MCP servers. triggers: - /news-digest:setup
Create a cron automation that turns a list of feeds into something worth reading: a few hundred words a day on what happened in the topics you care about, with a link under each item.
**It connects to nothing.** There is no token to issue, no account to link, no OAuth screen. That makes it the automation to run first - it exercises the schedule, the conversation, the model and the run log end to end while nothing of yours is at stake, and it is useful in its own right afterwards.
The script is deterministic: the schedule, the once-a-day claim, fetching, parsing, the freshness window, and remembering what has already been covered are all Python. The LLM is invoked only for the part that is judgement - reading the shortlist and writing something that is not just the headlines pasted back. **When nothing new matches, no conversation is started at all**, so a quiet day costs no tokens.
---
None. That is the point.
The runtime needs outbound HTTPS to the feed hosts, which it already has if it can reach the model. Nothing is read from **Settings -> Secrets**, and nothing needs to be added there.
---
Follow these steps in order.
Ask: *"Which feeds should the digest read? (One RSS or Atom URL per line. Press Enter for a general technology set.)"*
Default:
https://news.ycombinator.com/rss https://feeds.arstechnica.com/arstechnica/index https://www.theverge.com/rss/index.xml
Check each one before accepting it, because a URL that returns a web page rather than a feed is the most common setup mistake:
curl -sSL --max-time 20 -A "OpenHands-News-Digest/1.0" "{feed_url}" \
| python3 -c "
import sys
from xml.etree import ElementTree
try:
root = ElementTree.fromstring(sys.stdin.buffer.read())
except ElementTree.ParseError as exc:
print('ERROR: not valid XML:', exc); raise SystemExit
name = root.tag.rsplit('}', 1)[-1]
items = [e for e in root.iter() if e.tag.rsplit('}', 1)[-1] in ('item', 'entry')]
print(f'OK: <{name}> with {len(items)} entries' if name.lower() in ('rss', 'feed', 'rdf')
else f'ERROR: root element is <{name}>, which is not a feed')
"Record every accepted URL into `FEEDS = ["...", ...]`. A feed that fails at runtime is reported and skipped, so one bad URL does not cost you the digest - but it is better to find out now.
Ask: *"What should the digest be about? (One topic per line, or comma separated. Press Enter for `artificial intelligence, open source, developer tools`. Leave it blank to summarise everything the feeds carry.)"*
Record as `TOPICS`. Two things are worth telling the user:
excerpt. So write topics the way you would explain your interests to a colleague - `artificial intelligence` works even though almost every headline says `AI`, and a story about a company releasing its model weights counts as `open source` without using the phrase.
handful of narrow feeds and vaguer for a firehose.
Ask: *"When should the digest be written? (Press Enter for the default: every day at 08:00 UTC, `0 8 * * *`.)"*
Default: `0 8 * * *`. Record as `CRON_SCHEDULE`, and the timezone as `CRON_TIMEZONE` (default `UTC`).
A schedule more frequent than daily is allowed and is not wasteful: work is keyed by UTC date, so extra runs stop at a state read once the day is done, and before that they cost one HTTP request per feed and no tokens. It is a reasonable way to say "write the digest as soon as there is anything to write".
Do **not** ask which secrets to forward. `AGENT_SECRET_NAMES` is empty and should stay empty: the conversation summarises text fetched from the open web, which is written by strangers, and a credential handed to it would make every feed on the list an instruction channel into the deployment's secret store.
If the user asks for a digest posted to Slack, Notion or a repository, that is a different automation - it needs that integration connected, and it should be built from the skill for it rather than by widening this one.
Read `scripts/main.py` from this skill's directory. Apply exactly two constant substitutions near the top of the file:
> The script also reads a `config.json` shipped beside it, if there is one, over > these constants. That is how the catalog entry > (`automations/catalog/news-digest/`) configures an unmodified copy, since a > declarative host cannot rewrite Python. This setup path substitutes the > constants and ships no `config.json`, so the two never collide.
| Placeholder | Replace with | |---|---| | `FEEDS = [...]` | the list from Step 1 | | `TOPICS = [...]` | the list from Step 2, or `[]` for no filter |
`LOOKBACK_HOURS` (48) and `MAX_ITEMS` (50) are left alone unless the user asks. The lookback is deliberately wider than the schedule so a failed or missed run is recovered by the next one; the seen-list is what stops the overlap from repeating anything.
Use a safe string writer such as `json.dumps(value)` when inserting user-provided URLs or topics into Python string literals.
Write the customized script to a temporary build directory and validate it:
mkdir -p /tmp/news-digest-build # write the customized main.py to /tmp/news-digest-build/main.py python3 -m p
This repository is the public extensions registry for OpenHands. It contains reusable, shareable skills, plugins, and Agent Canvas Apps that customize agent behavior and interfaces. Skills overview docs: SDK skill guide:
Set up build environment and test fixtures for COBOL-to-Java migrations. Creates compilation infrastructure for both languages…
End-to-end COBOL to Java migration workflow. Handles build setup, mainframe dependency removal, and code migration with test…
Create a transformation guide for replacing mainframe-specific COBOL constructs with standard COBOL equivalents. Use when…
Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide. Converts CICS/VSAM…
Migrate COBOL code to idiomatic Java, preserving business logic while following Java best practices. Use for COBOL modernization…
A test skill that responds to the magic word "alakazam" with a specific phrase