watcher-creator
Guide for creating agent-deck watchers conversationally. This skill should be used when users want to set up a new watcher (webhook, ntfy, github, slack, gmail) to route events to a conductor. It walks the user through selecting an adapter type, gathering required settings, generating watcher.toml and clients.json entries, and emits the exact `agent-deck watcher create` command to run.
What this skill does
# Watcher Creator
## Overview
This skill guides users through setting up a new agent-deck watcher from scratch. A watcher listens for incoming events (webhooks, ntfy notifications, GitHub events, Slack messages, or Gmail messages) and routes them to the appropriate conductor session. The skill asks clarifying questions, collects required settings, and emits the exact CLI command and configuration files to create a working watcher.
## When to use
Invoke this skill when a user says things like:
- "I want to set up a new watcher"
- "How do I connect GitHub webhooks to agent-deck?"
- "Help me route Slack messages to a conductor"
- "Create a watcher for my Gmail inbox"
- "I need agent-deck to listen for ntfy notifications"
## Step-by-step conversational flow
### Step 1: Choose adapter type
Ask the user which source they want to receive events from. Present the five options:
1. **webhook** - Generic HTTP POST webhook (any service that can send HTTP)
2. **ntfy** - ntfy.sh push notification topic
3. **github** - GitHub repository webhooks (issues, PRs, pushes)
4. **slack** - Slack messages via a Cloudflare Worker bridge to ntfy
5. **gmail** - Gmail inbox via Google Cloud Pub/Sub watch
### Step 2: Gather required settings for the chosen type
Once the user picks a type, ask for the settings specific to that adapter (see the per-type sections below). Ask for each required setting one at a time to avoid overwhelming the user.
Also ask:
- **Watcher name**: A short lowercase identifier (e.g., `my-webhook`, `github-alerts`). This becomes the directory name under the effective watcher data dir (`${XDG_DATA_HOME:-$HOME/.local/share}/agent-deck/watcher` for new users; legacy `~/.agent-deck/watcher` remains in use when existing watcher state is present).
- **Conductor**: Which conductor session this watcher should route events to by default (the `conductor` field in `clients.json`).
- **Group**: Which group the conductor session lives in (the `group` field in `clients.json`).
### Step 3: Generate a watcher.toml block
Produce a TOML configuration block for the user to save as `${XDG_DATA_HOME:-$HOME/.local/share}/agent-deck/watcher/<name>/watcher.toml`, or the legacy `~/.agent-deck/watcher/<name>/watcher.toml` if agent-deck is already using legacy watcher state.
Example for webhook:
```toml
[watcher]
name = "my-webhook"
type = "webhook"
[adapter]
port = "18460"
bind = "127.0.0.1"
[routing]
conductor = "main-conductor"
group = "inbox"
```
### Step 4: Generate a clients.json entry
Produce the JSON entry keyed by the expected sender. The key format depends on adapter type:
- webhook: the `X-Webhook-Sender` header value the sender will use (e.g., an IP or a service name)
- ntfy: `ntfy:<topic>@<server-host>` (e.g., `ntfy:[email protected]`)
- github: `<github-username>@github.com`
- slack: `slack:<CHANNEL_ID>` (e.g., `slack:C0AABSF5GKD`)
- gmail: the sender's email address (e.g., `[email protected]`)
Entry format:
```json
{
"sender-key": {
"conductor": "main-conductor",
"group": "inbox",
"name": "Human-readable label"
}
}
```
### Step 5: Emit the exact agent-deck watcher create command
Show the user the full CLI command to run. Only emit commands — do not execute them.
## Supported watcher types and required fields
### webhook
The webhook adapter runs a local HTTP server. Any service that can POST to an HTTP endpoint can deliver events.
**Required settings:**
- `port` (string): TCP port to listen on. Default is `"18460"`. Must be available on the local machine.
**Optional settings:**
- `bind` (string): Bind address. Default is `"127.0.0.1"` (loopback only, per security policy T-14-04). Use `"0.0.0.0"` only if the sender is remote and you understand the exposure.
**Sender key in clients.json:** Set the `X-Webhook-Sender` header from the sending service, or use the remote IP if the header is absent.
**Create command:**
```
agent-deck watcher create webhook --name <name> --port <port>
```
### ntfy
The ntfy adapter subscribes to an ntfy.sh topic via NDJSON streaming. It auto-reconnects with exponential backoff.
**Required settings:**
- `topic` (string): The ntfy topic name (e.g., `"my-alerts"`).
**Optional settings:**
- `server` (string): ntfy server URL. Default is `"https://ntfy.sh"`.
**Sender key in clients.json:** `ntfy:<topic>@<server-host>` (e.g., `ntfy:[email protected]`).
**Create command:**
```
agent-deck watcher create ntfy --name <name> --topic <topic>
```
### github
The GitHub adapter runs a local HTTP server that receives GitHub webhook POST requests and verifies HMAC-SHA256 signatures.
**Required settings:**
- `secret` (string): The webhook secret configured in GitHub (Settings > Webhooks > Secret). Used for HMAC-SHA256 signature verification.
**Optional settings:**
- `port` (string): TCP port to listen on. Default is `"18461"`.
- `bind` (string): Bind address. Default is `"127.0.0.1"`. Use a public address or set up a tunnel (e.g., ngrok) if GitHub must reach this machine.
**Supported event types:** issues, pull_request, push. Unknown event types produce a generic event.
**Sender key in clients.json:** `<github-username>@github.com` (e.g., `[email protected]`).
**Create command:**
```
agent-deck watcher create github --name <name> --secret <secret>
```
### slack
The Slack adapter subscribes to an ntfy topic that receives bridged Slack events from a Cloudflare Worker. It supports both v1 (plain text) and v2 (structured JSON) payloads.
**Required settings:**
- `topic` (string): The ntfy topic that the Cloudflare Worker posts Slack events to.
**Optional settings:**
- `server` (string): ntfy server URL. Default is `"https://ntfy.sh"`.
**Sender key in clients.json:** `slack:<CHANNEL_ID>` (e.g., `slack:C0AABSF5GKD`). The channel ID comes from the Slack API or the channel URL in the Slack app.
**Create command:**
```
agent-deck watcher create slack --name <name> --topic <topic>
```
### gmail
The Gmail adapter delivers normalized events from a Gmail account via Google Cloud Pub/Sub. It requires initial OAuth setup and a Pub/Sub topic + subscription.
**Required settings:**
- `topic` (string): Full Pub/Sub topic resource name: `projects/<project-id>/topics/<topic-name>`.
- `subscription` (string): Full Pub/Sub subscription resource name: `projects/<project-id>/subscriptions/<sub-name>`.
**Optional settings:**
- `credentials_path` (string): Path to the OAuth client credentials JSON file (downloaded from Google Cloud Console). Default: `<effective watcher data dir>/<name>/credentials.json`.
- `token_path` (string): Path to the persisted OAuth token JSON. Default: `<effective watcher data dir>/<name>/token.json`.
- `labels` (string): Comma-separated Gmail label filter (e.g., `"INBOX,UNREAD"`). If absent, all messages pass through.
- `account` (string): Informational Gmail address for display purposes.
**Pre-requisites before running agent-deck watcher create:**
1. Create a Google Cloud project and enable the Gmail API and Cloud Pub/Sub API.
2. Create a Pub/Sub topic and subscription.
3. Grant the Gmail service account (`[email protected]`) the `Pub/Sub Publisher` role on the topic.
4. Download OAuth client credentials (Desktop app type) to `credentials.json`.
5. Run `agent-deck watcher oauth login` (Phase 19+) or manually place a `token.json` in the watcher directory.
**Sender key in clients.json:** The sender's email address (e.g., `[email protected]`).
**Create command:**
```
agent-deck watcher create gmail --name <name>
```
## Validation checklist
Before emitting the final `agent-deck watcher create` command, confirm:
1. **Name is valid:** Lowercase letters, numbers, and hyphens only. No spaces or special characters.
2. **Port is available (webhook/github):** The chosen port is not already in use by another watcher or service.
3. **Conductor session exists:** The conductor name matches an active agent-deck session (check with `agent-deck session list`).
4. **Required settinRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.