Agent skill

Algo Risk Altman Z

by asgard-ai-platform in asgard-ai-platform/skills

Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios.

MITAuto-check passed

Install Algo Risk Altman Z

skills CLI
$ npx skills add asgard-ai-platform/skills --skill algo-risk-altman-z -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install asgard-ai-platform/skills algo-risk-altman-z --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/algo-risk-altman-z .claude/skills/algo-risk-altman-z && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
algo-risk-altman-z
GitHub stars
242
Token cost
~1.5k tokens
SKILL.md length
593 words
Files
4 (incl. scripts, references)
Skills in repo
207
Repo updated
First seen
Licence
MIT

At a glance

Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios.

  • Works in 5 steps: Input Validation → 5: Variant Selection (MANDATORY) → Core Algorithm → …
  • The user needs to assess a companys financial distress risk
  • SKILL.md covers Overview, When to Use, Algorithm and Output Format, plus 4 more sections
  • Runs Python scripts from its folder; calls python

What it does

Algo Risk Altman Z is an agent skill from asgard-ai-platform/skills. Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios. Use this skill when the user needs to assess a company's financial distress risk, screen for bankruptcy-prone firms, or evaluate credit worthiness — even if they say 'bankruptcy prediction', 'financial distress score', or 'Z-score analysis'.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `examples/sample_input.json`, `references/z-score-variants.md` and `scripts/altman_z.py`).

The repository describes itself as: 301 open-source coding agent skills across 22 domains — methodology, judgment & gotchas packaged as Claude Agent Skills for the Asgard AI Platform. The licence is MIT.

When your agent uses it

  • The user needs to assess a companys financial distress risk
  • Screen for bankruptcy-prone firms
  • Evaluate credit worthiness — even if they say bankruptcy prediction
  • Financial distress score

Example prompts

  • “bankruptcy prediction”
  • “financial distress score”
  • “Z-score analysis”
  • “/algo-risk-altman-z”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Input Validation
  2. 5: Variant Selection (MANDATORY)
  3. Core Algorithm
  4. Verification
  5. Output

What it can do on your machine

Read from SKILL.md and the folder at commit 4e7f4f8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Algo Risk Altman Z loads about 1.5k tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 88 tokens; SKILL.md has 593 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from asgard-ai-platform/skills at commit 4e7f4f8, republished under its MIT licence (© asgard-ai-platform). 593 words, ~1,484 tokens.

Download SKILL.mdSave it as .claude/skills/algo-risk-altman-z/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
algo-risk-altman-z
description
Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios. Use this skill when the user needs to assess a company's financial distress risk, screen for bankruptcy-prone firms, or evaluate credit worthiness — even if they say 'bankruptcy prediction', 'financial distress score', or 'Z-score analysis'.
metadata.category
WP-40 風險演算法
metadata.tags
risk, altman-z-score, bankruptcy, financial-analysis

Altman Z-Score

Overview

Altman Z-Score is a linear discriminant model predicting bankruptcy probability from five financial ratios. Z = 1.2X₁ + 1.4X₂ + 3.3X₃ + 0.6X₄ + 1.0X₅. Zones: Z > 2.99 (safe), 1.81-2.99 (grey), Z < 1.81 (distress). Originally for public manufacturing firms; variants exist for private and non-manufacturing.

When to Use

Trigger conditions:

  • Screening companies for bankruptcy risk
  • Quick credit assessment using publicly available financials
  • Monitoring portfolio companies for financial distress signals

When NOT to use:

  • For financial institutions (banks, insurers) — different capital structures
  • When detailed credit scoring is needed (use logistic regression credit models)

Algorithm

IRON LAW: Z-Score Was Calibrated for PUBLIC MANUFACTURING Firms
Applying the original formula to private firms, service companies, or
emerging markets WITHOUT using the appropriate variant produces
misleading results. Use Z'-Score for private firms, Z''-Score for
non-manufacturing and emerging markets.
Phase 1: Input Validation

Extract from financial statements: working capital, retained earnings, EBIT, market cap (or book equity for private), total assets, total liabilities, sales. Gate: All five inputs available, from same reporting period.

Phase 1.5: Variant Selection (MANDATORY)

Before touching any formula, pick the right variant — this is the single most common mistake when applying Altman Z.

Firm descriptionVariantScript flag
Public manufacturing firmOriginal Z--variant original
Private manufacturing firm (no market cap)Z'--variant private
Non-manufacturing — SaaS, services, retail, tech, finance-lightZ''--variant non_manufacturing
Emerging-market firm of any kindZ''--variant non_manufacturing

