Estimate Layoff Risk logo

Estimate Layoff Risk

Community
kelvinfkr
estimate-layoff-risk

Estimate an employee, intern, contractor, or role group's 3/6/12-month involuntary job-loss risk from public company evidence and an adaptive candidate interview. Use for questions about layoff probability, role redundancy, business-unit closure, contract non-renewal, performance exits, reorganization exposure, or which jobs are safer during cost cuts. Reconstruct business economics and profit pools first, trace them through critical processes and roles, model leadership's observable allocation regime, and produce an auditable probability range rather than a false-precision verdict.

Overview

Publisherkelvinfkr
Repositorycompany_skill
Skill nameestimate-layoff-risk
Stars
213
Forks
1
Bundled files
34
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 34 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kelvinfkr on GitHub. Read the source before you install it.

Installation

Install the Estimate Layoff Risk AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kelvinfkr/company_skill/tree/main/skills/estimate-layoff-risk
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kelvinfkr/company_skill.git /tmp/company_skill
mkdir -p .claude/skills
cp -r /tmp/company_skill/skills/estimate-layoff-risk .claude/skills/estimate-layoff-risk
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Estimate Layoff Risk in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Estimate Layoff Risk on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Estimate Layoff Risk is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Estimate Layoff Risk

Treat job-loss risk as a causal resource-allocation problem, not sentiment analysis.

Use this chain:

business model -> profit pools -> cash/margin pressure -> allocation decision -> business unit -> critical process -> role family -> employment mechanism -> individual exposure

Non-negotiable boundaries

  1. Define the outcome before estimating it. Separate mass layoff, unit closure, role redundancy, performance termination, site closure, contract non-renewal, internship ending, and redeployment.
  2. Use only public, legally accessible external information plus facts the candidate voluntarily provides. Never request confidential documents, credentials, private coworker data, or access-controlled material.
  3. Do not ask for or use protected or highly sensitive traits such as race, ethnicity, sex, pregnancy, disability, health, religion, political affiliation, union membership, family status, or age except a legally necessary age-of-majority check. Do not use proxies for them.
  4. Do not infer a private person's performance, compensation, health, relationships, or legal status. Treat self-reported performance evidence as optional and uncertain.
  5. Distinguish observed_fact, candidate_report, derived_metric, model_assumption, and inference in the evidence ledger.
  6. Give probability intervals and confidence. If calibration evidence is insufficient, report an ordinal risk band with a scenario range, not a pseudo-statistical percentage.
  7. Analyze leadership through observable allocation behavior and governance incentives, never personality diagnosis or cultural stereotype.
  8. This is decision support, not a guarantee or legal opinion. Search current jurisdiction-specific law when legal consequences matter.

Default deliverables

Create a case directory containing:

  • case.json - scope, entity, role, employment type, location, horizons;
  • candidate_answers.json - voluntary answers with date, provenance, and confidence;
  • public_evidence.jsonl - claim-level evidence;
  • source_manifest.csv - every source searched or used;
  • profit_pools.json - segment/product/channel economics and strategic-option assessment;
  • dependency_graph.json - profit pool to process to team to role mapping;
  • model.json - risk-layer assumptions and sensitivity;
  • report.json - structured report source;
  • report.pdf - default user-facing report.

Initialize with:

python scripts/init_case.py --company "Company" --role "Role" --country "Country" --employment-type employee --out runs/company-role-YYYY-MM-DD

Workflow

Phase 0 - Define scope and competing outcomes

Identify the legal employer, parent/subsidiary, business unit, product, geography, worksite, role family, employment type, reference date, and 3/6/12-month horizons.

Treat these as competing risks:

  • enterprise-wide workforce action;
  • BU/product/site closure or material contraction;
  • process redesign, outsourcing, automation, or location transfer;
  • role-family reduction;
  • person selection within a reduced role family;
  • performance process;
  • contract, internship, probation, or vendor non-renewal;
  • redeployment instead of separation.

Do not equate non-renewal with a statutory layoff. Report them separately and optionally combine them as any_involuntary_exit.

Phase 1 - Run the adaptive interview

Read references/interview_protocol.md and references/role_playbooks.md.

Ask the 12 core questions in two short rounds, then only the relevant employment-type and role-family branches. Ask 12-25 questions total in normal cases. Ask follow-ups only when they can materially change the risk interval.

Generate a question set when useful:

python scripts/questionnaire.py case.json -o questionnaire.json

For every answer record the answer, observation date, provenance, candidate confidence, and whether the candidate consents to include it in the report.

Prefer objective signals over anxiety labels. Ask what changed in budget, roadmap, workload, hiring, reporting lines, customer commitments, and future tasks.

Phase 2 - Route the company and economic model

Read references/profit_pool_model.md.

Classify the company before searching: public/private, startup, founder-controlled, diversified, PE-owned/highly leveraged, manufacturing/hardware, software/platform, project/services, regulated finance/utility, biotech/long-cycle R&D, or public/nonprofit/state-owned.

Select the correct economic denominator. Prefer contribution profit, gross profit, cash generation, backlog, utilization, plant load, funding runway, or regulatory mandate over raw revenue when appropriate.

Phase 3 - Search in eight evidence passes

Read references/research_and_evidence.md and references/jurisdiction_playbooks.md.

Generate the initial plan:

python scripts/search_plan.py case.json -o search_plan.json

