home / skills / openclaw / skills / miniflux-news

miniflux-news skill

/skills/hartlco/miniflux-news

This skill fetches and triages the latest unread Miniflux entries, returning concise lists and optional summaries to boost reading efficiency.

npx playbooks add skill openclaw/skills --skill miniflux-news

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
3.5 KB
---
name: miniflux-news
description: Fetch and triage the latest unread RSS/news entries from a Miniflux instance via its REST API using an API token. Use when the user asks to get the latest Miniflux unread items, list recent entries with titles/links, or generate short summaries of specific Miniflux entries. Includes a bundled script to query Miniflux (/v1/entries and /v1/entries/{id}) using credentials from ~/.config/clawdbot/miniflux-news.json (or MINIFLUX_URL and MINIFLUX_TOKEN overrides).
---

# Miniflux News

Use the bundled script to fetch entries, then format a clean list and optionally write summaries.

## Setup (credentials)

This skill reads Miniflux credentials from a local config file by default.

### Config file (recommended)

Path:
- `~/.config/clawdbot/miniflux-news.json`

Format:
```json
{
  "url": "https://your-miniflux.example",
  "token": "<api-token>"
}
```

Create/update it using the script:

```bash
python3 skills/miniflux-news/scripts/miniflux.py configure \
  --url "https://your-miniflux.example" \
  --token "<api-token>"
```

### Environment variables (override)

You can override the config file (useful for CI):

```bash
export MINIFLUX_URL="https://your-miniflux.example"
export MINIFLUX_TOKEN="<api-token>"
```

Token scope: Miniflux API token with read access.

## Fetch latest entries

List latest unread items (default):

```bash
python3 skills/miniflux-news/scripts/miniflux.py entries --limit 20
```

Filter by category (by name):

```bash
python3 skills/miniflux-news/scripts/miniflux.py entries --category "News" --limit 20
```

If you need machine-readable output:

```bash
python3 skills/miniflux-news/scripts/miniflux.py entries --limit 50 --json
```

### Response formatting

- Return a tight bullet list: **[id] title — feed** + link.
- Ask how many the user wants summarized (e.g., “summarize 3” or “summarize ids 123,124”).

## View full content

Show the full article content stored in Miniflux (useful for reading or for better summaries):

```bash
python3 skills/miniflux-news/scripts/miniflux.py entry 123 --full --format text
```

If you want the raw HTML as stored by Miniflux:

```bash
python3 skills/miniflux-news/scripts/miniflux.py entry 123 --full --format html
```

## Categories

List categories:

```bash
python3 skills/miniflux-news/scripts/miniflux.py categories
```

## Mark entries as read (explicit only)

This skill **must never** mark anything as read implicitly. Only do it when the user explicitly asks to mark specific ids as read.

Mark specific ids as read:

```bash
python3 skills/miniflux-news/scripts/miniflux.py mark-read 123 124 --confirm
```

Mark all unread entries in a category as read (still explicit, requires `--confirm`; includes a safety `--limit`):

```bash
python3 skills/miniflux-news/scripts/miniflux.py mark-read-category "News" --confirm --limit 500
```

## Summarize entries

Fetch full content for a specific entry id (machine-readable):

```bash
python3 skills/miniflux-news/scripts/miniflux.py entry 123 --json
```

Summarization rules:
- Prefer 3–6 bullets max.
- Lead with the “so what” in 1 sentence.
- If content is empty or truncated, say so and summarize from title + available snippet.
- Don’t invent facts; quote key numbers/names if present.

## Troubleshooting

- If the script says missing credentials: set `MINIFLUX_URL`/`MINIFLUX_TOKEN` or create `~/.config/clawdbot/miniflux-news.json`.
- If you get HTTP 401: token is wrong/expired.
- If you get HTTP 404: base URL is wrong (should be the Miniflux web root).

Overview

This skill fetches and triages the latest unread RSS/news entries from a Miniflux instance using its REST API and an API token. It lists recent unread items with titles, feeds and links, and can generate short summaries for selected entries. The bundled Python script reads credentials from a local config or environment variables and supports JSON output for automation. It never marks items as read unless you explicitly request that action.

How this skill works

The skill calls Miniflux endpoints (/v1/entries and /v1/entries/{id}) using credentials from ~/.config/clawdbot/miniflux-news.json or the MINIFLUX_URL and MINIFLUX_TOKEN environment variables. By default it lists unread entries in a compact bullet format: [id] title — feed + link. When asked, it fetches full entry content for summarization or returns raw HTML/text for reading or further processing.

When to use it

  • Get a tight list of latest unread Miniflux items with ids, titles, feeds, and links.
  • Ask for short summaries of specific unread entries by id or a small number of recent items.
  • Generate machine-readable JSON output for processing in scripts or CI pipelines.
  • Filter unread items by category name to narrow results to a topic.
  • Explicitly mark specific entries or an entire category as read when you decide.

Best practices

  • Store credentials in ~/.config/clawdbot/miniflux-news.json for local use and set MINIFLUX_URL and MINIFLUX_TOKEN for CI or overrides.
  • Request only a few summaries at once (3–6 bullets per summary) to keep output concise and accurate.
  • Do not rely on the skill to mark read implicitly—always confirm which ids to mark as read.
  • Use --json when integrating with other tools to get machine-readable output.
  • If full content seems truncated, fetch the entry with --full and --format text or html before summarizing.

Example use cases

  • List the 20 most recent unread items across all feeds to triage morning reading.
  • Filter unread items in category 'News' and summarize the top 3 for a quick briefing.
  • Export 50 unread entries as JSON for archival or downstream processing.
  • Fetch the full HTML for entry 123 to produce a longer excerpt or cite sources.
  • Explicitly mark a set of ids as read after you’ve reviewed them, using confirm flags.

FAQ

Where do I put my Miniflux credentials?

Create ~/.config/clawdbot/miniflux-news.json with url and token, or set MINIFLUX_URL and MINIFLUX_TOKEN environment variables.

Will this skill mark items as read automatically?

No. It never marks entries as read unless you explicitly run a mark-read command with confirmation.

What if summaries lack content?

If the full article content is missing or truncated, the skill will note that and summarize using the title and available snippet only.