Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nirholas/three.ws --skill portfolio-rebalancinggit clone --depth 1 https://github.com/nirholas/three.wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/three.ws/portfolio-rebalancing)<a href="https://agentmods.dev/skills/nirholas/three.ws/portfolio-rebalancing"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/portfolio-rebalancing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nirholas/three.ws/portfolio-rebalancing"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/portfolio-rebalancing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.00940 |
| Opus 5.5 | $0.00014 | $0.00376 |
| Sonnet 5.5 | $0.00007 | $0.00188 |
| Haiku 4.5 | $0.00003 | $0.00094 |
Grade A, and why
portfolio-rebalancing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Portfolio Rebalancing
When to use this skill
Use when the user asks about:
- Rebalancing their crypto portfolio
- Whether their current allocations are too concentrated
- Setting up a target allocation strategy
- Calculating what trades to make to reach target weights
- Deciding how often to rebalance
Rebalancing Framework
1. Current Portfolio Assessment
Gather and analyze:
- Holdings list: Each asset, quantity, and current USD value
- Current weights: Each holding as a percentage of total portfolio
- Total portfolio value: Sum of all positions
- Performance since last rebalance: Per-asset and total
- Concentration check: Any single asset > 30% of portfolio is a concentration risk flag
2. Target Allocation Design
Help define or review target weights based on risk profile:
Conservative (lower volatility):
- BTC: 40-50%, ETH: 25-30%, Stablecoins: 15-20%, Alts: 5-10%
Balanced (moderate risk):
- BTC: 30-40%, ETH: 20-25%, Large-cap alts: 15-20%, Mid-cap: 10-15%, Stablecoins: 5-10%
Aggressive (higher risk, higher potential):
- BTC: 20-25%, ETH: 15-20%, Large-cap alts: 20-25%, Mid/Small-cap: 20-30%, Stablecoins: 5%
Key constraints:
- No single alt should exceed 10% of portfolio
- Stablecoin allocation provides dry powder for opportunities
- DeFi positions (LP, staking) count toward the underlying asset allocation
3. Drift Analysis
Calculate how far each position has drifted from target:
| Asset | Target % | Current % | Drift | Action |
|---|---|---|---|---|
| BTC | 35% | 42% | +7% | Trim |
| ETH | 25% | 20% | -5% | Add |
| SOL | 10% | 15% | +5% | Trim |
| Stables | 10% | 3% | -7% | Add |
4. Rebalancing Triggers
Recommend a rebalancing approach:
- Calendar-based: Rebalance monthly or quarterly on fixed dates
- Threshold-based: Rebalance when any position drifts >5% from target (recommended)
- Hybrid: Check monthly, only act if drift exceeds threshold
- Avoid daily rebalancing — transaction costs and taxes erode returns
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 96 lines · 35 tokens per session scan A 398c678c8c45
portfolio-rebalancing is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 35 tokens to every session and 940 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
portfolio-rebalancing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| portfolio-rebalancingnirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 35 | Claude Code, Codex |
| pay-x402-servicenirholas/x402-payments-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 51 | Claude Code |
| manage-productsnorman-finance/norman-mcp-server | Skill | 66 | yesterday | MIT | A | 61 | Claude Code |
| hotel-price-drop-rebookAwardTravelFinder/mcp | Skill | 18 | today | MIT | A | 70 | Claude Code |
| pinepaulieb89/pinescript-mcp | Skill | 12 | 11d ago | MIT | A | 216 | Claude Code |
| cfo-stripe-collectionsmelaya-labs/melaya-mcp | Skill | 1 | 6d ago | Apache-2.0 | A | 90 | Claude Code |
| cfo-unit-economicsmelaya-labs/melaya-mcp | Skill | 1 | 6d ago | Apache-2.0 | A | 0 | Claude Code |