If the user description contains any of these tags: "SaaS", "cloud", "software", "services", "retail", "e-commerce", "platform", "tech", "emerging market", "BRICS", "non-manufacturing" → use Z''. Do not default to the original Z just because that's the "classic" formula.

Full formulas and zone thresholds for each variant live in references/z-score-variants.md. Coefficients, X₄ definition (market cap vs book equity), and the X₅ treatment all differ between variants — they are not small tweaks to the original.

Phase 2: Core Algorithm
  1. X₁ = Working Capital / Total Assets (liquidity)
  2. X₂ = Retained Earnings / Total Assets (cumulative profitability)
  3. X₃ = EBIT / Total Assets (operating efficiency)
  4. X₄ = Market Value of Equity / Total Liabilities (leverage)
  5. X₅ = Sales / Total Assets (asset turnover)
  6. Z = 1.2X₁ + 1.4X₂ + 3.3X₃ + 0.6X₄ + 1.0X₅
Phase 3: Verification

Check: all ratios in plausible ranges. Compare Z-score against industry peers and historical trend. Gate: Z-score computed, zone classification assigned.

Phase 4: Output

Return Z-score with component breakdown and zone classification.

Output Format

json
{
  "z_score": 2.45,
  "zone": "grey",
  "components": {"X1": 0.12, "X2": 0.25, "X3": 0.08, "X4": 1.5, "X5": 0.9},
  "metadata": {"model": "original", "company": "...", "period": "2024-Q4"}
}

Examples

Sample I/O

Input: WC=200M, RE=500M, EBIT=150M, MktCap=2B, TL=1B, TA=3B, Sales=2.5B Expected: X1=0.067, X2=0.167, X3=0.05, X4=2.0, X5=0.833. Z=1.2(0.067)+1.4(0.167)+3.3(0.05)+0.6(2.0)+1.0(0.833)=2.53 → Grey zone.

Show full SKILL.md (230 more words)Show less
Edge Cases
InputExpectedWhy
Negative retained earningsLow X₂, likely distressAccumulated losses are a strong distress signal
Startup with no revenueX₅ near zeroZ-score not designed for pre-revenue companies
Asset-light tech firmMisleading X₅High revenue/low assets inflates turnover

