human-in-the-loop-designer
Skill3 starsChanged 4 months agoMITView on GitHub
Design human-in-the-loop (HITL) workflows for AI systems: review queues, escalation triggers, feedback loops, and SLA-backed approval gates. Use when deploying high-risk AI, production agents, or regulated decision support.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- varunk130/claude-code-skillstheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- varunk130/claude-code-skills★ 1same 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 repository59 other files it gives its agents.
- agent-memory-designerSkill
- ai-cost-optimizerSkill
- ai-evaluation-builderSkill
- ai-latency-optimizerSkill
- ai-solution-architectSkill
- ai-workflow-builderSkill
- context-engineeringSkill
- multi-agent-plannerSkill
- prompt-engineerSkill
- prompt-optimizerSkill
- prompt-reviewerSkill
- adr-generatorSkill
- api-designerSkill
- architecture-reviewSkill
- component-diagram-builderSkill
- container-diagram-builderSkill
- data-flow-analyzerSkill
- integration-plannerSkill
- observability-plannerSkill
- scalability-advisorSkill
- solution-architectureSkill
- system-context-builderSkill
- experiment-designerSkill
- go-to-market-plannerSkill
- pricing-strategy-advisorSkill
- mcp-best-practicesSkill
- mcp-client-generatorSkill
- mcp-security-reviewSkill
- mcp-server-generatorSkill
- mcp-tool-generatorSkill
- acceptance-criteria-generatorSkill
- analytics-instrumentation-plannerSkill
- competitive-analysisSkill
- epic-generatorSkill
- feature-prioritizationSkill
- idea-validatorSkill
- north-star-metric-advisorSkill
- okr-builderSkill
- persona-generatorSkill
- prd-generatorSkill
- problem-statement-builderSkill
- product-discovery-assistantSkill
- product-vision-builderSkill
- sprint-plannerSkill
- story-mappingSkill
- user-story-generatorSkill
- value-proposition-designerSkill
- chunking-strategy-advisorSkill
- embedding-strategy-advisorSkill
- hybrid-search-advisorSkill
- knowledge-ingestion-plannerSkill
- rag-architecture-designerSkill
- retriever-optimizerSkill
- ai-governance-advisorSkill
- ai-threat-modelingSkill
- guardrails-builderSkill
- owasp-llm-reviewerSkill
- prompt-injection-detectorSkill
- skill-nameSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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 33
Document what the AI may do autonomously vs what requires human gate.
- Distinctive: line 131
Start with shadow mode: AI drafts, human sends, before any automation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 Designer
Purpose
Design human-in-the-loop (HITL) workflows: when humans intervene, how work is queued, and how feedback improves the AI system over time.
Input: AI use case, risk level, automation target, team roles, SLA requirements
Output: HITL Workflow Specification with triggers, queues, UI/API hooks, and metrics
Examples: See examples.md for worked input/output.
Workflow
Step 1: Assess automation boundary
| Risk tier | Examples | Default HITL |
| Low | Draft text, suggestions | Optional spot-check |
| Medium | Customer replies, code suggestions | Sample review 5–10% |
| High | Medical, legal, financial decisions | Mandatory approval |
| Critical | Irreversible actions (payments, deletes) | Dual approval |
Document what the AI may do autonomously vs what requires human gate.
Step 2: Define escalation triggers
| Trigger type | Signal | Example |
| Confidence | Model score < threshold | Classifier < 0.7 → queue |
| Policy | Guardrail hit | PII detected → block + review |
| User | Explicit request | "Talk to a human" |
| Anomaly | Out-of-distribution input | Unknown intent cluster |
| Volume | Error rate spike | >3% thumbs-down/hour |
Each trigger maps to queue priority and assignee role.
Step 3: Design review queue
| Field | Purpose |
| Case ID | Traceability |
| AI draft + inputs | Reviewer context |
| Confidence + trigger reason | Prioritization |
| Suggested action | Approve / edit / reject |
| SLA deadline | Ops accountability |
Define states: pending → in_review → approved | edited | rejected | escalated.
Step 4: Design reviewer experience
- Diff view — AI output vs policy template
- One-click actions — approve, edit-and-send, reject-with-reason
- Keyboard shortcuts — for high-volume queues
- Audit trail — who decided what, when
Specify API or UI integration points (webhook, ticket system, Slack).
Step 5: Close the feedback loop
| Reviewer action | System learning |
| Edit | Store (input, draft, final) as training/eval pair |
| Reject + reason | Tag failure mode for eval set |
| Approve | Positive signal for monitoring |
Route feedback to ai-evaluation-builder datasets and prompt iteration.
Step 6: Define HITL metrics and SLAs
| Metric | Target |
| Queue wait time p95 | < 15 min (medium risk) |
| Review time median | Track per category |
| Override rate | Monitor drift; alert if >20% |
| Escalation rate | Baseline + alert |
| Post-release incident rate | Zero critical after HITL |
Step 7: Validate
Run Validation checklist.
Decision Rules
| Condition | Action |
| Regulated domain | Mandatory HITL; document in governance pack |
| No human reviewers available | Stop; do not deploy high-risk automation |
| Override rate > 30% for 7 days | Pause auto-send; run prompt/workflow fix |
| Reviewer edits same field repeatedly | Create dedicated rule or fine-tune |
| Latency SLA conflicts with HITL | Async path + user expectation messaging |
Validation
- Risk tier and automation boundary documented
- ≥3 escalation triggers with thresholds
- Queue schema and state machine defined
- Reviewer actions and audit trail specified
- Feedback loop connected to eval/improvement
- SLAs per risk tier with alert thresholds
- User-facing messaging for pending human review
- Rollback path if HITL system fails
Anti-patterns
- HITL theater — queue exists but reviewers always click approve.
- No feedback capture — human edits discarded; system never improves.
- Unbounded queue — no SLA; users wait indefinitely.
- Reviewer without context — AI draft shown without inputs or policy.
- Same gate for all risk levels — over-reviewing low-risk kills throughput.
Best Practices
- Start with shadow mode: AI drafts, human sends, before any automation.
- Sample-review low-risk paths; full gate only where regulation requires.
- Instrument override reasons as structured tags, not free text only.
- Pair with
guardrails-builderfor automated pre-queue filtering. - Reconcile HITL metrics weekly with product and safety owners.
Output Structure
# HITL Workflow: [System Name]
## Risk Assessment
| Tier | Autonomous scope | Human gate |
|------|------------------|------------|
## Escalation Triggers
| Trigger | Threshold | Queue | Priority |
|---------|-----------|-------|----------|
## Queue Specification
[State machine + fields]
## Reviewer UX
[Actions, integrations]
## Feedback Loop
| Action | Destination |
|--------|-------------|
## SLAs & Metrics
| Metric | Target | Alert |
|--------|--------|-------|
## Rollout Plan
[Shadow → partial → full automation]Next Skills
| Outcome | Recommended Skill |
| Build evaluation from overrides | ai/ai-evaluation-builder |
| Pre-filter before queue | security/guardrails-builder |
| Governance documentation | security/ai-governance-advisor |
| Orchestrate async workflow | ai/ai-workflow-builder |
| Threat model human bypass | security/ai-threat-modeling |
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.

