From ai-in-the-human-loop
Captures human-side friction during development work and records structured observations in HUMAN_FRICTIONS.md. Use after work affected by unclear requests, missing decisions, or unsafe assumptions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-in-the-human-loop:human-feedbackThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Convert observed friction on the human side of the agent loop into an entry
Convert observed friction on the human side of the agent loop into an entry that changes how the human writes requests, reviews work, or makes decisions next time.
Watch for these kinds of friction while working: the same ambiguity returning across requests, an implementation that stalled because a human decision was missing, rework caused by an unclear change scope, a review that missed something because the criteria were not declared, specification intent that was never written down, or a point where you had to make an unsafe assumption.
Invoke the skill when all of the following are true:
When those hold, you log the observation in HUMAN_FRICTIONS.md. Whether it
also becomes a rule in HUMAN.md is a separate question, decided in the
procedure: a rule needs a concrete Prompt Pattern or Review Pattern, so an
observation that cannot yet be generalized stays in the log until it can. The
absence of a pattern is a reason to hold the rule, not to skip the skill.
Do not use this skill for:
HUMAN_FRICTIONS.md entry whose
frequency and impact have not changed.The loop keeps two files, with two lifecycles:
HUMAN_FRICTIONS.md — the log layer. Raw observations, append-only. Each
is a dated record of when/in what context a friction happened and how it hit
the work. The observation text is never rewritten; only the summary fields
(Last observed, Frequency, Impact) move as the same friction recurs.HUMAN.md — the rules layer. The current, distilled action rules
(Better Human Action + Prompt Pattern + Review Pattern). Rewritten and
consolidated as they sharpen. Each rule links to its friction by H-ID.A repository's own HUMAN.md may carry a "how to run the loop here" preamble
that takes precedence over this skill.
Read both files. Read HUMAN.md (the rules) and HUMAN_FRICTIONS.md
(the log). You are checking whether this observation matches an existing
friction/rule, and whether several rules now want to be merged upward.
Append the observation to HUMAN_FRICTIONS.md.
Last observed, increment Frequency, revise Impact if it changed, and append
a dated one-line note under Observed if the new instance reveals something
the old one did not.H-NNN ID.Update the rule in HUMAN.md.
H-ID to its
Friction log line and sharpen the Prompt Pattern / Review Pattern.H-ID as the
friction) with Better Human Action and at least one of Prompt Pattern
or Review Pattern.Merged, and have the meta-rule cite every contributing friction
H-ID. The log is never collapsed — only the rule side.Follow the schema in HUMAN.schema.md (bundled next to this skill) for
both the friction entry and the rule entry.
Check the update threshold before saving.
HUMAN_FRICTIONS.md only and do not create a rule. Tell the user the
observation was logged but did not clear the rule threshold.Tone. Describe the friction, not the human's failure. Write about what happened to the work, not what the human did wrong.
Avoid: "The user gave a vague instruction." Prefer: "The request did not declare which subsystems were in scope, so the agent chose the narrowest interpretation."
Language. Match the language already used in the existing HUMAN.md /
HUMAN_FRICTIONS.md. If you are creating them for the first time in a fresh
repository, match the language used in that repository's primary
documentation (README.md).
The skill's output is the updated HUMAN_FRICTIONS.md (the observation) and,
when the threshold is met, the updated HUMAN.md (the rule). Do not produce a
separate report. The entries themselves are the artifact.
After the update, surface to the user:
HUMAN.md into noise and trains readers to ignore it.HUMAN.md.npx claudepluginhub kawasima/ai-in-the-human-loop --plugin ai-in-the-human-loopCaptures friction from coding sessions like user corrections, redos, and frustration to log lessons learned and route improvements to context files. Triggers on /retrospective or detected signals.
Logs errors, user corrections, missing features, API failures, knowledge gaps, and best practices to .learnings/ markdown files. Promotes key insights to CLAUDE.md and AGENTS.md for AI agent self-improvement.
Use when completing any meaningful task - distill patterns, lessons, and insights from the interaction and persist them for future sessions