people-analytics

borghei/Claude-Skills

Аналитика персонала: метрики, прогнозные модели, текучесть кадров и вовлечённость.

Звёзды1 154
Авторborghei

Установка

SKILL.md

People Analytics

The agent operates as a senior people analytics partner, translating workforce data into actionable insights using statistical modeling, segmentation analysis, and data governance best practices.

Clarify First

Before generating the analysis, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Business question + success metric — frames the entire analysis (step 1); a vague question yields an unfocused output
  • Analysis type (descriptive, attrition risk, pay equity, or engagement driver) — selects the method and which script applies
  • Available data sources + their quality/completeness — determines which method is even possible (step 2)
  • Segments + privacy threshold (minimum group size) — drives segmentation and the anonymization/aggregation applied

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Workflow

  1. Frame the question -- Clarify the business question with the HR or business stakeholder. Examples: "Why is Sales attrition 2x the company average?" or "Are we paying equitably across gender?" Define the success metric for the analysis.
  2. Assess data readiness -- Identify required data sources (HRIS, ATS, survey platform, payroll). Check for completeness, recency, and quality. Flag any gaps before proceeding.
  3. Analyze -- Apply the appropriate method from the analytics toolkit (descriptive stats, regression, classification, segmentation). Document assumptions and limitations.
  4. Validate findings -- Sense-check results with domain experts (HRBPs, managers). Test for statistical significance and practical significance. Check predictive models for bias across protected groups.
  5. Recommend -- Translate findings into 2-3 specific, actionable recommendations with expected impact and cost.
  6. Deliver and monitor -- Present insights using the dashboard framework. Set up ongoing monitoring for key metrics with alert thresholds.

Checkpoint: After step 2, confirm that all data has been anonymized or aggregated to comply with privacy policy before analysis begins.

Analytics Maturity Model

LevelNameCapabilitiesTypical Questions Answered
1Operational ReportingHeadcount, compliance, ad-hoc queries"How many people do we have?"
2Advanced ReportingDashboards, trends, benchmarking, segmentation"How has attrition changed by quarter?"
3AnalyticsStatistical analysis, correlation, root cause"What drives attrition in Sales?"
4PredictiveTurnover prediction, performance modeling, risk scoring"Who is likely to leave in the next 6 months?"
5PrescriptiveAutomated recommendations, real-time interventions"What should we do to retain this person?"

Core HR Metrics

Workforce Metrics

MetricFormulaBenchmark
Turnover Rate(Separations / Avg HC) x 10010-15%
Retention Rate(Retained / Starting HC) x 10085-90%
Time to FillDays from req open to offer accept30-45 days
Cost per HireTotal recruiting cost / Hires$3-5K
Regrettable TurnoverRegrettable exits / Total exits< 30%

Performance Metrics

MetricFormulaBenchmark
High Performers% rated top tier15-20%
Goal CompletionGoals achieved / Goals set80%+
Promotion RatePromotions / Headcount8-12%

Engagement Metrics

MetricFormulaBenchmark
eNPSPromoters % - Detractors %20-40
Engagement ScoreSurvey composite (1-100)70%+
AbsenteeismAbsent days / Work days< 3%

Turnover Prediction Model

import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report

def build_turnover_model(employee_data: pd.DataFrame) -> dict:
    """
    Build and evaluate a turnover prediction model.

    Input: DataFrame with columns for features + 'left_company' (0/1).
    Output: dict with model, feature importance, and evaluation metrics.
    """
    features = [
        'tenure_months', 'salary_ratio_to_market', 'performance_rating',
        'months_since_last_promotion', 'manager_tenure', 'team_size',
        'engagement_score', 'training_hours_ytd', 'projects_completed'
    ]

    X = employee_data[features]
    y = employee_data['left_company']

    X_train, X_test, y_train, y_test = train_test_split(
        X, y, test_size=0.2, random_state=42, stratify=y
    )

    model = RandomForestClassifier(n_estimators=100, random_state=42)
    model.fit(X_train, y_train)

    y_pred = model.predict(X_test)
    report = classification_report(y_test, y_pred, output_dict=True)

    importance = (
        pd.DataFrame({'feature': features, 'importance': model.feature_importances_})
        .sort_values('importance', ascending=False)
    )

    return {'model': model, 'importance': importance, 'evaluation': report}


