Pre-processing layer that analyzes raw user input — detecting surface errors, performing root-cause analysis (5 Whys), impact tracing (7 So-Whats), and intent gap analysis — then reformulates into a precise, actionable prompt.
Transform messy human input into precise, actionable prompts. Catch what the user meant, not just what they typed. [EXPLICIT]
Use scripts/compile-input-analysis.py when the task needs a reproducible
artifact or a stable schema. The compiler reads only local assets/ JSON files
and a JSON input file; it never calls APIs, MCP tools, model providers, or the
network. [EXPLICIT]
python3 skills/input-analyst/scripts/compile-input-analysis.py \
--input skills/input-analyst/scripts/fixtures/input-analysis-input.json \
--output /tmp/input-analysis.mdFor machine-readable output, add --json. The stable output sections are:
surface_errors, five_whys, seven_so_whats, intent_gap_analysis,
ambiguity_register, actionability_score, clarified_prompt,
routing_hints, user_safety_privacy_flags, and confidence. [EXPLICIT]
Read assets/source-map.md for the local source map and
assets/input-analysis-schema.json for the input/output contract. [EXPLICIT]
This is a pre-processing layer. It runs BEFORE other skills activate. [EXPLICIT]
| Input Quality | Passes to Run | Example |
|---|---|---|
| Clear + specific | Pass 4 only (intent verification) | "Create a Python function that sorts dicts by 'date' key" |
| Clear + vague scope | Passes 2, 4, 5 | "Help me with my project" |
| Messy + clear intent | Passes 1, 5 | "cn u fix teh bugg in login" |
| Messy + vague | All 5 passes | "i need somthing for the meeting tmrw about that thing" |
Do NOT over-analyze simple, well-formed requests. [EXPLICIT]
Raw Input → SURFACE → 5 WHYS → 7 SO WHATS → INTENT → REFORMULATE → Structured PromptDetect and catalog surface-level issues. [EXPLICIT]
What to catch:
Output: Corrected text + list of corrections made.
Critical rule: Preserve intent when correcting. Fix surface errors only — never change meaning.
For pattern libraries and detection heuristics, read references/analysis-patterns.md. [EXPLICIT]
Dig beneath the surface request to find the root need. [EXPLICIT]
Protocol:
User says: "I need a presentation about Q4 results"
Why 1: Why a presentation? → Boss asked for a quarterly review
Why 2: Why a review? → Team missed targets, needs realignment
Why 3: Why realignment? → Strategy pivot mid-quarter
Why 4: Why does that matter now? → Budget planning depends on it
Why 5: Why is budget at risk? → Need to justify continued investment
Root need: A persuasive case for continued investment despite Q4 misses,
formatted as a quarterly review. [EXPLICIT]Rules:
For the complete protocol with examples, read references/five-whys-guide.md. [EXPLICIT]
Trace implications forward. If we solve this, what happens next?
Purpose: Calibrate response depth. A "presentation" that determines budget allocation deserves more investment than a casual summary.
Rules:
For the complete protocol, read references/seven-so-whats-guide.md. [EXPLICIT]
Compare what was typed with what was meant. Identify the gap. [EXPLICIT]
Gap types:
| Gap Type | Signal | Example |
|---|---|---|
| Vocabulary | Domain mismatch | "algorithm" meaning "workflow" |
| Scope | Understated need | "fix this" meaning "redesign the architecture" |
| Expertise | Wrong terminology | Uses incorrect term for the right concept |
| Emotional | Hedging, vagueness | "make it better" meaning "I'm frustrated with X" |
| Context | Missing references | Assumes shared knowledge not stated |
Protocol:
For detailed heuristics, read references/intent-detection.md. [EXPLICIT]
Synthesize all passes into a high-quality prompt. [EXPLICIT]
Reformulation targets:
Output template:
[Reformulated prompt]
Context: [From 5 Whys + 7 So Whats]
Intent: [From Pass 4 gap analysis]
Constraints: [Explicit + inferred]
Expected output: [Deliverable format and scope][input-analyst] → [task-engine] → [excellence-loop] → UserThe reformulated prompt from Pass 5 becomes input for task-engine. Higher quality input raises baseline confidence, reducing iterations downstream. [EXPLICIT]
| Problem | Bad Pattern | Fix |
|---|---|---|
| Over-analysis | Running 5 Whys on "What time is it?" | Use the scaling table above |
| Projection | Assuming intent without textual evidence | Ground every inference in specific words/signals |
| Correction arrogance | Changing meaning while fixing typos | Preserve intent; correct surface only |
| Lost nuance | Reformulation drops emotional context | Include emotional signals in context section |
Before passing the reformulated prompt downstream, confirm:
routing_policy.offline_only=true and allow_external_apis=falsereferences/analysis-patterns.md — Dyslexia patterns, common typos, autocorrect artifacts, detection heuristicsreferences/five-whys-guide.md — Complete 5 Whys protocol with cross-domain examplesreferences/seven-so-whats-guide.md — Complete 7 So Whats protocol with value chain examplesreferences/intent-detection.md — Gap analysis framework, signal detection, reformulation strategiesassets/ — Stable local schema, pattern libraries, taxonomy, quality calibration, and templatesscripts/ — Offline compiler, deterministic fixtures, and check.shAuthor: toolkit contributors | Last updated: 2026-06-02
Capas del packet, cargables bajo demanda (disciplina ICM: una capa por vez, nunca todas juntas): references/ guías de profundidad (cargar UNA por etapa) · knowledge/ cuerpo de conocimiento · prompts/ prompts listos · examples/ salida de ejemplo · agents/ subagentes del packet · templates/ plantilla de output · scripts/ automatización local · assets/ recursos estáticos.
e8f986b
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.