CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

jbaruch/nanoclaw-host

Host rules and skills for NanoClaw deployment, image package inventories, private browser access, plugin promotion, staging and upstream updates.

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

SKILL.mdskills/nuke/

name:
nuke
description:
Kill a running agent container on the deployment host by Telegram group JID. The orchestrator respawns a fresh container on the next message. Does NOT delete registration or group folder. Use when a container is stuck, stale, or needs a fresh start.

Nuke Container

Process steps in order. Do not skip ahead.

Step 1 — Identify the requested group

If the user provides a group name, run this read-only query in the deployment checkout verified under Host Agent Conventions.

sqlite3 -readonly store/messages.db 'SELECT jid, name FROM registered_groups;'

Match exactly one registered group to the request and verify its JID before continuing. If the query fails, stop and report the error. If there are no matches or several plausible matches, stop and ask for the exact JID.

Once you have one verified JID, continue to Step 2.

Step 2 — Stop the group container

Run the private NanoClaw checkout’s scripts/nuke-container.sh from that checkout root. The script is supplied by that checkout, not this skill package.

./scripts/nuke-container.sh <chat-jid>

The owning NanoClaw invocation and result contract defines JID validation, matching and exit behavior.

What nuke does NOT do

  • Does NOT delete the group registration from the database
  • Does NOT delete the group folder or its contents
  • Does NOT unregister the group

The script returns 0 if the stop succeeded or no matching container was running. On any nonzero exit, report the diagnostic and stop. Do not parse stdout. On exit 0, continue to Step 3.

Step 3 — Verify the group is stopped

Run this read-only check on the same deployment host.

source ./scripts/common.sh
deploy_host "docker ps --format '{{.ID}} {{.Names}}'"

Use the group-folder match in the owning contract to check whether a container for the verified group is running. If none is running, report the group stopped. If one is present or the check fails, report that the group is not confirmed stopped. A new message can start another container. Do not kill it without a new request.

Finish here.

skills

README.md

tile.json