def score_flight_risk(model, current_employees: pd.DataFrame) -> pd.DataFrame:
    """
    Score current employees for flight risk.

    Returns DataFrame with employee_id, flight_risk_score (0-1), and risk_level.
    """
    probabilities = model.predict_proba(current_employees[model.feature_names_in_])[:, 1]

    risk_levels = pd.cut(
        probabilities,
        bins=[0, 0.25, 0.50, 0.75, 1.0],
        labels=['Low', 'Medium', 'High', 'Critical']
    )

    return pd.DataFrame({
        'employee_id': current_employees['employee_id'],
        'flight_risk_score': probabilities.round(3),
        'risk_level': risk_levels
    }).sort_values('flight_risk_score', ascending=False)

Example: Sales Attrition Root-Cause Analysis

QUESTION
  Sales voluntary turnover is 22% vs 12% company average. Why?

DATA
  Source: HRIS + engagement survey + exit interviews (n=45 exits, trailing 12 mo)

ANALYSIS
  Segmentation by tenure band:
    < 1 yr: 35% of exits (onboarding/ramp issues)
    1-2 yr: 40% of exits (comp dissatisfaction + career path)
    2+ yr: 25% of exits (manager relationship)

  Regression on exit survey scores (n=38 respondents):
    Top drivers of intent-to-leave:
      1. "I am paid fairly" (beta = -0.42, p < 0.01)
      2. "I see a career path here" (beta = -0.31, p < 0.01)
      3. "My manager supports my development" (beta = -0.28, p < 0.05)

  Compensation benchmark:
    Sales IC3 compa-ratio: 0.88 (12% below midpoint)
    Sales IC2 compa-ratio: 0.91 (9% below midpoint)
    Rest of company average: 0.98

FINDINGS
  1. Sales comp is significantly below market, especially at IC2-IC3
  2. No defined career ladder for Sales ICs beyond IC3
  3. New hires (< 1 yr) leaving due to unrealistic ramp expectations

RECOMMENDATIONS
  1. Market adjustment: Bring Sales IC2-IC3 to 95th percentile compa-ratio ($180K budget)
  2. Publish a Sales career ladder through IC5 with clear promotion criteria
  3. Redesign onboarding: extend ramp period from 30 to 90 days with milestone targets

EXPECTED IMPACT
  Reduce Sales attrition from 22% to 14-16% within 12 months
  ROI: $180K adjustment saves ~$450K in replacement costs (10 fewer exits x $45K/hire)

Pay Equity Analysis

import pandas as pd
import statsmodels.api as sm

def analyze_pay_equity(employee_data: pd.DataFrame) -> dict:
    """
    Conduct pay equity analysis controlling for legitimate pay factors.

    Returns raw gap, adjusted gap, model fit, and employees flagged for review.
    """
    # Raw gap
    avg_by_gender = employee_data.groupby('gender')['salary'].mean()
    raw_gap = (avg_by_gender['Female'] - avg_by_gender['Male']) / avg_by_gender['Male']

    # Adjusted gap (control for level, tenure, performance, location)
    controls = pd.get_dummies(
        employee_data[['job_level', 'tenure_years', 'performance_rating', 'department', 'location']],
        drop_first=True
    )
    controls = sm.add_constant(controls)
    controls['is_female'] = (employee_data['gender'] == 'Female').astype(int)

    model = sm.OLS(employee_data['salary'], controls).fit()
    adjusted_gap = model.params['is_female']

    # Flag outliers (residual > 2 std dev)
    employee_data['predicted'] = model.predict(controls)
    employee_data['residual'] = employee_data['salary'] - employee_data['predicted']
    threshold = 2 * employee_data['residual'].std()
    flagged = employee_data[abs(employee_data['residual']) > threshold]

    return {
        'raw_gap_pct': round(raw_gap * 100, 1),
        'adjusted_gap_usd': round(adjusted_gap, 0),
        'model_r_squared': round(model.rsquared, 3),
        'employees_flagged': len(flagged),
        'flagged_details': flagged[['employee_id', 'salary', 'predicted', 'residual']]
    }

Engagement Survey Analysis

  1. Calculate response rate -- Target 80%+ for statistical validity. Flag departments below 60%.
  2. Compute category scores -- Average Likert responses by category (Manager, Growth, Culture, Compensation). Compare to prior period.
  3. Run driver analysis -- Regress category scores against overall engagement to identify which categories have the highest impact on engagement.
  4. Segment -- Break results by department, level, tenure band, and location. Identify where scores diverge most from company average.
  5. Prioritize -- Plot categories on a 2x2 matrix (Impact vs Score). "High impact, low score" quadrant = priority action areas.

Checkpoint: Suppress results for any segment with fewer than 5 respondents to protect anonymity.

DEI Metrics Framework

