Author: @skills-il
Validate, format, and convert Israeli phone numbers between local and international (+972) formats. Use when user asks to validate Israeli phone number, format phone for SMS, convert to +972, check phone prefix, or implement Israeli phone input validation in code. Handles mobile (050-058), landline (02-09), VoIP (072-077), toll-free (1-800), and star-service numbers. Do NOT use for non-Israeli phone systems or general telecom questions.
npx skills-il add skills-il/developer-tools --skill israeli-phone-formatter| Type | Prefixes | Total Digits | Example (local) |
|---|---|---|---|
| Mobile | 050-058 | 10 | 052-1234567 |
| Landline | 02-04, 08-09 | 9 | 02-6251111 |
| VoIP | 072-077 | 10 | 077-1234567 |
| Toll-free | 1-800 | 10 | 1-800-123456 |
| Premium | 1-700 | 10 | 1-700-123456 |
| Star service | *XXXX | 5-7 | *2421 |
For the full prefix allocation table per carrier, consult references/prefix-allocation.md.
Run python scripts/validate_phone.py --number {input} to validate format and identify type.
If validating manually, apply these rules:
+972 or 972 becomes leading 0Common validation errors:
0 prefix059 is not currently assigned to any carrier0 (except toll-free and star)Local to international:
0+972052-1234567 becomes +972-52-123-4567International to local:
+972 (or 972) with 0+972-2-625-1111 becomes 02-6251111Important: Toll-free (1-800), premium (1-700), and star (*) numbers cannot be dialed internationally.
When the user needs validation in code, provide a function using regex patterns from references/prefix-allocation.md. Include:
User says: "Is 052-1234567 a valid Israeli phone number?" Actions:
0521234567052 = mobile (Cellcom)User says: "Convert 02-6251111 to international format" Actions:
02625111102 = Jerusalem landline0, prepend +972
Result: +972-2-625-1111 (Jerusalem landline)User says: "Validate this list of phone numbers for my CRM import" Actions:
python scripts/validate_phone.py --batch --input contacts.csvscripts/validate_phone.py -- Validates, formats, and converts Israeli phone numbers. Supports single number validation, batch CSV processing, and format conversion between local and international. Run: python scripts/validate_phone.py --helpreferences/prefix-allocation.md -- Complete Israeli phone prefix allocation table per Ministry of Communications, including carrier assignments for mobile prefixes (050-058), area codes for landlines, VoIP ranges, and special service numbers. Consult when implementing validation or identifying carriers.Cause: Mixing up mobile (10 digits) and landline (9 digits) lengths
Solution: Mobile/VoIP numbers always have 10 digits including the 0. Landlines have 9. Count digits after stripping all formatting.
Cause: Not all 05X prefixes are allocated. 059 is currently unused.
Solution: Check references/prefix-allocation.md for current allocations. Allocated mobile: 050, 051, 052, 053, 054, 055, 056, 058.
Cause: 1-800 and 1-700 numbers are domestic-only Solution: These numbers have no international equivalent. If the user needs international reach, suggest providing a standard landline or mobile number instead.
Supported Agents
Trust Score
This skill can execute scripts and commands on your system.
1 occurrences found in code
Validate and format Israeli identification numbers including Teudat Zehut (personal ID), company numbers, amuta (non-profit) numbers, and partnership numbers. Use when user asks to validate Israeli ID, "teudat zehut", "mispar zehut", company number validation, or needs to implement Israeli ID validation in code. Includes check digit algorithm and test ID generation. Do NOT use for non-Israeli identification systems.
Guide Israeli startup operations including company formation, Innovation Authority grants, investment agreements, R&D tax benefits, and employee stock options (Option 102). Use when user asks about starting a company in Israel, IIA grants, "Innovation Authority", SAFE agreements (Israeli), convertible notes, Option 102, employee stock options in Israel, R&D tax benefits, preferred enterprise, or Israeli startup legal/financial setup. Do NOT use for non-Israeli company formation or international tax advice. Always recommend consulting with Israeli lawyer and accountant for binding decisions.
Interactive workflow for creating new skills for the skills-il organization -- guides through category selection, use case definition, folder scaffolding, YAML frontmatter generation with bilingual metadata, instruction writing, Hebrew companion creation, and validation. Use when user asks to "create a new skill", "scaffold a skill for skills-il", "write a SKILL.md", "contribute a skill", "new skill template", or "liztor skill chadash". Do NOT use for editing existing skills or creating skills for non-skills-il platforms.
Want to build your own skill? Try the Skill Creator · Submit a Skill