humanloop
БесплатноБез исполняемых скриптовНе проверенPause agent execution to have the human validate decisions, choose between options, answer freetext, or comment on a document — via the `hl` CLI. Every…
от crouton-labs★ 25 звёзд на GitHubОб этом скилле
humanloop — Human-in-the-Loop Decision Skill
Use the hl CLI to ask the human a structured set of questions (a deck) or get freeform comments on a markdown doc (a review). It opens a TUI (auto-splits a tmux pane when $TMUX is set), persists progress to disk, and returns JSON.
Every interaction is a kickoff: the launch call (hl deck ask, hl review open) spawns the human's TUI in a detached pane and returns a job_id in well under a second — it does not wait for the human. You collect the answer separately with hl job result. See Long-running: kick off, then collect — this is the single most important thing to get right, because a human may take many minutes or step away entirely.
When to use this
Reach for hl when the next step materially depends on a human judgment you cannot make alone:
- Design decisions with real tradeoffs (Postgres vs SQLite, library choice, data model).
- Approval gates before an irreversible or expensive action (schema migration, mass refactor, deploy).
- Picks between alternatives where you have 2+ reasonable options and no strong reason to prefer one.
- Batches of 2+ structured questions. For a single freetext question, ask inline —
hlis for batched, structured review.
When NOT to use this
- Trivial yes/no the agent should answer itself (e.g. "should I write tests?" — yes).
- Questions with obvious correct answers given the code and context.
- Routine confirmations (Claude Code already prompts for destructive tool calls).
- Single freetext questions where a chat reply is lower friction.
Audience and content philosophy
The deck is read by a busy, technical human. Write with progressive disclosure so the reader can stop at any layer:
| Field | Role | Guidance |
|---|---|---|
title |
Inbox label | Noun-phrase topic (≤4 words). The thing being decided, not the decision. Database, not Use Postgres. |
subtitle |
TL;DR | One plain-English sentence framing the choice or stakes. Action-ready if the call is obvious. No jargon, no library names without context. |
body |
ELI12 explanation | Plain language up top — audience is a smart engineer joining the codebase. Tuck anything denser (technical specifics, alternatives considered, edge cases) under a heading like ## Details or ## Alternatives so the reader can skip past. Every layer below the TL;DR is optional reading. |
options[] |
Genuine alternatives | Two or more real picks. Empty array = freetext-only. |
allowFreetext |
Comment + escape hatch | Set true when you want a comment alongside a choice, or to let the human write their own answer. |
Avoid: walls of jargon, raw schema dumps or stack traces in body, titles that bury the topic, subtitles that restate the title, options that are not real alternatives.
Workflow
Every leaf reads one JSON object from stdin and writes one JSON object to stdout. There are no file-path arguments — pipe the input in.
- Build the deck object (see the example below); validate it with
hl deck validateif unsure. - Kick off:
echo '{"deck":{…}}' | hl deck ask→ returns{job_id, dir, follow_up}immediately. The human's TUI is now open in a pane; you are not blocked. - Collect (see Long-running):
echo '{"job_id":"…","wait":true}' | hl job resultblocks until the human finishes, then prints the resolution. Run this backgrounded. - Parse the output. Match answers to questions by
id— never by index, since the human can skip questions. - Act on the answers.
Long-running: kick off, then collect
The human is slow and may walk away. Treat every interaction as fire-and-forget plus a deferred collect:
hl deck askandhl review openreturn in <1s with ajob_id. They never wait for the human. Thefollow_upstring in their output tells you the exact collect call.- Collect with
hl job result+{"wait":true}. This is the call that blocks until the human finishes (or{"wait":false}to poll once — returns{error:"not_ready"}exit 1 if they're not done). - Run the waiting collect as a backgrounded task — do not await it inline. In Claude Code, set the Bash call to
run_in_background; you will be notified when it completes, and you stay free to do other work meanwhile. Blocking the foreground on a human who might take 20 minutes (and overrunning the 10-minute command ceiling) is the failure this design exists to prevent. - Inspect without collecting:
hl job status→{state: live|done|failed|canceled, kind, age_seconds, last_event}.hl job logsstreams JSONL events.hl job cancelis best-effort. - Mid-flight edits: while a deck job is live,
hl deck updaterewrites its questions and the pane reloads within ~1s (answers to surviving ids are kept).
Input example (pyramid content)
{
"title": "Capture pipeline decisions",
"inter
Установить humanloop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(hl:*)WriteReadFAQ
Что делает скилл humanloop?
Pause agent execution to have the human validate decisions, choose between options, answer freetext, or comment on a document — via the `hl` CLI. Every interaction is a kickoff that returns a job handle immediately; collect the human's answer later with `hl job result`. Use for material design decisions, approval gates, picks between meaningful alternatives, and markdown doc review. Not for trivial yes/no confirmations the agent should decide itself.
Как установить скилл humanloop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл humanloop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic