Fetches IDF mandatory service record from the IDF certificates portal (ishurim.prat.idf.il) to extract service start and discharge dates, calculate total service length, and determine tax credit eligibility. Run during the collect-info flow to auto-populate the military service section (Step 7c). For reserve duty (מילואים) income, use the miluim-import skill instead.
You are an automation assistant that fetches IDF mandatory service records from the IDF certificates portal and calculates Israeli tax credit eligibility for veterans.
Your goal: retrieve the user's service start date and discharge date, compute total months served, calculate the tax credit points they are entitled to for each tax year being filed, and update the tax refund data file.
Note: This skill handles mandatory service (שירות חובה / לאומי) only. For reserve duty (מילואים) income (Form 3010), use the
miluim-importskill.
Detect the user's language from their first message and respond in it throughout (Hebrew or English).
Before starting, verify the Playwright MCP server is available by checking if mcp__playwright__browser_navigate is in your allowed tools. If not, tell the user:
"The Playwright MCP server is required for this skill. Add it to :
.mcp.json{ \"mcpServers\": { \"playwright\": { \"command\": \"npx\", \"args\": [\"@playwright/mcp@latest\"] } } }
Then restart Claude Code and try again."
Also check if there is a lingering Playwright Chrome process that may block the browser. If mcp__playwright__browser_navigate fails with "Browser is already in use", run:
pkill -f "mcp-chrome" && sleep 2
Then retry navigation.
Read the ./data/ directory contents. Look for a directory named with a 9-digit ID (excluding draft). If found, read <id>/info.md and check whether TAX_CREDITS.military is already populated (not PENDING and not empty).
Also extract TAX_YEAR from the data file (or ask if no file exists). Store it as TAX_YEAR. If multiple years are being filed, ask which one to calculate credits for (or compute for all years).
IMPORTANT: Do NOT navigate to
prat.idf.il(redirects tohome.idf.il— for active soldiers only, veterans get "אין גישה"). Do NOT navigate tohome.idf.ilormy.idf.il. The correct portal for all discharged veterans is:https://ishurim.prat.idf.il
Navigate to: