Install
$ agentstack add skill-mmccalla-coding-agent-skill-library-human-in-the-loop ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Human-in-the-Loop
When to use
Use this skill when automation alone is insufficient because the task is ambiguous, high-impact, irreversible, privacy-sensitive, legally/materially significant, or requires domain judgement.
Objective
Introduce human judgement at the right decision points without slowing safe, reversible work unnecessarily. Approval must use architectural enforcement outside the model (tool dispatcher, policy engine or workflow gate), not prompt-only instructions the agent can ignore.
Procedure
- Detect the need for human judgement using confidence, impact, reversibility and policy checks.
- Pause execution before the risky action at a gate enforced outside the LLM (dispatcher or policy engine refuses execution until approval clears).
- Present a concise decision packet: context, options, recommendation, trade-off, risk and required approval.
- Resume only after clear approval or revised instructions recorded by the gate.
- Record the decision and rationale in the implementation notes.
Intervention points
Ask for human input before:
- deleting, overwriting or migrating important data;
- changing security, authentication, permissions or secrets;
- making architectural choices with material trade-offs;
- accepting low-confidence model output;
- merging code when tests or validation are incomplete;
- exposing sensitive data to external services.
Decision packet template
Decision required:
Context:
Options: A / B / C
Recommendation:
Main trade-off:
Risk if wrong:
Approval needed:
Guardrails
- Do not bury approval requests in long prose.
- Do not ask for approval for trivial reversible steps.
- Do not proceed on implied approval for destructive or privileged operations.
- Do not rely on prompt text alone as the approval control; enforce the gate outside the model.
- Redact secrets and minimise personal data in review packets.
OWASP ASI09 controls
Use skills_docs/security/OWASP_ASI_CROSSWALK.md for the shared risk map. For ASI09 Human-Agent Trust Exploitation, approval requests must include evidence, uncertainty, consequences, alternatives and the exact action being authorised.
Related skills
apply-laws-of-ai— escalation aligned with safety lawsguardrails-safety-patterns— policy gates before human reviewagentic-ux-patterns— approval and evidence UI patterns
References
- OWASP Top 10 for Agentic Applications (ASI09 Human-Agent Trust Exploitation)
- OWASP AI Agent Security Cheat Sheet (HITL controls)
Verification
- [ ] HITL trigger is explicit.
- [ ] Options are clear and bounded.
- [ ] Recommendation and risk are stated.
- [ ] Approval action is unambiguous.
- [ ] Decision is recorded.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: mmccalla
- Source: mmccalla/coding-agent-skill-library
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.