Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-chat-office

БесплатноБез исполняемых скриптовНе проверен

Use when building a web office for agent personas.

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

Web "office" for several agent personas

When to Use

The user has 2+ persona bots (Hermes profiles) and wants one place to see them: "bikin kayak kantor", "satu halaman buat semua agent", "ui web nya kayak gini" — usually with a reference screenshot.

Read the reference for WHAT it is, not just how it looks. A pixel-art isometric office, a building cutaway, labelled rooms with tiny workers = the user wants a VISUAL office (who the agents are, what each one's job is, who is working right now). A bare chat composer = a chat UI. Building the chat when they meant the visualization misses the whole delivery, so when the reference is ambiguous build the visual map as the landing page and keep chat as the second tab — that satisfies both readings.

Telegram itself cannot be re-skinned — say that plainly and deliver the web page; the Telegram half is a GROUP with the bots in it (below).

Architecture that works

One stdlib ThreadingHTTPServer on 127.0.0.1 (never 0.0.0.0) + cloudflared quick tunnel + the keeper cron from localhost-dashboard-serving. Working example: ~/.hermes/office/ (server.py, office.html, start.sh) on port 8795, watchdog ~/.hermes/scripts/kantor_up.sh (cron kantor_up, */10 * * * *, --no-agent --deliver origin).

Routes: / + /kantor (page), /manifest.json + /icon*.png (PWA), /healthz, /api/agents (list + status), /api/thread/<id> (history), /api/send (POST).

Per-agent status, cheap

  • online/offline: gateway_state.json → platforms map. Key is telegram for the DEFAULT profile and <profile>:telegram for the rest; test ["state"] == "connected". A naive substring search over the whole file reports every bot online.
  • last activity: newest row of that profile's state.db messages.
  • "job jalan 24 jam": cron/executions.db (default profile: ~/.hermes/cron/executions.db, others profiles/<p>/cron/executions.db), column status is completed/failed (never success).
  • Open every DB read-only: sqlite3.connect("file:<path>?mode=ro", uri=True).

Sending a message to a persona (the core)

cmd = ["hermes"] + (["-p", profile] if profile else []) + [
    "chat", "-q", text, "--format", "stream-json", "--pass-session-id"]
if saved_sid: cmd += ["--resume", saved_sid]
  • --format stream-json is the only parseable mode: the last line is {"type":"result","session_id":...,"text":"...","duration_ms":...}. Text mode wraps the answer in a ╭─ ☤ Hermes ─╮ box plus a "Resume this session with:" footer — do not regex that.
  • Persist session_id per agent in office/sessions.json and --resume it next time, or every message spawns a brand-new session and the chat has no continuity. Write the file atomically (os.replace).
  • Pass the text as an argv element (no shell) so quotes/backticks survive; -q "$(cat file)" in a shell is where the quoting bugs live.
  • One threading.Lock per agent, acquire(blocking=False) → 429 "masih ngerjain pesan sebelumnya". A run takes 10-40 s, so the UI needs a typing indicator; also give the subprocess a hard timeout.

The visual office (map view) — make it the landing page

One room per agent, drawn in code (inline SVG, no image assets), each labelled by the agent's JOB — TRADING, ON AIR, BACK OFFICE, MAIL ROOM — and furnished with what that agent actually does (three monitors and a safe for the trading desk, a mic and a lit red ON AIR sign for the news desk, a filing cabinet and a wall calendar for the admin desk, sorting racks and parcels for the inbox desk). Each room carries a live status chip, the room owner's job line, last activity and 24h job count, and clicking a room opens that agent's desk. The room's figure animates while the agent is busy — that animation is what makes it a dashboard instead of a picture. Geometry, props, painter order and the poster export: references/isometric-office-scene.md. The same tab row carries a ⬇️ Pasang app button: it fires beforeinstallprompt on Chrome/Android and falls back to the iOS steps (Share → Add to Home Screen) otherwise, and hides itself under display-mode: standalone.

Label consistency: the room chip and the roster/sidebar must use the SAME vocabulary (siap / lagi kerja / offline). A room reading "standby" while the roster shows an online dot looks like a bug to the user even when both are technically true.

Key the page, always

The page can read the user's Gmail/calendar and write to their vault through the personas, so never hand out a bare quick-tunnel URL. OFFICE_TOKEN env → require ?k=<token> or a k=<token> cookie: set the cookie on the first ?k= hit (Set-Cookie: k=…; Path=/; Max-Age=31536000; SameSite=Lax; same-origin fetch then carries it), 401 page/JSON otherwise. Keep /healthz UNauthenticated or the keeper (pgrep/curl healthz) turns into a restart loop. Token file office/token.txt, mode 600, generated with head -c 16 /dev/urandom | od -An -tx1 | tr -d ' \n'; the keeper prints

Полный SKILL.md на GitHub

Установить agent-chat-office в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yamlreferences/isometric-office-scene.md

FAQ

Что делает скилл agent-chat-office?

Use when building a web office for agent personas.

Как установить скилл agent-chat-office?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-chat-office запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-chat-office с