tax-optimize — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited tax-optimize (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
When user wants to trim a winner, don't just sell — calculate:
Taxed as ordinary income. Federal rates depend on AGI:
| AGI (single) | AGI (MFJ) | Rate |
|---|---|---|
| < $11,925 | < $23,850 | 10% |
| $11,925-48,475 | $23,850-96,950 | 12% |
| $48,475-103,350 | $96,950-206,700 | 22% |
| $103,350-197,300 | $206,700-394,600 | 24% |
| $197,300-250,525 | $394,600-501,050 | 32% |
| $250,525-626,350 | $501,050-751,600 | 35% |
| > $626,350 | > $751,600 | 37% |
Plus state tax: 0-13.3% (CA highest, TX/FL/WA = 0%) Plus NIIT (Net Investment Income Tax): 3.8% if MAGI > $200K (single) / $250K (MFJ)
Federal:
| AGI (single) | AGI (MFJ) | Rate |
|---|---|---|
| < $48,350 | < $96,700 | 0% |
| $48,350-533,400 | $96,700-600,050 | 15% |
| > $533,400 | > $600,050 | 20% |
Plus state: same as ordinary (CA does NOT distinguish LTCG) Plus NIIT: 3.8% if applicable
Ask if not provided:
# Example: 1000 shares of XYZ, avg cost $10, current $13
gain_per_share = 13 - 10 # $3
total_gain = 1000 * 3 # $3,000
# STCG (high earner, NIIT applies, CA resident as example)
stcg_rate = 0.32 + 0.038 + 0.093 # federal + NIIT + CA = ~45%
stcg_tax = total_gain * stcg_rate # ~$1,350
stcg_net = (1000 * 13) - stcg_tax # ~$11,650
# LTCG (same income bracket)
ltcg_rate = 0.15 + 0.038 + 0.093 # CA does not distinguish, still ~28%
ltcg_tax = total_gain * ltcg_rate # ~$840
ltcg_net = (1000 * 13) - ltcg_tax # ~$12,160
# Savings by waiting for LTCG
savings = stcg_tax - ltcg_tax # ~$510 per 1000 shares| Scenario | Action |
|---|---|
| Lots all > 1 year old | Sell freely (already LTCG) |
| Lots all < 1 year, market risk high | Hedge with puts, don't sell |
| Lots all < 1 year, will hit 1Y in <30d | Wait for LTCG, then sell |
| Lots all < 1 year, will hit 1Y in 60+ days | Hedge with put, hold to LTCG |
| Mixed lots (some > 1Y, some < 1Y) | Specific lot ID: sell long-term lots first |
| Position is huge (>15% portfolio) | Consider gradual sell over multiple tax years |
If broker supports (most do — IBKR, Fidelity, Schwab, Robinhood):
Example:
| Lot # | Date | Shares | Cost | Days held | Gain/share | Tax type |
|---|---|---|---|---|---|---|
| 1 | 2024-09-15 | 5,000 | $5.50 | 600 | $7.64 | LTCG |
| 2 | 2025-03-20 | 8,000 | $8.20 | 410 | $4.94 | LTCG |
| 3 | 2025-09-10 | 5,000 | $11.00 | 240 | $2.14 | STCG |
| 4 | 2026-02-15 | 3,100 | $12.50 | 80 | $0.64 | STCG |
To sell 3,000 shares: Sell from Lot 1 (LTCG + lowest tax, highest gain $/share but lowest %).
If sell triggers high STCG, consider:
Buy ATM/OTM Put instead of selling:
Example for 1,000 shares at $13:
Cost comparison:
| Strategy | Tax cost | Hedge cost | Net cost |
|---|---|---|---|
| Sell now (STCG) | ~$1,350 | $0 | -$1,350 |
| Sell after LTCG (wait) | ~$840 | $0 | -$840 |
| Buy put + hold | $0 | $300 | -$300 |
Hedge typically wins by $500-1,000+ per 1,000 shares, KEEPS upside, position intact.
If user has 浮亏 positions:
Example:
# [TICKER] Tax-Optimized Trim — [Date]
## Inputs
- Ticker: [X], Shares to sell: N
- Avg cost: $X, Current: $Y
- Income bracket: [High/Mid/Low]
- State: [CA/NY/TX/etc]
## Tax Cost Analysis
### Scenario A: Sell Now (assumes STCG)
- Gross proceeds: $XX,XXX
- Total gain: $X,XXX
- STCG tax (X% effective): $X,XXX
- **Net to bank**: $XX,XXX
### Scenario B: Wait for LTCG (sell in [date])
- Gross proceeds: $XX,XXX (assumes price stable)
- LTCG tax (Y% effective): $X,XXX
- **Net to bank**: $XX,XXX
- **Savings vs Now**: $X,XXX
### Scenario C: Hedge with Put (no sale)
- Recommended put: [TICKER] [Date] $X Put × N contracts
- Hedge cost: $XXX
- Tax cost: $0
- **Net cash impact**: -$XXX (vs -$X,XXX in Scenario A)
- **Best if**: Long-term thesis intact, just want short-term protection
## Specific Lot ID Recommendation
| Lot | Buy Date | Days held | Suggested action |
| Lot 1 | YYYY-MM-DD | XXX | Sell first (LTCG, lowest tax) |
| Lot 2 | YYYY-MM-DD | XXX | Sell next |
**Broker instruction**: "Use Specific Lot ID, sell from Lot 1 (settled date YYYY-MM-DD)"
## Tax Loss Harvesting Opportunities
- [If user has loss positions]: Sell [TICKER] to realize -$X loss, offsets gain.
## My Recommendation
[Specific action: which scenario + why + step-by-step orders]| Need | Tool |
|---|---|
| Current price | mcp__yfmcp__yfinance_get_ticker_info |
| Put options for hedge | mcp__yfmcp__yfinance_get_option_chain (puts) |
| User's specific positions | Ask user, OR review review-investment-screenshot |
analyze-stock recommends trim, BEFORE executing~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.