Survey Results & Interactive Explainer Builder
Objective
Turn raw survey responses into an honest leadership slide outline and a clean, clickable single-file HTML results page, without exposing small groups or letting outliers distort the findings.
Data & Privacy Rules (Follow Strictly)
- Audit Before Summarizing: Report total raw rows, duplicate IDs removed, blank ratings, and inconsistent text labels before computing any summary numbers.
- Suppress Small Groups (
n < 5) & Prevent Back-Calculation: Never report a separate average, chart bar, or attributed quote for any subgroup with fewer than 5 respondents. If only one group hasn < 5, combine it with a related larger group (or suppress a second small group) so readers cannot subtract the visible groups from the overall total to back-calculate the hidden group. - Show Both Mean and Median: Whenever numeric responses (like commute time or wait time) have extreme outliers, display both the median and the mean and call out the outlier openly.
- Always Show Sample Size (
n): Label every chart and metric with the exact valid count (for example,n = 45 valid responses, 3 blank). - Auditable Open-Ended Coding: Group free-text comments into clear themes with exact counts divided by the clean unique total (explicitly noting that multi-label theme percentages need not sum to 100%) and anonymized sample quotes so the user can spot-check 10 raw rows against the summary.
Step 1: Data Hygiene Audit
Inspect the pasted or uploaded survey sample and list:
- Total rows vs. unique respondents (flag duplicates)
- Any subgroup with
n < 5to suppress - Blanks, text inconsistencies, or numeric outliers
- Up to 2 clarifying questions about the audience if needed
STOP after Step 1 and ask the user to confirm the clean numbers and privacy roll-up before drafting Step 2.
Step 2: Leadership Slide Outline (5 Slides)
Draft a concise 5-slide outline (one clear takeaway per slide):
- Bottom Line & Response Overview (
n, response rate if known, top 3 takeaways) - Headline Metrics (overall satisfaction/scores with median and mean)
- Department or Group Comparison (only groups with
n >= 5, with clear caveat note) - What People Said in Their Own Words (top 4 themes with counts and anonymized quotes)
- Recommended Next Actions (3 concrete, low-cost actions tied directly to the top themes)
Step 3: Single-File Interactive HTML Results Webpage & Self-Check Loop
Before presenting the final 5-slide outline and interactive HTML page, run an internal self-check pass and fix any gap yourself:
- Verify zero subgroups with
n < 5appear in any slide bullet, HTML filter button, hidden filter list inside the webpage, or attributed quote (and confirm no lone small group can be back-calculated from visible totals). - Verify every headline metric and chart carries its exact valid sample size (
n) and displays both median and mean when numeric outliers exist. - Verify open-ended theme counts state their exact unique denominator clearly (noting that multi-label percentages need not sum to 100%) and include a visible Data Notes & Privacy footer.
When the user confirms the audited numbers, generate a clean, self-contained HTML explainer page (preview live in Claude Artifacts or Gemini Canvas, or save the code as survey-results.html and double-click to open in Chrome or Edge) featuring:
- Top summary KPI cards with explicit
nlabels - Simple group filter buttons using only privacy-safe groups (
n >= 5, with any single small group rolled up so it cannot be back-calculated) - Clickable theme tabs showing counts and anonymized quotes
- A visible "Data Notes & Privacy" footer stating how duplicates, outliers, and small groups were handled
Optional Tool & Connector Handoff (Agent / Cowork Mode)
- If running inside an approved agent workspace with a Microsoft Forms or SharePoint Connector (App Keycard), read closed survey exports from an approved folder in read-only mode, execute Step 1's Hygiene & Privacy Audit, pause for human approval, and stage the draft deck outline and HTML page for leadership review rather than publishing automatically.
- If the team runs recurring pulse surveys, offer to pair with
skill-packagerto lock theirn < 5privacy roll-up rules and brand HTML styles into a reusable teamSKILL.md.
Step 4: Manual Verification Checklist
End with 3 checks the user must run by hand:
- Confirm unique respondent count matches the cleaned spreadsheet
- Verify no subgroup with
n < 5appears in any chart or quote - Spot-check 10 raw open-ended comments against the theme labels