From ibkr-trade-analyzer
Guides China tax residents through overseas brokerage evidence and tax estimates, covering IBKR dividends, 1042-S, foreign tax credits, and filing readiness.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ibkr-trade-analyzer:china-taxThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Prepare official-source evidence reviews, informational annual China individual income tax estimates, and year-end planning reviews for China tax residents using IBKR/Flex data first. Focus on overseas income management, foreign tax credit, treaty withholding sanity checks, RMB conversion assumptions, filing evidence, and tax-planning review items.
Prepare official-source evidence reviews, informational annual China individual income tax estimates, and year-end planning reviews for China tax residents using IBKR/Flex data first. Focus on overseas income management, foreign tax credit, treaty withholding sanity checks, RMB conversion assumptions, filing evidence, and tax-planning review items.
review_required.Consult references/official-tax-rules-and-implementation-plan.md before answering detailed calculation, treaty, overseas-income management, CRS, foreign-tax-credit, or implementation questions. It contains official-source links, rule summaries, formulas, output tables, a web-app pattern review, and a staged implementation plan.
Handle these tasks as research, design, evidence preparation, and manual estimate workflows:
The automated ibkr_china_tax_annual_calc MCP tool uses IBKR Flex as the primary source for Phase 1 U.S. dividend/withholding estimates and opt-in Phase 2 STK realized-gain evidence. 1042-S is optional follow-up reconciliation/evidence check, not required input. Activity-statement reconciliation beyond loaded Flex cash transactions/trades, options, derivatives, complex corporate actions, cost-basis hazards, and non-USD dividends or gains remain manual/review-required. Use scripts/china_tax_self_check.py for deterministic local-file self-check reports. Do not claim it produces final tax filing advice; it produces evidence tables, informational estimates, and review checklists.
Use this workflow for annual reporting / 年度报税工具 requests. When slash commands are available, use /ibkr-trade-analyzer:china-tax-annual for annual filing evidence reviews.
ibkr_fetch_data; call ibkr_china_tax_annual_calc for dividend, withholding, RMB conversion, foreign-tax-credit estimates, and opt-in STK realized-gain evidence when requested.Start with U.S.-source dividends and withholding tax. Use include_realized_pnl=True only for opt-in STK realized-gain evidence/estimate workflows. Defer options, complex derivatives, corporate-action hazards, and FX gain/loss unless the user explicitly asks for planning treatment.
Use this workflow for 年前税务优化建议 / year-end planning requests. When slash commands are available, use /ibkr-trade-analyzer:china-tax-year-end-plan for neutral year-end planning reviews.
| Source | Tax year | Country | Income type | Gross original | Tax withheld original | Currency | Notes |
|---|
| Country | Category | Income RMB | China rate | China tax before credit | Foreign tax paid RMB | Creditable tax | Estimated top-up | Excess carryforward |
|---|
| Country | Income type | Gross | Withheld | Actual rate | Treaty reference | Review note |
|---|
| Area | Evidence / metric | Review point | Possible next step |
|---|
When asked to implement commands or calculators, follow test-first development:
references/official-tax-rules-and-implementation-plan.md — official-source rule summary, formulas, web-app pattern review, output tables, and staged implementation plan.scripts/china_tax_self_check.py — deterministic local-file report generator for Flex XML/CSV, 1042-S CSV, RMB FX CSV, and IBKR tax-report ZIP evidence.npx claudepluginhub esonhugh/ibkr-trade-analyzer --plugin ibkr-trade-analyzerGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Resolves in-progress git merge or rebase conflicts by analyzing history, understanding intent, and preserving both changes where possible. Runs automated checks after resolution.