Mantle Portfolio Analyst logo

Mantle Portfolio Analyst

Organization
Starchild-ai-agent
mantle-portfolio-analyst

Use when a Mantle task needs wallet balances, token holdings, allowance exposure, or unlimited-approval review before a DeFi or security decision.

Overview

PublisherStarchild-ai-agent
Repositoryofficial-skills
Skill namemantle-portfolio-analyst
Stars
32
Forks
13
Bundled files
3
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.

  • 3 bundled files

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

  • Open source

    Published by Starchild-ai-agent on GitHub. Read the source before you install it.

Installation

Install the Mantle Portfolio Analyst 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/Starchild-ai-agent/official-skills/tree/main/mantle/skills/mantle-portfolio-analyst
  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/Starchild-ai-agent/official-skills.git /tmp/official-skills
mkdir -p .claude/skills
cp -r /tmp/official-skills/mantle/skills/mantle-portfolio-analyst .claude/skills/mantle-portfolio-analyst
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mantle Portfolio Analyst 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 Mantle Portfolio Analyst 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 Mantle Portfolio Analyst 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.

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:
    • wallet_address
    • network (mainnet or sepolia)
    • optional token/spender scope
  2. Validate requested wallet and chain context:
    • mantle-cli registry validate <address> --json
    • mantle-cli chain info --json
    • mantle-cli chain status --json
  3. Determine analysis scope:
    • token list from user input or mantle://registry/tokens
    • spender list from user input or mantle://registry/protocols
  4. Fetch native balance with mantle-cli account balance <address> --json.
  5. Fetch ERC-20 balances with mantle-cli account token-balances <address> --tokens <list> --json.
  6. Fetch token-spender allowances with mantle-cli account allowances <owner> --pairs <token:spender,...> --json.
  7. 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.
  8. Classify approval risk using these rules:
    • low: allowance is zero, or tightly bounded and clearly below wallet balance/expected use.
    • medium: allowance is non-zero and larger than immediate expected use, but still bounded.
    • high: allowance is very large relative to expected use, or intentionally broad with unclear user intent.
    • critical: is_unlimited=true from tool output, or allowance equals/near-max integer (value >= 2^255).
    • Always include a rationale sentence with each risk label.
    • Mark spender trust as unknown unless verified from mantle://registry/protocols or user-confirmed.
    • Highlight all high and critical approvals at top of summary.
    • If token decimals are missing, classify using raw value and downgrade confidence.
  9. Return a formatted report with findings, confidence, and explicit coverage/partial gaps.

Guardrails

  • Use mantle-cli read-only commands only for this skill (mantle-cli account balance, mantle-cli account token-balances, mantle-cli account allowances, mantle-cli token info, chain/address validation helpers). Do NOT enable or connect to the MCP server.
  • Stay read-only; do not construct or send transactions.
  • Do not reference direct JSON-RPC calls (eth_*) as if they are callable tools in this workflow.
  • Do not guess token decimals or symbols if calls fail.
  • Validate checksummed addresses for wallet, token, and spender. If an address fails checksum validation or is the zero address (0x0000...0000), stop and return an error message explaining the issue -- do not proceed with queries against an invalid address.
  • Mark missing token metadata as unknown and continue.
  • If RPC responses are inconsistent, report partial coverage explicitly.
  • Keep both raw and normalized values in output. Prefer normalized values from tool responses; convert manually only when decimals are explicitly known. If decimals are unavailable, keep raw only and lower confidence.
  • Verify response chain/network matches the requested input. Detect and report partial failures via tool-level partial flags and per-entry error fields.
  • If scope is unknown and cannot be discovered, report that coverage is partial instead of inventing token or spender targets.

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.

text
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

  • references/rpc-readonly-workflow.md
  • references/allowance-risk-rules.md

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 Mantle Portfolio Analyst AI skill do?

Use when a Mantle task needs wallet balances, token holdings, allowance exposure, or unlimited-approval review before a DeFi or security decision.

Why use Mantle Portfolio Analyst on TypingMind?

Because you install it once and use it with any model. Mantle Portfolio Analyst 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 Mantle Portfolio Analyst in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Starchild-ai-agent/official-skills/tree/main/mantle/skills/mantle-portfolio-analyst. 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 Mantle Portfolio Analyst?

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 Mantle Portfolio Analyst?

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

Is the Mantle Portfolio Analyst AI skill free?

It is published on GitHub by Starchild-ai-agent. Check the repository for licensing terms. 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 👇