Agent Deck — Prompts
Agent Deck ships one Claude Code skill file (skills/agent-deck/SKILL.md) as its primary prompt artifact.
---
name: agent-deck
description: Terminal session manager for AI coding agents. Use when user mentions "agent-deck",
"session", "sub-agent", "MCP attach", "git worktree", or needs to (1) create/start/stop/restart/fork
sessions, (2) attach/detach MCPs, (3) manage groups/profiles, (4) get session output, (5) configure
agent-deck, (6) troubleshoot issues, (7) launch sub-agents, or (8) create/manage worktree sessions.
Covers CLI commands, TUI shortcuts, config.toml options, and automation.
metadata:
compatibility: "claude, opencode"
---
Prompting technique: Keyword-triggered autonomous activation. The description acts as a trigger matcher — any of the listed keywords causes Claude Code to auto-load the skill context. This is the "Archetype 1 skills-only" pattern.
Verbatim excerpt 2 — Script Path Resolution instruction
## Script Path Resolution (IMPORTANT)
This skill includes helper scripts in its `scripts/` subdirectory. When Claude Code loads this skill,
it shows a line like:
Base directory for this skill: /path/to/.../skills/agent-deck
**You MUST use that base directory path to resolve all script references.** Store it as `SKILL_DIR`:
# Set SKILL_DIR to the base directory shown when this skill was loaded
SKILL_DIR="/path/shown/in/base-directory-line"
# Then run scripts as:
$SKILL_DIR/scripts/launch-subagent.sh "Title" "Prompt" --wait
**Common mistake:** Do NOT use `<project-root>/scripts/launch-subagent.sh`. The scripts live inside
the skill's own directory (plugin cache or project skills folder), NOT in the user's project root.
Prompting technique: Explicit path-resolution iron law. The IMPORTANT label and bold command prevent a known failure mode (wrong script path). This is a defensive constraint pattern, similar to claude-flow's "do not stop after calling MCP tools" anti-pattern rules.
Verbatim excerpt 3 — Capability table (from SKILL.md)
| Capability | What it does | Surfaces |
|---|---|---|
| **Manage sessions** | Create, start, stop, restart, fork, send, output, remove a session | CLI ✅ · TUI ✅ · Web UI 🟡 |
| **Sub-agent / worker spawning** | `agent-deck launch` a child Claude session with parent linkage | CLI ✅ · TUI ⚪ |
| **Manage conductors** | Set up long-lived orchestrators with their own profile + channel | CLI ✅ · TUI 🟡 |
| **Worktree workflows** | `--worktree` to create isolated git-worktree-backed sessions | CLI ✅ |
| **State persistence** | state.json + task-log.md + LEARNINGS.md + HANDOFF.md survive compaction | CLI ✅ |
Prompting technique: Reference table with verification status icons. Distinguishes "CLI verified", "TUI partial", and "Web UI unknown" — a rare honest per-surface status matrix.