Skip to content
Back to skills

harmonica-chat

DSecurity

Design, create, and manage Harmonica deliberation sessions. Use when the user wants to continue Harmonica onboarding, set up a structured async conversation, run a retrospective / brainstorming / SWOT / risk-assessment session, check or review an existing session's responses, get its summary, edit its metadata, or design a follow-up. Subcommands are loaded on demand from reference/.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
toolsgoshellbashsqlawsgitapidatabase

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

D46/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro scans all 15 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add harmonicabot/harmonica-chat --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of harmonica-chat?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for harmonica-chat
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/harmonicabot-harmonica-chat/badge)](https://www.skillsdirectory.com/skills/harmonicabot-harmonica-chat)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: harmonica-chat
description: Design, create, and manage Harmonica deliberation sessions. Use when the user wants to continue Harmonica onboarding, set up a structured async conversation, run a retrospective / brainstorming / SWOT / risk-assessment session, check or review an existing session's responses, get its summary, edit its metadata, or design a follow-up. Subcommands are loaded on demand from reference/.
allowed-tools: mcp__harmonica__*, AskUserQuestion, Read, Bash(git:*), Bash(echo:*), Bash(curl:*)
---

<!-- harmonica-chat v3.8.0 -->

# Harmonica — Session Companion

Design, create, and manage [Harmonica](https://harmonica.chat) deliberation sessions through conversation. Each subcommand has its own reference file that **must be loaded** before acting.

## Session Design Laws

Shared rules every subcommand inherits. Don't violate them per local convenience.

- **Metadata language follows the participants.** Write the topic, goal, context and critical question in the language participants will read them in, and tell the facilitator in the prompt which language(s) to reply in. The prompt itself may be in English or in the participants' language. Non-Latin text is safe: Cyrillic in every field, the prompt included, was checked on 2026-09-30. It stored intact, rendered on the participant page, and the facilitator followed a Cyrillic-only instruction. That check replaces an older rule saying non-Latin characters turn into `???`. After creating a non-English session, open its join page once to confirm the text renders.
- **Languages with grammatical gender** (Russian, Ukrainian, Polish, Czech and others): the facilitator otherwise guesses the participant's gender from their name. Tell it to use the gender-neutral register where the language has one (in Russian, formal «вы»), never to infer gender from a name, and never to use combined forms like «сказал(а)».
- **ONE question per message** in any flow that asks the user (design, accelerated) AND in any facilitation prompt you generate. Never bundle questions. Wait for the answer before moving on.
- **Facilitation prompt comes from the right place.** If a template was chosen, omit `prompt` so Harmonica generates a tailored session prompt from the brief while preserving the template binding and runtime behavior. The v1/MCP create path does not directly copy the template's stored `facilitation_prompt`. Only generate and pass a prompt for a deliberately freeform session.
- **Don't generate verbose prompts.** No sub-questions, no multi-part questions, no "Step X of Y" structures inside the prompt. Messages are 2-3 sentences max. Participants are on mobile and won't write essays. Think chat, not survey.
- **Design summaries for their reader and purpose.** Before writing or repairing `summary_prompt`, load [reference/summary.md](reference/summary.md). Lead with the useful synthesis, comparison or finding, use a proportional length budget, and preserve required method outputs. `prompt_summary` describes the facilitation approach; it is not the instruction for generating results.
- **Diagnose before changing prompts.** A poor result may come from the brief, sources, eligibility, selected instructions, shared runtime or evaluation. Follow [reference/review.md](reference/review.md); do not turn every defect into a prompt rule. A requested product-wide repair remains unfinished after a per-session patch.
- **Don't show the generated prompt by default.** Generate it internally for the `create_session` call. Only show it if the user explicitly asks to see or edit it.
- **Don't override template structure unilaterally.** If a template is selected, preserve `template_id` and omit `prompt`; do not claim the stored template prompt was copied into the session. Generate a replacement only when the host explicitly switches to freeform.
- **Don't push templates on freeform users.** If someone wants a custom session, help them design it without a template. Don't force a template choice for the sake of structure.
- **Never create or mutate without confirmation.** Inference can fill obvious fields, but the host must see the proposed session design and explicitly approve it before `create_session` or a material `update_session` call.
- **Use `AskUserQuestion` for known options** (template selection, cross-pollination, results visibility, confirmation). The tool always includes an "Other" option, so the user can type freely if needed.

## Routing

Route by intent FIRST. Preflight ceremony (version check, MCP check) is only run when needed — see [Preflight](#preflight) below.

Parse `$ARGUMENTS` to determine which reference to load:

1. **Onboarding continuation** — If the user asks to continue Harmonica onboarding (for example, `Continue my Harmonica onboarding for flow <flow-id>`), even if the flow ID is missing or malformed, load [reference/onboarding.md](reference/onboarding.md) before preflight and follow its hosted-only checks. Do not treat the flow ID as a topic or use ordinary accelerated creation.
2. **Empty or no arguments** — Run **full preflight**, then load [reference/design.md](reference/design.md) and follow it (guided session design, 14 steps).
3. **First word is a lifecycle keyword** (`status`, `check`, `summary`, `follow-up`, `edit`, `review`) — Skip the GitHub version check (fast lifecycle ops don't need it). Run **MCP check only**, then [resolve the session reference](#session-reference-resolution) and load `reference/<keyword>.md`. Everything after the keyword is the session reference (URL, ID, topic text, or partial match).
4. **Anything else** (topic text, flags, etc.) — Skip the GitHub version check (user has clear intent, don't slow them down). Run **MCP check only**, then load [reference/accelerated.md](reference/accelerated.md) and follow it.
   - Extract the topic: first quoted string, or all text before the first `--` flag.
   - Extract `--project <dir>` if present (triggers the Project-Aware Creation flow inside accelerated.md).
   - If only `--project <dir>` is present with no topic text, still load accelerated.md — detect the project first and ask for a topic based on the project context.

**Loading the reference file is non-negotiable.** It's what keeps subcommand behavior consistent across sessions. Don't try to reconstruct a subcommand from memory or from this entry file — read the reference.

When a subcommand finishes session creation (design / accelerated / follow-up / onboarding), load [reference/invitation.md](reference/invitation.md) and run the invitation flow.

### Skill fingerprint on every Harmonica call

Pass `client: 'harmonica-chat'` and `client_version: '<installed version>'` on **every** Harmonica MCP call, including preflight, template and project reads, onboarding handoff, session creation, and invitation-related Harmonica reads. Read `<installed version>` from the `<!-- harmonica-chat vX.Y.Z -->` comment near the top of this installed SKILL.md (without the `v`); never use the remote version or a hardcoded value from another reference. The hosted onboarding contract rejects a missing or mismatched fingerprint. Do not send the fingerprint to other services.

**Legacy schema compatibility:** inspect the connected tool schema. For ordinary local-npm design/lifecycle calls whose schema does not expose `client`/`client_version`, omit those unsupported fields rather than breaking a working local setup. Onboarding has no such exception: both fingerprint fields and `continue_onboarding` plus `create_session.onboarding_flow_id` must be exposed, or stop with the hosted-upgrade message.

### Session reference resolution

Lifecycle commands (`check`, `summary`, `edit`, `review`, `follow-up`) accept any of:

- **A Harmonica session URL.** The two URL families encode the id **differently**, so a single pattern across both is wrong:

  | Form | Where the id is | Encoding |
  |---|---|---|
  | `/chat?s=<id>` (participate, results) | the `s` query param | raw |
  | `/sessions/<segment>` (host view) | the path segment | **base64** |

  So `…/sessions/MDcyODYxNDEtZDMwOC00MmY5LTkyZGItZDgyMzU4ZGY1N2Vl` is the host link for session `07286141-d308-42f9-92db-d82358df57ee`. Decode the segment; do not use it as-is.

  Resolve like this:

  1. Parse the URL. If there is an `s` query param, that value **is** the id.
  2. Otherwise, if the path ends `/sessions/<segment>`, base64-decode the segment (URL-decode first, since it may be percent-encoded). If the decoded value is a valid id, use it. If not, fall back to using the segment as a raw id — some tools have emitted `/sessions/<raw-id>` links.
  3. Validate before using: an id matches `^(?:hst_[0-9a-zA-Z]+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$`. **This validation is the whole guard** — base64 decoding returns junk rather than failing on non-base64 input, so a successful decode proves nothing on its own.

  Works for `app.harmonica.chat`, `pro.harmonica.chat` (legacy, still redirects) and `oss.harmonica.chat`.

- **A bare session id** — either format: prefixed (`hst_22185567b69d`) or UUID (`abc123de-4567-890f-…`). Use `get_session` with it directly. Note the underscore in the prefixed form: a character class of `[a-zA-Z0-9-]` silently truncates `hst_22185567b69d` to `hst`.
- **Topic text** ("Q1 retro", "the brainstorming session") — pass to `search_sessions`; disambiguate if multiple match.

Each lifecycle reference handles its own disambiguation; SKILL.md's job is just to normalize URL → ID before handing off.

## Harness Compatibility

The workflow names Harmonica operations semantically. Resolve each operation through the active
harness's MCP namespace instead of copying Claude Code's tool name literally:

| Harness | Harmonica MCP operation form |
|---|---|
| Claude Code | `mcp__harmonica__<operation>` |
| OpenCode | `tools.harmonica.<operation>` |
| Codex / Pi agent | Use the namespace shown by the connected MCP server |

Use the harness's native question and file-reading affordances in place of `AskUserQuestion` and
`Read`. Never shell out to Harmonica's API when the MCP operation exists. If the connected server
does not expose an operation, stop and report the missing capability instead of guessing a raw HTTP
endpoint.

## Preflight

Run these checks based on the routing path above.

### Version Check (design path only)

Only on the no-args guided design path. Fetch the latest version from GitHub:

```bash
curl -sf https://raw.githubusercontent.com/harmonicabot/harmonica-chat/master/SKILL.md | grep -m1 '<!-- harmonica-chat v'
```

Compare the version in the response (`<!-- harmonica-chat vX.Y.Z -->`) against the version comment near the top of THIS file (line 6). Read it from the file; never compare against a version literal written elsewhere in this document. If the remote version is newer, inform the user before proceeding:

> **Update available:** harmonica-chat `v{remote}` is out (you have `v{local}`). Run this to update:
> ```
> curl -fsSL https://raw.githubusercontent.com/harmonicabot/harmonica-chat/master/install.sh | bash
> ```

If the fetch fails (network error, timeout), skip silently and proceed — don't block session creation over an update check.

### MCP Check (ordinary design and lifecycle paths)

Onboarding requests follow onboarding.md's hosted-only recovery instead of the ordinary installer below, including when a connection is absent or fails.

Check if the Harmonica MCP connection is available by attempting to call the `list_sessions` operation with
`limit: 1` and the skill fingerprint, using the active harness's namespace from the table above.

If the tool responds successfully, proceed.

If the tool is not available (tool not found, connection error, or similar failure), guide the user through setup:

> **Harmonica MCP server not found.** The fastest way to fix this:
>
> ```
> export HARMONICA_API_KEY=hm_live_...
> bash <(curl -fsSL https://raw.githubusercontent.com/harmonicabot/harmonica-chat/master/install.sh)
> ```
>
> (Get an API key at https://app.harmonica.chat/profile if you don't have one. New installs use hosted MCP; keep the key in the environment that launches your agent. Existing local registrations are preserved. Other harnesses use the hosted setup in the README.)

Then STOP. Do not proceed with any other step until the Harmonica MCP connection is available and responding.

## Tool Routing

When multiple paths could accomplish the same job, choose the one that preserves needed context and avoids state coupling:

- **harmonica-mcp operations** — canonical path for ALL session operations: list, search, get, get_responses, get_summary, create, update, chat_message, list_telegram_groups. Resolve the operation name through the active harness namespace. Always prefer over raw HTTP.
- **Raw `curl`** — only for endpoints harmonica-mcp doesn't wrap. Currently the sole legitimate case is the community-admin participation feed in [reference/invitation.md](reference/invitation.md) Step 3 (the community-admin service is intentionally separate from the Harmonica API). Don't use `curl` to hit Harmonica's own API — use the MCP.
- **Direct database access** (Neon MCP, etc.) — **never**. The Harmonica DB has internal invariants enforced through the API; bypassing them via direct SQL produces broken sessions. Request missing MCP capabilities in [Pro](https://github.com/harmonicabot/harmonica-web-app-pro); use the [standalone repo](https://github.com/harmonicabot/harmonica-mcp) for local adapter compatibility issues.
- **Other MCPs** (Zapier, Slack, Discord, Linear, etc.) — used at-runtime by [reference/invitation.md](reference/invitation.md) for distribution, IF the user has them configured and pre-approved. If they're not in the user's `~/.claude/settings.json` `permissions.allow`, those calls will prompt — that's expected.

## Commands

| Category | Command | Reference | What it does |
|----------|---------|-----------|--------------|
| **Create** | *(no args)* | [reference/design.md](reference/design.md) | Guided session design, 14 steps, one question at a time |
| **Create** | `<topic>` | [reference/accelerated.md](reference/accelerated.md) | Faster flow with topic upfront; supports `--project <dir>` for project-aware context |
| **Create** | `Continue my Harmonica onboarding for flow <flow-id>` | [reference/onboarding.md](reference/onboarding.md) | Verify hosted MCP setup, resume the saved browser journey or design the first session from its handoff |
| **Manage** | `status` | [reference/status.md](reference/status.md) | List recent sessions grouped by Active / Completed |
| **Manage** | `check <ref>` | [reference/check.md](reference/check.md) | Thematic preview of a session's responses so far |
| **Manage** | `summary <ref>` | [reference/summary.md](reference/summary.md) | Get the AI-generated synthesis once the session is done |
| **Iterate** | `edit <ref>` | [reference/edit.md](reference/edit.md) | Change topic, goal, context, critical question, or prompt |
| **Iterate** | `review <ref>` | [reference/review.md](reference/review.md) | Analyze transcripts for facilitation issues + propose prompt fixes |
| **Iterate** | `follow-up <ref>` | [reference/follow-up.md](reference/follow-up.md) | Design a next-step session built on the previous one's findings |

For lifecycle commands, `<ref>` can be a Harmonica session URL, a bare UUID, or topic text — see [Session reference resolution](#session-reference-resolution) above.

Supporting references (load when needed):

- [reference/onboarding.md](reference/onboarding.md) — Hosted Shape C onboarding continuation (flow-specific; ordinary local-npm sessions use the existing routes)
- [reference/expertise.md](reference/expertise.md) — Session design expertise (goal quality nudges, context calibration, cross-pollination recommendation, critical-question constraint discovery)
- [reference/invitation.md](reference/invitation.md) — Post-creation invitation flow (join URL, draft message, community feed, follow-up prompt)

Note on templates: the template list is fetched at runtime via `mcp__harmonica__list_templates` (harmonica-mcp ≥ 0.11.0). The platform admin panel is the source of truth; this skill never hardcodes a template list.

Files in this skill

  • CLAUDE.md5.6 KB
  • SKILL.md7.5 KB
  • install.ps11.5 KB
  • install.sh1.3 KB
  • reference/accelerated.md7.1 KB
  • reference/check.md1 KB
  • reference/design.md16.7 KB
  • reference/edit.md1.2 KB
  • reference/expertise.md2.3 KB
  • reference/follow-up.md1.5 KB
  • reference/invitation.md3.7 KB
  • reference/review.md4.9 KB
  • reference/status.md637 B
  • reference/summary.md452 B
  • reference/templates.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.