tg-search

tg-search is a skill for Claude Code from Uri6407/claudegram. It costs 59 tokens per session (330 once invoked), scanned A, a copy of tg-search, MIT.

A search command for finding messages in Telegram, a messaging service, either across all chats or within one selected chat.

In plain words
What is it for?
Finding discussions by keyword, optionally resolving a public username to a chat, and showing the date, chat, sender, and a short message excerpt.
Why use it?
It avoids manually scrolling through conversations and returns matching messages in a consistent, date-sorted format.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Finding discussions by keyword, optionally resolving a public username to a chat, and showing the date, chat, sender, and a short message excerpt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/uri6407/claudegram/tg-search
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 Uri6407/claudegram --skill tg-search
Clone the repo
git clone --depth 1 https://github.com/Uri6407/claudegram

Made for: Claude Code.

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 tg-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/uri6407/claudegram/tg-search/github.svg)](https://agentmods.dev/skills/uri6407/claudegram/tg-search)
Your own site
<a href="https://agentmods.dev/skills/uri6407/claudegram/tg-search"><img src="https://agentmods.dev/badge/skills/uri6407/claudegram/tg-search/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 tg-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/uri6407/claudegram/tg-search"><img src="https://agentmods.dev/badge/skills/uri6407/claudegram/tg-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 330 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 100% copy Near-identical to another mod 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.00059 $0.00330
Opus 5 $0.00030 $0.00165
Sonnet 5 $0.00012 $0.00066
Haiku 4.5 $0.00006 $0.00033

Measured 10d ago against content hash c4e07063aa78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

tg-search 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 10d ago.

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.

Origin

This is a copy

100% identical to tg-search — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/tg-search/SKILL.md · 27 lines

What it actually says

Найди сообщения в Telegram по запросу: $query.

Если задан $chat — ограничь поиск им. Иначе ищи глобально.

Алгоритм:

  1. Если $chat начинается с @ — преобразуй через mcp__plugin_claudegram_claudegram__resolve_username в id.
  2. Вызови mcp__plugin_claudegram_claudegram__search_messages с query="$query", chat=<id или None>, limit=30.
  3. Выведи результаты таблицей: дата | чат | отправитель | фрагмент текста (≤100 символов).
  4. Сортируй от новых к старым.

Если результатов нет — предложи переформулировать или расширить поиск (убрать фильтр чата). Не выдумывай результаты.

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. 10d ago First seen · 27 lines · 59 tokens per session scan A c4e07063aa78

Subscribe to this mod's changes

tg-search is a skill published in the GitHub repository Uri6407/claudegram (2 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 330 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to tg-search, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

ha-skill-creator

Create, edit, improve, or audit Hope Agent skills. Use when the user wants to: (1) create a new skill from scratch, (2) edit or improve an existing skill, (3) review or clean up a SKILL.md file, (4) run evaluations to test skill effectiveness, (5) optimize skill descriptions for better trigger accuracy. Trigger…

shiwenwen/hope-agent · 106 tokens

ha-mac-control

Hope Agent native macOS desktop control — the standard maccontrol status / diagnostics / apps / dock / spaces / snapshot / visual / windows / menu / clipboard / dialog loop, target-first action rules, no-blind-coordinate policy, and recovery for stale AX/window/menu/dialog state. Load whenever using maccontrol, or…

shiwenwen/hope-agent · 139 tokens

ha-browser

Hope Agent browser automation — the standard status → tabs → snapshot → act loop, stale-ref recovery rules, and what to do when login / 2FA / captcha / camera-prompt / dialog blocks progress. Load this skill whenever you reach for the browser tool. Trigger on: user asks the agent to open / control / click / scrape /…

shiwenwen/hope-agent · 140 tokens

ha-logs

A read-only troubleshooting skill for querying Hope Agent’s local SQLite databases, which store logs, conversations, and background-job status.

shiwenwen/hope-agent · 183 tokens

ha-data-analytics

A local-first data-analysis and reporting skill for CSV and spreadsheet files. It produces decision-ready analyses and shareable offline reports while separating facts, calculations, interpretations, and recommendations.

shiwenwen/hope-agent · 106 tokens

ha-pet-import

Safely import, select, switch, or enable a compatible desktop pet in Hope Agent. Resolve packages from any origin, including local folders, zip archives, pet.json plus a sprite, PNG/WebP atlases, chat attachments, repository or cloud files, direct HTTPS artifact URLs, and download pages. Use whenever a user asks to…

shiwenwen/hope-agent · 109 tokens