Run distinct passes for:

  1. entity, legal employer, parent, subsidiaries, BU, product, and worksite;
  2. solvency, cash runway, debt, covenants, financing, and working capital;
  3. company/segment revenue, gross profit, contribution, operating profit, and guidance;
  4. margin targets, restructuring charges, synergy commitments, and capital allocation;
  5. BU/product lifecycle, customers, orders, roadmap, launches, cancellations, and strategic priority;
  6. workforce, payroll, job postings, hiring freezes, location moves, outsourcing, and automation;
  7. governance and leadership allocation history;
  8. contrary evidence and comparable-company base rates.

Prefer primary sources. Deduplicate syndicated stories by underlying claim and origin. Record unavailable but decision-relevant sources.

Phase 4 - Reconstruct profit pools and cost pressure

Build a profit-pool table by material product x geography x channel x customer type x lifecycle combinations.

For each pool estimate ranges for revenue, gross/contribution profit, cash conversion, growth, orders/retention, inventory, customer concentration, incremental investment, avoidable cost, shared-platform dependency, strategic option, regulatory value, and management commitment.

Classify the action regime as survival, margin_reset, capital_reallocation, integration, demand_capacity, performance_system, or mixed.

Do not assume a currently loss-making business is disposable. Estimate future contribution, option value, synergy, required follow-on investment, and probability management still funds the next milestone.

Phase 5 - Build the dependency graph

Map:

profit pool -> critical process -> product/project/customer/site -> team -> role family -> employment bucket

For each node assess value at risk, time until damage, redundancy, automation/outsourcing/transfer feasibility, minimum viable staffing, recovery time, knowledge loss, regulatory/safety/security obligations, and whether headcount cost is actually avoidable.

Estimate the role's layoff net benefit conceptually:

PV(avoidable loaded cost) - PV(lost contribution + execution risk + rehiring + knowledge + option value)

Use ranges. Never fabricate individual contribution numbers.

Phase 6 - Model leadership as an allocation regime

Read references/leadership_regimes.md.

Infer weights from repeated decisions, governance, compensation metrics, budget allocation, executive turnover, and responses to prior misses. Assess centralization, strategic stability, cash/margin discipline, tolerance for long-cycle options, performance mechanism, redeployment propensity, and communication predictability.

Use leadership only to update how and when cuts propagate. Operational evidence, formal targets, and product decisions dominate leadership-language evidence.

Phase 7 - Estimate risk and uncertainty

Read references/modeling_and_calibration.md.

For each horizon estimate:

P(company action) x P(unit affected | action) x P(role reduced | unit affected) x P(person selected | role reduced)

Then combine structural risk with contract/non-renewal and performance-exit hazards without double counting. Run:

python scripts/estimate_risk.py model.json -o risk_results.json

Report component probabilities, any_involuntary_exit, redeployment likelihood, evidence coverage, confidence, and the variables that drive interval width.

Numeric output requires a defined outcome/horizon, an appropriate economic model, company-pressure evidence, BU/product and role-dependency assessments, enough candidate answers to locate the role, an explicit prior/base rate, and contradictory evidence. Otherwise provide a provisional map and the next evidence needed.

Phase 8 - Produce and validate the report

Read references/report_contract.md and references/privacy_and_boundaries.md.

Populate report.json, then render:

python scripts/render_report.py report.json -o report.pdf

Render the PDF to images and inspect every page for clipping, broken CJK glyphs, poor pagination, and unreadable tables. Validate the complete bundle:

python scripts/validate_bundle.py runs/case-directory

Reporting rules

  • Lead with the 3/6/12-month outcome table and one-sentence diagnosis.
  • Show public evidence and candidate-reported evidence separately.
  • Explain why the company may cut while profitable, or retain a role inside a loss-making business.
  • Include favorable, base, and adverse scenarios.
  • State what observable developments would move the estimate up or down.
  • Include a candidate-controlled redaction note. Do not expose names or unnecessary personal detail in filenames or report metadata.
  • Never advise deception, sabotage, data extraction, or concealment from an employer.

Packaged resources

  • references/interview_protocol.md - adaptive question sequence and answer provenance.
  • references/role_playbooks.md - branch questions and economics by role family and employment type.
  • references/profit_pool_model.md - Profit-to-Headcount model and company-type routing.
  • references/leadership_regimes.md - observable leadership allocation regimes.
  • references/research_and_evidence.md - search passes, evidence grading, and contradiction checks.
  • references/jurisdiction_playbooks.md - local notice sources and search terms.
  • references/modeling_and_calibration.md - competing-risk estimation and leakage prevention.
  • references/privacy_and_boundaries.md - sensitive-data and candidate-control rules.
  • references/report_contract.md - structured report specification.
  • assets/question_bank.json and assets/report_spec.json - reusable templates.
  • schemas/*.schema.json - case, evidence, model, and report schemas.
  • scripts/*.py - initialization, routing, planning, estimation, rendering, and validation.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Estimate Layoff Risk AI skill do?

Estimate an employee, intern, contractor, or role group's 3/6/12-month involuntary job-loss risk from public company evidence and an adaptive candidate interview. Use for questions about layoff probability, role redundancy, business-unit closure, contract non-renewal, performance exits, reorganization exposure, or which jobs are safer during cost cuts. Reconstruct business economics and profit pools first, trace them through critical processes and roles, model leadership's observable allocation regime, and produce an auditable probability range rather than a false-precision verdict.

Why use Estimate Layoff Risk on TypingMind?

Because you install it once and use it with any model. Estimate Layoff Risk is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Estimate Layoff Risk in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kelvinfkr/company_skill/tree/main/skills/estimate-layoff-risk. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Estimate Layoff Risk?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Estimate Layoff Risk?

As many as you like. As long as a model supports skills, you can use Estimate Layoff Risk with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Estimate Layoff Risk AI skill free?

Yes. It is published on GitHub by kelvinfkr under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