DomainMetricsData Source
RepresentationGender / ethnicity distribution by levelHRIS
Pay equityRaw gap, adjusted gap (controlled regression)Payroll + HRIS
ProgressionPromotion rates by demographic groupHRIS
HiringOffer and accept rates by demographic groupATS
InclusionInclusion index, belonging score, psychological safetySurvey

Data Governance Checklist

Before starting any people analytics project:

  • <!-- -->Business question and purpose clearly documented
  • <!-- -->Data minimization applied (only collect what is needed)
  • <!-- -->Privacy impact assessment completed
  • <!-- -->Anonymization or aggregation applied where possible
  • <!-- -->Predictive models tested for bias across protected groups
  • <!-- -->Role-based access controls implemented
  • <!-- -->Data retention policy defined
  • <!-- -->Employee communication planned (transparency principle)

Reference Materials

  • references/hr_metrics.md - Complete HR metrics guide
  • references/predictive_models.md - Predictive modeling approaches
  • references/survey_design.md - Survey methodology
  • references/data_ethics.md - Ethical analytics practices

Scripts

# Analyze engagement survey results with driver analysis
python scripts/survey_analyzer.py --file survey_results.csv
python scripts/survey_analyzer.py --file survey_results.csv --prior prior_survey.csv --json

# Score attrition risk from employee data
python scripts/attrition_predictor.py --file employees.csv
python scripts/attrition_predictor.py --file employees.csv --threshold 0.7 --json

# Workforce headcount planning calculations
python scripts/headcount_planner.py --file workforce.csv --growth 0.15 --attrition 0.12
python scripts/headcount_planner.py --file workforce.csv --growth 0.15 --attrition 0.12 --json

Troubleshooting

ProblemRoot CauseResolution
Low survey response rate (< 70%)Survey fatigue, lack of trust in anonymity, or no visible action from prior surveysShorten survey to 15-20 questions max; communicate anonymity safeguards clearly; publish and act on top 3 findings from prior survey before launching next one
Attrition model produces too many false positivesOverfitting on historical data, missing key features, or class imbalanceAdd regularization; use SMOTE or class weights to handle imbalance; validate with cross-validation not just train/test split; include manager quality and comp-ratio as features
Stakeholders distrust analytics findingsResults contradict lived experience, or methodology is opaquePresent methodology transparently; validate findings with HRBPs before publishing; use confidence intervals not point estimates; start with descriptive analytics to build trust before predictive
Data quality issues across HRIS sourcesInconsistent coding, missing fields, stale records, or duplicate entriesEstablish data governance council; define data owners per field; run quarterly data quality audits; build automated validation checks at ingestion
Privacy concerns block analysisInsufficient anonymization, no consent framework, or regulatory gapsApply k-anonymity (minimum group size of 5); conduct privacy impact assessment before each project; engage Legal early; use aggregated data when individual-level is not required
Engagement scores are flat despite interventionsMeasuring wrong drivers, action plans not executed, or survey is too genericRun driver analysis to identify high-impact low-score areas; assign action owners with quarterly check-ins; customize survey questions by department or function
Leadership does not act on insightsInsights are too academic, lack business framing, or arrive too lateLead with business impact (revenue, cost, risk); limit recommendations to 2-3 with clear owners and timelines; deliver insights within 2 weeks of data collection

Success Criteria

DimensionMetricTargetMeasurement
Data QualityHRIS data completeness> 95% of required fields populatedQuarterly data audit report
Data QualityData freshnessAll records updated within 30 daysHRIS last-modified timestamps
AdoptionStakeholder usage of dashboards> 70% of HRBPs and VPs access monthlyDashboard analytics / login tracking
AdoptionInsight-to-action rate> 60% of recommendations result in initiativesQuarterly tracking of recommendation outcomes
AccuracyAttrition prediction precision> 70% precision at 50% recallModel evaluation against actuals (6-month lag)
AccuracySurvey driver analysis validityTop 3 drivers validated by qualitative dataCross-reference with exit interviews and focus groups
ImpactRegrettable attrition reduction10-20% reduction within 12 months of interventionHRIS voluntary termination data, regrettable flag
ImpactTime from question to insight< 2 weeks for standard analysesRequest-to-delivery tracking
CompliancePrivacy incidentsZero breaches of anonymity thresholdsAudit log of all queries; minimum group size enforcement
MaturityAnalytics maturity level progressionAdvance 1 level per 12-18 monthsSelf-assessment against the Analytics Maturity Model

Scope & Limitations

