agentleFS
kronus-techkronus-tech/kronus/.claude/skills/kronus-help/SKILL.md

kronus-help

Skill4 starsChanged 7 months agoMITView on GitHub

Show Par1kKronus setup guide — how to configure Claude Code, set up the Telegram daemon, add projects, manage permissions. Auto-invoked when user says "kronus help", "how to set up", "configure kronus".

  • Reads credentials
  • Deletes or force-pushes
  • Commits and pushes

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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
  1. Distinctive:

    Create a Telegram group for each project (e.g., "my-project")

    line 39
  2. Distinctive:

    Add your bot to each group

    line 40
  3. Very specific:

    Add more from Telegram: /trust WebSearch or /trust WebFetch

    line 107
  4. Distinctive:

    Check bot privacy mode is OFF (@BotFather → Bot Settings → Group Privacy)

    line 154
  5. Distinctive:

    Remove and re-add bot to the group after changing privacy

    line 155
  6. Very specific:

    Check access.json has the group ID in groups

    line 156
  7. Distinctive:

    Only one consumer of getUpdates per bot token

    line 159

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “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

Print the following guide right now. Do not summarize or modify — output it exactly:


Par1kKronus — Setup & Configuration Guide

Installation

Par1kKronus is installed globally at ~/.claude/. The source repo is at ~/Desktop/par1k/claude-kronus/.

# Clone and install
git clone https://github.com/par1kahl/claude-kronus.git
cd claude-kronus && ./scripts/install.sh

Telegram Daemon Setup

1. Create a Telegram Bot

  • Message @BotFather → /newbot → follow prompts
  • Copy the bot token
  • Save it: echo "TELEGRAM_BOT_TOKEN=<token>" > ~/.claude/channels/telegram/.env

2. Disable Bot Privacy Mode

  • @BotFather → /mybots → select your bot → Bot Settings → Group Privacy → Turn off
  • This lets the bot see all messages in groups, not just /commands

3. Create Telegram Groups

  • Create a Telegram group for each project (e.g., "my-project")
  • Add your bot to each group

4. Get Group IDs

# After adding bot to groups and sending a message:
TOKEN=$(grep TELEGRAM_BOT_TOKEN ~/.claude/channels/telegram/.env | cut -d= -f2)
curl -s "https://api.telegram.org/bot${TOKEN}/getUpdates" | python3 -m json.tool
# Look for chat.id (negative number like -5101058364)

5. Register Projects

# Register access for each group
# Edit ~/.claude/channels/telegram/access.json to add groups

# Map group to project directory
./scripts/kronus-init.sh --group -5101058364 --name "my-project" --path /path/to/project

6. Disable the Telegram Plugin

The daemon and plugin can't run simultaneously (both use getUpdates).

# In ~/.claude/settings.json, set:
# "telegram@claude-plugins-official": false

7. Start the Daemon

./scripts/kronus-daemon.sh start      # Start in background
./scripts/kronus-daemon.sh status     # Check status
./scripts/kronus-daemon.sh logs       # Tail logs
./scripts/kronus-daemon.sh restart    # Restart
./scripts/kronus-daemon.sh stop       # Stop

Project Configuration

projects.json

Located at ~/.claude/channels/telegram/projects.json:

{
  "projects": {
    "-5101058364": {
      "name": "my-project",
      "path": "/path/to/project",
      "allowedTools": ["Read", "Write", "Edit", "Glob", "Grep", "Bash"],
      "permissionMode": "acceptEdits"
    }
  }
}

Permission Modes

ModeBehavior
defaultAsk before dangerous operations
acceptEditsAuto-approve file changes, ask for Bash
planClaude plans but doesn't make changes
dontAskDon't ask, just do everything
bypassPermissionsSkip all checks (use with caution)
autoLet Claude decide

Change mode from Telegram: /mode plan or /mode accept

Allowed Tools

Default: Read, Write, Edit, Glob, Grep, Bash

Add more from Telegram: /trust WebSearch or /trust WebFetch

Or edit projects.json directly.

Key Files

FilePurpose
~/.claude/channels/telegram/.envBot token
~/.claude/channels/telegram/access.jsonAccess control (who can message)
~/.claude/channels/telegram/projects.jsonGroup → project mapping
~/.claude/channels/telegram/daemon.pidDaemon process ID
~/.claude/channels/telegram/logs/daemon.logDaemon logs
~/.claude/settings.jsonGlobal Claude Code settings
.claude/settings.jsonProject-level settings

Permissions & Safety

Two-Layer Safety

  1. allowedTools in projects.json — per-project tool whitelist
  2. pre-bash-check.sh hook — blocks destructive commands globally (rm -rf, sudo, force push, etc.)

Expanding Permissions

# In .claude/settings.json, permissions.allow:
"Bash(npm test *)"    # Allow npm test
"Bash(git log *)"     # Allow git log

Blocked Commands (always, regardless of mode)

  • rm -rf /, sudo rm, mkfs, dd if=
  • git push --force origin main/master
  • git reset --hard
  • DROP TABLE, DROP DATABASE

Troubleshooting

Daemon won't start

# Check for stale PID
cat ~/.claude/channels/telegram/daemon.pid
kill <pid>  # Kill stale process
rm ~/.claude/channels/telegram/daemon.pid
./scripts/kronus-daemon.sh start

Bot not receiving messages

  • Check bot privacy mode is OFF (@BotFather → Bot Settings → Group Privacy)
  • Remove and re-add bot to the group after changing privacy
  • Check access.json has the group ID in groups

Plugin conflict

  • Only one consumer of getUpdates per bot token
  • Either run the daemon OR the plugin, not both
  • Disable plugin: set telegram@claude-plugins-official: false in ~/.claude/settings.json

Session issues

  • /new in Telegram to start fresh
  • /stop to kill a stuck session
  • Check logs: ./scripts/kronus-daemon.sh logs

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.

Reviews can't be read right now.

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.