{
  "schemaVersion": "1.0",
  "item": {
    "slug": "claw-portfolio",
    "name": "Claw Portfolio",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/rsoutar/claw-portfolio",
    "canonicalUrl": "https://clawhub.ai/rsoutar/claw-portfolio",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/claw-portfolio",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=claw-portfolio",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "eslint.config.mjs",
      "next.config.ts",
      "package-lock.json",
      "package.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/claw-portfolio"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/claw-portfolio",
    "agentPageUrl": "https://openagent3.xyz/skills/claw-portfolio/agent",
    "manifestUrl": "https://openagent3.xyz/skills/claw-portfolio/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/claw-portfolio/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Portfolio Tracker",
        "body": "A CLI tool for tracking stock and crypto portfolios with real-time prices, P&L, and dividend tracking."
      },
      {
        "title": "When to Use This Skill",
        "body": "Use this skill when you need to:\n\nTrack stock and crypto holdings locally\nGet real-time prices and P&L\nTrack dividend yields, Yield on Cost, and projected income\nView upcoming ex-dividend dates\nManage multiple portfolios\nExport portfolio data to CSV"
      },
      {
        "title": "Tools",
        "body": "This skill provides the following capabilities:"
      },
      {
        "title": "1. List Holdings",
        "body": "Show all holdings with current values and P&L.\n\nCommand:\n\nnpx tsx portfolio.ts list"
      },
      {
        "title": "2. Add Holding",
        "body": "Add a new stock or crypto holding.\n\nCommand:\n\nnpx tsx portfolio.ts add <symbol> <quantity> <price> <name> [type]\n\nExamples:\n\nnpx tsx portfolio.ts add AAPL 10 150 \"Apple Inc.\" stock\nnpx tsx portfolio.ts add BTC 0.5 45000 Bitcoin crypto"
      },
      {
        "title": "3. Sell Holding",
        "body": "Sell shares using FIFO (First-In-First-Out) cost basis method.\n\nCommand:\n\nnpx tsx portfolio.ts sell <symbol> <quantity> <price> [date]\n\nExamples:\n\nnpx tsx portfolio.ts sell AAPL 5 180 2025-06-01\nnpx tsx portfolio.ts sell BTC 0.25 50000"
      },
      {
        "title": "4. Transaction History",
        "body": "View sell history for all holdings or a specific symbol.\n\nCommand:\n\nnpx tsx portfolio.ts history [symbol]\n\nExamples:\n\nnpx tsx portfolio.ts history\nnpx tsx portfolio.ts history AAPL"
      },
      {
        "title": "5. P&L Summary",
        "body": "Show both realized and unrealized profit/loss.\n\nCommand:\n\nnpx tsx portfolio.ts pnl"
      },
      {
        "title": "6. Dividend Tracking",
        "body": "View detailed dividend information for stock holdings including yield, Yield on Cost (YOC), and projected annual income.\n\nCommand:\n\nnpx tsx portfolio.ts dividends"
      },
      {
        "title": "7. Dividend Summary",
        "body": "Show portfolio-level dividend summary: total projected income, weighted average yield, and Yield on Cost.\n\nCommand:\n\nnpx tsx portfolio.ts dividend-summary\n\nOutput includes:\n\nTotal projected annual income\nMonthly/quarterly income estimates\nWeighted average yield across all holdings\nPortfolio Yield on Cost\nCount of dividend-paying stocks"
      },
      {
        "title": "8. Dividend Calendar",
        "body": "View upcoming ex-dividend dates for your holdings.\n\nCommand:\n\nnpx tsx portfolio.ts calendar [days]\n\nExamples:\n\nnpx tsx portfolio.ts calendar       # Next 30 days\nnpx tsx portfolio.ts calendar 60    # Next 60 days"
      },
      {
        "title": "9. List with Dividends",
        "body": "The list command automatically fetches dividend data. Use --no-dividends flag to skip.\n\nCommands:\n\nnpx tsx portfolio.ts list           # With dividend info\nnpx tsx portfolio.ts list --no-dividends  # Skip dividends"
      },
      {
        "title": "10. Remove Holding",
        "body": "Remove a holding by symbol.\n\nCommand:\n\nnpx tsx portfolio.ts remove <symbol>"
      },
      {
        "title": "11. Portfolio Value",
        "body": "Show total portfolio value and P&L.\n\nCommand:\n\nnpx tsx portfolio.ts value"
      },
      {
        "title": "12. Manage Portfolios",
        "body": "List, switch, or create portfolios.\n\nCommands:\n\nnpx tsx portfolio.ts portfolios\nnpx tsx portfolio.ts switch \"Portfolio Name\"\nnpx tsx portfolio.ts create \"New Portfolio\"\n\nTip: After running npm link, you can use the shorter portfolio command instead of npx tsx portfolio.ts."
      },
      {
        "title": "Installation",
        "body": "First, install the required dependencies:\n\nnpm install\n\nThis will install all necessary packages including TypeScript runtime (tsx), Next.js, React, and other dependencies listed in package.json.\n\nOptional: Link the CLI globally for easier access:\n\nnpm link\n\nAfter linking, you can use portfolio <command> instead of npx tsx portfolio.ts <command>."
      },
      {
        "title": "NPM Scripts",
        "body": "npm run dev        # Start web UI (optional)\nnpm run build      # Build for production"
      },
      {
        "title": "Web UI (Optional)",
        "body": "You can also run an optional web interface with full dividend tracking support:\n\nnpm run dev\n\nThen open http://localhost:3000\n\nWeb UI Features:\n\nReal-time portfolio value and P&L tracking\nDividend summary cards (annual income, weighted yield, YOC, upcoming dates)\nDetailed dividend breakdown table per stock\nVisual calendar of upcoming ex-dividend dates\nInteractive pie chart for portfolio allocation"
      },
      {
        "title": "Data Storage",
        "body": "Portfolio data is stored locally in data/portfolio.json. The data file is created automatically on first run with an empty portfolio."
      },
      {
        "title": "Features",
        "body": "Real-time stock prices via Yahoo Finance API\nReal-time crypto prices via CoinGecko API\nMultiple portfolio support\nP&L tracking per holding\nDividend tracking (yield, YOC, projected income, ex-dates)\nCLI and optional web interface"
      }
    ],
    "body": "Portfolio Tracker\n\nA CLI tool for tracking stock and crypto portfolios with real-time prices, P&L, and dividend tracking.\n\nWhen to Use This Skill\n\nUse this skill when you need to:\n\nTrack stock and crypto holdings locally\nGet real-time prices and P&L\nTrack dividend yields, Yield on Cost, and projected income\nView upcoming ex-dividend dates\nManage multiple portfolios\nExport portfolio data to CSV\nTools\n\nThis skill provides the following capabilities:\n\n1. List Holdings\n\nShow all holdings with current values and P&L.\n\nCommand:\n\nnpx tsx portfolio.ts list\n\n2. Add Holding\n\nAdd a new stock or crypto holding.\n\nCommand:\n\nnpx tsx portfolio.ts add <symbol> <quantity> <price> <name> [type]\n\n\nExamples:\n\nnpx tsx portfolio.ts add AAPL 10 150 \"Apple Inc.\" stock\nnpx tsx portfolio.ts add BTC 0.5 45000 Bitcoin crypto\n\n3. Sell Holding\n\nSell shares using FIFO (First-In-First-Out) cost basis method.\n\nCommand:\n\nnpx tsx portfolio.ts sell <symbol> <quantity> <price> [date]\n\n\nExamples:\n\nnpx tsx portfolio.ts sell AAPL 5 180 2025-06-01\nnpx tsx portfolio.ts sell BTC 0.25 50000\n\n4. Transaction History\n\nView sell history for all holdings or a specific symbol.\n\nCommand:\n\nnpx tsx portfolio.ts history [symbol]\n\n\nExamples:\n\nnpx tsx portfolio.ts history\nnpx tsx portfolio.ts history AAPL\n\n5. P&L Summary\n\nShow both realized and unrealized profit/loss.\n\nCommand:\n\nnpx tsx portfolio.ts pnl\n\n6. Dividend Tracking\n\nView detailed dividend information for stock holdings including yield, Yield on Cost (YOC), and projected annual income.\n\nCommand:\n\nnpx tsx portfolio.ts dividends\n\n7. Dividend Summary\n\nShow portfolio-level dividend summary: total projected income, weighted average yield, and Yield on Cost.\n\nCommand:\n\nnpx tsx portfolio.ts dividend-summary\n\n\nOutput includes:\n\nTotal projected annual income\nMonthly/quarterly income estimates\nWeighted average yield across all holdings\nPortfolio Yield on Cost\nCount of dividend-paying stocks\n8. Dividend Calendar\n\nView upcoming ex-dividend dates for your holdings.\n\nCommand:\n\nnpx tsx portfolio.ts calendar [days]\n\n\nExamples:\n\nnpx tsx portfolio.ts calendar       # Next 30 days\nnpx tsx portfolio.ts calendar 60    # Next 60 days\n\n9. List with Dividends\n\nThe list command automatically fetches dividend data. Use --no-dividends flag to skip.\n\nCommands:\n\nnpx tsx portfolio.ts list           # With dividend info\nnpx tsx portfolio.ts list --no-dividends  # Skip dividends\n\n10. Remove Holding\n\nRemove a holding by symbol.\n\nCommand:\n\nnpx tsx portfolio.ts remove <symbol>\n\n11. Portfolio Value\n\nShow total portfolio value and P&L.\n\nCommand:\n\nnpx tsx portfolio.ts value\n\n12. Manage Portfolios\n\nList, switch, or create portfolios.\n\nCommands:\n\nnpx tsx portfolio.ts portfolios\nnpx tsx portfolio.ts switch \"Portfolio Name\"\nnpx tsx portfolio.ts create \"New Portfolio\"\n\n\nTip: After running npm link, you can use the shorter portfolio command instead of npx tsx portfolio.ts.\n\nInstallation\n\nFirst, install the required dependencies:\n\nnpm install\n\n\nThis will install all necessary packages including TypeScript runtime (tsx), Next.js, React, and other dependencies listed in package.json.\n\nOptional: Link the CLI globally for easier access:\n\nnpm link\n\n\nAfter linking, you can use portfolio <command> instead of npx tsx portfolio.ts <command>.\n\nNPM Scripts\nnpm run dev        # Start web UI (optional)\nnpm run build      # Build for production\n\nWeb UI (Optional)\n\nYou can also run an optional web interface with full dividend tracking support:\n\nnpm run dev\n\n\nThen open http://localhost:3000\n\nWeb UI Features:\n\nReal-time portfolio value and P&L tracking\nDividend summary cards (annual income, weighted yield, YOC, upcoming dates)\nDetailed dividend breakdown table per stock\nVisual calendar of upcoming ex-dividend dates\nInteractive pie chart for portfolio allocation\nData Storage\n\nPortfolio data is stored locally in data/portfolio.json. The data file is created automatically on first run with an empty portfolio.\n\nFeatures\nReal-time stock prices via Yahoo Finance API\nReal-time crypto prices via CoinGecko API\nMultiple portfolio support\nP&L tracking per holding\nDividend tracking (yield, YOC, projected income, ex-dates)\nCLI and optional web interface"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/rsoutar/claw-portfolio",
    "publisherUrl": "https://clawhub.ai/rsoutar/claw-portfolio",
    "owner": "rsoutar",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/claw-portfolio",
    "downloadUrl": "https://openagent3.xyz/downloads/claw-portfolio",
    "agentUrl": "https://openagent3.xyz/skills/claw-portfolio/agent",
    "manifestUrl": "https://openagent3.xyz/skills/claw-portfolio/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/claw-portfolio/agent.md"
  }
}