Gotchas

  • Model age: Calibrated in 1968 on 1946-1965 data. Business models, accounting standards, and capital structures have changed. Use as one signal, not sole determinant.
  • Accounting manipulation: Z-score uses reported financials. Creative accounting (off-balance-sheet debt, revenue recognition games) can mask distress.
  • Industry differences: Capital-intensive industries naturally have lower asset turnover (X₅). Compare within industry, not across.
  • Trend matters more than level: A company moving from Z=3.5 to Z=2.1 over two years is concerning even though 2.1 is still in the grey zone.
  • Private firm variant (Z'): replaces X₄ with Book Equity / Total Liabilities and re-weights: Z' = 0.717X₁ + 0.847X₂ + 3.107X₃ + 0.420X₄ + 0.998X₅. Zone thresholds shift to 2.9 / 1.23.
  • Non-manufacturing variant (Z''): drops X₅ entirely and re-estimates the rest: Z'' = 6.56X₁ + 3.26X₂ + 6.72X₃ + 1.05X₄. Zone thresholds shift to 2.6 / 1.1. Using original Z on a SaaS / services firm inflates the score via X₅ and can mis-zone a distressed firm as safe.

Scripts

ScriptDescriptionUsage
scripts/altman_z.pyCompute Altman Z-Score and classify zonepython scripts/altman_z.py --help

Run python scripts/altman_z.py --verify to execute built-in sanity tests.

References

© asgard-ai-platform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in algo-risk-altman-z of asgard-ai-platform/skills.

  • SKILL.md
  • examples/sample_input.json
  • references/z-score-variants.md
  • scripts/altman_z.py

Open the folder on GitHubat commit 4e7f4f8

Compare with similar skills

Algo Risk Altman Z next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Algo Risk Altman Z compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Algo Risk Altman Z this skillasgard-ai-platform/skills242—~1.5kAutomated safety check: PassMIT
Apdex Score Calculatorjeremylongshore/tons-of-skills-marketplace2.8k—~578Automated safety check: PassMIT
Claw Scoreopenclaw/openclaw392k—~2.5kAutomated safety check: PassMIT
Prediction Market Oracle Researchaffaan-m/ECC277k1 repos~577Automated safety check: PassMIT
Footballbin Predictionsdavila7/claude-code-templates33k—~634Automated safety check: PassMIT
Blind Prediction LogXBuilderLAB/cheat-on-content7.2k—~4kAutomated safety check: NotesMIT

Similar skills

  • Apdex Score Calculator

    jeremylongshore/tons-of-skills-marketplace

    Calculate apdex score calculator operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~578 tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Claw Score

    openclaw/openclaw

    Audit or refresh OpenClaw maturity scorecard docs from root taxonomy, maturity scores, and QA evidence artifacts without using maintainer discrawl data or committed inventory reports.

    392k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Research prediction markets as data sources or oracle signals for products, agents, dashboards, and corporate decision intelligence.

    277k GitHub starsUsed in 1 repo~577 tokens
    Knowledge ManagementAuto-check passed
  • Footballbin Predictions

    davila7/claude-code-templates

    Get AI-powered match predictions for Premier League and Champions League including scores, next goal, and corners.

    33k GitHub stars~634 tokensUpdated yesterday
    Auto-check passed
  • Blind Prediction Log

    XBuilderLAB/cheat-on-content

    Writes an immutable blind prediction log for a finished content draft: a seven-dimension score, bucket, probability distribution and counterfactuals, scored blind by a sub-agent.

    7.2k GitHub stars~4k tokensUpdated 6 days ago
    Writing & ContentAuto-check: notes
  • Harness Score

    ruvnet/ruflo

    5-dimension harness readiness scorecard from metaharness score {path}.

    74k GitHub stars~605 tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from asgard-ai-platform/skills

All 207 skills in this repo
  • Algo Ecom Bm25

    asgard-ai-platform/skills

    Implement BM25 ranking function for e-commerce product search relevance scoring.

    242 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Mfg Cpk

    asgard-ai-platform/skills

    Calculate Cpk process capability index to assess whether a process meets specification requirements.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Price Elasticity

    asgard-ai-platform/skills

    Calculate price elasticity of demand to quantify how price changes affect sales volume.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Bayesian

    asgard-ai-platform/skills

    Apply Bayesian averaging to rank items by combining observed ratings with prior expectations.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Elo

    asgard-ai-platform/skills

    Implement Elo rating system to rank items or players from pairwise comparison outcomes.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Wilson

    asgard-ai-platform/skills

    Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Algo Risk Altman Z

What does Algo Risk Altman Z do?

Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios. Algo Risk Altman Z is an agent skill from asgard-ai-platform/skills. Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios.

When should I use Algo Risk Altman Z?

Algo Risk Altman Z fits situations like: the user needs to assess a companys financial distress risk; screen for bankruptcy-prone firms; evaluate credit worthiness — even if they say bankruptcy prediction; financial distress score.

How do I install Algo Risk Altman Z in Claude Code?

Run `npx skills add asgard-ai-platform/skills --skill algo-risk-altman-z -a claude-code`. Or copy the skill folder (algo-risk-altman-z in asgard-ai-platform/skills) into .claude/skills/algo-risk-altman-z in your project. Claude Code loads it when a task matches its description.

How do I install Algo Risk Altman Z in Codex?

Run `npx skills add asgard-ai-platform/skills --skill algo-risk-altman-z -a codex`. Or copy the skill folder (algo-risk-altman-z in asgard-ai-platform/skills) into .agents/skills/algo-risk-altman-z in your project. Codex loads it when a task matches its description.

Can I use Algo Risk Altman Z in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asgard-ai-platform/skills --skill algo-risk-altman-z -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/algo-risk-altman-z, .gemini/skills/algo-risk-altman-z, .github/skills/algo-risk-altman-z and .opencode/skills/algo-risk-altman-z in your project.

What does Algo Risk Altman Z need to run?

Going by SKILL.md and its folder, Algo Risk Altman Z needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Algo Risk Altman Z access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Algo Risk Altman Z safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Algo Risk Altman Z use?

Algo Risk Altman Z is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Algo Risk Altman Z use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 943 tokens, read only when the agent opens those files.

What are the alternatives to Algo Risk Altman Z?

Skills that share tags, products or a category with Algo Risk Altman Z: Apdex Score Calculator (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Claw Score (openclaw/openclaw, 392k stars), Prediction Market Oracle Research (affaan-m/ECC, 277k stars) and Footballbin Predictions (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Algo Risk Altman Z?

asgard-ai-platform (a GitHub organization) maintains it in asgard-ai-platform/skills, which has 242 GitHub stars. The repository holds 207 skills in this directory. The repository was last updated on June 6, 2026.

Source: asgard-ai-platform/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.