Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Investment Portfolio Tracking Analysis

ASecurity

Track investments with buy/sell records, allocation charts, and P/L analysis. Use when managing a stock or crypto portfolio, rebalancing, or comparing assets.

19 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentspythongobashapiperformance

Works with

api

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill investment-portfolio-tracking-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Investment Portfolio Tracking Analysis?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Investment Portfolio Tracking Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-investment-portfolio-tracking-analysis/badge)](https://www.skillsdirectory.com/skills/rondoflow-investment-portfolio-tracking-analysis)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: investment-portfolio-tracking-analysis
description: "Track investments with buy/sell records, allocation charts, and P/L analysis. Use when managing a stock or crypto portfolio, rebalancing, or comparing assets."
category: "Finance & Crypto"
author: community
version: "4.0.0"
icon: coins
---

# investment-portfolio

Investment portfolio tracker — record holdings with buy prices, track performance and P/L, view allocation charts, analyze risk, calculate DCA, manage dividends, rebalance to targets, compare assets, and view sector breakdown. All data stored locally in JSONL format.

## Commands

### `add`

Add a holding — specify ticker, number of shares, and purchase price.

```bash
scripts/script.sh add AAPL 10 175.50
scripts/script.sh add BTC 0.5 42000
```

### `remove`

Remove a holding by ticker symbol.

```bash
scripts/script.sh remove TSLA
```

### `update`

Update the current market price of a holding.

```bash
scripts/script.sh update AAPL 195.00
```

### `list`

Show all holdings with shares, buy price, and current price.

```bash
scripts/script.sh list
```

### `summary`

Portfolio summary — total value, total cost, overall P/L.

```bash
scripts/script.sh summary
```

### `allocation`

ASCII bar chart showing portfolio allocation by ticker as percentage.

```bash
scripts/script.sh allocation
```

### `performance`

Detailed gain/loss analysis per holding with percentage returns.

```bash
scripts/script.sh performance
```

### `risk`

Risk metrics — standard deviation of returns and diversification score.

```bash
scripts/script.sh risk
```

### `rebalance`

Generate buy/sell suggestions to match target allocation percentages.

```bash
scripts/script.sh rebalance '{"AAPL":40,"GOOGL":30,"BTC":30}'
```

### `dca`

Dollar-cost averaging calculator — monthly investment table over 12 months.

```bash
scripts/script.sh dca AAPL 500
```

### `dividend`

Calculate dividend yield from annual dividend and current price.

```bash
scripts/script.sh dividend AAPL 3.76 195.00
```

### `compare`

Compare two holdings side by side — shares, prices, and P/L.

```bash
scripts/script.sh compare AAPL GOOGL
```

### `sectors`

Sector breakdown with allocation chart. Uses built-in ticker-to-sector mapping.

```bash
scripts/script.sh sectors
```

### `export`

Export portfolio data as CSV.

```bash
scripts/script.sh export csv
```

### `history`

Show transaction history from the log file.

```bash
scripts/script.sh history
```

### `help`

```bash
scripts/script.sh help
```

### `version`

```bash
scripts/script.sh version
```

## Examples

```bash
# Build a portfolio
scripts/script.sh add AAPL 10 175
scripts/script.sh add GOOGL 5 140
scripts/script.sh add BTC 0.1 42000
scripts/script.sh update AAPL 195

# Analyze
scripts/script.sh summary
scripts/script.sh allocation
scripts/script.sh performance
scripts/script.sh risk

# Rebalance
scripts/script.sh rebalance '{"AAPL":50,"GOOGL":30,"BTC":20}'
scripts/script.sh compare AAPL GOOGL
scripts/script.sh sectors
```

## Configuration

| Variable | Required | Description |
|----------|----------|-------------|
| `PORTFOLIO_DIR` | No | Data directory (default: `~/.local/share/investment-portfolio/`) |

## Data Storage

All data saved in `~/.local/share/investment-portfolio/`:
- `holdings.jsonl` — Portfolio holdings (one JSON object per line)
- `history.log` — Transaction log

## Requirements

- bash 4.0+
- python3 (for JSONL processing and calculations)

All prices are manually entered — no external API calls.

---

*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →