Portfolio logo

Portfolio

CommunityPopular
alsk1992
portfolio

Track your positions and P&L across prediction markets and futures exchanges

Overview

Publisheralsk1992
RepositoryCloddsBot
Skill nameportfolio
Stars
3K
Forks
353
Bundled files
1
LicenseMIT
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.

  • 1 bundled files

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

  • Open source

    Published by alsk1992 on GitHub. Read the source before you install it.

Installation

Install the Portfolio 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/alsk1992/CloddsBot/tree/main/src/skills/bundled/portfolio
  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/alsk1992/CloddsBot.git /tmp/CloddsBot
mkdir -p .claude/skills
cp -r /tmp/CloddsBot/src/skills/bundled/portfolio .claude/skills/portfolio
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

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

Portfolio Skill

Track your positions and performance across prediction markets and futures exchanges.

Commands

View Portfolio

/portfolio
/portfolio positions
/portfolio pnl

History

/portfolio history          # Last 7 days (default)
/portfolio history 30d      # Last 30 days
/portfolio history 90d      # Last 90 days

Sync Positions (Auto)

/portfolio sync

Filter by Platform

/portfolio platform polymarket
/portfolio platform binance

Risk

/portfolio risk          # Full risk metrics
/portfolio exposure      # Category exposure breakdown

Features

Position Tracking

  • Entry price and current price
  • Shares held
  • Unrealized P&L ($ and %)
  • Platform breakdown

Futures Support

  • Leverage display
  • Long/Short side indicator
  • Liquidation price
  • Notional value
  • Margin type (cross/isolated)

P&L Summary

  • Total portfolio value
  • Daily/weekly/monthly P&L
  • Best and worst performers
  • Platform-level P&L

Multi-Platform Support

Prediction Markets:

  • Polymarket (via API key)
  • Kalshi (via API key)
  • Manifold (via API key)

Futures Exchanges:

  • Hyperliquid (via wallet address + private key)
  • Binance Futures (via API key + secret)
  • Bybit (via API key + secret)
  • MEXC (via API key + secret)

Balance Tracking

  • Available and locked balance per platform
  • Polymarket: locked USDC calculated from open buy orders
  • Futures: margin used vs available

Portfolio History

  • Snapshots taken automatically during hourly cron sync
  • ASCII sparkline chart
  • Start/end value with change ($, %)
  • Peak and low values
  • Table of recent data points

Risk Analytics

  • Correlation Matrix: See how your positions correlate with each other
  • Category Exposure: Breakdown by politics, crypto, sports, economics, etc.
  • Concentration Risk: HHI score and diversification metrics
  • Hedged Pairs: Identify offsetting positions (long YES + short NO)

Whale Tracking Integration

Track what large traders are doing:

/portfolio whales        # Top whales in your markets
/portfolio follow 0x...  # Follow a whale's positions
/portfolio smart-money   # Aggregate whale activity

Crypto Whale Monitoring

Monitor large crypto transactions across chains:

/portfolio crypto-whales          # Recent whale activity
/portfolio crypto-whales solana   # Solana whales only
/portfolio crypto-whales top 10   # Top 10 by volume

Environment Variables

# Prediction Markets
POLY_API_KEY, POLY_API_SECRET, POLY_API_PASSPHRASE
KALSHI_API_KEY, KALSHI_PRIVATE_KEY

# Futures Exchanges
HL_WALLET_ADDRESS, HL_PRIVATE_KEY
BINANCE_FUTURES_KEY, BINANCE_FUTURES_SECRET
BYBIT_API_KEY, BYBIT_API_SECRET
MEXC_API_KEY, MEXC_API_SECRET

Examples

User: "What's my portfolio looking like?" → Show all positions with current prices and P&L

User: "How much am I up today?" → Calculate daily P&L across all positions

User: "What's my exposure to politics markets?" → Filter positions by category, sum exposure

User: "Show my Binance positions" → Filter to Binance futures positions with leverage info

Output Format

Portfolio Summary

Total Value: $12,450
Positions: 8
Unrealized P&L: +$320 (+2.6%)
Realized P&L: $150

Balances:
  polymarket: $2,500 ($2,100 avail, $400 locked)
  binance: $5,000 ($3,200 avail, $1,800 locked)

BTCUSDT Perp [binance]
  LONG 10x: 0.5000 @ $98,500.00
  +$250.00 (+5.1%) | liq $89,100.00

Trump 2028 [polymarket]
  Yes: 100.00 @ $0.520
  +$70.00 (+15.6%)

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

Track your positions and P&L across prediction markets and futures exchanges

Why use Portfolio on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/alsk1992/CloddsBot/tree/main/src/skills/bundled/portfolio. 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 Portfolio?

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

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

Is the Portfolio AI skill free?

Yes. It is published on GitHub by alsk1992 under the MIT license. 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 👇