/h2t-core:setupfrom h2t-core
Install, repair, update, and diagnose h2t-core / h2t-ops delivery. Use for 'h2t setup', 'install h2t-ops', 'repair h2t', 'update h2t', connector auth/status checks, or sharing h2t tools with another machine/user.
Ships in h2t-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill as the install/update/doctor surface for h2t-core and h2t-ops.
Two backends, both commands of the CLI:
h2t-setup <sync|update|dev-sync> --json — installs, repairs and updates the pack: the
CLI and, in Claude Code, the plugins, to the release main points at (spec §7.3).h2t-ops setup <verb> --json — diagnoses and configures what is installed: doctor,
setup (the doctor report plus the machine-name pin), connectors-check, secrets.Its other verbs — install-h2t-ops, repair, update — are the 3.x install path: they
install from main, not from a release. Do not use them; h2t-setup replaces them.
Do not reimplement setup logic in prose. Run the backend, inspect structured output, and only then explain the next action.
Run this before any other command of this skill:
h2t-ops version --expect 4.1.3 --json
Act on the result, in this order:
"ok": true — continue."ok": false — show the user error.hint as it is and stop this skill until
it is resolved. Do not run anything the hint names unless the user asks you to: on
reason: path it is a command for the user to decide on. error.details.reason names the
case: not_installed, version or path.command not found — read ~/.h2t/run/install.env
(grep -E '^(STATE|H2T_HOOK)=' ~/.h2t/run/install.env). With STATE=ready the install
is fine and PATH does not reach it: show the directory of the H2T_HOOK= path, ask the
user to restart the harness, and offer uv tool update-shell for them to run. Without
it there is no install: give the user uvx --isolated --python 3.12.11 --managed-python -c "https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/constraints.txt" --from "h2t-ops @ https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/h2t_ops-4.1.3-py3-none-any.whl" h2t-setup sync.uvx --isolated --python 3.12.11 --managed-python -c "https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/constraints.txt" --from "h2t-ops @ https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/h2t_ops-4.1.3-py3-none-any.whl" h2t-setup sync.In this skill, a user who asked to install, repair or update has asked for the remedy:
on outcomes 2–4 run the bootstrap the outcome names (with sync), or h2t-setup sync
when that is the hint, yourself, then rerun the version check. uv tool update-shell
stays the user's to run — it edits their shell profile. For a diagnosis only, show the
remedy and stop, as the block says.
| User intent | Backend command |
|---|---|
| diagnose current install | h2t-ops setup doctor --json |
| first setup / repair | Step 3 h2t-setup sync --json; then Step 3b h2t-ops setup setup --json; then Step 4 connectors-check --json |
| update | Step 3: give the user h2t-setup update for their terminal; or, if they choose, h2t-setup sync --json; no Step 4 unless asked |
| the CLI runs editable from a checkout | Step 3: h2t-setup dev-sync --json, from inside that checkout |
| check connector readiness | h2t-ops setup connectors-check --json |
| run live connector status checks | h2t-ops setup connectors-check --live --json |
| include paid Research/Exa preflight | h2t-ops setup connectors-check --live --include-paid --json only after explicit user confirmation |
The version check above is the first gate: a machine without the CLI is handled there — outcome 3 or 4 hands over the bootstrap, which installs the current release in one command. Everything below assumes the check passed.
h2t-setup drives uv tool, so check for uv before Step 3:
The snippet below is POSIX shell. On Windows run it from Git Bash, which the audit
confirmed present as /usr/bin/sh; native PowerShell or CMD will not parse if ! command -v and would fail before printing the message it exists to print. The install
line the message prints for Windows is PowerShell, because that is what installs uv
there — it is what the user runs next, not what runs this snippet.
if ! command -v uv >/dev/null 2>&1; then
echo "ERROR: uv is not on PATH, and every remedy this skill offers needs it." >&2
echo "Install it, then re-run:" >&2
echo " macOS/Linux curl -LsSf https://astral.sh/uv/install.sh | sh" >&2
echo " Windows powershell -c \"irm https://astral.sh/uv/install.ps1 | iex\"" >&2
exit 3
fi
The message names the missing prerequisite and how to install it, and exits 3 — the config
exit code the connector contract already uses. Without it, a machine with no uv would see
uv: command not found from deep inside h2t-setup and nothing else.
For a diagnosis:
h2t-ops setup doctor --json
Report:
uv status and path;h2t-ops status, path, version;entry_points status — all four CLIs (h2t-ops, h2t-gather, h2t-activity-log, h2t-handoff);settings_gaps: settings this machine relied on by default and has not set. Each item has
kind, key, evidence, suggestion, value. A gap must be applied: show the suggestion.
info is shown, not demanded. manual is listed with its key, for the user to set if wanted.
How to apply one, once the user agrees:
value is not null: the item sets key in user.yaml (the suggestion shows it as nested
YAML). Merge value at that dotted path into the file's existing mapping — load,
set, write once. Never append the suggested lines: a second top-level sessions: or
guards: is silently dropped by YAML, which keeps only the last. Combine every guards
item (gap and manual) into one list. Replace each <placeholder> with the user's answer
first.run:: it is a command, run it.key is secrets: the user moves these by hand. Show the key names and the target
directory from the suggestion and ask the user to copy them. Never open, read or print
the 3.x secrets files or any value, and do not offer to do the move.plugin_cache.status: missing means no installed h2t-core was found under Claude Code's or
Codex's plugin cache (CLAUDE_CONFIG_DIR / CODEX_HOME when set). The skill still runs — it
may be loaded from a checkout — but hooks and skills will not reach other sessions. Report it
and name the remedy: Step 3 installs the plugins in Claude Code; by hand, the user types
/plugin marketplace add lichtpfad/h2t-skills
/plugin install h2t-core@lichtpfad
If entry_points.status is partial or missing, the install needs Step 3. If it is
ready, skip Step 3 unless the user asked to repair or update.
POS/DOR absence is not an error. Phrase it as:
optional_pos: not_configured
impact: lifecycle and connector provider I/O still work; POS publishing disabled
h2t-setupNever clone the repository to install. h2t-setup installs the release's wheel; a
checkout is only ever one the user already develops in (dev-sync below).
Install and repair — sync needs no confirmation, and the user's request is the ask:
h2t-setup sync --json
It brings the machine to the release main points at, skipping every step that already
matches, so a second run is the repair. An installed h2t-setup hands over to that
release's own isolated bootstrap by itself. To add an extra of the CLI (drawio, for
h2t-drawio generate), add --extra <name>: it is recorded in install.json and every
later sync keeps it; dev-sync takes the same flag. An unknown name is exit 3,
reason: unknown_extra, with the known extras in error.hint. Read the result:
result.done and every line of result.notes as it is (they include the
codex plugin add lines when Codex is present). When result.reload_needed is true,
tell the user to run /reload-plugins or start a new session.error.type: provider — something did not reach the target.
error.details.failed lists [subject, remedy] pairs; show each, and error.hint (the
first remedy) as it is. A pinned marketplace lands here: sync changed nothing in
Claude Code, and the remedy lists marketplace remove / add / install lines.
remove uninstalls the user's lichtpfad plugins — do not run those lines. Offer
h2t-setup update (below), which asks and runs them with a restore on failure.error.details.reason:
editable — the CLI is installed editable from the checkout in
error.details.checkout. sync and update do not touch it. Tell the user to update
the checkout with git; then dev-sync below.relaunch_required — Windows, run from the installed tool, which the update replaces
and Windows keeps locked. Show error.hint: it is the exact command for the user to run
in a terminal.reason — e.g. main has no released pointer yet, or the release manifest is
unreadable. Report error.message and error.hint.Update — h2t-setup update is sync that first shows "installed → target" and the
CHANGELOG and asks. It asks only at a terminal: run from here it refuses with exit 3,
reason: confirmation_required, and changes nothing. So do not run it; give the user the
line for their terminal:
h2t-setup update
If the user would rather not review the changes, h2t-setup sync --json above brings the
install to the same target without asking — run it on their word.
Editable install — from inside the checkout the CLI is installed from:
cd "<checkout>"
h2t-setup dev-sync --json
It installs the CLI editable with the checkout's constraints and the user's extras; it does
not touch git or the marketplace plugins (its note says to load them with
claude --plugin-dir). Exit 3 with reason: not_a_checkout means the directory is not an
h2t-skills checkout.
Verify by state, not by the output: rerun the version check at the top of this skill. It
must answer "ok": true.
For first setup and repair, after Step 3:
h2t-ops setup setup --json
It is doctor plus two writes: env.H2T_MACHINE_NAME in ~/.claude/settings.json, so
session records stop following a macOS hostname (ADR 0003), and the same name in
~/.h2t/state/machine-name for processes Claude Code did not start, such as Codex hooks
(#606). Report the doctor part as Step 2 says, including the plugin_cache remedy. Then
read machine_name.status:
unchanged / written — report the value, and machine_name.state_pin.status:
differs means the file holds another name and was left as it is; show both and ask.
needs_choice — nothing was written: today's name (today) has no folder in the
session root, while other folders (candidates) do. One of them may be this machine
under an older hostname; another may belong to a different machine. Show both and ask
which name this machine's history lives under, then pin the answer:
h2t-ops setup setup --machine-name <answer> --json
If the user says the machine is new, pin the value of the today field
(--machine-name <today>). today is H2T_MACHINE_NAME, else the legacy DOR_MACHINE_NAME (read only), else
the hostname lowercased up to the first dot.
error — report it; the settings file was left untouched.
Default connector check is credential-only and read-only:
h2t-ops setup connectors-check --json
This must not write provider data, POS/DOR state, Notion pages, Drive files, or calendar events.
Live checks require explicit user intent:
h2t-ops setup connectors-check --live --json
Research/Exa preflight can use a paid provider request. Only run it if the user explicitly asks:
h2t-ops setup connectors-check --live --include-paid --json
h2t.uv tool install h2t.h2t-ops by h2t-setup, from the release wheel; never from a
clone.Doctor returns h2t_setup_doctor/v1.
Connector readiness returns h2t_connectors_check/v1.
h2t-setup returns the standard envelope with provider: setup; on success result
carries done, failed, reload_needed and notes.
If the backend returns missing_uv, do not guess shell paths manually. Report
the hint and ask whether to install/fix uv.
If a connector returns missing, report the exact credential/config file or env
var from the backend output.
Triggered by user intent: "setup secrets", "configure credentials", "h2t-core:setup --secrets",
or when connectors-check reports any connector as missing.
h2t-ops setup secrets skeleton --json
From the result, show the user:
files — one file per provider the placeholders went into (<provider>.env under path, the
secrets directory), each with its own added keysadded: its description and URL from known_secrets.yamlskipped holds keys that are already set — in those files, in the environment, or in any
other secrets file the connectors read, the 3.x files they still fall back to included. Do not ask
for them.
If added is empty, skip to Step 3. Otherwise tell the user to open each files[...].path and
paste a value after each KEY= from its added — one message together with Step 1, the list shown
once. Do not list keys from memory: the registry is the list, and a list copied here falls
behind it.
Open the file in an editor — the same line on macOS, Linux and Git Bash on Windows, with
each file's path from Step 1 quoted as is. If code is not on PATH, give the user those paths to open in
any editor instead:
code "<path>"
Wait for user to say "done" or "готово" before proceeding.
First, check which Google connectors are actually missing:
h2t-ops setup connectors-check --json
Calendar, Gmail and Drive share one token, so this is one question and one command, not
three. If none of the three is missing, skip this step. Otherwise ask: "Gmail, Calendar
and Drive need one Google sign-in in the browser. Proceed? (yes/no)" — a user who wants
none of them answers no, and that is a finished setup, not a failure.
Only after an explicit yes:
h2t-ops google auth --json
status: authorized or already_authorized — done; report token_path.credentials.json is missing. That file is the user's own Google Cloud OAuth
client, and nothing here can create it. Show the error's hint (the Console steps) and
the path, wait for "done", rerun. Never offer someone else's file.--no-browser prints the consent URL instead of opening it. Google still redirects to
localhost on the machine running the command, so over SSH the printed port must be
forwarded (ssh -L <port>:localhost:<port>) for the consent to complete.
Verify by state, not by the exit code alone:
h2t-ops gmail list --max 1 --json
Phase 1 — check status:
h2t-ops telegram auth status --json
If already authenticated: skip to Step 5.
Otherwise, ask user: "Telegram needs authentication. This will send a code to your phone. Proceed? (yes/no)"
Phase 2 — request code (ask user for phone number first):
h2t-ops telegram auth request-code --phone <phone> --json
Phase 3 — complete login (ask user for the code from Telegram):
h2t-ops telegram auth complete --phone <phone> --code <code> --json
If 2FA is enabled, also ask for password:
h2t-ops telegram auth complete --phone <phone> --code <code> --password <password> --json
Confirm success by re-running auth status.
Default (format-only, free):
h2t-ops setup secrets preflight --json
If user asks for a live check (costs Exa tokens — confirm first):
h2t-ops setup secrets preflight --live --json
Show a summary table: key → found/valid/connector.
Flag any found: false or valid: false with the URL from the registry.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
11 skills in this plugin
/agent-profileProject-scoped Claude plugin profile manager. Apply base profiles (dev, pos, ops, creative, dcc, product, marketing, mixed) and work contexts to control which plugins load per repo. Supports profile:name and overlay:name explicit refs plus bare-name legacy compat. Triggers: "agent-profile", "apply profile", "plugin profile", "set profile", "configure plugins", "профиль плагинов", "конфигуратор профиля".
/autonomous-runLaunch or resume an autonomous, unattended plan-execution run after brainstorm is complete. Generates a durable, self-contained runbook artifact, materializes a TodoWrite mirror of the pipeline, and carries the decision + gate protocols through to handoff. Use for "работай сам", "автономно", "overnight", "выполни план сам", "autonomous run", "resume runbook"./dev-overviewCross-project dev dashboard: progress toward goals, activity status, open issues. Weekly review and planning tool. Triggers: 'dev overview', 'project overview', 'all projects', 'weekly review', 'где я нахожусь по проектам', 'h2t:dev-overview'./handoffThis skill should be used when the user says "handoff", "завершить сессию", "конец сессии", "wrap up", "закончим", "сохрани сессию", or asks to close/end the current working session. Reconstructs what was done and what remains from conversation context and git history, shows summary, then writes the session record immediately — it never asks for a session name or any other confirmation before writing./init-projectRegister existing repo or directory in h2t ecosystem. Triggers on "/init-project", "register project", or actionable hint from session-start when project.id == "unknown". NOT for creating new repos (use /h2t-core:scaffold-project)./project-auditAutomated per-project audit pipeline: scan repo → positioning → readiness eval → generate docs → update registry. Usage: /project-audit [repo-id-or-path] [--tier product] [--dry-run]npx claudepluginhub lichtpfad/h2t-skills --plugin h2t-core