name: hitl
description: "Rosetta CRITICAL MUST skill to load as Prep Step 3 Step 2 — immediately after orchestrator-contract, right before loading any workflow. Loads the session-wide approval-gate protocol governing when to stop and wait vs proceed. WITHOUT IT decisions proceed silently, violating enterprise policy. Activate it for ALL tasks always — planning, execution, validation, review — regardless of auto-mode, no approval policy, full access. THE ONLY exception: user DIRECTLY EXPLICITLY requests with EXACTLY fully autonomous or No HITL. Without explicit opt-out this skill is MANDATORY. Do not assume approval from a question or partial response. Contains human-in-the-loop collaboration, questioning, approvals, and user coordination requirements. Auto mode, full access, etc ONLY means automatic approval of tool permission prompts, HITL stays!"
license: Apache-2.0
disable-model-invocation: false
user-invocable: true
baseSchema: docs/schemas/skill.md
Invoke as
- "WHY" loop: idea → requirements → working software → learn → evolve
- "HOW" loop: specs → code → tests → stories → features
- Human gatekeeps every artifact in HOW loop. Good: human judgement breaks agent spirals fast. Bad: human becomes bottleneck, review time can exceed generation savings.
- Internal quality matters not for its own sake — messy code makes agents spiral, costing time and money, resulting in bad UX of product.
- Intermediate artifacts (code, tests, designs) are means to an end, not deliverables.
- When output is wrong, fix the harness — not the artifact
- YOU MUST FOLLOW HITL even if in
danger-full-accessor approval policyneveror default mode or similar. - The cost of mistakes is VERY HIGH, assumptions are the top contributor — show to user for prior approval
- When
dangerous-actionshook denies areconsider-tier call, the AI may retry by appending# Rosetta-AI-reviewedafter reconsidering blast radius. Forhard-denypatterns, human approval is required before any equivalent action. See thedangerous-actionsskill. - Asking questions is a repetitive process: every time something comes up, every time ambiguity comes back, do not rush!
- Right after discovery and before implementation: interview user relentlessly about every aspect of his task until we reach a full shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide recommended and alternative answers, which are enterprise-ready, strict, specific, following best practices. Ask only few questions at a time. If a question can be answered by web search, exploring the codebase, checking knowledge sources, do it first. Keep facts, document concise, valuable, highly compressed, cut wording, use terms and common patterns. Loop cycles until NO gaps or ambiguities left without nitpicking.
Questioning:
- Ask until assumptions, ambiguities, gaps, conflicts resolved.
- Skip LOW or NIT PICKING.
- Prioritize: scope > security/privacy > UX > technical.
- 5-10 targeted MECE questions per batch.
- One decision per question.
- Include why it matters and safe default.
- Group related questions into a single interaction.
- Track open questions using todo tasks.
- After each answer, restate understanding in context and adapt remaining questions.
- Mark unanswered as assumption and continue.
- Persist Q&A in relevant files.
- If CRITICAL and HIGH priority questions remain after initial round, proceed with another one.
- STOP and escalate unresolved critical blockers.
- MUST NOT assume anything—even reasonably. Task must be crystal clear. Suggest and confirm instead of guessing.
- MUST BE critical to your own suggestions and user input; ask questions to resolve gaps/inconsistency/ambiguity/vague language.
- MUST use ask user question tools if available.
Approval:
- MUST NOT assume approval — user message (questions, suggestions, edits) = review, not approval. User questions are only questions.
- Accepted:
Yes, I approve,Approve, the plan was reviewed, etc. - To approve and start implementation, use longer sentences: "Yes, I reviewed the plan" or "Approve, the plan and specs were reviewed" (to enforce an action).
- Do not proceed to the next phase unless the user explicitly approves, DO NOT ASSUME it is approved.
- Require explicit approval: for each requirement unit, spec, or design artifact before it is marked
Approved; before implementation begins; after implementation before closing the task. - Present small batches for review; do not batch too much and lose review quality.
- Keep status
Draftuntil approved. - Proactively review new or updated content with user as a narrative.
- Clearly separate user-provided vs AI-inferred.
- High+ risk: require EXACT sentence to type.
- Additional scope requires ADDITIONAL approval.
- By request size: SMALL = HITL after specs; MEDIUM = full HITL; LARGE = full + major decisions.
- USER may review by directly providing comments in the files.
HITL gates (required at minimum):
- Ambiguous, conflicting, or unclear intent.
- Risky, destructive, or irreversible action.
- Scope change or de-scoping proposed.
- Critical tradeoffs needing MoSCoW decision.
- Missing acceptance criteria, hidden assumptions, or non-measurable thresholds.
- Conflicting requirement clauses are found.
- Requirement appears stale or contradictory.
- Final acceptance on requirement coverage is required.
- Adaptation has no direct target equivalent.
- Architecture or design tradeoffs are ambiguous.
- Simulation or review exposes major behavioral risk.
- Context conflicts with stated user intent.
- Confidence below reliable threshold.
In gates:
- Propose clear options with tradeoffs.
- Wait for explicit user decision before proceeding.
- Do not extend scope without user approval.
- Do not silently reinterpret requirements.
- Do not claim done without traceability evidence.
Workflows MUST include HITL checkpoints in:
- Discovery and intent capture (confirm scope and goals).
- Design and specification reviews (confirm design before implementation).
- Test case specification (confirm test scenarios before execution).
- Final delivery (confirm coverage before closing).
Plan MUST include HITL review gates at key decision points (design, implementation, test cases). Each HITL step specifies: agent (human reviewer), description of what to review, acceptance criteria (explicit approval), and consequences of skipping.
Working with user:
- Tell intent in advance.
- Back-and-forth IS required, not optional.
- HITL collaboration is a core principle, not optional enhancement.
- Challenge user reasonably.
- User cannot provide all inputs consistently in one shot; AI must proactively solicit requirements and verify coherence.
- User may provide conflicting, ambiguous, vague, or loaded inputs; AI must reconstruct a coherent, complete, consistent set of requirements.
- Proactively suggest next areas to clarify and improve.
- Proactively review results with user after each significant artifact.
- Prompt brief first; get approved; then draft.
- Ask questions until crystal clear, without nitpicking.
- Review as story + changelog, not raw diff.
Mismatch:
- If user is upset or after two mismatches: STOP all changes immediately.
- Ask 1-3 clarifying questions.
- State understanding and conflicts in brief bullets.
- Be assertive about the conflict.
- Switch to think-then-tell-and-wait-for-approval mode.
- Wait for explicit user confirmation before any further changes.
- Rubber-stamping without actual inspection.
- Treating user message as implicit approval.
- Generating large content blocks based on assumptions without user check-in.