Skip to content
Back to skills

Setup

ASecurity

Check (default, read-only) observer prerequisites/config or apply confirmed docs/conventions/session-flow.yaml. Installs nothing; re-runnable.

  • 34 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentspythongobashnodenodejsgitapi

Works with

  • claude code
  • terminal
  • cli
  • api

Security analysis

A100/100

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

Scanned December 3, 2026

npx -y skills add melodic-software/claude-code-plugins --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

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

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/melodic-software-setup-bff21fa1/badge)](https://www.skillsdirectory.com/skills/melodic-software-setup-bff21fa1)

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
---
description: "Check (default, read-only) observer prerequisites/config or apply confirmed docs/conventions/session-flow.yaml. Installs nothing; re-runnable."
argument-hint: "[check|apply] [<key>=<value> ...]"
user-invocable: true
disable-model-invocation: true
---

# Setup

## Purpose

Two kinds of configuration. The **session observer** (see
[`${CLAUDE_PLUGIN_ROOT}/reference/observer.md`](${CLAUDE_PLUGIN_ROOT}/reference/observer.md)) has
runtime prerequisites (Node.js, Python 3.10+, `jq`) and native `userConfig` tunables; setup reports
both and writes neither (writing `pluginConfigs` is what the setup contract forbids). The plugin
also owns one tracked consumer file, `docs/conventions/session-flow.yaml`, the repository layer of
the keys skills read in their own text (keys, values and layers:
[`${CLAUDE_PLUGIN_ROOT}/reference/config.md`](${CLAUDE_PLUGIN_ROOT}/reference/config.md); schema:
`${CLAUDE_PLUGIN_ROOT}/schemas/session-flow.schema.json`). `check` reports that file; `apply`
writes it and nothing else.

Action routing: no argument or `check` runs the check; `apply` runs the check, then writes.
Re-running either reads the current state again.

## `check` (read-only)

The observer's files are the single source of truth for what they require and how they degrade:
the module `${CLAUDE_PLUGIN_ROOT}/hooks/register.tsx`, the catch-up hook
`${CLAUDE_PLUGIN_ROOT}/hooks/observer-catchup.sh`, its launcher
`${CLAUDE_PLUGIN_ROOT}/skills/running-retro/scripts/arm_observer.py`, and `observer.py` beside it.

**Read it first.** Probe what it actually does, don't recite this file. Then run each probe via
Bash and report a PASS/FAIL/INFO table with one remediation line per FAIL. Do not modify anything.

When the observer is disabled (`observer_enabled` off), every
prerequisite absence downgrades from FAIL to INFO, the hook exits through its opt-in gate before
touching anything, so a deliberately disabled plugin is not broken. Report the probes informationally
and note that re-enabling restores the FAIL semantics.

1. **Node.js on PATH**, every hook row runs through `node ${CLAUDE_PLUGIN_ROOT}/hooks/exec-bash.mjs`.
   Probe `node --version` through Bash. FAIL if absent: the catch-up hook does not launch. Remediation: install Node.js on PATH (<https://nodejs.org/en/download>).
2. **Python 3.10+**, the catch-up launcher and `observer.py` are stdlib-only Python 3.10+. Probe the same interpreter
   detection the hook uses (`python3` then `python`, requiring `sys.version_info >= (3, 10)`). FAIL if
   none qualifies: without it the hook silently skips the catch-up. Remediation: install Python 3.10+ on PATH.
3. **`jq`**, the SessionStart hook parses its stdin (`session_id`, `transcript_path`, `source`,
   `agent_type`) with `jq`. FAIL if absent: the hook exits early and no catch-up runs. Remediation:
   install `jq` (<https://jqlang.org/download/>).
4. **`claude` CLI on PATH**, the catch-up analysis invokes `claude -p`. INFO if absent: the catch-up
   distills and keeps observations under its plugin work dir but writes no ledger; live checks are
   unaffected.
5. **Observer config**. Report the effective value of each native key (an unexpanded `${user_config.…}`
   token or empty means the default): `${user_config.observer_enabled}` (default off),
   `${user_config.observer_step_check}` (default on), `${user_config.observer_turn_end_check}`
   (default off), `${user_config.observer_analysis_enabled}` (default on), `${user_config.observer_analysis_model}`
   and `${user_config.observer_analysis_effort}` (defaults: read each key's `default` from
   `${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json` `userConfig`, never from memory),
   `${user_config.observer_analysis_bare}` (default off), `${user_config.observer_min_lines}`
   (default from plugin.json, as above), `${user_config.observer_idle_seconds}` (default 900). Call out two hazards: `observer_analysis_bare` on is a FAIL on an OAuth-login install (what bare
   mode does with OAuth credentials:
   <https://code.claude.com/docs/en/headless#start-faster-with-bare-mode>);
   `observer_idle_seconds` below the machine's longest expected
   single turn risks a catch-up of a session still running in another terminal.
6. **Hook registration**. INFO: confirm the plugin is enabled for this project (`/plugin` → Installed)
   rather than parsing settings files. The module and the SessionStart hook do nothing unless `observer_enabled` is on.
7. **Repository settings.** Run `node "${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs" --check` from
   the project root. INFO when `docs/conventions/session-flow.yaml` is absent (every key comes from
   `userConfig` or its default); PASS with each key's value when the file validates; WARN, never
   FAIL, when it does not (an invalid value, an unknown or repeated key, an empty or non-scalar
   value, or a path that is not a plain file), quoting the line the script prints. An invalid
   value never stops a session-flow skill: the skill names it and drops that layer. An unknown key
   is named and ignored, and the valid keys still print. `apply` overwrites only a value that is
   out of the list, empty or null; it refuses every other shape (a repeated key, an unknown key
   holding a map or list, a map or list, an empty quoted string), which the operator fixes by
   hand.
8. **Away settings.** Report the effective value of each key `/session-flow:step-away` reads (an
   unexpanded `${user_config.…}` token or empty means the default, read from
   `${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json` `userConfig`, never from memory):
   `${user_config.away_night_start}`, `${user_config.away_report_by_workday}`,
   `${user_config.away_report_by_day_off}`, `${user_config.away_days_off}` and
   `${user_config.away_watched_folders}`, one INFO row each. For the watched folders, test each
   listed folder with a read-only `test -d`: PASS when every watched folder exists, WARN naming each
   missing one (the scan skips a missing folder, so files written there go unreported), INFO when
   the value is empty (the home folder is scanned). Nothing is written.

## `apply` (writes `docs/conventions/session-flow.yaml` only)

1. Run `check` and show its table.
2. **Resolve the values.** With complete `<key>=<value>` arguments, use them. Otherwise ask one key
   at a time, recommendation first, from the table in `${CLAUDE_PLUGIN_ROOT}/reference/config.md`
   (`worker_continuation`: `resume`, the default, unless the team wants each new unit in a fresh
   worker; `wip_commit`: `false`, the default, unless the team wants a pause
   handoff to make one local `chore(wip):` commit, an unquoted `true` or `false`;
   `implementation_route`: `local`, the default, unless the repository's unattended factory lanes
   take published items from implement through ship, then `factory`;
   `transcript_scope`: leave it unset unless the team wants to narrow every member's
   `/session-flow:find-handoff` and `/session-flow:recall` scans to `worktree` or `repo`, since
   this key can only narrow a user's option, never widen it; `native_suggestions`: `on`, the
   default, unless the team wants no line suggesting a Claude Code command only the person can
   run). Never invent a key the schema does not list.
3. **Write.** One call with every value:

   ```bash
   node "${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs" worker_continuation=respawn
   ```

   Pass `--default <key>` as `${CLAUDE_PLUGIN_ROOT}/reference/setup-apply.md` "Defaults" says.

   The script checks each value against the schema, refuses a key given twice, validates the
   existing file first (refusing it unless every problem is a value out of the list, empty or
   null, or an unknown key it names in one warning and keeps as written), and validates the whole
   resulting file (no repeated key, one non-empty scalar per key) before it writes; any refusal
   exits 1 and writes nothing. It writes only `<git toplevel>/docs/conventions/session-flow.yaml`:
   it resolves a symlinked root first, then refuses a root that is `$HOME` or an ancestor of it, a
   symlink on that path, on `docs` or on `docs/conventions`, a directory resolving outside the
   repository, and a target with more than one hard link, and writes through a temp file renamed
   into place. A missing file is created. A value already in place prints `already configured` and
   writes nothing.
4. **Diff, convention-home offer and verify.** Follow `${CLAUDE_PLUGIN_ROOT}/reference/setup-apply.md` from "A file that would
   change" through "Verify", with `<file>` = `docs/conventions/session-flow.yaml` and `<apply-script>` =
   `"${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs"`.

## Remediation guidance (printed by `check`; the operator applies it)

For the observer there is no write path. For each FAIL, `check` closes by offering the remediation: install the missing
tool, or route observer reconfiguration through Claude Code's native flow.
Do not write the plugin cache, Claude Code user settings, or `pluginConfigs`.

Reconfigure the observer's `userConfig` keys through Claude Code's native flow, interactively with
`/plugin configure session-flow@<marketplace>` or by a headless route, as the marketplace's
plugin-reconfiguration convention gives them in
[§ The routes](../../reference/plugin-reconfiguration.md#the-routes)
(it owns the verified-version record). Apply the scope and failure-signal caveats in its
[§ Caveats every setup skill's short form carries](../../reference/plugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries).
Read both sections and print what they give, the fallback route, its behavior on an
already-installed plugin and the scope to pass included, rather than only naming them, and
leave out the verified-version record.
Never uninstall to reconfigure; that section links what an uninstall deletes. Afterwards rerun
`check` in a **fresh session**, since a same-session `check` can still show the old value, and
report the observed effective value, never an unobserved change.

- **Pointer**: for the headless command's flags, how it reports a saved or refused value, and
  when a saved value applies, fetch
  [plugin CLI reference § plugin configure](https://code.claude.com/docs/en/plugins/cli-reference#plugin-configure)
  live.

## Output

`check`: the PASS/FAIL/INFO/WARN table with one remediation line per FAIL. `apply`: the table
before and after, the diff when one was shown, the written path, and whether the file is tracked.

## Next

`/session-flow:orchestrate`, which reads `worker_continuation`; `/session-flow:retro`, whose session mode
reads `retro_lenses`; `/session-flow:handoff`, which reads
`wip_commit`; `/session-flow:find-handoff` and `/session-flow:recall`, which read `transcript_scope`;
`/session-flow:recall`, which also reads `recall_report_kinds` and `recall_doc_paths`;
`/session-flow:workflow`, which reads `implementation_route`;
`/session-flow:step-away`, which reads the `away_*` keys.

## Gotchas

- **Prerequisites are the observer's, plus `jq` for retro's docs reads and `gh` for
  `/session-flow:recall`'s pull request reads.**
  `/session-flow:find-handoff` uses Python 3.10+ when present and lists fewer transcript
  directories without it. The other session-flow skills need no installed tool. The repository settings are `worker_continuation`,
  read by `/session-flow:orchestrate`, `retro_lenses`, read by `/session-flow:retro` session mode,
  `wip_commit`, read by `/session-flow:handoff`, and
  `transcript_scope`, read by `/session-flow:find-handoff` and `/session-flow:recall`, where the
  narrower layer wins, `recall_report_kinds` and `recall_doc_paths`, read by
  `/session-flow:recall`, and `implementation_route`, read by `/session-flow:workflow`.
- **The repository file reaches the team only once committed.** `apply` leaves it uncommitted on
  purpose, and the tracked-file pair says so.
- **`observer_analysis_bare` and auth.** Leave it off unless auth is an env-var API key (why: the
  bare-mode pointer in `check` step 5). Full detail in
  `${CLAUDE_PLUGIN_ROOT}/reference/observer.md`.

Files in this skill

  • SKILL.md6.7 KB
  • evals/evals.json1.7 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 ai-agents →

Comments

Loading comments…

Newsletter

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