Skip to content
Back to skills

028 Agents 2f52ed9c

ASecurity

This integration reproduces the core Telegram logic using Golang, providing a high-performance and type-safe implementation.

  • 9 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 11, 2026
devopsgobashsqldockergitapidatabaseperformance

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 028-agents_2f52ed9c --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 028 Agents 2f52ed9c?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 028 Agents 2f52ed9c
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-028-agents-2f52ed9c/badge)](https://www.skillsdirectory.com/skills/tools-only-028-agents-2f52ed9c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# IntentKit Telegram Integration

This integration reproduces the core Telegram logic using Golang, providing a high-performance and type-safe implementation.

## Tech Stack

- **Language**: Golang (1.23+)
- **Telegram Bot API**: [telego](https://github.com/mymmrac/telego)
- **Database**: [GORM](https://gorm.io/) (PostgreSQL)
- **Logging**: `log/slog` (Standard Library)
- **HTTP Client**: [go-resty/resty](https://github.com/go-resty/resty)
- **Configuration**: Standard environment variables / `.env`

## Architecture

- **`main.go`**: Entrypoint. Initializes DB, Config, and starts the Bot Manager.
- **`store/`**: Database models (`Agent`, `AgentData`) and access layer.
- **`bot/`**:
    - `manager.go`: Manages the lifecycle of bots (syncing with DB, starting/stopping).
    - `handler.go`: Handles incoming Telegram messages and routes them to the Core API.
- **`api/`**: Client for interacting with IntentKit Core API (`/core/execute`).

## usage

### Prerequisites

- PostgreSQL database (shared with IntentKit).
- IntentKit API running (for Core API access).
- Environment variables set (see below).

### Environment Variables

```bash
DATABASE_URL=postgres://user:password@localhost:5432/dbname
CORE_API_URL=http://localhost:8000
TG_NEW_AGENT_POLL_INTERVAL=10 # Seconds
```

### Running
You can run the application directly or using Docker.

#### Direct Execution
```bash
go mod tidy
go run main.go
```

#### Docker
```bash
# Build the image
docker build -t intent-telegram .

# Run the container
docker run -d \
  --name intent-telegram \
  -e DATABASE_URL="postgres://user:password@localhost:5432/intentkit" \
  -e CORE_API_URL="http://host.docker.internal:8000" \
  intent-telegram
```

## Notes

- This integration connects directly to the IntentKit database to read `agents` and `agent_data`.
- It uses the internal `/core/execute` endpoint to process messages.
- Legacy features like "God Bot" and complex filters are intentionally omitted to focus on core logic.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.