[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AZSBEHD457TCA337P2B0JT":3,"skill-same:01M7AZSBEHD457TCA337P2B0JT":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7AZSBEHD457TCA337P2B0JT","telegram-forwarder-cli",null,"Build a Telegram MTProto forwarder\u002Fscraper CLI with uv.","dbillion\u002Fhermes-skills-public","dbillion","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49393855?v=4","01M7AVH8QPGCM8WKWS22TRT0T6","Oludayo Adeoye","01M7AVH8RD1JJWA0YS9CFEWAV9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Ftelegram-forwarder-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: telegram-forwarder-cli\ndescription: Build a Telegram MTProto forwarder\u002Fscraper CLI with uv.\nlicense: MIT\n---\n\n# Telegram Forwarder \u002F Scraper CLI (Telethon + uv)\n\nBuild a Telegram MTProto client as an installable CLI. MTProto = user-client\nprotocol (Telethon). Bots (Bot API \u002F teloxide) CANNOT list dialogs or read\nprivate chats — only a *user* session can. This skill is for the user-client case.\n\n## Hard coding mandate (this user — non-negotiable)\n\nEmbedded from an explicit correction (\"as a rule going forward…\"):\n1. **Write a plan, turn it into a task list, tick each task as done.**\n2. **Unit tests are MANDATORY.** \"Any software without unit test is a failure;\n   if you can't test what you just built, you have failed.\" Ship `tests\u002Ftest_*.py`\n   covering offline logic (filename helpers, scoring\u002Fverdict, state persistence,\n   cache dedup) BEFORE claiming success.\n3. **Modular, never a ~400-line monolith.** Split into single-responsibility\n   files: `client.py` (session+resolve), `cache.py` (SQLite), `forward.py`\n   (OCR), `score.py` (usefulness), `report.py` (logging), `state.py` (resume),\n   `cli.py` (Click commands).\n4. Load `ponytail` \u002F `code-refactoring` for structure work. (Note: `ponytail`\n   is user-owned here — recommend `hermes curator adopt ponytail` to edit it.)\n\n## Modular layout (reference shape)\n\n```\ntgforwarder\u002F\n  pyproject.toml        # setuptools backend, [project.scripts] tgf = ...\n  tgforwarder\u002F\n    __init__.py\n    client.py           # make_client(), resolve_entity() (handles -100 prefix)\n    cache.py            # ForwardCache: SQLite dedup (UNIQUE src,src_msg,tgt)\n    forward.py          # extract_text() per extension; OCR-rename\n    score.py            # score_chats(): recency\u002Fdiversity\u002Ftopic\u002Fnoise verdict\n    report.py           # ForwardLogger: count, by-type, 5-min window, rich+emoji\n    state.py            # resume persistence: last_message_id per source\n    cli.py              # Click group: forward \u002F score \u002F test-ocr \u002F status\n  tests\u002Ftest_offline.py # offline: filename, score verdict, cache dedup, state, logger\n```\n\n## uv packaging — CRITICAL pitfalls (seen live, cost real time)\n\nSee `references\u002Fpackaging_pitfalls.md` for full detail + verification snippets.\nSummary:\n- **hatchling builds empty wheels** (RECORD omits package code) → use **setuptools**.\n- **`find_dotenv()` walks UP** to a parent `.env` → load `Path(\".env\")` (cwd) explicitly.\n- **editable install doesn't expose the bin** → `uv tool install .` (real wheel);\n  reinstall clean with `--no-cache` if a stale broken wheel is cached.\n- Never claim \"it's a uv CLI\" until `which tgf` resolves and `tgf --help` runs.\n\n## Telegram session patterns\n\n- **User vs bot:** `tg chats` fails on a bot session (bots can't list dialogs).\n  A real *user* `.session` (e.g. `forwarder_session1.session`) works.\n- **Reuse an existing user session:** copy it to the client's `DATA_DIR`\n  (`~\u002F.local\u002Fshare\u002Ftg-cli\u002F\u003Cname>.session`) so `resolve_entity` finds it.\n- **Login once, interactively:** Telethon `start()` needs a TTY for the phone\n  code; an agent can't run it. Provide a helper that writes the session, then the\n  user runs it in a real terminal. Keep creds in a local `.env` (gitignored),\n  never in chat.\n- **One session at a time:** \"database is locked\" means another process holds the\n  `.session` (e.g. a `sync-all` running). Don't run `send` while sync is active.\n\n## Chat usefulness scoring (research triage)\n\nRank chats from a local SQLite cache (`tg-cli` `messages.db`) so scoring is\noffline. Metrics: recency (age decay), sender diversity, topic relevance\n(`--topic` boosts; \u003C15% relevant -> cap as NOISE), link density, noise denylist\n(prayer\u002Ftelecom\u002Fleech\u002Fforex). Verdict: USEFUL >=55, OK >=35, else NOISE. Pure\nSQLite, no Telegram — the \"which chat is useful vs not\" research tool.\n\n## Commands shape (Click)\n\n- `tgf forward --source X --dest Y --path .\u002Fdownloads [--resume|--start]`\n  reads `SOURCE_CHANNELS`\u002F`DEST_CHANNELS`\u002F`FORWARD_PATH` from `.env` as defaults;\n  launches an interactive menu when run with no args (source\u002Fdest\u002Fpath\u002Fmode).\n- `tgf score --db messages.db --topic \"java,rust,devops\" --top 20 [--json]`\n- `tgf test-ocr --source ID` (read-only: download+OCR+delete, sends nothing)\n- `tgf status` (shows api configured, never prints secrets)\n\n## Verify before claiming done\n\n1. `uv build --wheel --no-cache` -> wheel contains all `.py` modules.\n2. `pytest -q` -> green (offline tests).\n3. `uv tool install . --no-cache` -> `which tgf` resolves, `tgf --help` runs.\n4. Live smoke: `tgf test-ocr` (read-only) connects + resolves + OCR. Only then\n   run a real `forward` (it's a write — confirm source\u002Ftarget with user).\n","# Telegram Forwarder \u002F Scraper CLI (Telethon + uv)\n\nBuild a Telegram MTProto client as an installable CLI. MTProto = user-client\nprotocol (Telethon). Bots (Bot API \u002F teloxide) CANNOT list dialogs or read\nprivate chats — only a *user* session can. This skill is for the user-client case.\n\n## Hard coding mandate (this user — non-negotiable)\n\nEmbedded from an explicit correction (\"as a rule going forward…\"):\n1. **Write a plan, turn it into a task list, tick each task as done.**\n2. **Unit tests are MANDATORY.** \"Any software without unit test is a failure;\n   if you can't test what you just built, you have failed.\" Ship `tests\u002Ftest_*.py`\n   covering offline logic (filename helpers, scoring\u002Fverdict, state persistence,\n   cache dedup) BEFORE claiming success.\n3. **Modular, never a ~400-line monolith.** Split into single-responsibility\n   files: `client.py` (session+resolve), `cache.py` (SQLite), `forward.py`\n   (OCR), `score.py` (usefulness), `report.py` (logging), `state.py` (resume),\n   `cli.py` (Click commands).\n4. Load `ponytail` \u002F `code-refactoring` for structure work. (Note: `ponytail`\n   is user-owned here — recommend `hermes curator adopt ponytail` to edit it.)\n\n## Modular layout (reference shape)\n\n```\ntgforwarder\u002F\n  pyproject.toml        # setuptools backend, [project.scripts] tgf = ...\n  tgforwarder\u002F\n    __init__.py\n    client.py           # make_client(), resolve_entity() (handles -100 prefix)\n    cache.py            # ForwardCache: SQLite dedup (UNIQUE src,src_msg,tgt)\n    forward.py          # extract_text() per extension; OCR-rename\n    score.py            # score_chats(): recency\u002Fdiversity\u002Ftopic\u002Fnoise verdict\n    report.py           # ForwardLogger: count, by-type, 5-min window, rich+emoji\n    state.py            # resume persistence: last_message_id per source\n    cli.py              # Click group: forward \u002F score \u002F test-ocr \u002F status\n  tests\u002Ftest_offline.py # offline: filename, score verdict, cache dedup, state, logger\n```\n\n## uv packaging — CRITICAL pitfalls (seen live, cost real time)\n\nSee `references\u002Fpackaging_pitfalls.md` for full detail + verification snippets.\nSummary:\n- **hatchling builds empty wheels** (RECORD omits package code) → use **setuptools**.\n- **`find_dotenv()` walks UP** to a parent `.env` → load `Path(\".env\")` (cwd) explicitly.\n- **editable install doesn't expose the bin** → `uv tool install .` (real wheel);\n  reinstall clean with `--no-cache` if a stale broken wheel is cached.\n- Never claim \"it's a uv CLI\" until `which tgf` resolves and `tgf --help` runs.\n\n## Telegram session patterns\n\n- **User vs bot:** `tg chats` fails on a bot session (bots can't list dialogs).\n  A real *user* `.session` (e.g. `forwarder_session1.session`) works.\n- **Reuse an existing user session:** copy it to the client's `DATA_DIR`\n  (`~\u002F.local\u002Fshare\u002Ftg-cli\u002F\u003Cname>.session`) so `resolve_entity` finds it.\n- **Login once, interactively:** Telethon `start()` needs a TTY for the phone\n  code; an agent can't run it. Provide a helper that writes the session, then the\n  user runs it in a real terminal. Keep creds in a local `.env` (gitignored),\n  never in chat.\n- **One session at a time:** \"database is locked\" means another process holds the\n  `.session` (e.g. a `sync-all` running). Don't run `send` while sync is active.\n\n## Chat usefulness scoring (research triage)\n\nRank chats from a local SQLite cache (`tg-cli` `messages.db`) so scoring is\noffline. Metrics: recency (age decay), sender diversity, topic relevance\n(`--topic` boosts; \u003C15% relevant -> cap as NOISE), link density, noise denylist\n(prayer\u002Ftelecom\u002Fleech\u002Fforex). Verdict: USEFUL >=55, OK >=35, else NOISE. Pure\nSQLite, no Telegram — the \"which chat is useful vs not\" research tool.\n\n## Commands shape (Click)\n\n- `tgf forward --source X --dest Y --path .\u002Fdownloads [--resume|--start]`\n  reads `SOURCE_CHANNELS`\u002F`DEST_CHANNELS`\u002F`FORWARD_PATH` from `.env` as defaults;\n  launches an interactive menu when run with no args (source\u002Fdest\u002Fpath\u002Fmode).\n- `tgf score --db messages.db --topic \"java,rust,devops\" --top 20 [--json]`\n- `tgf test-ocr --source ID` (read-only: download+OCR+delete, sends nothing)\n- `tgf status` (shows api configured, never prints secrets)\n\n## Verify before claiming done\n\n1. `uv build --wheel --no-cache` -> wheel contains all `.py` modules.\n2. `pytest -q` -> green (offline tests).\n3. `uv tool install . --no-cache` -> `which tgf` resolves, `tgf --help` runs.\n4. Live smoke: `tgf test-ocr` (read-only) connects + resolves + OCR. Only then\n   run a real `forward` (it's a write — confirm source\u002Ftarget with user).\n",{"name":5,"license":15,"description":7},"master","f341c46fed021656175d5c9ccc67a72126e50bfb","skills\u002Fdevops\u002Ftelegram-forwarder-cli","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public","https:\u002F\u002Fgithub.com\u002Fdbillion","I enjoy writing codes,teaching programming, solving problems, tasted automation in Python and never looked back😋😋😋💞","2026-10-14 03:31:55",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add dbillion\u002Fhermes-skills-public --skill telegram-forwarder-cli",{"tool":37,"command":38},"bunx","bunx skills add dbillion\u002Fhermes-skills-public --skill telegram-forwarder-cli",{"tool":40,"command":41},"pnpm","pnpm dlx skills add dbillion\u002Fhermes-skills-public --skill telegram-forwarder-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Ftelegram-forwarder-cli\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fpackaging_pitfalls.md","REFERENCE","参考文档",3203,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Ftelegram-forwarder-cli\u002Freferences\u002Fpackaging_pitfalls.md",[52,59,66,75,82,89],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7B25T0V7RBKES86Y3RTXQRN","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7B25DSBBMZRHVD28MAX7N5X","gemini-vision-fallback","Vision fallback: Gemini REST API if vision_analyze blocked.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fvision\u002Fgemini-vision-fallback\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7B22XW9QXT2ZWWXVZDFWYZP","twitter-cli","Use twitter-cli for ALL Twitter\u002FX operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7B22QMWY1B4F7BC114RG4S6","prism-scan","Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code\u002Fartifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-scan\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7B22JA5XCAP1ACT6V50WYR1","prism-reflect","Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-reflect\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7B22EB15M75M4X3C52YGDCC","prism-full","Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-full\u002FSKILL.md",[],[]]