AGENT SKILL

voice

Speak Claude's responses aloud through the native OS voice (macOS `say`) — on demand via /speak:speak (last response) or /speak:specify (pick one), or automatically on every response via a toggleable Stop hook. Works locally on a Mac and, through a manually started host listener, from inside a Dev Container. Use when the user wants responses read aloud / spoken / voice output, wants auto-speak turned on or off, or asks whether the speak install is healthy.

License 许可
Apache-2.0
最近更新
2026-07-23
Stars
★ 0
Forks
0

01 前言 Front Matter

name
voice
description
Speak Claude's responses aloud through the native OS voice (macOS `say`) — on demand via /speak:speak (last response) or /speak:specify (pick one), or automatically on every response via a toggleable Stop hook. Works locally on a Mac and, through a manually started host listener, from inside a Dev Container. Use when the user wants responses read aloud / spoken / voice output, wants auto-speak turned on or off, or asks whether the speak install is healthy.
argument-hint
[optional: text to speak]

02 资源文件 24

03 SKILL.md 正文

speak — spoken voice output for Claude responses

Give Claude a voice: responses are cleaned of markdown/code/URLs and spoken through the Mac's system voice (say). One speak CLI is the primitive everything calls — the slash commands, the Stop hook, and the user in a terminal. Full setup, dependency, and troubleshooting detail lives in README.md.

Commands

The command surface is exactly six slash commands (namespaced by the plugin name — these are /speak:*, not /speak-*):

Command What it does
/speak:speak Speak the very last assistant response immediately — never asks. Also answers to unprefixed /speak while no other installed command claims the name. Works regardless of the auto-speak toggle.
/speak:specify Speak a chosen recent assistant response. Always asks WHICH response first (pick list, most-recent first) — several responses can accumulate between prompts. Works regardless of the auto-speak toggle.
/speak:on Turn auto-speak ON — the Stop hook speaks every assistant response until /speak:off. Defaults to OFF; opt-in.
/speak:off Turn auto-speak OFF.
/speak:status Full diagnostic (speak doctor): toggle state, detected mode, port, listener reachability, per-dependency presence with required-vs-optional labels.
/speak:test Run the bundled test suite (tests/coverage.sh --plain) and report pass/fail.

Terminal forms of the same CLI: speak <text> (or echo text \| speak), speak --serve, speak doctor [--hook|--listener] (speak status is an alias), and speak on / speak off. An exact reserved first arg (--serve/doctor/status/on/off) dispatches to that subcommand; to speak a literal reserved word use stdin or speak -- doctor.

Two modes, one transport

Context detection is separate from dependency availability:

  • Local (macOS host): Darwin → play directly via say. A missing/broken say is reported as a missing local dependency — never a silent switch to forwarding.
  • Forward (Dev Container): Linux plus a container marker (/.dockerenv / /run/.containerenv), or explicit SPEAK_MODE=forward → the response is base64-encoded and sent over TCP (nc) to a listener on the Mac at host.docker.internal:${SPEAK_PORT:-47837}. This container→host path is the shipped, verified transport — no fallback needed.
  • Anything else (bare non-container Linux, unknown OS) → a clear "unsupported host OS" diagnostic, never a guessed forward attempt.

The host listener (manual, never auto-started)

Forward mode needs speak --serve running on the Mac. The plugin NEVER starts it for you: open a terminal on the host at the workspace root and run ./plugins/speak/bin/speak --serve — or better, install the always-on LaunchAgent once with ./plugins/speak/bin/speak agent install (starts at login, restarts on crash; agent status/agent uninstall to manage). Either way it binds 127.0.0.1:${SPEAK_PORT:-47837}, queues incoming utterances, and plays them through say. Ctrl-C stops it.

Auto-speak toggle + debounced notice

The toggle is a single global flag file managed atomically by /speak:on / /speak:off and read by the Stop hook; absent/unreadable reads as OFF. When auto-speak is ON and something is wrong (listener unreachable, missing dependency, invalid config), the hook emits at most ONE non-blocking notice per session per reason — reason-specific, naming the exact fix (the listener-unreachable notice contains the ./plugins/speak/bin/speak --serve command). It never blocks or fails the response.

OS support

macOS is the only implemented TTS backend today. The playback path is isolated behind a single OS seam (play_local), so Windows support can be added later without rearchitecting — non-Darwin forced-local reports "unsupported local TTS backend" rather than guessing. Remote dev containers / Codespaces are out of scope: audio only works when the container runs on the same machine as the speakers.

04 同仓库更多 Skills

SoftwareAssassin2
SoftwareAssassin2/Plugins

wendy

Summon Wendy, a performance coach modeled on Wendy Rhoades from Billions, when the user invokes /wendy or asks for Wendy by name, or explicitly asks to get his head right — tilting, stalling, spiraling, avoiding, flat, or needing to lock in before a hard push. Wendy works the operator's state, never the plan. Do NOT use for feedback on strategies, plans, or decisions, and do not trigger uninvited.

★ 0
SoftwareAssassin2
SoftwareAssassin2/Plugins

ubiquitous-language

Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to ./docs/ubiquitous-language.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD". Forked from Matt Pocock's "ubiquitous-language" skill.

★ 0
SoftwareAssassin2
SoftwareAssassin2/Plugins

tdd

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development. Forked from Matt Pocock's "tdd" skill.

★ 0
SoftwareAssassin2
SoftwareAssassin2/Plugins

merge-request:review

Review a pull/merge request (by id) or batch-review every open one against Chris's own engineering standards, staging high-signal findings to .data/merge/<ID>.md for later posting. Fetches head SHAs and applies the "Reviewed at commit" skip check BEFORE any checkout, resolves the head fork-safely, builds/tests it in a dedicated worktree, and treats a failing build/checkout as the top blocking finding. First runs /detect-source-control and hard-stops when the forge is unsupported. Use as "review the PR", "review the open MRs", "any PRs need my eyes", "review <id>".

★ 0
SoftwareAssassin2
SoftwareAssassin2/Plugins

merge-request:post-findings

Take the findings staged by /merge-request:review in .data/merge/<ID>.md and, with per-finding approval, post the approved ones to the forge as inline comments (general-comment fallback when a finding has no valid diff location) — or formally sign off a clean PR/MR with a single "Looks good." First runs /detect-source-control and hard-stops when the forge is unsupported. Nothing reaches the forge except through the bundled scripts. Also runs a propose-then-confirm learned-preferences loop that teaches /merge-request:review what you value (Don't-raise / Wording / Confirmed-valued), and records skipped findings to the artifact's

★ 0
SoftwareAssassin2
SoftwareAssassin2/Plugins

merge-request:fix

Monitor an open pull/merge request (by id) and, as feedback arrives, gather every actionable item — human + bot/AI review comments and MR-attributable CI failures — deduplicated against a durable ledger so nothing is handled twice. Polls on an adaptive scheduled-wakeup cadence until the PR/MR closes. First runs /detect-source-control and hard-stops when the forge is unsupported. Use as "watch the PR", "monitor the MR for feedback", "fix review feedback on <id>", or the continuation of /merge-request:create.

★ 0