human-in-the-loop
Skill1 starsChanged 17 days agoMITView on GitHub
Design human approval and review checkpoints for agent actions, including risk-based policies, review payloads, pause/resume, auditability, and rejection handling.
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Put human judgment at decisions where risk, ambiguity, or accountability warrants it, without asking for approval on every harmless step.
- Distinctive: line 21
Test rejection, edit, expiry, duplicate submissions, reviewer outage, state loss, and changed action arguments.
- Distinctive: line 27
Do not use vague approval text for irreversible operations.
- Distinctive: line 28
Do not treat silence or timeout as approval.
- Distinctive: line 32
Use idempotency keys for approved side effects.
- Distinctive: line 34
Avoid approving an entire future plan when later actions can materially change.
- Distinctive: line 35
Keep emergency stop and cancellation paths available.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Human-in-the-Loop Agent Design
Goal
Put human judgment at decisions where risk, ambiguity, or accountability warrants it, without asking for approval on every harmless step.
Workflow
- Classify actions by impact: read-only, reversible write, external communication, financial/legal/production impact, destructive operation, or permission change.
- Define approval rules outside the model prompt. Tool code or policy middleware must enforce them.
- Prepare a review payload containing proposed action, normalized arguments, target, expected effect, evidence, risk explanation, and relevant diff. Redact secrets.
- Pause before execution, not after, for actions requiring approval.
- Bind approval to the exact action and arguments. If arguments or target change, request approval again.
- Authenticate the reviewer and check authorization, separation of duties, and approval expiry.
- Support approve, edit, reject, request-more-information, and timeout outcomes where appropriate.
- Persist enough state to resume safely. Revalidate permissions and external state after a long pause.
- Record reviewer, decision, timestamp, action hash/version, and outcome in an access-controlled audit log.
- Test rejection, edit, expiry, duplicate submissions, reviewer outage, state loss, and changed action arguments.
UX principles
- Explain what will happen and why it needs approval.
- Show the actual target and material parameters.
- Make reject/cancel as clear as approve.
- Do not use vague approval text for irreversible operations.
- Do not treat silence or timeout as approval.
Implementation safeguards
- Require server-side authorization at execution time.
- Use idempotency keys for approved side effects.
- Separate policy decision from model recommendation.
- Avoid approving an entire future plan when later actions can materially change.
- Keep emergency stop and cancellation paths available.
Deliverable
Provide a risk/action matrix, approval UX contract, persistence/resume behavior, audit schema, authorization checks, and failure tests.
References
- LangGraph human-in-the-loop: https://docs.langchain.com/oss/python/langgraph/interrupts
- OpenAI Agents SDK guardrails: https://openai.github.io/openai-agents-python/guardrails/
- OWASP Excessive Agency: https://genai.owasp.org/llmrisk/llm062025-excessive-agency/
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- VoDaiLocz/kilo-kit-mcp★ 28same name
- bingyue/fde-skills★ 5same name
- BojanKocijan/bk-charterline★ 4same name
- BojanKocijan/design-forge★ 4same name
- hajekim/agentic-design-patterns-skills★ 4same name
- Sathvikar01/Agent-engineering-skills★ 3same name
- hajekim/agentic-design-patterns-extension★ 1same name
- lauren-framework/lauren-ai★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- agent-architecture-designSkill
- agent-evaluationSkill
- agent-harness-engineeringSkill
- agentic-workflow-testingSkill
- agent-memory-designSkill
- browser-computer-useSkill
- durable-agent-workflowsSkill
- mcp-developmentSkill
- mcp-server-developmentSkill
- multi-agent-orchestrationSkill
- tool-calling-designSkill
- advanced-retrieval-rerankingSkill
- context-engineeringSkill
- embedding-model-engineeringSkill
- llm-evaluationSkill
- llm-observabilitySkill
- model-serving-inferenceSkill
- multimodal-ai-pipelinesSkill
- prompt-engineeringSkill
- rag-engineeringSkill
- rag-pipeline-engineeringSkill
- structured-outputsSkill
- agentic-securitySkill
- security-reviewSkill
- code-reviewSkill
- debuggingSkill
- test-engineeringSkill
- example-skillSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

