mine-channel

mine-channel is a skill for Claude Code from tonydzi/second-brain-starter-kit. It costs 72 tokens per session (1,122 once invoked), scanned A, original, MIT.

A tool for searching a Telegram channel or chat for useful information and saving selected findings as linked notes, database records, and an index entry. Telegram is a messaging service with channels and group chats.

In plain words
What is it for?
Use it to import new information from Telegram, avoid duplicating earlier imports, and add selected findings to a knowledge vault.
Why use it?
Large channels contain more messages than a person can review manually, and useful information can be hard to find again. It filters messages before using an AI review step to select valuable items.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the second-brain-skills plugin — 100 skills shipped together

Good fit Use it to import new information from Telegram, avoid duplicating earlier imports, and add selected findings to a knowledge vault.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/mine-channel
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonydzi/second-brain-starter-kit --skill mine-channel
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 100 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mine-channel

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/mine-channel/github.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/mine-channel)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/mine-channel"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/mine-channel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mine-channel

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/mine-channel"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/mine-channel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,122 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01122
Opus 5 $0.00036 $0.00561
Sonnet 5 $0.00014 $0.00224
Haiku 4.5 $0.00007 $0.00112

Measured today against content hash 089651371dd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mine-channel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mine-channel/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/mine-channel — pull in a channel and squeeze out the alpha in one command

🧒 Finish the reply to a non-technical operator with a simple "In plain words" recap (memory eli5-always).

This generalizes a pattern that was repeated by hand 5+ times across different channels. Cost ladder [[vault-data-architecture]]: a deterministic detector (0 tokens) → an LLM judge over the shortlist only → the vault.

Steps

0. RECALL (do not duplicate). Has this channel been mined already? Check $IMPORTS_ROOT/alpha/<slug>\ and memory (*-mine, *-community-import). If yes, this is a TOP-UP: same slug, incremental.

1. Resolve the channel. A username (@some_channel / some_channel) or a numeric id (<YOUR_CHAT_ID>). If you do not know the id — mcp__telegram__search_dialogs or /chat <name>. Pick a short Latin slug (e.g. silmeshok).

2. Scrape + detector (0 tokens, 0 GPU):

set PYTHONIOENCODING=utf-8
python $IMPORTS_ROOT/alpha/mine_channel.py --channel <name|id> --slug <slug> [--limit N] [--top 40] [--since YYYY-MM-DD --until YYYY-MM-DD]

_imports\alpha\<slug>\<slug>.jsonl + <slug>.db + the shortlist _imports\alpha\candidates\<slug>-report.md. (The scrape goes through the subscription Telethon session <TELEGRAM_MCP_DIR>/.env, account work_acct_a — NOT a paid API [[prefer-included-limits-before-paid-api]]. Re-running without --channel plus --detect-only = re-detect without re-scraping.)

3. The judge (LLM, shortlist only). Run the shortlist through a cheap grunt model (grunt work → the small model [[model-routing-sonnet-grunt]]; a subagent with model:'sonnet', or the alpha-judge skill): keep only REAL alpha FOR THE OWNER (a tool/model/deal · a technique or workflow · a mental model · a proof point or benchmark · a build pattern), and drop promos, banter, and anything we already do better. Verdicts: ✅ alpha · 🟡 watch · 🗑 noise.

4. Into the vault (obsidian-ingest). Backup first [[vault-backup-rule]]. ✅ alpha → atomic notes + concept links ([[no-orphan-notes-rule]]) + a MOC _<Slug>-MOC; a sensitive channel → #private. The original jsonl stays in _imports\alpha\<slug>\ (that IS the _originals copy for the channel). Reindex [[reindex-routine]] (or let the nightly job pick it up).

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 55 lines · 72 tokens per session scan A 089651371dd6

Subscribe to this mod's changes

mine-channel is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (6 stars, last pushed today), licensed MIT. It adds 72 tokens to every session and 1,122 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-09.

Related

Other skills, from other repositories

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens

save

Save a user-selected answer, decision, insight, or session summary into an Obsidian vault as one reviewed transaction. Use only when the user explicitly asks to preserve specific conversation content, not when they supply a file or URL to ingest. Triggers: /save, save this, save that answer, file this conversation…

AgriciDaniel/claude-obsidian · 80 tokens

wiki-fold

Create a bounded, extractive, structurally idempotent rollup of recent Obsidian wiki log entries, with dry-run preview by default and one optional transaction apply. Use for manual log compression without modifying child pages. Triggers: fold the log, run a fold, run wiki-fold, log rollup, roll up log entries, commit…

AgriciDaniel/claude-obsidian · 76 tokens

wiki-mode

Read or configure the vault filing methodology and suggest destinations for planned knowledge creation under Generic, LYT, PARA, or Zettelkasten. Use for wiki mode, methodology mode, what is my vault mode, set vault mode, switch to PARA, use LYT, Zettelkasten setup, change mode, configure mode, or methodology routing.…

AgriciDaniel/claude-obsidian · 83 tokens

wiki-cli

Detect and use the official Obsidian command-line interface for read-only vault access; use for wiki-cli, Obsidian CLI, Obsidian read, Obsidian search, vault transport, which transport, transport detection, backlinks, tags, or Obsidian command line. Mutations always go through the claude-obsidian transaction core.

AgriciDaniel/claude-obsidian · 74 tokens