chat
Skill6 starsChanged 2 months agoMITView on GitHub
Find a Telegram chat, group or channel by name and return its numeric id and t.me link from a local index, with no live crawl. Also answers which groups you share with a person or company. This is the chat lane, not people search. Triggers: "/chat <query>", "find the <X> chat", "chat id for <X>".
8 other projects use a version of this.
Adopted by
Most recently taken up by
- vercel-labs/json-rendertheir own version, first seen Nov 8, 2026
- aniketshukla1/sdlc-kittheir own version, first seen Nov 8, 2026
- reutavidan/zetesis-plugintheir own version, first seen Nov 1, 2026
- agoopintsai/shiprighttheir own version, first seen Nov 1, 2026
- sarvamai/skillstheir own version, first seen Sep 28, 2026
- maxwellsdm1867/wheelertheir own version, first seen Aug 8, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- vercel-labs/json-render★ 19ksame name
- sarvamai/skills★ 72same name
- maxwellsdm1867/wheeler★ 12same name
- agoopintsai/shipright★ 2same name
- aniketshukla1/sdlc-kit★ 1same name
- Mheaus/claude-skills★ 1same name
- reutavidan/zetesis-plugin★ 0same name
- verging-ai/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository100 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 03Skill
- 1Skill
- agendaSkill
- alfa-search-recall-deepresearchSkill
- alpha-judgeSkill
- alpha-reviewSkill
- archSkill
- askSkill
- bibleSkill
- brainSkill
- busSkill
- canon-revisionSkill
- ccSkill
- chatgpt-syncSkill
- chat-searchSkill
- claudeai-syncSkill
- coachSkill
- codex-mirrorSkill
- codex-reviewSkill
- cofounderSkill
- cofounder-watchSkill
- commentsSkill
- community-alphaSkill
- content-mineSkill
- crm-syncSkill
- declinedSkill
- dedupSkill
- defuddleSkill
- dr-fanoutSkill
- episodeSkill
- faaa-syncSkill
- faSkill
- fb-postSkill
- fb-replySkill
- fb-watchSkill
- findSkill
- fireflies-syncSkill
- five-hardSkill
- fleetSkill
- follower-onboardSkill
- geminiSkill
- gitbook-importSkill
- gmailSkill
- granola-syncSkill
- handoffSkill
- health-syncSkill
- inboxSkill
- intakeSkill
- intentionSkill
- introSkill
- issue-matchSkill
- journeySkill
- last30daysSkill
- local-chatgpt-token-healSkill
- mcpSkill
- migrateSkill
- mine-channelSkill
- n8nSkill
- notebooklmSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
When you need to act on "some chat by name", FIRST query the local index — never crawl the live dialog list blind.
- Very specific: line 52
If a brand-new chat is missing, run that refresh or fall back to live search_dialogs.
- Very specific: line 57
All under $IMPORTS_ROOT/dialogs/.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/chat — instant Telegram chat lookup
Anton's pain: "find chat X" used to mean 20–60 min crawling the live dialog list.
The chat's telegram_id + link already live in chats.db (built from the CRM
tg_entities dump — the same extraction the CRM's mtproto-api does). Look it up,
get the id, then operate the chat directly via the Telegram MCP.
Rule (always)
When you need to act on "some chat by name", FIRST query the local index — never crawl the live dialog list blind. Memory: [[telegram-chat-index]].
Lookup — find_chat.py
cd $IMPORTS_ROOT/dialogs
PYTHONUTF8=1 python find_chat.py <query words> # chats first, then people
PYTHONUTF8=1 python find_chat.py <query> --all # include user DMs
PYTHONUTF8=1 python find_chat.py <query> --limit 80Prints [TYPE] telegram_id name t.me-link (+members). Matching reuses
..\namesearch\name_norm.py so wrong-layout (dbrnjh) / translit / typos still hit.
⚠️ ALWAYS PYTHONUTF8=1 (else cp1252 crash). The ??? in console = ASCII echo only;
the DB stores proper UTF-8 — read it programmatically when you need the real title.
"Common groups with a person / company" — common_groups.py
PYTHONUTF8=1 python common_groups.py @handle [--account corp_acct]
PYTHONUTF8=1 python common_groups.py "Firstname Lastname"
PYTHONUTF8=1 python common_groups.py <telegram_id>Lists groups where one of OUR accounts sits alongside that person (ours/theirs +
which account + link). COVERAGE: rosters are full for small/curated groups, partial
for big public ones → for an authoritative per-person answer use the live MCP
get_common_chats(user, account).
Visual (Anton works by eye)
_Dashboards\Telegram-Groups.html — all chats, filter by account / ours-vs-theirs /
topic / value, search, per-group sub-classification.
Freshness
chats.db backbone = CRM dump (refreshed by the telegram-chat-index-refresh
routine that appends live list_chats from Anton's accounts via refresh_chats.py).
If a brand-new chat is missing, run that refresh or fall back to live search_dialogs.
Build / rebuild (rarely)
build_chats_db.py → index · build_group_graph.py → accounts/members/ours-theirs ·
build_group_digest.py + Sonnet classifier → group_class · build_groups_dashboard.py.
All under $IMPORTS_ROOT/dialogs/. See memory [[telegram-chat-index]].
<!--kit-footer-->Like this skill? It is one of 100 in second-brain-starter-kit: the second brain we built for ourselves and run every day at Palo Alto AI Research Lab. Install the whole set with npx skills add tonydzi/second-brain-starter-kit. Everything is open source and free, so take what you need.
Flagships worth a look on their own: secondop-panel (a second opinion from a panel of external models), claude-memory-tidy (stop your agent's memory from rotting), telegram-mcp-kit (your own Telegram over MCP in about 15 minutes).
Author: Anton Dziatkovskii, Palo Alto AI Research Lab. Telegram @tonydzi - WhatsApp +1 341 222 9178 - X @Tony_Stef_
Engineers: want to test-drive this setup? Message me. I hand out free starter seeds to engineers who test and report back, and custom skill requests are welcome.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

