AGENT SKILL

tailscale-generation-skill-authoring

This skill should be used when the user asks to "create a Tailscale generation skill", "add a local generation skill", "document a generation endpoint", "add an image generation provider", "add a TTS provider", "add video generation", "add 3D generation", or needs guidance on where HivemindOS Tailscale or local generation providers belong in the shared skills shelf.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 13
Forks
4

01 前言 Front Matter

name
tailscale-generation-skill-authoring
version
0.1.0
description
This skill should be used when the user asks to "create a Tailscale generation skill", "add a local generation skill", "document a generation endpoint", "add an image generation provider", "add a TTS provider", "add video generation", "add 3D generation", or needs guidance on where HivemindOS Tailscale or local generation providers belong in the shared skills shelf.

03 SKILL.md 正文

Tailscale Generation Skill Authoring

Create and maintain shared skills for generation services that run either locally on the current machine or remotely on a private HivemindOS Tailnet. Keep provider documentation organized by output category, not by individual machine, so agents can find the right generation workflow quickly.

Category routing

Route providers by output type:

  • Image generation: add provider blocks to comfyui-image-generation.
    • Include ComfyUI, Z-Image, Flux, SDXL, Stable Diffusion, image editing, inpainting, and other image workflows.
  • TTS / speech audio generation: add provider blocks to localtts.
    • Include Qwen3-TTS, Kokoro, Chatterbox, Dia, Orpheus, XTTS, and OpenAI-compatible local voice servers.
  • Video generation: create or update a dedicated video-generation skill, such as local-video-generation, unless one already exists.
  • 3D model generation: create or update a dedicated 3D-generation skill, such as local-3d-generation, unless one already exists.
  • Music/song generation: use or create a music/audio-generation skill distinct from TTS.
  • LLM inference, embeddings, transcription, OCR, and analysis services: use the most specific non-generation skill unless the user asks for a generation-facing workflow.

Do not create one skill per model when a category skill exists. Add a new block to the category skill instead.

Local vs Tailnet design

Use the same category skill for local and Tailnet variants of the same output type. Split by route mode inside the provider block:

  • Tailnet mode: client calls a remote HivemindOS service over Tailscale. The client should not need the model repo, service files, LaunchAgent, systemd unit, or localhost port.
  • Local mode: generation happens on the current machine. Localhost paths, service labels, and model directories are valid only in this mode.

Prefer Tailnet mode for multi-machine HivemindOS workflows. Keep local mode as a template for users who want to run the service on the same machine as the agent.

Provider block template

Use this structure when adding a provider block to a category skill:

### Provider name block

Use this block for ...

**Route modes**

- Tailnet mode: `http(s)://<tailnet-host>:<port>`
- Local mode: `http://127.0.0.1:<port>`
- Prefer Tailnet mode when the provider runs on another HivemindOS machine.
- Use localhost only when the service runs on the current machine or when debugging on the service host.

**Client configuration**

- Required URL: `<BASE_URL>`
- Model/default preset: `<MODEL_ID>`
- Output extension: `.png`, `.wav`, `.mp4`, `.glb`, etc.
- Auth, if any: environment variable name only; never include secret values.

**Tailnet client preflight**

```bash
curl -fsS --max-time 5 http://<tailnet-host>:<port>/health
curl -fsS --max-time 5 http://<tailnet-host>:<port>/models

Local client preflight

curl -fsS --max-time 5 http://127.0.0.1:<port>/health
lsof -nP -iTCP:<port> -sTCP:LISTEN || true

Generation example

curl -fsS -X POST http://<host>:<port>/<generation-endpoint> \
  -H 'Content-Type: application/json' \
  -d '{...}' \
  -o /tmp/output.ext

Verification

ls -lh /tmp/output.ext
file /tmp/output.ext

Service-host diagnostics only

  • Service directory: <path>
  • Service manager: launchctl, systemctl, docker, or direct process
  • Logs: <path or command>
  • Known failure modes: <list>

## Tailnet-first rule

For Tailnet workflows, document client usage through the Tailscale address first. Do not tell the client to inspect service-host files or local ports. Make service-host commands clearly optional and labeled **Service-host diagnostics only**.

Use wording like:

- “Run these checks from the client over Tailscale.”
- “Use localhost only when directly logged into the service host.”
- “If the client lacks the service directory or service manager entry, that is expected.”

Avoid wording like:

- “Check `~/service-dir` on the client.”
- “Use `127.0.0.1` from the client for a remote provider.”
- “Install the model locally before calling the Tailnet endpoint.”

## Reliability notes

Document raw `100.x` Tailscale IPs as current examples, not permanent identifiers. Prefer MagicDNS or a stable Tailscale Serve name when available. Use placeholders in bundled app skills; private Tailnet IPs and personal machine names belong in the user's shared vault, not in the public app bundle.

## Verification before finishing

After editing or creating a generation skill:

1. Verify the provider is routed to the correct category skill.
2. Verify frontmatter has `name`, `description`, and `version`.
3. Verify Tailnet examples do not require client-local service files or localhost ports.
4. Verify local examples are clearly marked as local mode.
5. Verify the skill is listed in `Skills/README.md` after seeding.

## Current category homes

- Image generation: `comfyui-image-generation`
- TTS / speech audio: `localtts`

Create new category skills only when the output type is not covered by those homes.

04 同仓库更多 Skills

LiamVisionary
LiamVisionary/hivemindos

localtts

This skill should be used when the user asks to "generate local TTS", "use local text to speech", "use remote TTS over Tailscale", "make speech audio", "add a TTS provider", "use Qwen3-TTS", or needs TTS endpoint setup through local or HivemindOS Tailscale routes.

★ 13
LiamVisionary
LiamVisionary/hivemindos

karpathy-guidelines

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

★ 13
LiamVisionary
LiamVisionary/hivemindos

comfyui-image-generation

This skill should be used when the user asks to "generate images", "generate images with ComfyUI", "use local ComfyUI", "use remote ComfyUI", "use Z-Image", "add an image generation provider", or needs image-generation endpoint setup through local or HivemindOS Tailscale routes.

★ 13
LiamVisionary
LiamVisionary/hivemindos

wrangler

Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

★ 13
LiamVisionary
LiamVisionary/hivemindos

workers-best-practices

Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

★ 13
LiamVisionary
LiamVisionary/hivemindos

sandbox-sdk

Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI/CD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

★ 13