Rhetra TaxGuard

Your trading bot's tax advisor. Silently monitors every trade for tax pitfalls and optimization opportunities. Delivers a daily report. Works with Alpaca, Crypto.com, Bitget, Polymarket — any trading MCP.

3,891 stars

Best use case

Rhetra TaxGuard is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Your trading bot's tax advisor. Silently monitors every trade for tax pitfalls and optimization opportunities. Delivers a daily report. Works with Alpaca, Crypto.com, Bitget, Polymarket — any trading MCP.

Teams using Rhetra TaxGuard should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/taxguard-skill/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aaronahadi23/taxguard-skill/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/taxguard-skill/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Rhetra TaxGuard Compares

Feature / AgentRhetra TaxGuardStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Your trading bot's tax advisor. Silently monitors every trade for tax pitfalls and optimization opportunities. Delivers a daily report. Works with Alpaca, Crypto.com, Bitget, Polymarket — any trading MCP.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Rhetra TaxGuard

Your trading bot's tax advisor. Silently monitors every trade for tax pitfalls and optimization opportunities. Delivers a daily report. Works with Alpaca, Crypto.com, Bitget, Polymarket — any trading MCP.

## Rules

- BEFORE executing ANY trade order on ANY connected exchange or MCP, you MUST call the TaxGuard check using `check-trade.js`. Do this SILENTLY — do not show the results to the trader unless Guardian Mode blocks the trade.
- Log every TaxGuard response locally. Accumulate disclosures throughout the day.
- DO NOT interrupt the trader with disclosures on individual trades. Let them trade in peace.
- At the end of each trading day (market close or last trade + 30 min of inactivity), compile and present a daily summary.
- If the trader asks for a report at any time, compile and present immediately.
- Guardian Mode is the ONLY exception — if the trader opted into blocking specific risks and that risk triggers, show the warning and ask for confirmation BEFORE the trade executes.
- If TaxGuard is unreachable, proceed with the trade silently. Note the gap in the daily report.

## Daily Report Format

At end of day, present:
```
═══ TAXGUARD DAILY REPORT ═══

Trades today: 12
Checks run: 12 (all passed)

⚠️  WASH SALE FLAGS (2):
  • Bought NVDA — wash sale triggered. $420 loss disallowed. 
    Sold NVDA at loss on Mar 15. 30-day window ends Apr 14.
  • Bought TSLA — wash sale triggered. $1,200 loss disallowed.
    Sold TSLA at loss on Mar 18. 30-day window ends Apr 17.

💡 OPTIMIZATION OPPORTUNITIES (1):
  • AAPL: Selling now = short-term (37% tax). Hold 14 more 
    days = long-term (15-20%). Potential savings: $510.

📊 TAX SUMMARY:
  • Realized gains today: $2,400
  • Realized losses today: $0
  • YTD gains: $47,400 | YTD losses: $5,200
  • Estimated tax owed: $11,850
  • Q1 estimated payment due: Apr 15
  • Wash sale losses disallowed today: $1,620

🛡️ GUARDIAN MODE: Wash sale blocking ON | PDT blocking OFF

═══════════════════════════════
```

## Setup

On first use:
1. Run the signup script to get a free API key instantly:
   ```bash
   node signup.js your@email.com
   ```
   This returns your API key immediately. No website visit needed.
2. Save the key for all future calls.
3. Ask: "How do you want TaxGuard to work?"
   - **Silent Monitor (default):** Checks every trade silently. Daily report at end of day. Never interrupts.
   - **Guardian Mode:** Same daily report, but also blocks specific risks before they happen:
     - Block wash sales (prevents repurchasing within 30-day loss window)
     - Block PDT triggers (prevents 4th day trade when equity < $25K)
     - Block short-term sells (prevents selling when long-term rate is days away)
4. Run a test check to verify the key works.

No key yet? Run: `node signup.js your@email.com` — first 10 checks/month free, $0.01/trade after.
## How to call TaxGuard

Before every trade, gather context from the connected trading MCP and call SILENTLY:
```bash
node check-trade.js \
  --key "YOUR_API_KEY" \
  --action "BUY 50 NVDA at market" \
  --ticker "NVDA" \
  --equity 18500 \
  --day-trades 3 \
  --exchange "alpaca" \
  --recent-sales '[{"ticker":"NVDA","date":"2026-03-15","type":"SELL","gainLoss":-420}]' \
  --positions '[{"ticker":"NVDA","acquiredDate":"2026-01-10","quantity":100,"costBasis":12000,"currentValue":13500}]' \
  --annual-gains 45000 \
  --harvested-losses 5200 \
  --total-trades 340 \
  --magi 180000
```

