Clarify intent-expression gaps. Extracts clarified intent when what you mean differs from what you said. Type: (IntentMisarticulated, Hybrid, EXTRACT, Expression) → ClarifiedIntent. Alias: Hermeneia(ἑρμηνεία).
42
27%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./hermeneia/skills/clarify/SKILL.mdResolve intent-expression misalignment through hybrid-initiated dialogue, enabling precise articulation before action proceeds. Type: (IntentMisarticulated, Hybrid, EXTRACT, Expression) → ClarifiedIntent.
Hermeneia (ἑρμηνεία): A dialogical act of clarifying the gap between what the user intends and what they expressed, resolving misaligned intent into precise articulation through structured questioning.
── FLOW ──
E → recognize(E) → Eᵥ → detect(Eᵥ) → Gd → confirm(Gd) → Gₛ → Q → A → Î' → (loop until converge)
── MORPHISM ──
Expression
→ recognize(expression, trigger) -- determine activation path from signal
→ confirm(expression) -- verify which expression to clarify
→ detect(gaps_in_expression) -- surface gap types with evidence
→ clarify(gap, as_options) -- present structured clarification choices
→ integrate(answer, intent) -- update intent model from response
→ ClarifiedIntent
requires: trigger(E) ∈ {user_signal, ai_strong ∧ confirmed} -- Phase 0 gate
deficit: IntentMisarticulated -- activation precondition (Layer 1/2)
preserves: E -- read-only throughout; morphism acts on Î only
invariant: Articulation over Assumption
── TYPES ──
E = User's expression (the prompt to clarify)
Eᵥ = Verified expression (user-confirmed binding)
Gd = AI-detected gap types ⊆ {Expression, Precision, Coherence, Background} ∪ Emergent(Eᵥ)
Gₛ = User-confirmed gap types (from full taxonomy assessment after proceed/revise)
Q = Clarification question (via gate interaction)
A = User's answer
Î = Inferred intent (AI's model of user's goal)
Î' = Updated intent after clarification
ClarifiedIntent = Î' where |remaining| = 0 ∨ cycle(G) ∨ stall(Δ, 2) ∨ user_esc
T = Trigger source ∈ {user_signal, ai_strong, ai_soft}
suggest_only = ai_soft terminal: passive suggestion without activation (no gate interaction; Λ.active = false)
── E-BINDING ──
bind(E) = explicit_arg ∪ colocated_expr ∪ prev_user_turn ∪ ai_identified_expr
Priority: explicit_arg > colocated_expr > prev_user_turn > ai_identified_expr
/clarify "text" → E = "text"
"request... clarify" → E = text before trigger
/clarify (alone) → E = previous user message
AI-detected trigger → E = expression AI identified as ambiguous
Edge cases:
- Interrupt: E = original request of interrupted task
- Queued: E = previous message at queue time (fixed)
- Re-invoke: Show prior clarification, confirm or restart
── PHASE TRANSITIONS ──
Phase 0: E → recognize(E) → T -- trigger recognition
T = user_signal → Phase 1a -- user-initiated path
T = ai_strong → Qc(confirm) → Stop → {yes: Phase 1a | no: immune(E)} -- AI-detected confirm [Tool]
T = ai_soft → suggest_only -- suggest, do not activate
Phase 1a: E → Qc(E) → Stop → Eᵥ -- E confirmation [Tool]
Phase 1b: Eᵥ → detect(Eᵥ) → Gd → Qc(Gd, evidence) → Stop → Gₛ -- gap detection + confirm [Tool]
Phase 2: Gₛ → Qs(Gₛ) → Stop → A -- clarification [Tool]
Phase 3: A → integrate(A, Î) → Î' -- intent update (internal)
── LOOP ──
After Phase 3: return to Phase 1b for newly surfaced gaps.
On re-entry, detect(Eᵥ) re-analyzes the expression in the context of prior clarifications; gaps in Λ.clarified are filtered from Gd by type before confirmation (type-level filtering ensures convergence; new instances of a clarified type are excluded).
If |Gₛ| = 0 after confirmation (all gaps removed): skip Phase 2, evaluate convergence (|remaining| = 0).
Continue until converge: |remaining| = 0, cycle detected, or user exits.
Mode remains active until convergence.
Convergence evidence: At |remaining| = 0, present transformation trace — for each g ∈ Λ.clarified, show (IntentMisarticulated(g) → resolution(g)) from Λ.history. Convergence is demonstrated, not asserted.
── TOOL GROUNDING ──
-- Realization: gate → TextPresent+Stop; relay → TextPresent+Proceed
Phase 0 Qc (gate) → present (AI-detected activation confirmation; ai_strong only)
Phase 1a Qc (gate) → present (E confirmation)
Phase 1b detect (detect) → Internal analysis (gap detection from Eᵥ)
Phase 1b Qc (gate) → present (full taxonomy assessment: proceed/revise)
Phase 2 Qs (gate) → present (clarification options; Esc key → loop termination at LOOP level, not an Answer)
suggest_only → no tool call (passive suggestion; Λ.active = false)
integrate → Internal state update (no external tool)
converge (relay) → TextPresent+Proceed (convergence evidence trace; proceed with clarified expression)
── ELIDABLE CHECKPOINTS ──
-- Axis: relay/gated = interaction kind; always_gated/elidable = regret profile
Phase 0 Qc (confirm) → conditional: ai_strong only (user_signal path skips Phase 0)
regret: bounded (Phase 1a Qc always gated; immune(E) on decline)
Phase 1a Qc (E confirm) → elidable when: explicit_arg(E) via /clarify "text"
default: proceed with bound E
regret: bounded (Phase 1b Qc provides correction opportunity)
Phase 1b Qc (gap confirm) → always_gated (gated: gap set shapes clarification path)
Phase 2 Qs (clarify) → always_gated (gated: user incorporates intent into clarification)
── MODE STATE ──
Λ = { phase: Phase, trigger: T, E: Expression, Eᵥ: Expression, detected: Set(Gap), gaps: Set(Gap),
clarified: Set(Gap), remaining: Set(Gap),
immune: Set(Expression), history: List<(E, Gₛ, A)>, active: Bool }
-- Invariant: gaps = clarified ∪ remaining (pairwise disjoint)Articulation over Assumption: AI helps user express what they already know but struggle to articulate.
| Protocol | Initiator | Deficit → Resolution | Focus |
|---|---|---|---|
| Prothesis | AI-guided | FrameworkAbsent → FramedInquiry | Perspective selection |
| Syneidesis | AI-guided | GapUnnoticed → AuditedDecision | Decision-point gaps |
| Hermeneia | Hybrid | IntentMisarticulated → ClarifiedIntent | Expression clarification |
| Telos | AI-guided | GoalIndeterminate → DefinedEndState | Goal co-construction |
| Horismos | AI-guided | BoundaryUndefined → DefinedBoundary | Epistemic boundary definition |
| Aitesis | AI-guided | ContextInsufficient → InformedExecution | Context sufficiency sensing |
| Analogia | AI-guided | MappingUncertain → ValidatedMapping | Abstract-concrete mapping validation |
| Prosoche | User-initiated | ExecutionBlind → SituatedExecution | Risk-assessed execution |
| Epharmoge | AI-guided | ApplicationDecontextualized → ContextualizedExecution | Post-execution applicability |
| Katalepsis | User-initiated | ResultUngrasped → VerifiedUnderstanding | Comprehension verification |
Key differences: User recognizes intent-expression misalignment (user signal), or AI detects ambiguous expression (AI-detected trigger, requires user confirmation). Both paths help articulate what the user partially knows. Boundary with Aitesis: if the ambiguity is in the user's expression of intent (how it was said), use Hermeneia; if the AI lacks factual execution context (what information the system needs), use Aitesis.
Command invocation, trigger phrase, or AI-detected expression ambiguity activates mode until clarification completes. AI-detected activation requires user confirmation before proceeding to Phase 1a.
Activation layers:
/clarify slash command or description-matching input. Always available.ai_strong) requires user confirmation; minor ambiguity (ai_soft) suggests only.Clarification complete = one of: |remaining| = 0 (no gaps remain), cycle(G) (already clarified), or Δ = 0 for 2 rounds (progress stall with user consent to proceed).
Supersedes: Direct action patterns in loaded instructions (Clarification must complete before any tool execution or code changes)
Retained: Safety boundaries, tool restrictions, user explicit instructions
Action: At Phase 2, present clarification options via gate interaction and yield turn. </system-reminder>
Protocol precedence: Activation order position 1/9 (graph.json is authoritative source for information flow). Concern cluster: Planning.
Advisory relationships: Provides to Telos (precondition: clarified intent enables goal construction), Aitesis (advisory: background gaps suggest context insufficiency). Katalepsis is structurally last.
Clarified expression becomes input to subsequent protocols.
User-Initiated Signals (T = user_signal):
| Signal | Examples |
|---|---|
| Direct request | "clarify what I mean", "help me articulate" |
| Self-doubt | "did I express this right?", "is this clear?" |
| Ambiguity acknowledgment | "I'm not sure how to phrase this", "this might be confusing" |
| Meta-communication | "what I'm trying to say is...", "let me rephrase" |
Qualifying condition: Activate only when user's entire message is a clarification request, or when 2+ trigger signals co-occur in the same message. Do not activate on casual meta-communication embedded in a larger request.
AI-Detected Signals:
| Strength | Trigger | Action |
|---|---|---|
Strong (ai_strong) | Standalone ambiguous expression with multiple valid interpretations | Confirm via gate interaction, then activate |
Strong (ai_strong) | Request referencing undefined scope or entity | Confirm via gate interaction, then activate |
Strong (ai_strong) | Scope-reference mismatch (expression scope ≠ referenced context) | Confirm via gate interaction, then activate |
Soft (ai_soft) | Minor lexical ambiguity resolvable from context | Suggest only; do not activate |
Skip (user-initiated):
Skip (AI-detected):
| Trigger | Effect |
|---|---|
| Clarification complete | Intent established; proceed with clarified expression |
| User accepts current expression | Original expression deemed sufficient |
| User explicitly cancels | Return to normal operation |
| Type | Detection | Question Form |
|---|---|---|
| Expression | Incomplete articulation; missing key elements | "Did you mean X or Y?" |
| Precision | Ambiguous scope, quantity, or degree | "How specifically: [options]?" |
| Coherence | Internal contradiction or tension | "You mentioned X but also Y. Which takes priority?" |
| Background | Missing interpretive background needed to determine expression meaning | "What background should I know to interpret this correctly? [options]" |
Emergent gap detection: Named types are working hypotheses, not exhaustive categories. Detect Emergent gaps when:
Emergent gaps must satisfy morphism IntentMisarticulated → ClarifiedIntent and use adapted question forms.
When multiple gaps detected:
When the Background gap type is selected, verify the gap is about interpreting the expression, not about executing the task:
/inquire and offer to transitionOperational test: "Would knowing this change what the user means, or only how I execute it?"
Recognize trigger source and determine activation path:
User-Initiated Path (T = user_signal):
→ Proceed directly to Phase 1a.
AI-Detected Path (T = ai_strong):
When AI detects a strong ambiguity trigger (see Triggers: AI-Detected Signals), present the detected ambiguity as text output (e.g., "I notice this expression may be ambiguous: [specific ambiguity evidence]"), then present to confirm activation:
Would you like to clarify this expression?
Options:
1. Yes, help me clarify — start Hermeneia
2. No, proceed as-is — continue without clarificationUser confirmation required before proceeding to Phase 1a. If user selects option 2, mark session immunity and do not re-trigger for this expression.
T = ai_soft → suggest only; do not present via gate interaction, do not activate.
Present to confirm which expression to clarify.
Present the bound expression E and ask user to confirm or specify:
Which expression would you like to clarify?
Options:
1. "[bound E]" — the expression I identified
2. "Specify different" — let me describe what I want to clarifySkip condition: If E was explicitly provided via argument (/clarify "text"), proceed directly to Phase 1b.
Note (AI-detected path): If triggered via T = ai_strong, E is already identified by AI — Phase 1a confirmation verifies the AI's identification; user may still select Option 2 to redirect to a different expression.
Analyze Eᵥ to detect applicable gap types, then present full taxonomy assessment for user confirmation.
Per Gap Taxonomy above. Apply priority order: Coherence → Background → Expression → Precision. Emergent gaps must satisfy morphism IntentMisarticulated → ClarifiedIntent; boundary: intent-expression gap (in-scope) vs. goal definition (→ /goal) or execution context (→ /inquire).
Present the full taxonomy assessment as text output — every named type shown with detection status, evidence, and falsification condition for undetected types:
Emergent gaps include boundary annotation: "This is an intent-expression gap (Hermeneia scope). Not: goal definition (→ /goal) or execution context (→ /inquire)"
Then present:
How would you like to proceed?
Options:
1. **Proceed with current assessment** — start clarification with detected gaps
2. **Revise assessment** — toggle any items or describe an emergent gapRevise sub-step: On "Revise assessment" selection, user specifies which types to toggle (include previously unselected, exclude previously detected) or describes an emergent gap. Multiple revisions in a single response are supported. After modification, re-present the updated assessment for final confirmation. Phase 1b completes when user selects "Proceed with current assessment."
Emergent response parsing: If user provides emergent type content alongside "Proceed with current assessment," treat the emergent content as implicit "Revise assessment" — incorporate the emergent type and re-present the updated assessment. If the content is ambiguous (could be a comment on an existing type rather than a new emergent), ask the user to clarify before proceeding.
Soft guard: If user excludes all types from assessment, confirm: "Excluding all gaps terminates clarification. Continue?" If confirmed, |Gₛ| = 0 → skip Phase 2, evaluate convergence (|remaining| = 0 in LOOP).
User confirmation determines Gₛ and the clarification strategy in Phase 2. If multiple confirmed, address in priority order (Coherence → Background → Expression → Precision).
Present clarification options via gate interaction.
Do NOT bypass the gate. Structured presentation with turn yield is mandatory — presenting content without yielding for response = protocol violation.
Present the detected ambiguity as text output:
Then present:
Which best captures your intent?
Options:
1. **[Option A]**: [interpretation with implications]
2. **[Option B]**: [interpretation with implications]
3. **[Option C]**: [interpretation with implications]Other is always available — user can provide their own phrasing or a different interpretation not listed.
Question design principles:
Consult references/socratic-style.md for maieutic framing examples, Socratic elements, and example transformation.
After user response:
Discovery triggers:
## Clarified Intent — Convergence Evidence
Transformation trace (each clarified gap → resolution):
- **[Gap type]**: [Eᵥ evidence] → [Clarified meaning from A]
- **[Gap type]**: [Eᵥ evidence] → [Clarified meaning from A]
Proceeding with this understanding.| Level | When | Format |
|---|---|---|
| Light | Minor ambiguity, low stakes | Gate interaction with binary disambiguation |
| Medium | Significant ambiguity, moderate stakes | Gap statement + structured gate interaction with multiple options |
| Heavy | Core intent unclear, high stakes | Detailed options with implications + structured gate interaction |
When multiple gaps detected:
Termination conditions: Per LOOP — cycle detection, progress stall (Δ = 0 for 2 rounds), user exit.
Gap queue limit: Max 4 gaps queued at any time (drop lowest priority if exceeded)
On termination:
9342160
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.