/china-finance:china-tax-loss-harvestingfrom china-finance
Implements tax-loss harvesting strategies for Chinese A-share portfolios, adapting to domestic tax rules and market conventions. Helps identify loss positions, calculate tax benefits, and find replacement securities.
Ships in china-finance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Implement A股税务亏损抵扣 — systematic tax-loss harvesting for Chinese investment portfolios.
get_quote(ticker) → Current prices for holdings
get_historical_data(ticker) → Cost basis / purchase history
Loss identification:
| Position | Ticker | Cost Basis | Current Value | Unrealized Loss | Loss % |
|---|---|---|---|---|---|
| ¥XX | ¥XX | ¥XX | X% |
Loss screening criteria:
China tax treatment for securities:
| Item | Tax Rate | Notes |
|---|---|---|
| 证券买卖价差 | 暂免 (temporarily exempt) | Capital gains on stocks |
| 股息红利 | 20% (持股>1年减半至10%, >1年免征) | Dividend tax |
| 基金分红 | 暂免 (some funds) | Fund distributions |
| 买卖印花税 | 0.05% (seller only) | Stamp duty |
| 证券交易佣金 | 0.02-0.03% | Commission |
Current status of capital gains tax:
Tax benefit calculation:
| Scenario | Gain | Loss | Taxable Gain | Tax Saved |
|---|---|---|---|---|
| Without TLH | ¥XX | — | ¥XX | — |
| With TLH | ¥XX | ¥XX | ¥XX | ¥XX |
| Benefit | ¥XX |
Note: In the current A-share environment where capital gains are largely exempt, tax-loss harvesting benefits may be limited. However:
Replacement criteria:
| Criterion | Requirement |
|---|---|
| Same sector | Similar industry exposure |
| Similar characteristics | Market cap, growth, quality |
| Not substantially identical | Avoid wash sale rules |
| Tax-efficient | Consider dividend treatment |
Wash sale considerations (China):
Execution options:
| Strategy | Description | Pros | Cons |
|---|---|---|---|
| Full exit | Sell and replace | Clean loss realization | Market risk |
| Partial exit | Reduce position | Partial benefit | Partial benefit only |
| Swap | Sell loss, buy similar | Maintain exposure | Timing risk |
| Delay | Wait for recovery | No transaction costs | Missed opportunity |
Step-by-step plan:
| Step | Action | Timing |
|---|---|---|
| 1 | Identify loss positions | Pre-year-end |
| 2 | Evaluate replacement options | Pre-year-end |
| 3 | Check wash sale rules | Pre-year-end |
| 4 | Execute sales | Before year-end |
| 5 | Execute purchases | After sale (or simultaneously) |
| 6 | Document transactions | Immediately |
| 7 | File tax forms | Tax filing deadline |
Required documentation:
| Document | Content |
|---|---|
| Trade confirmations | Sale and purchase tickets |
| Cost basis records | Purchase prices, dates |
| Loss calculations | Realized loss amounts |
| Replacement securities | Identified alternatives |
| Market rationale | Investment thesis |
Year-end TLH checklist:
| Date | Action |
|---|---|
| Nov | Review portfolio for loss positions |
| Dec 1-15 | Identify replacement securities |
| Dec 15-20 | Execute loss sales |
| Dec 20-31 | Execute replacements |
| Dec 31 | Final portfolio review |
| Jan | File tax documentation |
| Factor | Status | Implication |
|---|---|---|
| 资本利得税 | 暂免 (temporarily exempt) | Limited current benefit |
| 印花税 | 0.05% | Cost on sale |
| 股息红利税 | 20% (10% for >1yr) | Consider in replacement |
| 交易佣金 | 0.02-0.03% | Trading cost |
| Scenario | Benefit |
|---|---|
| Offset short-term gains | Use losses against gains |
| Reset cost basis | Lower future gains if taxed |
| Prepare for tax changes | If capital gains taxed in future |
| Portfolio rebalancing | Combine with rebalancing |
| Consideration | Guidance |
|---|---|
| 年末效应 | Year-end selling pressure |
| 涨跌停限制 | May prevent execution |
| 流动性 | Ensure liquidity for exit |
| 政策窗口 | Tax policy change risk |
| Consideration | Guidance |
|---|---|
| 持股期限 | >1 year for dividend tax benefit |
| 高频交易 | May trigger scrutiny |
| 金额门槛 | Focus on significant positions |
| Consideration | Guidance |
|---|---|
| 交易成本 | Factor in commission impact |
| 市场冲击 | Large position impact |
| 会计处理 | NAV impact timing |
| 合规审查 | Documentation requirements |
Before executing:
Data Source Mode Switch: Set env var
IFIND_DATA_SOURCE_MODEto control data source preference.
ifind-only(strict): Use iFind only, error if unavailableifind-fallback(default): iFind preferred, fallback to AkShareakshare-only, wind-only (Wind only), wind-fallback (Wind first, fallback to iFind → AkShare): Skip iFind, use AkShare only
What SKILL.md sets; muted values are Claude Code's defaults
31 skills in this plugin
/china-3-statement-modelThree-statement financial model for A-share stocks. Adapts the standard 3-statement-model methodology for Chinese accounting standards (CAS), Chinese GAAP differences, and AkShare-sourced financials. Use instead of the original 3-statement-model skill when building integrated IS/BS/CF models for Chinese listed companies./china-accrual-scheduleBuild accrual schedules for A-share companies tracking revenue recognition, expense accruals, and working capital timing. Adapted from the original accrual-schedule skill for CAS accounting and Chinese business practices. Triggers on "A股应计项目", "应计计提", "accrual schedule China", "应计账款分析", or "working capital accruals [company]"./china-audit-xlsAudit financial models and Excel workbooks for A-share analysis. Adapts the original audit-xls skill for Chinese financial modeling standards, CAS conventions, and A-share-specific checks. Triggers on "A股模型审计", "财务模型核查", "audit model China", "audit xlsx", "模型QC", or "check model [company]"./china-break-traceForensic financial analysis for A-share companies. Identifies discrepancies, potential irregularities, and earnings quality issues in Chinese financial statements. Adapted from the original break-trace skill for CAS accounting and Chinese market red flags. Triggers on "A股财务核查", "财务异常", "forensic analysis China", "财务舞弊", "earnings quality China", or "investigate [company] financials"./china-catalyst-calendarTrack upcoming catalysts for A-share coverage universe — earnings dates, regulatory announcements, sector conferences, product launches, and policy events relevant to Chinese equities. Adapted from the original catalyst-calendar skill for A-share market conventions. Triggers on "A股催化剂日历", "事件日历", "财报日历", "earnings calendar A-share", "upcoming catalysts China", or "what's coming up for [company]"./china-clean-data-xlsClean and normalize A-share financial data for modeling. Adapts the original clean-data-xls skill for Chinese financial statements, CAS conventions, and A-share data formats. Triggers on "A股数据清洗", "财务数据清洗", "clean financial data China", "数据清洗", or "normalize financial statements".5 plugins in one repository ship this exact skill · first indexed Aug 22, 2026
npx claudepluginhub jwangkun/claude-for-financial-services-cn --plugin china-financeOther plugins' skills for the same job