360 Secure SkillHub
360 安全技能中心

Miniflux News

通过内置 Python 脚本调用 Miniflux REST API(/v1/entries、/v1/entries/{id}),读取未读条目或指定条目全文,输出紧凑列表或 JSON,并按规则生成 3–6 条要点摘要;仅在用户明确要求并带 --confirm 时才标记已读。凭证来自配置文件或环境变量。

hartlco
hartlco
热度 94.13
最近更新 2026-05-11 15:50:48
分类:搜索依赖:代码执行 / 第三方 API / 读写文件 / 内部调用大模型应用场景:研究 / 摘要总结 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add miniflux-news
Metadata
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:

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

Create/update it using the script:

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):

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):

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

Filter by category (by name):

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

If you need machine-readable output:

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):

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

If you want the raw HTML as stored by Miniflux:

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

Categories

List categories:

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:

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):

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):

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).