Agent skill

Rebalancing

by JoelLewis in JoelLewis/finance_skills

Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies.

MITAuto-check passedBusiness, Finance & HR

Install Rebalancing

skills CLI
$ npx skills add JoelLewis/finance_skills --skill rebalancing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install JoelLewis/finance_skills rebalancing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/JoelLewis/finance_skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/wealth-management/skills/rebalancing .claude/skills/rebalancing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rebalancing
GitHub stars
206
Token cost
~3.9k tokens
SKILL.md length
1,979 words
Files
2 (incl. scripts)
Skills in repo
91
Repo updated
First seen
Licence
MIT

At a glance

Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies.

  • Works in 5 steps: Use cash flows: Direct new contributions… → Redirect dividends and interest:… → Rebalance with new contributions: The… → …
  • The user asks about when to rebalance
  • SKILL.md covers Core Concepts, Key Formulas, Worked Examples and Common Pitfalls, plus 2 more sections
  • Runs Python scripts from its folder; calls uv, python3 and pip

What it does

Rebalancing is an agent skill from JoelLewis/finance_skills. Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies. Use when the user asks about when to rebalance, rebalancing bands, transaction cost trade-offs, tax-efficient rebalancing, or the rebalancing premium. Also trigger when users mention 'my portfolio drifted', 'how often should I rebalance', 'rebalancing across taxable and IRA accounts', 'volatility harvesting', 'buy low sell high automatically', or ask whether to use cash flows to rebalance.

