analyze-survey
Skill0 starsChanged 2 months agoMITView on GitHub
Analyze a CSV or Excel employee survey export and create a self-contained interactive HTML report plus a privacy-safe share ZIP. Use when the user asks to analyze survey data, a Viva Glint export, or an employee survey workbook.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analysis-qaSkill
- analyze-survey-ai-previewSkill
- interpret-analysisSkill
- people-science-knowledge-vaultSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 19 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
If the user does not provide another export, use this workbook, which is checked directly into this repository so any user can access it …
- Very specific: line 33
Use worksheet Sheet1, join worksheet user_properties by user_id, and use a 5-point scale.
- Distinctive: line 39
Read these references in order:
- Distinctive: line 58
When attrition analysis completes, add Attrition analysis followed immediately by Attrition alerts between Factors and Downloads.
- Distinctive: line 62
Before the navigation, show a deterministic, filter-aware current-survey summary.
- Distinctive: line 75
Keep all tab-level AI summary cards hidden.
- Distinctive: line 83
All respondents and Repeat respondents.
- Distinctive: line 119
Before starting the runner, give the user a concise estimated completion time.
- Distinctive: line 124
Use the direct export runner:
- Distinctive: line 154
Keep updates concise and identify expensive work such as the repeatability verification, correlation clustering, attrition-alert …
- Distinctive: line 207
Use the checked-in People Science source index to select references from key terms across the current headline, observation, …
- Distinctive: line 210
Prefer exact analytical or item-theme matches over generic survey resources, and never reuse a source merely because it is broadly about …
- Distinctive: line 212
Use neutral score-based language for item rankings and avoid company-specific classification vocabulary.
- Distinctive: line 215
Use explicit options only when automatic detection is wrong:
- Distinctive: line 244
Only completed analysis CSVs are required.
- Distinctive: line 250
If the employee ID or item columns cannot be detected, report the available columns and rerun with explicit options.
- Distinctive: line 252
If repeatability fails, do not generate or interpret the report.
- Distinctive: line 253
If an analysis fails, preserve the explicit failure in the manifest.
- Distinctive: line 254
If cycle, alert, or attrition inputs are unavailable, keep the corresponding report tab and explain what is missing.
- Distinctive: line 256
Never substitute synthetic attrition outcomes.
- Very specific: line 260
After generation, recommend analysis-qa.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Analyze Survey
Turn a provided survey export into a repeatable local analysis and the standard
interactive report. The skill owns export inspection, safe configuration,
vivaglint execution, repeatability validation, HTML generation, and
packaging. It does not generate AI interpretation, a broader customer readout,
or a manager action plan.
Start here
Ask:
Do you have your own survey data you would like to analyze? If not, I can use the linked Viva Glint workbook.
Accept .csv, .xlsx, and .xlsm exports. Keep respondent-level data local
and never paste employee rows into chat.
If the user does not provide another export, use this workbook, which is checked directly into this repository so any user can access it without additional permissions:
Demo Viva Glint Dataset with Attributes - Exit survey research guided.xlsx
references/sample-data/Demo Viva Glint Dataset with Attributes - Exit survey research guided.xlsxUse worksheet Sheet1, join worksheet user_properties by user_id, and use
a 5-point scale. The checked-in workbook is the only registered sample source. Do
not substitute bundled, generated, or synthetic survey data.
Required grounding
Read these references in order:
../../references/design/glint-ui-system.mdreferences/README.mdreferences/linked-dataset.jsonreferences/golden-report.htmlreferences/scores-change-format.pngreferences/interactive-report-contract.md../../references/general/privacy-and-minimum-n.md../../references/general/codebook-catalog.md
The Glint UI system is mandatory for all color, typography, spacing, component, and accessibility decisions. Do not invent report colors or visual patterns.
golden-report.html is the canonical report shell. Future reports must preserve
its markup, styling, tab order, labels, and browser interactions exactly while
replacing its embedded aggregate data payload with the current analysis.
The required base tabs are Scores change, Correlation, Thematic analysis,
Factors, and Downloads.
When attrition analysis completes, add Attrition analysis followed immediately
by Attrition alerts between Factors and Downloads. If attrition is unavailable,
omit both attrition tabs. Do not add Overview, Item results, or Heatmap tabs.
Before the navigation, show a deterministic, filter-aware current-survey summary. Use the latest privacy-eligible cycle for the selected population and describe its average item score, three high-scoring items, three low-scoring items, and movement from the prior cycle when available. Add up to three privacy-safe aggregate comment themes for each displayed item when linked comments meet the minimum threshold. Prefer score-ranked items with sufficient comment coverage when at least six are available; otherwise retain the score ranking and state when themes are unavailable. Never include raw comments in the report, AI context, share ZIP, or chat. Treat scores and themes as descriptive within-survey signals rather than benchmarks or causal findings. This summary must render in standard no-AI reports as well as AI-preview reports.
Keep all tab-level AI summary cards hidden. Every tab instead begins with one concise narrative paragraph that explains what the analysis means and how to use it.
The Scores change tab must follow scores-change-format.png: grouped old/new
cycle columns with Mean, Stddev, and n, followed by P-Value and Score
Difference (New - Old) with proportional difference bars.
It must also include a Respondent population sub-heading that switches between
All respondents and Repeat respondents. Repeat respondents are employees with
responses in both selected cycles; never infer repeat status from aggregate
counts.
The Correlation tab must classify absolute Pearson relationship strength as
Low (|r| < .30), Medium (.30-.49), High (.50-.69), or Very high
(>= .70). Preserve controls for minimum strength, strength-color visibility,
statistical-significance visibility, and adding/removing multiple highlighted
questions. The report must support multiple highlighted questions at once.
Clicking a matrix cell must show r, p-value, N, strength, and
significance status. Keep the matrix compact with full question names on both
axes in small regular-weight text, make color intensity increase with
relationship strength, and hide significance and empty detail/highlight
regions by default.
Cluster the relationship matrix with deterministic average-linkage
hierarchical clustering using positive-correlation distance (1 - r). Select
the recommended count using the highest average silhouette score from 3
through 15, capped below the item count. Show a concise recommendation blurb
and a dropdown from 3 through 10 clusters, extending through the recommendation
when it is higher. Reorder both axes and show cluster labels/boundaries.
Describe clusters as exploratory rather than validated survey constructs.
Explain that clustered items share response patterns and may indicate
overlapping content. Item reduction must preserve content coverage and be
validated for reliability and stability across groups and cycles.
The Attrition alerts tab must use the attrition-priority model in the report contract. For each report attribute and outcome window, rank items by the median privacy-eligible attrition multiplier across its groups and retain the top five. Compare each eligible group's item score with company overall. At company level, show the lowest-scoring group for each top item and attribute; under a report filter, show the selected group's top-five results. Keep the language screening-oriented and non-causal.
Primary workflow
Before starting the runner, give the user a concise estimated completion time. Base the estimate on the export size and prior runs when available, and state that correlation clustering, attrition-alert aggregation, and repeatability are the most variable phases. Do this in the first response that starts the run.
Use the direct export runner:
python scripts/analyze_survey_export.py \
--survey-export <survey.csv-or-xlsx> \
--output-dir <output-directory>The runner automatically:
- shows a live percentage, progress bar, elapsed time, and current phase
- detects standard employee ID columns
- detects numeric
Q_*survey items - excludes outcome-style
Q_*fields that do not match the configured scale - reads
Sheet1or the first worksheet from Excel workbooks - joins a
user_propertiesor attributes worksheet when present - selects privacy-safe categorical report attributes
- excludes identifier-like employee, manager, team, client, UUID, and GUID fields from report filters and aggregate downloads
- runs attrition whenever valid Exit or termination outcomes are present; for
the registered demo, H2 (
survey_cycle_id = 1002) is linked to Exit (survey_cycle_id = 1003) using H2'ssurvey_completion_date(2026-06-01) and 90-, 180-, and 365-day windows - creates an internal
analysis-config.json - runs the standard
vivaglintanalyses twice - requires SHA-256 repeatability
- builds the self-contained interactive report and safe share ZIP
- uses the checked-in golden report as the exact HTML template
Long-running phases must provide visible progress rather than appearing idle. Keep updates concise and identify expensive work such as the repeatability verification, correlation clustering, attrition-alert aggregation, and ZIP packaging.
The standard workflow uses --summary-mode off, which is also the runner
default. It still writes people-science-summary-context.json so the same
completed analysis can be used later by the explicitly invoked
analyze-survey-ai-preview skill. A stale people-science-summaries.json in
the output directory must not appear in the report or share ZIP when summary
mode is off.
For Factors, use the company solution's factor count and varimax rotation to re-estimate loadings for every eligible attribute/value cut. Require at least the greater of 100 complete responses or five complete responses per survey item. Suppress smaller or failed cuts. Show the selected cut's complete N, loading-dimension cards, and clustered horizontal bar small multiples. Repeat the loading axis for each dimension and show the shared vertical question labels once. Plot positive loading magnitudes from 0 to 1 and reuse the Correlation Low, Medium, High, and Very high thresholds and colors. State Sort questions high to low by MR1 loading only; do not combine loading values across dimensions for ordering. Add a high-contrast outline to every bar plus a contrasting outline around each two-decimal data label. State that factor labels are exploratory working hypotheses, dimensions can rotate or reorder across cuts, and this is not evidence of measurement invariance.
Explain factor loadings as item-to-dimension alignment on a 0-to-1 scale. Clarify that .70 is more closely aligned than .60, but a .10 difference is not automatically practically meaningful without considering the full loading pattern, item content, and cross-loadings.
For Attrition, rank all eligible items by the unfavorable-to-favorable attrition-rate multiplier. Default to 180 days and allow 90-, 180-, and 365-day windows. Show the item text and a horizontal multiplier bar with a clearly marked 1.00x reference line; do not display favorable or unfavorable counts or percentages in the report. Apply the shared report filter, suppress cells with fewer than five favorable or unfavorable respondents, and describe associations as screening signals rather than causal estimates. Never report individual flight-risk predictions. Flag multipliers with a two-sided Fisher exact test p-value below .05 as statistically significant while retaining the multiplier and non-causal interpretation.
The Thematic analysis tab must use only privacy-safe deterministic aggregate comment themes. Provide cycle, survey-question, comparison-attribute, and focus-group controls. Show direct favorable-versus-unfavorable comparisons for both themes and survey items. Put the row label first, followed by unfavorable and favorable columns, and sort descending by the percentage of unfavorable coded mentions. Add a separate theme favorability profile showing how each theme's mentions are distributed across unfavorable, neutral, and favorable responses. Apply the question control to all three visuals. Do not show a selected-favorability-mix ranking, group heatmap, or item-theme chips. Never expose raw comment text.
Use the checked-in People Science source index to select references from key terms across the current headline, observation, interpretation, recommendation, and caveat. Show three distinct references for every summary. Prefer exact analytical or item-theme matches over generic survey resources, and never reuse a source merely because it is broadly about employee surveys. Use neutral score-based language for item rankings and avoid company-specific classification vocabulary.
Use explicit options only when automatic detection is wrong:
--sheet <name>
--attribute-sheet <name>
--emp-id-col <column>
--scale-points <2-11>
--question-cols <item1> <item2> ...
--attribute-cols <attribute1> <attribute2> ...
--min-group-size <5-or-higher>
--summary-mode offSuccessful output
A successful run must contain:
analysis-manifest.json
descriptives.csv
response_distribution.csv
correlations.csv
factor_analysis_summary.csv
by_attribute.csv
attrition.csv
<output-directory-name>-report.html
<output-directory-name>-share.zipOnly completed analysis CSVs are required. The HTML report and ZIP are always required after repeatability passes. The standard report contains no AI summary cards. Open the HTML report before finishing.
Failure handling
- If the employee ID or item columns cannot be detected, report the available columns and rerun with explicit options.
- If repeatability fails, do not generate or interpret the report.
- If an analysis fails, preserve the explicit failure in the manifest.
- If cycle, alert, or attrition inputs are unavailable, keep the corresponding report tab and explain what is missing.
- Never substitute synthetic attrition outcomes.
Boundaries
After generation, recommend analysis-qa. Use interpret-analysis only after
QA passes. Do not create manager guidance in this skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