In Scope:

  • Workforce descriptive analytics: headcount, turnover, retention, demographics, tenure distribution
  • Engagement survey design, analysis, driver identification, and benchmarking
  • Attrition risk scoring using rule-based and statistical methods (standard library only)
  • Pay equity analysis: raw gap, controlled gap, outlier flagging
  • DEI metrics: representation, progression rates, hiring funnel equity
  • Workforce planning: headcount forecasting, scenario modeling, gap analysis
  • Dashboard design and KPI framework recommendations

Out of Scope:

  • Real-time predictive models requiring ML frameworks (scikit-learn, TensorFlow) -- scripts use rule-based scoring for portability
  • Sentiment analysis of free-text survey responses (requires NLP libraries)
  • Individual employee profiling or surveillance -- all analysis uses aggregated or anonymized data
  • HRIS system administration, data pipeline engineering, or ETL development
  • Legal interpretation of pay equity findings (requires Employment Law counsel)
  • Organizational network analysis requiring email/calendar metadata

Known Limitations:

  • Attrition risk scoring in scripts uses weighted heuristics, not trained ML models; accuracy depends on feature quality and weight calibration
  • Pay equity analysis in the SKILL.md examples requires statsmodels (external dependency); scripts use standard-library approximations
  • Survey analysis assumes Likert scale (1-5) responses; other formats require preprocessing
  • Small population segments (< 30) produce unreliable statistical results; flag these in reporting
  • Historical data biases (e.g., biased performance ratings) propagate into predictive models if not addressed

Integration Points

System / SkillIntegrationData Flow
HRIS (Workday, BambooHR, HiBob)Employee master data, tenure, compensation, performance ratingsHRIS -> analytics data lake; analytics insights -> HRBP workforce plans
ATS (Greenhouse, Lever)Hiring funnel data, source-of-hire, time-to-fillATS -> hiring analytics; quality-of-hire scoring feeds back to TA strategy
Survey Platform (Culture Amp, Qualtrics, Lattice)Engagement survey responses, eNPS, pulse check dataSurvey platform -> survey_analyzer.py; driver analysis -> action planning
Talent Acquisition skillHiring funnel metrics, source effectiveness, quality of hireTA pipeline data -> analytics models; analytics insights -> sourcing optimization
HR Business Partner skillWorkforce planning inputs, org health scoring, retention strategyAnalytics insights -> HRBP recommendations; HRBP questions -> analytics projects
Operations Manager skillПрогнозирование численности персонала, планирование ресурсов, метрики производительностиПрогноз операционного спроса -> headcount_planner.py; метрики персонала -> модели операционной мощности
Финансы навыкБюджеты на компенсации, моделирование затрат, план численности vs фактДанные по компенсациям из Finance -> анализ справедливости оплаты; план численности -> модель бюджета Finance
Расчёт заработной платы (ADP, Gusto)Фактические компенсации, выплаты бонусов, данные по сверхурочнымPayroll -> анализ компенсаций; результаты анализа справедливости оплаты -> рекомендации по корректировке компенсаций
BI-платформа (Tableau, Looker, Power BI)Хостинг дашбордов, self-service аналитика, отчётность по расписаниюРезультаты аналитики -> дашборды BI; метрики использования BI -> отслеживание внедрения

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: people-analytics](https://darkplay.ru/ai/skills/borghei-claude-skills-people-analytics)

Из того же репозитория

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Skill Healthaffaan-m · Показывает панель состояния портфеля навыков с графиками и аналитикой.
225 587 ★
agentic-bundle-aas-data-analyticssickn33 · Установите набор редакционных навыков «AAS Data Analytics» для Claude Code.
49 917 ★
agentic-bundle-data-analyticssickn33 · Установите набор редакционных навыков «Data & Analytics» для Claude Code.
49 917 ★
apolloanthropics · Поиск клиентов, обогащение лидов, загрузка цепочек аутрича и аналитика продаж с Apollo.io…
100 комп.
aws-data-analyticsanthropics · Data lake, аналитика и ETL-процессы с S3 Tables, AWS Glue и Athena.
100 комп.
bigdata-comanthropics · Официальный плагин Bigdata.com с инструментами финансовых исследований, аналитики и…
100 комп.
bigquery-data-analyticsanthropics · Подключение, запросы и генерация аналитики по наборам данных и данным BigQuery.
100 комп.
exaanthropics · Веб-поиск, глубокое исследование и извлечение контента Exa AI. Предоставляет…
100 комп.
fullstoryanthropics · Подключение Claude к Fullstory для запросов к поведенческой аналитике, записям сессий и…
100 комп.
posthoganthropics · Доступ к аналитике PostHog, фича-флагам, экспериментам, отслеживанию ошибок и инсайтам…
100 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8