Its SKILL.md is about 3.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/rebalancing.py`).

It sits in Business, Finance & HR. The repository describes itself as: Claude Code skill plugins for financial services — 81 skills across 7 domain plugins covering investment management, compliance, advisory practice, trading, and operations. The licence is MIT.

When your agent uses it

  • The user asks about when to rebalance
  • Rebalancing bands
  • Transaction cost trade-offs
  • Tax-efficient rebalancing

Example prompts

  • “my portfolio drifted”
  • “how often should I rebalance”
  • “rebalancing across taxable and IRA accounts”
  • “/rebalancing”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Use cash flows: Direct new contributions to underweight assets and withdrawals from overweight assets
  2. Redirect dividends and interest: Reinvest income from overweight assets into underweight assets
  3. Rebalance with new contributions: The most tax-efficient method — no selling required
  4. Asset location: Hold tax-inefficient assets (bonds, REITs) in tax-deferred accounts; rebalance these freely
  5. Selective lot identification: When selling, choose tax lots with the highest cost basis (lowest gain) or lots held over one year…

What it can do on your machine

Read from SKILL.md and the folder at commit 5c498ea. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv
    • python3
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv and pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rebalancing loads about 3.9k tokens when it runs. Until then it costs about 132 tokens; SKILL.md has 1,979 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~132
When it runs · the whole SKILL.md, loaded when a task matches
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from JoelLewis/finance_skills at commit 5c498ea, republished under its MIT licence (© JoelLewis). 1,979 words, ~3,938 tokens.

Download SKILL.mdSave it as .claude/skills/rebalancing/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
rebalancing
description
Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies. Use when the user asks about when to rebalance, rebalancing bands, transaction cost trade-offs, tax-efficient rebalancing, or the rebalancing premium. Also trigger when users mention 'my portfolio drifted', 'how often should I rebalance', 'rebalancing across taxable and IRA accounts', 'volatility harvesting', 'buy low sell high automatically', or ask whether to use cash flows to rebalance.

Rebalancing

Core Concepts

Calendar Rebalancing

Rebalance at fixed time intervals regardless of drift magnitude:

  • Monthly: Tightest tracking to targets; highest transaction costs
  • Quarterly: Common institutional frequency; good balance of tracking and costs
  • Annually: Lowest cost; may allow significant drift between dates

Calendar rebalancing is simple to implement and schedule but may miss large dislocations between dates or trigger unnecessary trades when drift is minimal.

Threshold (Band) Rebalancing

Rebalance when any asset weight drifts beyond a defined tolerance band around its target:

  • Monitor weights continuously (or at regular intervals)
  • Trigger rebalancing when |w_actual - w_target| > tolerance
  • Typical bands: +/- 3% to +/- 5% (absolute) or +/- 20% to +/- 25% (relative)

Threshold rebalancing is more responsive to market dislocations and avoids unnecessary trades when markets are calm. However, it requires more frequent monitoring.

Optimal Band Width (Leland Model)

Leland (2000) derived the optimal no-trade band width as a function of transaction costs, risk aversion, and asset variance:

Band width proportional to (3 * transaction_cost / (2 * risk_aversion * variance))^(1/3)

Key intuition:

  • Higher transaction costs → wider bands (trade less)
  • Higher risk aversion → narrower bands (maintain target more tightly)
  • Higher variance → narrower bands (drift happens faster, risk of deviation is greater)
Rebalancing Premium

Systematic rebalancing generates a "volatility harvesting" or "rebalancing premium" through the buy-low/sell-high mechanism:

  • When an asset rises, its weight increases → rebalancing sells some (sell high)
  • When an asset falls, its weight decreases → rebalancing buys some (buy low)

This effect is sometimes called Shannon's Demon: in a two-asset portfolio with equal expected returns but independent volatility, the constantly rebalanced portfolio outperforms buy-and-hold. The rebalancing premium is larger when:

  • Asset volatilities are higher
  • Correlations are lower
  • Assets have similar expected returns (so mean-reversion dominates trends)

Note: The rebalancing premium is not a free lunch — it underperforms in trending markets where winners keep winning.

Transaction Costs

Costs incurred when rebalancing that reduce net returns:

  • Commissions: Per-trade or per-share fees (increasingly zero for retail)
  • Bid-ask spread: The cost of crossing the spread; wider for less liquid assets
  • Market impact: Price movement caused by the trade itself; significant for large positions in less liquid markets
  • Opportunity cost: Delay cost if rebalancing is deferred to avoid transaction costs

Total implementation cost = commissions + half-spread + market impact + opportunity cost

Tax-Efficient Rebalancing

Strategies to minimize tax impact when rebalancing in taxable accounts:

  1. Use cash flows: Direct new contributions to underweight assets and withdrawals from overweight assets
  2. Redirect dividends and interest: Reinvest income from overweight assets into underweight assets
  3. Rebalance with new contributions: The most tax-efficient method — no selling required
  4. Asset location: Hold tax-inefficient assets (bonds, REITs) in tax-deferred accounts; rebalance these freely
  5. Selective lot identification: When selling, choose tax lots with the highest cost basis (lowest gain) or lots held over one year (long-term capital gains rate)
Coordinating with Tax-Loss Harvesting (TLH)

Rebalancing and TLH should be planned together, not as separate trade lists:

  • Combine TLH sells with rebalance sells to reduce total trade count and transaction costs
  • An overweight position sitting at a loss is the ideal dual-purpose trade — the harvest and the rebalance are the same sell
  • Check open wash-sale windows before buying back or before rebalance buys in any account (including IRAs and spouse accounts)

Tax benefit = Realized loss * Marginal tax rate. For the 61-day wash-sale window, the $3,000 ordinary-income offset, replacement selection, and full TLH mechanics, see the tax-loss-harvesting skill.

Rebalancing Across Account Types

When an investor has multiple account types (taxable, IRA, 401k), optimize rebalancing by:

  • Tax-deferred accounts (IRA, 401k): Rebalance freely — no tax consequences
  • Taxable accounts: Minimize selling; use cash flows, TLH, and selective lot sales
  • Cross-account rebalancing: Consider the aggregate portfolio across all accounts and rebalance within the most tax-efficient account
Drift Tolerance Setting

Factors that determine optimal band width:

  • Tighter bands (e.g., +/- 2%): Better risk control, higher costs, appropriate for low-cost/institutional settings
  • Wider bands (e.g., +/- 10%): Lower costs, more drift risk, appropriate for taxable accounts with high tax impact
  • Asset-specific bands: More volatile assets may need wider absolute bands but tighter relative bands
Cash Flow Rebalancing

Use regular deposits or withdrawals to move toward target weights without explicit rebalancing trades:

  • Calculate current vs. target weights
  • Direct 100% of new contributions to the most underweight asset(s)
  • Process withdrawals from the most overweight asset(s)
  • This "natural rebalancing" is the most cost-effective and tax-efficient approach
Rebalancing Workflow

The concepts above describe the what and why of rebalancing. This section covers the operational how — the step-by-step process an advisor follows to execute a rebalance for a client household.

Step 1: Aggregate Household View Assemble the complete picture across all accounts (taxable brokerage, Traditional IRA, Roth IRA, 401(k), 529, trust). Calculate the household-level allocation by summing positions across all accounts, not just individual account allocations. Many drift problems are invisible at the account level but obvious at the household level.

Step 2: Asset Location Review Before proposing trades, document which account types hold which asset classes:

  • Tax-inefficient assets (bonds, REITs, high-turnover funds) should be in tax-deferred accounts
  • Tax-efficient assets (index equity ETFs, municipal bonds) should be in taxable accounts
  • Highest-growth assets should be in Roth accounts (permanent tax-free growth)

If asset location is suboptimal, the rebalance is an opportunity to improve it — but only if the tax cost of repositioning is justified by the long-term tax savings.

Step 3: Drift Analysis and Trade Generation For each asset class, calculate drift from target and compare against tolerance bands (from the IPS or firm default):

  • Generate a preliminary trade list: sell overweight positions, buy underweight positions
  • Prioritize trades by drift magnitude — address the largest deviations first
  • Check whether cash flows (pending contributions, withdrawals, dividends) can partially or fully close the drift without explicit trades

Step 4: Tax-Impact Estimation For each proposed sell trade in a taxable account, estimate the tax consequence:

  • Identify available tax lots and their holding periods (short-term vs long-term)
  • Calculate the estimated capital gain or loss for each lot using specific identification (HIFO preferred)
  • Sum the estimated tax liability across all proposed sells
  • Compare the tax cost against the risk-reduction benefit of rebalancing — defer trades where tax cost outweighs the tracking error reduction
  • Coordinate with any pending tax-loss harvesting opportunities (see tax-loss-harvesting skill)

Step 5: Cross-Account Optimization Minimize total household tax impact by choosing where to execute each trade:

  • Execute sells of appreciated positions in tax-deferred accounts when possible (no tax consequence)
  • Execute sells of depreciated positions in taxable accounts (harvest the loss)
  • Use cross-account rebalancing: if equities are overweight in the taxable account and underweight in the IRA, sell equities in the IRA and buy bonds in the IRA, rather than selling equities in the taxable account
  • Check for wash-sale conflicts: if harvesting a loss in the taxable account, ensure no purchase of a substantially identical security occurs within 30 days in any account (including IRA, 401(k), and spouse accounts)

Step 6: Before/After Comparison Generate a before/after allocation comparison for advisor review and client communication:

  • Current allocation vs target allocation vs post-rebalance allocation (three columns)
  • Estimated transaction costs (commissions, spreads)
  • Estimated tax impact (net gains/losses realized)
  • Expected tracking error reduction
  • Number of trades and accounts affected

This comparison serves as both a decision tool (does the rebalance justify its costs?) and a compliance artifact (documenting the rationale for the trades).

Step 7: Execution and Confirmation

  • Submit the approved trade list through the order management system
  • For block trades across multiple accounts, ensure fair allocation per the firm's allocation policy
  • Confirm fills and reconcile actual vs intended post-rebalance weights
  • Document the rebalance event: date, reason (scheduled, threshold trigger, or ad-hoc), trades executed, and resulting allocation
Show full SKILL.md (732 more words)Show less

Key Formulas

FormulaExpressionUse Case
Threshold Triggerw_actual - w_target
Optimal Band Widthband ~ (3tc / (2lambda*sigma^2))^(1/3)Leland optimal no-trade zone
Tax-Loss BenefitBenefit = Loss * Tax RateValue of harvested losses
Transaction CostTC = commission + spread/2 + impactTotal rebalancing cost
DriftDrift_i = w_actual_i - w_target_iWeight deviation from target
Trade SizeTrade_i = (w_target_i - w_actual_i) * Portfolio ValueDollar amount to trade
Rebalancing PremiumRP ~ (1/2) * Σ w_i * sigma_i^2 - (1/2) * sigma_p^2Volatility harvesting estimate

Worked Examples

Example 1: Threshold Rebalancing — 60/40 Portfolio

Given:

  • Target: 60% equity / 40% bonds
  • Rebalancing threshold: +/- 5% (absolute)
  • Current portfolio value: $1,000,000
  • After market movement: equity = $680,000 (68%), bonds = $320,000 (32%)

Calculate: Rebalancing trigger and required trades

Solution:

Check drift:

  • Equity drift: 68% - 60% = +8% → exceeds +5% threshold → TRIGGER
  • Bond drift: 32% - 40% = -8% → exceeds -5% threshold → TRIGGER

Target dollar amounts:

  • Equity target: 60% * $1,000,000 = $600,000
  • Bond target: 40% * $1,000,000 = $400,000

Required trades:

  • Sell equity: $680,000 - $600,000 = $80,000
  • Buy bonds: $400,000 - $320,000 = $80,000

Proceeds from equity sales fund the bond purchases. In a taxable account, check the cost basis of equity lots being sold to estimate tax impact before executing.

Example 2: Tax-Loss Harvesting Benefit

Given:

  • Position purchased for $50,000, current value $40,000
  • Unrealized loss: $10,000
  • Investor's marginal federal tax rate: 37% (ordinary income) / 20% (long-term capital gains)
  • Investor has $15,000 in realized capital gains this year

Calculate: Tax benefit of harvesting the loss

Solution:

Realized loss from sale: $10,000

Tax benefit calculation:

  • The $10,000 loss offsets $10,000 of the $15,000 in realized capital gains
  • Tax saved: $10,000 * 20% = $2,000 (assuming long-term gains rate)
  • Remaining gains: $15,000 - $10,000 = $5,000 (still taxable)

If the investor had no capital gains to offset:

  • First $3,000 offsets ordinary income: $3,000 * 37% = $1,110
  • Remaining $7,000 carries forward to future years
  • Total immediate benefit: $1,110; total eventual benefit up to $2,000+ depending on future gains

Implementation:

  1. Sell the losing position for $40,000
  2. Immediately purchase a similar but not substantially identical replacement (e.g., swap a total US stock ETF for an S&P 500 ETF)
  3. Do NOT repurchase the original security within 30 days (wash sale rule)
  4. After 31 days, may swap back to original security if preferred

Note: TLH creates a lower cost basis in the replacement security, so taxes are deferred, not eliminated. However, the time value of the tax deferral and the ability to offset gains at favorable rates makes TLH valuable.

Common Pitfalls

  • Over-rebalancing: trading too frequently erodes returns through transaction costs and taxes, especially in taxable accounts
  • Under-rebalancing: allowing excessive drift exposes the portfolio to unintended risk levels and style drift
  • Wash sale violations when tax-loss harvesting: purchasing a substantially identical security within the 61-day window triggers wash sale rules, disallowing the loss
  • Ignoring tax impact of rebalancing in taxable accounts: rebalancing by selling winners generates taxable capital gains
  • Calendar rebalancing may miss large dislocations between dates (e.g., a 20% market crash between quarterly rebalancing dates)
  • Not accounting for the rebalancing premium when comparing strategies — buy-and-hold backtests may understate rebalanced portfolio returns
  • Forgetting to consider the full 61-day wash sale window (30 days before and after the sale)
  • Rebalancing into the wrong account: selling appreciated assets in taxable accounts when the same rebalancing could be done in tax-deferred accounts

Cross-References

  • asset-allocation (wealth-management plugin): rebalancing maintains the target asset allocation over time
  • diversification (wealth-management plugin): rebalancing preserves the intended diversification structure
  • bet-sizing (wealth-management plugin): position sizes drift and need rebalancing to maintain conviction weighting
  • historical-risk (wealth-management plugin): drift changes portfolio risk profile; rebalancing controls it
  • financial-statements (wealth-management plugin): tax implications of rebalancing require understanding of tax accounting
  • tax-loss-harvesting (wealth-management plugin): TLH trades should be coordinated with rebalancing to minimize total transaction count and avoid wash-sale conflicts
  • tax-efficiency (wealth-management plugin): asset location and tax-lot selection strategies directly affect rebalancing trade decisions
  • client-review-prep (advisory-practice plugin): drift analysis and rebalancing recommendations are core agenda items in periodic client reviews

Running the script

Run with uv run scripts/rebalancing.py (the PEP 723 header resolves dependencies automatically) or with python3 scripts/rebalancing.py after pip install numpy scipy. The bare run prints a demo covering drift analysis, threshold checks, trade generation, cash flow rebalancing, transaction costs, tax-aware lot selection, Leland bands, and the rebalancing premium. Pass --verify to assert the demo outputs match this skill's worked examples (prints PASS/FAIL), or --help for an overview of the available classes. The file is primarily meant to be imported as a module (e.g., from rebalancing import DriftAnalyzer, TradeGenerator, TaxAwareLotSelector).

© JoelLewis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in plugins/wealth-management/skills/rebalancing of JoelLewis/finance_skills.

  • SKILL.md
  • scripts/rebalancing.py

Open the folder on GitHubat commit 5c498ea

Compare with similar skills

Rebalancing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rebalancing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rebalancing this skillJoelLewis/finance_skills206—~3.9kAutomated safety check: PassMIT
Technical Analysttradermonty/claude-trading-skills3k4 repos~4.6kAutomated safety check: PassMIT
Theme Detectortradermonty/claude-trading-skills3k2 repos~4.9kAutomated safety check: PassMIT
Creating Financial ModelsChen-zexi/open-ptc-agent7293 repos~1.3kAutomated safety check: PassMIT
Stock APIzhangxiangliang/stock-api2k—~507Automated safety check: PassMIT
Itr Walakaranb192/itr-wala871—~3.6kAutomated safety check: PassMIT

Similar skills

  • Technical Analyst

    tradermonty/claude-trading-skills

    This skill should be used when analyzing weekly price charts for stocks, stock indices, cryptocurrencies, or forex pairs.

    3k GitHub starsUsed in 4 repos~4.6k tokens
    Business, Finance & HRAuto-check passed
  • Theme Detector

    tradermonty/claude-trading-skills

    Detect and analyze trending market themes across sectors. An agent skill from tradermonty/claude-trading-skills.

    3k GitHub starsUsed in 2 repos~4.9k tokens
    Business, Finance & HRAuto-check passed
  • Creating Financial Models

    Chen-zexi/open-ptc-agent

    This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions

    729 GitHub starsUsed in 3 repos~1.3k tokens
    Business, Finance & HRAuto-check passed
  • Stock API

    zhangxiangliang/stock-api

    Fetch real-time stock quotes, K-line (candlestick) history, and search symbols for China A-shares, Hong Kong, and US markets.

    2k GitHub stars~507 tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Itr Wala

    karanb192/itr-wala

    File Indian income tax returns (ITR) for FY 2025-26 / AY 2026-27.

    871 GitHub stars~3.6k tokensUpdated 6 days ago
    Business, Finance & HRAuto-check passed
  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    321 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed

More from JoelLewis/finance_skills

All 91 skills in this repo
  • Asset Allocation

    JoelLewis/finance_skills

    Determine how to distribute capital across asset classes using strategic and tactical allocation frameworks.

    206 GitHub stars~2.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Bet Sizing

    JoelLewis/finance_skills

    Determine how much capital to allocate to individual positions within a portfolio.

    206 GitHub stars~2.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Commodities

    JoelLewis/finance_skills

    Analyze commodity markets including futures curve dynamics, roll yield, and supply/demand fundamentals.

    206 GitHub stars~1.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Currencies And Fx

    JoelLewis/finance_skills

    Analyze currency markets, exchange rate mechanics, and FX risk management for international portfolios.

    206 GitHub stars~1.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Debt Management

    JoelLewis/finance_skills

    Provide frameworks for managing and paying off personal debt effectively.

    206 GitHub stars~2.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Diversification

    JoelLewis/finance_skills

    Build diversified portfolios using correlation analysis, efficient frontier construction, and factor-based diversification.

    206 GitHub stars~2.3k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Rebalancing

What does Rebalancing do?

Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies. Rebalancing is an agent skill from JoelLewis/finance_skills. Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies.

When should I use Rebalancing?

Rebalancing fits situations like: the user asks about when to rebalance; rebalancing bands; transaction cost trade-offs; tax-efficient rebalancing.

How do I install Rebalancing in Claude Code?

Run `npx skills add JoelLewis/finance_skills --skill rebalancing -a claude-code`. Or copy the skill folder (plugins/wealth-management/skills/rebalancing in JoelLewis/finance_skills) into .claude/skills/rebalancing in your project. Claude Code loads it when a task matches its description.

How do I install Rebalancing in Codex?

Run `npx skills add JoelLewis/finance_skills --skill rebalancing -a codex`. Or copy the skill folder (plugins/wealth-management/skills/rebalancing in JoelLewis/finance_skills) into .agents/skills/rebalancing in your project. Codex loads it when a task matches its description.

Can I use Rebalancing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add JoelLewis/finance_skills --skill rebalancing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rebalancing, .gemini/skills/rebalancing, .github/skills/rebalancing and .opencode/skills/rebalancing in your project.

What does Rebalancing need to run?

Going by SKILL.md and its folder, Rebalancing needs Python for the scripts in its folder and the command-line tools its instructions call (uv, python3 and pip). Our summary lists: Python 3.

Does Rebalancing access the network?

SKILL.md contains no URLs. Its commands use uv and pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Rebalancing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Rebalancing use?

Rebalancing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rebalancing use?

About 3.9k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rebalancing?

Skills that share tags, products or a category with Rebalancing: Technical Analyst (tradermonty/claude-trading-skills, 3k stars), Theme Detector (tradermonty/claude-trading-skills, 3k stars), Creating Financial Models (Chen-zexi/open-ptc-agent, 729 stars) and Stock API (zhangxiangliang/stock-api, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rebalancing?

JoelLewis (a GitHub user) maintains it in JoelLewis/finance_skills, which has 206 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on July 18, 2026.

Source: JoelLewis/finance_skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.