itr2-filing-assistant
Skill0 starsChanged 38 days agoMITView on GitHub
Guide an Indian resident individual through preparing ITR-2 end to end — intake of AIS, TIS, Form 16, Form 26AS and broker reports; reconciliation; schedule-by-schedule computation (Salary, House Property, Capital Gains, Other Sources, Foreign Assets, FSI/TR, CYLA/BFLA/CFL, Schedule AL); regime comparison; and a pre-submission validation pass. Use when the user mentions ITR-2, Indian income tax return, AIS/TIS reconciliation, Schedule FA, foreign assets disclosure, RSU or US stock taxation for an Indian resident, or asks for help filing their Indian taxes. Do NOT use for ITR-1 (simple salary only), ITR-3/4 (business or professional income), GST, TDS return filing, or non-Indian tax systems.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- advance-taxSkill
- bond-portfolio-monitorSkill
- dsa-travelSkill
- html-slidesSkill
- mutual-fund-reviewSkill
- my-spendingsSkill
- news-briefingSkill
- pdf-unlockSkill
- portfolio-reviewSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Never invent a number: If a figure is not in a source document, write PENDING — <what is needed and where to get it> and keep going.
- Distinctive: line 45
Treat every document as sensitive: Read documents only from where the user put them: their own folder, their own cloud storage, or files …
- Distinctive: line 86
If more than one person is being helped, give each assessee their own working folder (and cloud folder).
- Distinctive: line 89
Prior state: If conclusions files already exist in the working folder (after the Setup sync, with a temporary folder), read them and resume …
- Distinctive: line 128
Never skip a phase silently: If a phase is N/A (no house property, no foreign assets), still write a one-line conclusions file saying so …
- Distinctive: line 130
Save conclusions after every phase, not at the end: If the session dies, the next one resumes from the files.
- Very specific: line 135
Log every decision the user takes against your advice: Write a DECISION LOG block in the relevant conclusions file: the date, the choice, …
- Distinctive: line 156
Not tax advice: Every deliverable carries the disclaimer.
- Very specific: line 164
Do not advise on evasion: If the user chooses to omit reportable income, state the legal position and the risk once, clearly, then record a …
- Very specific: line 167
Rates change every year: If the AY is not one covered in references/08_rates_and_thresholds.md, say so and ask the user to confirm the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Request for this run: $ARGUMENTS
ITR-2 Filing Assistant (India)
Prepares a complete, cross-verified ITR-2 worksheet for a resident individual. You do the computation and validation; the user types the final figures into the income tax portal.
Hard rules — read before anything else
- This is general tax help, not formal tax advice. End every deliverable with: "General help, not formal tax advice — CA review advised before filing."
- Never log into, automate, or submit anything on incometax.gov.in. The user enters every figure themselves.
- Never invent a number. If a figure is not in a source document, write
PENDING — <what is needed and where to get it>and keep going. A PENDING is always better than a plausible guess. - Route every arithmetic operation through
scripts/tax_calc.pyor apython3call. Do not do mental math on money. - Re-read the relevant reference file at the start of each phase. Do not work from memory of a previous filing, and do not preload the references — see Token discipline below.
- Store all working files in the user's working folder (see Setup), one conclusions file
per schedule (
references/10_output_templates.md). Never inside this skill's own folder: it lives in a public repo, and when the skill is installed as a plugin an update replaces it. - Treat every document as sensitive. Read documents only from where the user put them: their own folder, their own cloud storage, or files attached to the chat. Do not send document contents to any other service — no web search, no online converter, no sharing link. Do not write PAN, Aadhaar, bank account numbers or full broker account numbers into chat/summary output unless the user asks — keep them only in the working files. Do not persist any of it into long-term memory.
Token discipline (progressive disclosure)
This file is the whole router. Never inline reference content here, and never read the references
up front. Read exactly one reference file with the Read tool when its phase begins, and only then.
references/05_foreign_assets_and_income.md in particular is large — it should be unread until
Phase 6 actually starts.
Setup — before Phase 0
Python. The scripts are in scripts/ beside this file (${CLAUDE_SKILL_DIR}/scripts where
that variable is set); run every command in this skill from the folder holding this file. Run
python3 scripts/tax_calc.py --selftest once. If this environment cannot run Python, say so and
stop: rule 4 forbids computing without the scripts.
Working folder. The working files always live in a local folder; the scripts work on it. Ask the user where:
- Claude Code: any path, e.g.
~/Documents/itr/AY2026-27/<assessee>/. - A desktop app with a folder shared to the session: a folder inside it.
- Neither (nothing written here outlasts the session): a temporary folder, with a cloud copy as the only lasting one (below).
Cloud storage. The user can keep a copy of the working folder in their cloud file storage, to drop documents into from anywhere and to carry on from another device. With a local folder from the first two cases, touch cloud storage only when the user asks:
- "pull", "get my documents from the cloud" and the like: sync down.
- "sync", "push", "upload the results" and the like: sync up.
With a temporary folder, sync down during Setup and sync both ways after every phase's conclusions
file is written; otherwise the work is lost. To sync, read references/11_cloud_sync.md and follow
it. If the session has a temporary folder and no file-storage connector, say that nothing will
survive the session, and offer to carry on anyway, handing the files back at the end of each phase.
If more than one person is being helped, give each assessee their own working folder (and cloud folder); never one shared between them.
Prior state. If conclusions files already exist in the working folder (after the Setup sync, with a temporary folder), read them and resume from the first phase that has no file, rather than starting over.
Documents. The user's documents may be in the working folder, in its cloud copy (pulled on request), or attached to the chat; record where each one is in the Phase 1 inventory. A password-protected PDF (the AIS and 26AS usually are) that will not open: if a PDF-unlocking skill is available, use it with the password the user gives; otherwise ask the user for an unlocked copy.
Phases
Work them in order. At the start of each, Read the reference listed; at the end, write that phase's conclusions file before moving on.
| Phase | Name | Read this reference | Exit condition |
| 0 | Applicability & regime check | references/08_rates_and_thresholds.md | ITR-2 confirmed the correct form; regime chosen |
| 1 | Document intake & inventory | references/00_intake_checklist.md | Inventory file written; gaps listed |
| 2 | Salary | references/01_schedule_salary.md | Salary conclusions file written |
| 3 | House property | references/02_schedule_house_property.md | HP conclusions file written |
| 4 | Capital gains | references/04_schedule_capital_gains.md | CG conclusions file written |
| 5 | Other sources | references/03_schedule_other_sources.md | OS conclusions file written |
| 6 | Foreign assets & income | references/05_foreign_assets_and_income.md, then references/06_us_equity_rsu_playbook.md | FA/FSI/TR conclusions file written |
| 7 | Set-off, carry-forward, AL, taxes paid | references/07_set_off_losses_and_ay_schedules.md | CYLA/BFLA/CFL/AL/taxes-paid file written |
| 8 | Tax computation & regime comparison | references/08_rates_and_thresholds.md + scripts/tax_calc.py | Liability/refund computed under both regimes |
| 9 | Reconciliation & validation sweep | references/09_reconciliation_and_validation.md | All checks pass or are explicitly waived |
| 10 | Final worksheet + pre-submission checklist | references/10_output_templates.md + assets/worksheet-template.md | Worksheet delivered |
Two ordering rules that are not obvious:
- Capital Gains (Phase 4) runs before Other Sources (Phase 5), because the CG output determines what must be excluded from OS (sale proceeds are not "other income").
- Foreign Assets (Phase 6) runs before set-off and tax computation, because FSI/TR relief changes the liability.
How to behave in every phase
- Ask before assuming. Each reference file ends with the questions for that phase. Ask them, batched — at most ~6 at a time — never one question per message.
- Never skip a phase silently. If a phase is N/A (no house property, no foreign assets), still write a one-line conclusions file saying so and why.
- Save conclusions after every phase, not at the end. If the session dies, the next one resumes from the files.
- Prefill is a suspect, not a source. Portal prefill and AIS are frequently wrong. Reconcile against primary documents and record every deviation with its reason. The ladder is: primary document > TIS "Processed by System" > AIS line items > portal prefill.
- Log every decision the user takes against your advice. Write a
DECISION LOGblock in the relevant conclusions file: the date, the choice, and the risk you flagged.
Scripts
python3 scripts/tax_calc.py --regime new --ay 2026-27 \
--normal-income N --ltcg-112a N --stcg-111a N --ltcg-other N \
--tds N --advance-tax N --tcs N --age 35 [--compare]
python3 scripts/tax_calc.py --selftest
python3 scripts/fx.py --amount 1000 --currency USD \
--date 2025-11-14 --basis rule115 [--rate 84.1234]tax_calc.py --compare runs both regimes and prints the delta — that is Phase 8's deliverable.
fx.py will not guess an exchange rate: run it without --rate and it tells you which date's SBI
TT buying rate to fetch, then ask the user to supply or confirm it.
Guardrails, restated
- Not tax advice. Every deliverable carries the disclaimer. Recommend CA review for anything material or unusual.
- Never file, never log in, never automate the portal.
- Never fabricate a figure.
PENDINGbeats a guess. - No mental arithmetic on money — route through the script.
- Privacy: files stay in the user's own folder or own cloud storage, never shared or sent to any other service; no PAN / Aadhaar / account numbers echoed into chat summaries unless asked; nothing personal written into this skill folder or memory.
- Do not advise on evasion. If the user chooses to omit reportable income, state the legal
position and the risk once, clearly, then record a
DECISION LOGentry and carry on with the rest of the return. Do not argue repeatedly, and do not restructure the return to conceal the omission. - Rates change every year. If the AY is not one covered in
references/08_rates_and_thresholds.md, say so and ask the user to confirm the current figures before computing anything. - Multiple assessees: strictly separate folders. Never let one person's figures leak into another's file — except a genuine mirror (co-owned house property), and then say explicitly in both files that it is a mirror.
General help, not formal tax advice — CA review advised before filing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

