China Tax Loss Harvestingのロゴ

China Tax Loss Harvesting

コミュニティ
jwangkun
china-tax-loss-harvesting

Tax-loss harvesting strategies for A-share portfolios. Adapts the original tax-loss-harvesting skill for Chinese tax rules, A-share market conventions, and domestic tax treatment. Triggers on "A股税务亏损抵扣", "亏损抵扣", "tax loss harvesting China", "税务优化", "亏损抵扣策略", or "harvest tax losses [portfolio]".

Add to TypingMind

概要

公開者jwangkun
リポジトリclaude-for-financial-services-cn
スキル名china-tax-loss-harvesting
スター
834
フォーク
132
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    jwangkunがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「China Tax Loss Harvesting」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/jwangkun/claude-for-financial-services-cn/tree/main/agent-plugins/china-earnings-reviewer/skills/china-tax-loss-harvesting
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jwangkun/claude-for-financial-services-cn.git /tmp/claude-for-financial-services-cn
mkdir -p .claude/skills
cp -r /tmp/claude-for-financial-services-cn/agent-plugins/china-earnings-reviewer/skills/china-tax-loss-harvesting .claude/skills/china-tax-loss-harvesting
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでChina Tax Loss Harvestingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にChina Tax Loss Harvestingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、China Tax Loss Harvestingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

china-tax-loss-harvesting

Purpose

Implement A股税务亏损抵扣 — systematic tax-loss harvesting for Chinese investment portfolios.

Data Sources

Primary: iFind MCP (Tier-1 付费) / AkShare MCP (Tier-2 免费备选)

python
get_quote(ticker)                     → Current prices for holdings
get_historical_data(ticker)           → Cost basis / purchase history

Secondary Sources

  • Broker records — cost basis, trade history
  • Tax filings — prior year losses
  • 交易所 — tax treatment rules

Workflow

Step 1: Identify Tax-Loss Positions

Loss identification:

PositionTickerCost BasisCurrent ValueUnrealized LossLoss %
¥XX¥XX¥XXX%

Loss screening criteria:

  • Unrealized loss > 10% of cost basis
  • Loss amount significant relative to portfolio
  • Holding period appropriate for tax treatment

Step 2: Understand A-share Tax Rules

China tax treatment for securities:

ItemTax RateNotes
证券买卖价差暂免 (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:

  • Individuals: Capital gains on stocks are currently temporarily exempt (暂免征收)
  • However, losses can be used to offset gains within the same year
  • Loss carryforward rules may apply

Step 3: Calculate Tax Benefit

Tax benefit calculation:

ScenarioGainLossTaxable GainTax 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:

  • Harvesting losses can be valuable if tax rules change
  • Offsetting gains within the same year
  • Potential future tax benefit if capital gains tax is introduced

Step 4: Identify Replacement Securities

Replacement criteria:

CriterionRequirement
Same sectorSimilar industry exposure
Similar characteristicsMarket cap, growth, quality
Not substantially identicalAvoid wash sale rules
Tax-efficientConsider dividend treatment

Wash sale considerations (China):

  • No explicit wash sale rule currently
  • However, substantially identical securities may be disallowed
  • Best practice: 30-day waiting period

Step 5: Execution Strategy

Execution options:

StrategyDescriptionProsCons
Full exitSell and replaceClean loss realizationMarket risk
Partial exitReduce positionPartial benefitPartial benefit only
SwapSell loss, buy similarMaintain exposureTiming risk
DelayWait for recoveryNo transaction costsMissed opportunity

Step 6: Implementation Plan

Step-by-step plan:

StepActionTiming
1Identify loss positionsPre-year-end
2Evaluate replacement optionsPre-year-end
3Check wash sale rulesPre-year-end
4Execute salesBefore year-end
5Execute purchasesAfter sale (or simultaneously)
6Document transactionsImmediately
7File tax formsTax filing deadline

Step 7: Document for Tax Filing

Required documentation:

DocumentContent
Trade confirmationsSale and purchase tickets
Cost basis recordsPurchase prices, dates
Loss calculationsRealized loss amounts
Replacement securitiesIdentified alternatives
Market rationaleInvestment thesis

Step 8: Year-End Checklist

Year-end TLH checklist:

DateAction
NovReview portfolio for loss positions
Dec 1-15Identify replacement securities
Dec 15-20Execute loss sales
Dec 20-31Execute replacements
Dec 31Final portfolio review
JanFile tax documentation

China-Specific TLH Considerations

Current Tax Environment

FactorStatusImplication
资本利得税暂免 (temporarily exempt)Limited current benefit
印花税0.05%Cost on sale
股息红利税20% (10% for >1yr)Consider in replacement
交易佣金0.02-0.03%Trading cost

When TLH Makes Sense in China

ScenarioBenefit
Offset short-term gainsUse losses against gains
Reset cost basisLower future gains if taxed
Prepare for tax changesIf capital gains taxed in future
Portfolio rebalancingCombine with rebalancing

A-share Market Timing

ConsiderationGuidance
年末效应Year-end selling pressure
涨跌停限制May prevent execution
流动性Ensure liquidity for exit
政策窗口Tax policy change risk

TLH for Different Client Types

Individual Investors

ConsiderationGuidance
持股期限>1 year for dividend tax benefit
高频交易May trigger scrutiny
金额门槛Focus on significant positions

Institutional Investors

ConsiderationGuidance
交易成本Factor in commission impact
市场冲击Large position impact
会计处理NAV impact timing
合规审查Documentation requirements

Quality Checks

Before executing:

  • Loss positions identified
  • Tax benefit calculated
  • Replacement securities identified
  • Wash sale rules considered
  • Execution plan clear
  • Documentation prepared
  • Timing appropriate

Data Source Mode Switch: Set env var IFIND_DATA_SOURCE_MODE to control data source preference.

  • ifind-only (strict): Use iFind only, error if unavailable
  • ifind-fallback (default): iFind preferred, fallback to AkShare
  • akshare-only, wind-only (Wind only), wind-fallback (Wind first, fallback to iFind → AkShare): Skip iFind, use AkShare only

よくある質問

AIスキル「China Tax Loss Harvesting」では何ができますか?

Tax-loss harvesting strategies for A-share portfolios. Adapts the original tax-loss-harvesting skill for Chinese tax rules, A-share market conventions, and domestic tax treatment. Triggers on "A股税务亏损抵扣", "亏损抵扣", "tax loss harvesting China", "税务优化", "亏损抵扣策略", or "harvest tax losses [portfolio]".

TypingMindでChina Tax Loss Harvestingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。China Tax Loss Harvestingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにChina Tax Loss Harvestingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/jwangkun/claude-for-financial-services-cn/tree/main/agent-plugins/china-earnings-reviewer/skills/china-tax-loss-harvestingを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

China Tax Loss Harvestingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

China Tax Loss Harvestingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもChina Tax Loss Harvestingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「China Tax Loss Harvesting」は無料ですか?

はい。jwangkunがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