Mantle portfolio analyst

From Starchild-ai-agent/official-skills · View interactive version

Mantle portfolio analyst is an AI agent skill from the GitHub repository Starchild-ai-agent/official-skills. Use when a Mantle task needs wallet balances, token holdings, allowance exposure, or unlimited-approval review before a DeFi or security decision.

How to use this skill

Skill file

Mantle Portfolio Analyst

Overview

Build deterministic, read-only wallet analysis on Mantle. Enumerate balances and allowances, then highlight approval risk in a structured report.

Workflow

  1. Confirm inputs:
  1. Validate requested wallet and chain context:
  1. Determine analysis scope:
  1. Fetch native balance with mantle-cli account balance <address> --json.
  2. Fetch ERC-20 balances with mantle-cli account token-balances <address> --tokens <list> --json.
  3. Fetch token-spender allowances with mantle-cli account allowances <owner> --pairs <token:spender,...> --json.
  4. If a token's metadata is missing, use mantle-cli token info <token> --json for that token and keep missing fields as unknown when unresolved.
  5. Classify approval risk using these rules:
  1. Return a formatted report with findings, confidence, and explicit coverage/partial gaps.

Guardrails

Report Format

Always use this exact report structure, even when the user query is scoped to a specific token, spender, or subset. Omit sections only if they are genuinely empty (e.g., no allowances found), but keep all section headers. For scoped queries, populate only the relevant entries within each section and note the applied filter in the summary.

Mantle Portfolio Report
- wallet:
- network:
- chain_id:
- collected_at_utc:

Native Balance
- MNT:

Token Balances
- token: <symbol_or_label>
  address:
  balance_raw:
  decimals:
  balance_normalized:

Allowance Exposure
- token:
  spender:
  allowance_raw:
  allowance_normalized:
  risk_level: low | medium | high | critical
  rationale:

Summary
- tokens_with_balance:
- allowances_checked:
- unlimited_or_near_unlimited_count:
- key_risks:
- confidence:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.