Store the response. Do NOT show it to the trader. Add it to the daily report accumulator.

Exception: if Guardian Mode flags fire and the outcome is BLOCKED, show the warning and ask "Proceed anyway?" before executing.

## Context fields

**Required:**
- `--key` — Rhetra API key
- `--action` — what the trade is

**Recommended:**
- `--ticker` — symbol being traded
- `--equity` — current account equity
- `--day-trades` — day trades this week
- `--exchange` — platform (alpaca, crypto.com, bitget, polymarket)
- `--recent-sales` — JSON array: sales in last 35 days
- `--positions` — JSON array: current holdings

**Tax context (unlocks advanced disclosures):**
- `--annual-gains` — total realized gains this year
- `--annual-losses` — total realized losses this year
- `--harvested-losses` — total harvested losses this year
- `--total-trades` — total trade count this year
- `--magi` — estimated MAGI
- `--filing-status` — single, married_joint, married_separate, head_of_household
- `--cost-basis` — method (FIFO, LIFO, SPECIFIC_LOT, AVG_COST)

## What TaxGuard catches

**High Priority (flagged prominently in daily report):**
- Wash sale violations (30-day window, disallowed loss amounts)
- Pattern Day Trader triggers (4th+ day trade under $25K equity)
- Holding period optimization (days to long-term rate, dollar savings)
- Short-term gain tax impact (exact tax comparison)
- Year-end tax-loss harvesting windows (November/December)

**Medium Priority (included in daily report):**
- Tax-loss harvesting opportunities
- Net Investment Income Tax (3.8% surtax threshold)
- Capital loss deduction limit ($3K cap, carryforward amount)
- Section 475(f) Trader Tax Status awareness (200+ trades/year)
- Estimated tax payment reminders (quarterly deadlines)
- Cost basis method optimization (specific lot ID savings)
- Year-end gain deferral opportunities

**Informational (noted in report):**
- Crypto taxable event reminders
- Long-term capital gains confirmations
- PDT status notices

## Trader commands

- **"Show my report"** — compile and present current day's findings immediately
- **"Show my tax summary"** — YTD gains, losses, estimated tax, wash sales
- **"What wash sales do I have?"** — open wash sale windows with dates
- **"Export tax report"** — full CSV for accountant
- **"Turn on guardian mode for wash sales"** — enable blocking mid-session
- **"Turn off guardian mode"** — disable all blocking

## Pricing

- First 10 checks/month: **FREE**
- After free tier: **$0.01 per check**
- End-of-year tax report: **$29-99**

## Strategy Assessment

During setup OR at any time, the trader can ask: "Assess my strategy" or "Review my trading plan."

Gather their strategy details and call:
```bash
curl -s -X POST "https://api.rhetra.io/api/assess-strategy" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer API_KEY" \
  -d '{
    "strategy": "Day trading NVDA, TSLA, AMD. Momentum plays.",
    "accountEquity": 18500,
    "annualIncome": 95000,
    "filingStatus": "single",
    "exchange": "alpaca",
    "tickers": ["NVDA", "TSLA", "AMD"],
    "tradesPerDay": 15,
    "holdingPeriod": "5 minutes to 2 hours"
  }'
```

Present the findings organized by severity. For each finding, show:
1. The risk name and severity
2. The problem in plain English
3. ALL solutions — numbered, actionable

After the assessment, ask: "Want me to set up Guardian Mode based on these findings?" and configure blocking for any HIGH severity risks the trader wants protected.

Related Skills

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

find-skills

3891
from openclaw/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

General Utilities

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research

agent-autonomy-kit

3891
from openclaw/skills

Stop waiting for prompts. Keep working.

Workflow & Productivity

Meeting Prep

3891
from openclaw/skills

Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.

Workflow & Productivity

self-improvement

3891
from openclaw/skills

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.

Agent Intelligence & Learning

botlearn-healthcheck

3891
from openclaw/skills

botlearn-healthcheck — BotLearn autonomous health inspector for OpenClaw instances across 5 domains (hardware, config, security, skills, autonomy); triggers on system check, health report, diagnostics, or scheduled heartbeat inspection.

DevOps & Infrastructure

linkedin-cli

3891
from openclaw/skills

A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.

Content & Documentation

notebooklm

3891
from openclaw/skills

Google NotebookLM 非官方 Python API 的 OpenClaw Skill。支持内容生成(播客、视频、幻灯片、测验、思维导图等)、文档管理和研究自动化。当用户需要使用 NotebookLM 生成音频概述、视频、学习材料或管理知识库时触发。

Data & Research

小红书长图文发布 Skill

3891
from openclaw/skills

## 概述

Content & Documentation