🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Immortal

by @majestyatenkhu

Empowers AI agents with crypto resource vitality assessment. Calls the Majestify API (crypto-health-hub) to compute Sharpe, Sortino, VaR, CVaR, drawdown, and...

Versionv1.0.0
Downloads1,051
Stars⭐ 2
TERMINAL
clawhub install immortal

πŸ“– About This Skill


name: Named Immortal description: > Empowers AI agents with crypto resource vitality assessment. Calls the Majestify API (crypto-health-hub) to compute Sharpe, Sortino, VaR, CVaR, drawdown, and other risk metrics, then classifies assets as IMMORTAL, MORTAL, or CRITICAL. Zero local dependencies β€” works anywhere with internet access. license: MIT compatibility: os: [windows, macos, linux] python: ">=3.10" metadata: openclaw: emoji: πŸ›‘οΈ version: 1.0.0 tags: - crypto-risk - resource-management - vitality-assessment - agent-intelligence - majestify requires: bins: [] packages: [] # httpx is optional; falls back to stdlib

Named Immortal: Agent Resource Intelligence

> *"To survive the infinite game, one must understand not just price, but Vitality β€” the mathematical probability of survival."*

What This Skill Does

This skill gives agents the ability to assess the financial health of crypto assets by calling the live Majestify API. It calculates institutional-grade risk metrics and classifies each asset into one of three vitality tiers:

| Tier | Criteria | Agent Recommendation | |:---|:---|:---| | πŸ›‘οΈ IMMORTAL | Sharpe > 1.2, Drawdown < 60% | Treasury / Long-term hold | | ⚠️ MORTAL | Moderate risk profile | Active management / Growth | | ☠️ CRITICAL | Drawdown > 80% or Sharpe < -1.0 | Avoid / Hedge |

Metrics Computed

All metrics are powered by the Crypto Health Hub backend (services.py):

  • Sharpe Ratio β€” Risk-adjusted return vs. risk-free rate
  • Sortino Ratio β€” Downside-only risk adjustment
  • VaR / CVaR (95%) β€” Worst-case loss scenarios
  • Cornish-Fisher VaR β€” Skewness/kurtosis-adjusted VaR
  • Max Drawdown β€” Largest peak-to-trough decline
  • Annualized Return β€” CAGR over the window
  • Skewness / Kurtosis β€” Distribution shape
  • Usage

    Basic (default: BTC + ETH, 365-day window)

    python .agent/skills/immortal/scripts/assess_vitality.py
    

    Custom assets

    python .agent/skills/immortal/scripts/assess_vitality.py --coins bitcoin ethereum solana
    

    Custom API endpoint

    python .agent/skills/immortal/scripts/assess_vitality.py --api https://crypto-health-hub.onrender.com
    

    Custom time window

    python .agent/skills/immortal/scripts/assess_vitality.py --coins bitcoin --days 90
    

    Output

    Human-readable output goes to stdout. Machine-readable JSON is emitted to stderr for agent piping:

    # Agent can capture JSON like this:
    python assess_vitality.py --coins bitcoin 2>results.json
    

    Dependencies

  • Python 3.10+ (uses match-free syntax, compatible with 3.10)
  • httpx (optional) β€” if installed, used for async HTTP. Falls back to urllib from stdlib.
  • Internet access to the Majestify API (crypto-health-hub.onrender.com)
  • Related Skills

  • immortal-api β€” Full compute-budget survival API with ledger, optimizer, policy engine, and circuit breakers.
  • financial_analysis β€” Coding standards and metric comparison guidelines.
  • πŸ’‘ Examples

    Basic (default: BTC + ETH, 365-day window)

    python .agent/skills/immortal/scripts/assess_vitality.py
    

    Custom assets

    python .agent/skills/immortal/scripts/assess_vitality.py --coins bitcoin ethereum solana
    

    Custom API endpoint

    python .agent/skills/immortal/scripts/assess_vitality.py --api https://crypto-health-hub.onrender.com
    

    Custom time window

    python .agent/skills/immortal/scripts/assess_vitality.py --coins bitcoin --days 90