agentleFS
MicrosoftKnown publishermicrosoft/glintlabs/skills/analyze-survey/SKILL.md

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.

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
  1. Distinctive:

    If the user does not provide another export, use this workbook, which is checked directly into this repository so any user can access it …

    line 24
  2. Very specific:

    Use worksheet Sheet1, join worksheet user_properties by user_id, and use a 5-point scale.

    line 33
  3. Distinctive:

    Read these references in order:

    line 39
  4. Distinctive:

    When attrition analysis completes, add Attrition analysis followed immediately by Attrition alerts between Factors and Downloads.

    line 58
  5. Distinctive:

    Before the navigation, show a deterministic, filter-aware current-survey summary.

    line 62
  6. Distinctive:

    Keep all tab-level AI summary cards hidden.

    line 75
  7. Distinctive:

    All respondents and Repeat respondents.

    line 83
  8. Distinctive:

    Before starting the runner, give the user a concise estimated completion time.

    line 119
  9. Distinctive:

    Use the direct export runner:

    line 124
  10. Distinctive:

    Keep updates concise and identify expensive work such as the repeatability verification, correlation clustering, attrition-alert …

    line 154
  11. Distinctive:

    Use the checked-in People Science source index to select references from key terms across the current headline, observation, …

    line 207
  12. Distinctive:

    Prefer exact analytical or item-theme matches over generic survey resources, and never reuse a source merely because it is broadly about …

    line 210
  13. Distinctive:

    Use neutral score-based language for item rankings and avoid company-specific classification vocabulary.

    line 212
  14. Distinctive:

    Use explicit options only when automatic detection is wrong:

    line 215
  15. Distinctive:

    Only completed analysis CSVs are required.

    line 244
  16. Distinctive:

    If the employee ID or item columns cannot be detected, report the available columns and rerun with explicit options.

    line 250
  17. Distinctive:

    If repeatability fails, do not generate or interpret the report.

    line 252
  18. Distinctive:

    If an analysis fails, preserve the explicit failure in the manifest.

    line 253
  19. Distinctive:

    If cycle, alert, or attrition inputs are unavailable, keep the corresponding report tab and explain what is missing.

    line 254
  20. Distinctive:

    Never substitute synthetic attrition outcomes.

    line 256
  21. Very specific:

    After generation, recommend analysis-qa.

    line 260

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.xlsx

Use 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:

  1. ../../references/design/glint-ui-system.md
  2. references/README.md
  3. references/linked-dataset.json
  4. references/golden-report.html
  5. references/scores-change-format.png
  6. references/interactive-report-contract.md
  7. ../../references/general/privacy-and-minimum-n.md
  8. ../../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 Sheet1 or the first worksheet from Excel workbooks
  • joins a user_properties or 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's survey_completion_date (2026-06-01) and 90-, 180-, and 365-day windows
  • creates an internal analysis-config.json
  • runs the standard vivaglint analyses 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 off

Successful 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.zip

Only 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.