agentleFS
2naive2naive/claude-telegram-topics/skills/configure/SKILL.md

configure

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Set up the telegram-topics channel — save the bot token and forum group id, then run a preflight check. Use when the user pastes a Telegram bot token, asks to configure telegram-topics, asks "how do I set this up", or wants to check channel status.

  • Reads credentials

29 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use calendar, status and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jacobraskSkill

    calendar

    Interact with Apple Calendar via AppleScript. Use when the user asks to check calendar, view events, create events, manage schedule, find free time, or list calendars. Triggers include "my calendar", "my schedule", "calendar events", "create event", "add to calendar", "what's on my calendar", "free time", "available slots", "upcoming events", "today's events". Requires macOS with Calendar.app.

    Also in 3 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If all checks pass, tell the user the channel is ready and to relaunch with:

    line 72

“Common” is measured: kept by at least 6 in 10 of the 29 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Configure telegram-topics

State lives in ~/.claude/channels/telegram-topics/.env (create the directory if missing). Write the .env with LF line endings (the runtime parser tolerates CRLF, but LF keeps every shell tool happy too). Keys:

  • TELEGRAM_BOT_TOKEN — from @BotFather (/newbot)
  • TELEGRAM_GROUP_CHAT_ID — a forum-enabled supergroup id (looks like -100…)
  • TELEGRAM_ALLOWED_USER_IDS — optional CSV of numeric user ids (managed by /telegram-topics:access)

Note: process environment variables take precedence over the .env — if the user has any TELEGRAM_* of these exported in their shell, warn them that the exported value wins over what you write here.

Dispatch on the argument

  • no argument — Read the .env and report status: is the token set? is the group id set? Then run Preflight below and show its verdicts. Never print the token value.
  • a bot token (looks like 123456789:AA…) — write/replace TELEGRAM_BOT_TOKEN in the .env, preserving other keys. Then run Preflight.
  • group <id> — write/replace TELEGRAM_GROUP_CHAT_ID. Then run Preflight.
  • clear — remove TELEGRAM_BOT_TOKEN from the .env.

Getting the group id

  1. In Telegram, create a group, open its settings, and enable Topics (this makes it a forum). 2. Add the bot to the group and promote it to admin with Manage Topics enabled (Telegram does not grant that right by default).
  2. Send any message in the group, then read the chat id — e.g. add @userinfobot to the group, or call the Bot API getUpdates once. Forum supergroup ids start with -100.

Preflight (run after both token and group id are set)

Setup mistakes are the most common first-run failure, so validate and report actionable verdicts. The checks live in the plugin (scripts/preflight.ts) so they parse the .env exactly like the runtime (CRLF-safe, same precedence) and the token never appears in a command or output. Run:

bun run --cwd "${CLAUDE_PLUGIN_ROOT}" preflight

(If ${CLAUDE_PLUGIN_ROOT} is not substituted in your context, the plugin root is the installed plugin directory, e.g. ~/.claude/plugins/cache/claude-telegram-topics/telegram-topics/<version>.)

It prints one OK/FAIL line per check — token validity, group reachable, group is a forum, bot can Manage Topics, whether another poller already holds the token's getUpdates slot (the classic shared-token 409), and whether the plugin is on the channels allowlist for --channels. Report each verdict plainly; on 409 note that an already-running telegram-topics leader on this machine is a false alarm, but the official Telegram plugin being enabled is the usual real cause. On NOT ALLOWLISTED, offer /telegram-topics:allowlist (one command, one admin prompt) — without it, --channels loads the plugin as plain MCP and inbound messages silently never arrive.

If all checks pass, tell the user the channel is ready and to relaunch with:

claude --permission-mode auto --channels plugin:telegram-topics@claude-telegram-topics

No-admin alternative (bypasses the allowlist, but an interactive "local development" confirmation gates every start — unusable for hands-off relaunch):

claude --permission-mode auto --dangerously-load-development-channels plugin:telegram-topics@claude-telegram-topics

Both channels flags are variadic — they consume everything after them as channel names, so any other option (--permission-mode, …) must come BEFORE them. --permission-mode auto enables the Telegram permission-approval relay (safe calls pass silently, risky ones relay to the topic); drop it for the default manual mode.

The token never needs to reach this chat: a privacy-conscious user can set TELEGRAM_BOT_TOKEN=… by hand in ~/.claude/channels/telegram-topics/.env (this skill never prints the token back), then just run the relaunch command.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.