Index of every page on this site: llms.txt
All skills
thedotmack avatar

/mode-creator

@2c57eb1
by Alex Newmanthedotmack/claude-mem119k stars
10,376
Run it yourself

Interactively create, install, activate, and verify custom claude-mem modes, including domain-specific observation types, concept tags, optional Telegram alerts, bot setup, worker restart, and startup-context verification. Use this whenever someone asks to customize what claude-mem remembers, create or change a mode, track domain-specific notes, add observation types or tags, or send Telegram notifications for particular memories—even if they do not use the word "mode."

Use this Skill: https://skilld.dev/gh/thedotmack/claude-mem/mode-creator

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestelegram.md

≈878 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Telegram notifications for a custom mode

Read this only after the user opts into alerts.

How matching works

claude-mem reads these settings from its data-directory settings.json:

  • CLAUDE_MEM_TELEGRAM_ENABLED
  • CLAUDE_MEM_TELEGRAM_BOT_TOKEN
  • CLAUDE_MEM_TELEGRAM_CHAT_ID
  • CLAUDE_MEM_TELEGRAM_TRIGGER_TYPES
  • CLAUDE_MEM_TELEGRAM_TRIGGER_CONCEPTS
  • CLAUDE_MEM_TELEGRAM_OBSERVATION_ALERTS_ENABLED

CLAUDE_MEM_TELEGRAM_OBSERVATION_ALERTS_ENABLED defaults to "false". After the user explicitly opts in, set it to "true" in the same data-directory settings.json; choosing trigger types or concepts alone does not enable observation alerts. When enabled, an observation sends when its single type matches any configured trigger type or one of its concepts matches any configured trigger concept. No trigger list means no messages.

Messages contain the observation type, title, subtitle, project, and observation ID. They do not include the full narrative or facts, but titles and subtitles can still contain sensitive information. Make the privacy tradeoff explicit before configuration.

Bot setup

  1. Open Telegram's official @BotFather.
  2. Send /newbot, choose a display name, then choose a unique username ending in bot.
  3. BotFather returns an authentication token. Treat it like a password; anyone with it controls the bot.
  4. Open the new bot, press Start, and send it a message. Bots cannot initiate a private conversation before the user contacts them.
  5. Run scripts/configure-telegram.mjs from this skill. It collects the token through hidden terminal input, validates it with getMe, uses getUpdates to discover a recent chat when possible, sends a test with sendMessage, and stores the result with owner-only permissions.

Official references: Telegram bots introduction, BotFather features, and Bot API methods.

Security rules

  • Never request the token through an ordinary chat response or interactive question whose answer is reproduced in the transcript.
  • Never put the token in a URL printed to the terminal, a shell command, an environment assignment shown in chat, or a command-line argument.
  • Never print settings.json wholesale after configuration.
  • It is safe to report whether a token is present, the bot username returned by getMe, and the selected chat ID.
  • Keep settings and backups mode 0600.
  • If a token was exposed, tell the user to revoke it through BotFather and create a replacement before continuing.

Troubleshooting

  • getMe failed: Unauthorized: the token is wrong or revoked. Generate a new token in BotFather.
  • No chats found: the user must press Start and send the bot a message, then retry.
  • getUpdates says a webhook is active: automatic discovery cannot run while a webhook owns updates. Enter the numeric chat ID manually; do not delete a webhook without explicit permission.
  • sendMessage says chat not found: verify the chat ID and ensure the bot was started or added to the group.
  • Group alerts: add the bot to the group, send a message that the bot can receive, and use the negative group chat ID.
  • Test succeeds but observations do not alert: confirm CLAUDE_MEM_TELEGRAM_OBSERVATION_ALERTS_ENABLED is "true", the generated observation's type/concepts exactly match the configured lowercase IDs, and restart the worker after settings changes.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert6d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The mode-creator skill safely automates the configuration of custom note-taking modes for claude-mem. It includes robust security practices for handling Telegram credentials and managing local configuration files, including the use of hidden inputs and restricted file permissions.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: CRITICAL · 2 issues

Signed by skilld at 2c57eb1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 hours ago.

Activeupdated 2 months ago
Other metadata
compatibility
Requires a local claude-mem worker installation, an interactive question tool, filesystem access, and Node.js 20+. Telegram setup requires network access and a Telegram account.

README badge

README badge for thedotmack/claude-mem/mode-creator