Use when an Indian resident's income-tax matter involves foreign shares or accounts (US stocks, RSUs, ESPP, INDmoney, Vested, 1042-S, Schedule FA, Schedule FSI or TR, Form 67, Form 44, foreign tax credit, DTAA), when screens on the ITR e-filing portal need checking while the user fills a return, or when a Schedule FA CSV upload or portal validation fails.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Tax Sarathi?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kumarrahul85-tax-sarathi)
---
name: tax-sarathi
description: Use when an Indian resident's income-tax matter involves foreign shares or accounts (US stocks, RSUs, ESPP, INDmoney, Vested, 1042-S, Schedule FA, Schedule FSI or TR, Form 67, Form 44, foreign tax credit, DTAA), when screens on the ITR e-filing portal need checking while the user fills a return, or when a Schedule FA CSV upload or portal validation fails.
version: 2.0.0
license: MIT
---
# Tax Sarathi
An add-on to the `itr-india` skill ([shivprime94/file-itr](https://github.com/shivprime94/file-itr)). `itr-india` runs the return. This skill adds foreign assets, foreign tax credit and live checking of the portal.
`itr-india` groups Form 67 and Schedule FSI/TR with non-resident returns and calls them out of scope. **Residents with foreign shares need them.** For those parts, use this skill; do not turn the user away.
## Which part to use
| Situation | Go to |
|---|---|
| Holds, or held, anything outside India | `references/foreign-assets.md` |
| Foreign dividend, interest or gain, with or without foreign tax | `references/foreign-tax-credit.md` |
| Filling the portal and wants screens checked | Live portal check, below |
| Any tax figure is needed | Tax figures, below |
## Always
- Establish residential status first. Schedule FA is for residents who are ordinarily resident.
- Name the year a rule applies to. Facts here are for AY 2026-27 (income of April 2025 to March 2026) unless marked, and were checked on 29 November 2026. For another year, re-check an official source before using a figure or date.
- Never click Submit, Pay or e-Verify, and never handle passwords or OTPs.
## Tax figures
Use the tested engine that ships with `itr-india` rather than writing slab functions from memory. The short snippet inside `itr-india`'s SKILL.md has no rebate, surcharge or marginal relief.
```python
import sys
from pathlib import Path
sys.path.append(str(Path.home() / ".claude" / "skills" / "itr-india"))
from datetime import date
from decimal import Decimal
from engine.model import Taxpayer, AgeBand, Regime
from engine.buckets import Bucket
from engine.rates import compute_tax
from engine.rules.ay2026_27 import TABLE
me = Taxpayer(ay=2027, resident=True, age_band=AgeBand.BELOW_60, regime=Regime.NEW)
r = compute_tax({Bucket.NORMAL: Decimal(1425000)}, me, TABLE, date(2026, 3, 31))
print(r.total_tax) # 97500: Rs 15 lakh salary less the Rs 75,000 standard deduction
```
- Pass **taxable** income (after deductions). `r` also has `surcharge`, `marginal_relief`, `rebate_87a` and `cess`.
- Dividends: include them in `NORMAL` and also pass `dividend_income=Decimal(...)`, so their surcharge is capped.
- Foreign tax credit is not computed. Work it out from `references/foreign-tax-credit.md`.
- If it raises `OutOfScopeError`, say so and show a hand computation.
- It covers **AY 2026-27 only**. For FY 2026-27 advance tax, say the engine does not cover it. [karanb192/itr-wala](https://github.com/karanb192/itr-wala) has a planner for that year, without foreign income.
## Live portal check (Playwright over CDP)
The user drives the browser; Claude only reads. Never click or type near Submit or payment.
1. Launch a separate debug Chrome, leaving the user's normal profile alone:
```powershell
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" -ArgumentList '--remote-debugging-port=9222', "--user-data-dir=$env:LOCALAPPDATA\ChromeDebug", 'https://eportal.incometax.gov.in'
```
2. The user logs in and fills the return in that window.
3. When the user says "check", run `pw_peek.py` (ships beside this file; needs `pip install playwright`, no browser download). It screenshots the portal tab and prints its visible text.
4. Read `pw_peek.png` as well as the text: some form values appear only in the screenshot. Compare with the computed return.
The screenshot shows PAN and income. Run the script from a private folder and delete `pw_peek.png` afterwards. Port 9222 has no password, so any program on the computer can attach: close the debug window when filing is done.
## Portal quirks (AY 2026-27 portal)
- "Category A" validation defects block submission and are usually **empty dropdowns or radio buttons** (nature of employer, secondary address, country code), not wrong numbers. Check those first.
- Some schedules (such as CG) appear only after being enabled in schedule selection. CYLA/CFL stay empty until the source schedule is confirmed.
- To find why a value is rejected: validation rules sit in lazy-loaded JavaScript files under `https://static.incometax.gov.in/iec/foreturnsay26/`. Download the file and search it for the field name (`Pattern` regexes, `Enum` lists).
- `ECONNREFUSED` on port 9222 means Chrome was not started with the debug flag. Relaunch with the command above; an already running Chrome ignores the flag.
- CSV upload quirks are in `references/foreign-assets.md`.