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)
CODEBLOCK0
Custom assets
CODEBLOCK1
Custom API endpoint
CODEBLOCK2
Custom time window
CODEBLOCK3
Output
Human-readable output goes to stdout. Machine-readable JSON is emitted to stderr for agent piping:
CODEBLOCK4
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.
- financialanalysis — Coding standards and metric comparison guidelines.
技能名称:命名不朽者
详细描述:
命名不朽者:智能体资源情报
要在无限游戏中生存,不仅要理解价格,更要理解生命力——生存的数学概率。
技能功能
该技能使智能体能够通过调用实时 Majestify API 评估加密资产的财务健康状况。它计算机构级风险指标,并将每种资产划分为三个生命力等级之一:
| 等级 | 标准 | 智能体建议 |
|---|
| 🛡️ 不朽者 | 夏普比率 > 1.2,最大回撤 < 60% | 国库储备 / 长期持有 |
| ⚠️ 凡人者 |
中等风险特征 | 主动管理 / 增长型 |
| ☠️
危急者 | 最大回撤 > 80% 或夏普比率 < -1.0 | 规避 / 对冲 |
计算指标
所有指标均由 Crypto Health Hub 后端(services.py)提供支持:
- - 夏普比率 — 风险调整后收益与无风险利率的对比
- 索提诺比率 — 仅针对下行风险的风险调整
- 在险价值 / 条件在险价值(95%) — 最坏情况下的损失情景
- 科尼什-费希尔在险价值 — 经偏度和峰度调整的在险价值
- 最大回撤 — 从峰值到谷底的最大跌幅
- 年化收益率 — 窗口期内的复合年增长率
- 偏度 / 峰度 — 分布形态
使用方法
基础用法(默认:BTC + ETH,365天窗口)
bash
python .agent/skills/immortal/scripts/assess_vitality.py
自定义资产
bash
python .agent/skills/immortal/scripts/assess_vitality.py --coins bitcoin ethereum solana
自定义API端点
bash
python .agent/skills/immortal/scripts/assess_vitality.py --api https://crypto-health-hub.onrender.com
自定义时间窗口
bash
python .agent/skills/immortal/scripts/assess_vitality.py --coins bitcoin --days 90
输出
人类可读输出发送至 stdout。机器可读JSON发送至 stderr,供智能体管道使用:
bash
智能体可通过以下方式捕获JSON:
python assess_vitality.py --coins bitcoin 2>results.json
依赖项
- - Python 3.10+(使用无 match 语法,兼容 3.10)
- httpx(可选)— 若安装,则用于异步HTTP。否则回退至标准库中的 urllib。
- 互联网访问 Majestify API(crypto-health-hub.onrender.com)
相关技能
- - 不朽者API — 包含账本、优化器、策略引擎和断路器的完整计算预算生存API。
- 财务分析 — 编码标准和指标比较指南。