--- title: "feat: Add visible query parsing display before research starts" type: feat date: 2026-02-06 --- # feat: Add Visible Query Parsing Display ## Overview The last30days skill parses user intent (TOPIC, QUERY_TYPE, TARGET_TOOL) internally but never shows the user what it understood. The agent jumps straight from the user's `/last30days kanye west` into running tools with a generic "I'll start the research script and web searches in parallel." Users expect to see a reformulation of their query โ€” confirming what the agent understood before it starts searching. This builds trust and lets users course-correct before waiting for results. ## Problem Statement Current behavior: ``` User: /last30days kanye west Agent: I'll start the research script and web searches in parallel. [immediately runs bash + WebSearch] ``` Expected behavior: ``` User: /last30days kanye west Agent: ๐Ÿ” **kanye west** ยท News Searching Reddit, X, and the web for the latest on kanye west... [then runs bash + WebSearch] ``` The "Parse User Intent" section in SKILL.md tells the agent to store variables internally but never instructs it to **display** them. ## Proposed Solution Add an explicit "Display your parsing" instruction between the "Parse User Intent" section and "Research Execution" section in SKILL.md. One new block of text โ€” no code changes, no script changes. ## Acceptance Criteria - [ ] Agent displays parsed TOPIC and QUERY_TYPE before running any tools - [ ] Display is concise (1-2 lines, not a verbose block) - [ ] Agent still runs script + WebSearch in parallel after displaying - [ ] No changes to Python scripts โ€” SKILL.md only ## Implementation ### SKILL.md Change **File:** `/Users/mvanhorn/last30days-skill-private/SKILL.md` After the "Store these variables" block (line ~38) and before "Research Execution" (line ~42), add: ```markdown **DISPLAY your parsing to the user.** Before running any tools, output a single line: ๐Ÿ” **{TOPIC}** ยท {QUERY_TYPE} Searching Reddit, X, and the web for {natural language description of what you'll look for}... Example outputs: - ๐Ÿ” **kanye west** ยท News โ€” Searching Reddit, X, and the web for the latest kanye west news and discussions... - ๐Ÿ” **best MCP servers** ยท Recommendations โ€” Searching Reddit, X, and the web for the most recommended MCP servers... - ๐Ÿ” **nano banana pro prompting** ยท Prompting โ€” Searching Reddit, X, and the web for nano banana pro prompting techniques and tips... - ๐Ÿ” **open claw** ยท General โ€” Searching Reddit, X, and the web for what people are saying about open claw... If TARGET_TOOL is known, mention it: "...for nano banana pro prompting techniques to use in ChatGPT..." This text MUST appear before you call any tools. It confirms to the user that you understood their request. ``` ### Sync After editing SKILL.md: ```bash cp /Users/mvanhorn/last30days-skill-private/SKILL.md ~/.claude/skills/last30days/SKILL.md ``` ## Test Plan Run in a NEW Claude Code session: 1. `/last30days kanye west` โ€” should display: ๐Ÿ” **kanye west** ยท News 2. `/last30days best MCP servers` โ€” should display: ๐Ÿ” **best MCP servers** ยท Recommendations 3. `/last30days nano banana pro prompting for ChatGPT` โ€” should display with tool mention ## Files to Modify | File | Change | |------|--------| | `SKILL.md` | Add display instruction between Parse User Intent and Research Execution |