/hermitd-feed:source-healthfrom hermitd-feed
Read-only audit of brief source performance. Scans recent brief frontmatter for 3+ consecutive quiet or skipped streaks, plus cost-efficiency analysis. Invoke with /hermitd-feed:source-health.
Ships in hermitd-feed. 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.
None: SKILL.md is the whole skill.
Read-only audit of brief source performance. Scans recent briefs and flags underperforming sources before they silently waste fetch budget.
Read feed-sources.md — extract the active source names (Name column).
Glob briefs — list .hermit/briefs/*.md, sort descending by filename (newest first), take the last N = 10 (override with --last N).
Parse each brief's frontmatter — extract:
sources_used: sources that contributed ≥1 item.sources_skipped: sources that failed to fetch (network error, Chrome unavailable, script error).sources_quiet: sources that fetched cleanly but yielded 0 items.fetch_log: per-source efficiency array (may be absent in older briefs — treat as missing, not an error).If a source appears in none of the three arrays, mark it unknown for that brief (may predate the schema).
Compute per-source streaks — walking newest→oldest for each active source:
consecutive_quiet: consecutive briefs the source was in sources_quiet.consecutive_skipped: consecutive briefs the source was in sources_skipped.sources_used or is unknown.Flag threshold violations — any source where consecutive_quiet >= 3 OR consecutive_skipped >= 3.
Output a health table:
## Source Health — YYYY-MM-DD (last 10 briefs)
| Source | Last 10 (newest→oldest) | Streak | Status |
|-----------------------|----------------------------|--------------|-----------|
| Source A | ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ | — | healthy |
| Source B | ~ ~ ~ ✓ ~ ~ ~ ✓ ~ ~ | 3 quiet | ⚠ warn |
| Source C | ✗ ✗ ✗ ✗ ✓ — — — — — | 4 skipped | ✗ flag |
Legend: ✓ contributed · ~ quiet (fetched, nothing relevant) · ✗ skipped (fetch failed) · — not yet in sources or brief predates schema.
Status thresholds:
healthy — in sources_used in the last 3 briefs.⚠ warn — quiet 2 consecutive times (not yet flagged, worth watching).✗ flag — quiet or skipped 3+ consecutive times → needs operator review.Summary line — after the table:
Flagged: N source(s) need review. Quiet: M. Skipped: K.
If nothing flagged: All N sources healthy in the last 10 briefs.
Recommendations — one line per flagged source:
x/chrome type) or the URL has changed."Efficiency Analysis — reads fetch_log from recent frontmatter for per-source cost efficiency.
Only runs when at least 3 recent briefs have fetch_log data; if fewer, skip entirely (no output).
a. Load fetch_log data from step 3. Group by source name; discard briefs where fetch_log is absent.
b. Per-source aggregates (across all briefs where the source appears in fetch_log):
avg_tokens: mean of tokens_approx.avg_yielded: mean of items_yielded.avg_p1: mean of items_scored_p1.yield_ratio: avg_yielded / (avg_tokens / 1000) — items per 1K tokens (higher = more efficient).p1_rate: avg_p1 / avg_yielded when avg_yielded > 0, else — (dash).briefs_with_data: count of contributing briefs.c. Flag type-upgrade candidates. Sources where tokens_approx ≥ 15000 (Chrome-tier cost) AND yield_ratio < 0.15 → "type-upgrade candidate" (low yield at Chrome cost suggests checking for an RSS feed).
d. Output efficiency table — append after the streak table:
## Efficiency Analysis (last N briefs with fetch_log)
| Source | Type | Avg tokens | Yield/1K | P1 rate | Verdict |
|-------------|---------|------------|----------|---------|------------------|
| Source A | rss | 3K | 2.3 | 29% | ✓ efficient |
| Source B | reddit | 5K | 1.8 | 33% | ✓ efficient |
| Source C | chrome | 20K | 0.05 | 100% | ⚠ low yield → RSS? |
| Source D | x | 20K | 0.0 | — | ✗ no yield |
Verdict thresholds:
✓ efficient — yield_ratio ≥ 0.5 (web/rss) or ≥ 0.15 (chrome/x/reddit-chrome).⚠ low yield — below threshold but still contributing some items.✗ no yield — avg_yielded < 0.1.→ RSS? — append to the verdict for type-upgrade candidates.Summary line:
Efficiency: N sources efficient · M low-yield · K type-upgrade candidates
Print the tables to the conversation. Do NOT write to any file — this skill is read-only and never
modifies feed-sources.md. Source removals require operator approval.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/add-sourceInteractively add a new source to feed-sources.md with type inference, https and name-uniqueness validation, and category checking against feed-categories.md. Appends a formatted row to the Active Sources table. Invoke with /hermitd-feed:add-source./deep-diveHandles "deep dive: <slug>" follow-up requests. Resolves the referenced item from recent briefs, does targeted web research on its primary source, and delivers a focused ~10-15 line analysis via the configured channel. General follow-up by default; a security variant when the item is security-tagged. Invoke with /hermitd-feed:deep-dive <slug>./feed-briefRuns the full feed-to-brief pipeline — fetches every configured source, scores and filters items by relevance, writes a human-voice brief per FEEDS.md, delivers it to the operator's configured channel, and archives it with rich frontmatter. Invoke with /hermitd-feed:feed-brief --morning|--evening|--slot <name> for scheduled or on-demand briefs. Reads feed-sources.md, feed-categories.md, and FEEDS.md from the project root./hatchOne-time feed hermit setup. Seeds the source registry and FEEDS.md tone spec, configures brief slots/tone/enrichments, drops routine prompts, and wires routines including source-scout into config.json. Run once per project after /hermitd:hatch./source-scoutGap-driven discovery of new RSS/web sources for feed-sources.md. Interactive runs WebFetch-verify candidates and auto-add them; --scheduled runs queue unverified candidates for operator review (no WebFetch, per the domain-allowlist rule). Complements source-health (removal) with discovery (addition). Invoke with /hermitd-feed:source-scout./story-arcsManage developing story arcs tracked across briefs — add, resolve, and list active arcs in compiled/story-arcs-*.md. Arc Watch keywords drive the feed-brief arc-tagging enrichment. Invoke with /hermitd-feed:story-arcs add|resolve|list.npx claudepluginhub gtapps/hermitd --plugin hermitd-feedOther plugins' skills for the same job