360 Secure SkillHub
360 安全技能中心

axiom-phone-e164

提供命令行与 Python 导入两种方式,解析本地或国际电话号码,按默认国家代码补全并校验长度与国家前缀,输出规范 E.164 字符串;可选用 JSON 输出,纯标准库实现,不调用 LLM。

分类:效率
kofna3369
kofna3369
热度 16.52
最近更新 2026-06-15 10:48:45

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add kofna3369/axiom-phone-e164
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
axiom-phone-e164
description
Phone number normalizer — convert any phone number to E.164 international format. Use when you need a canonical phone representation for storage or comparison. Pure stdlib, no LLM.
version
0.1.2
license
Apache-2.0

axiom-phone-e164

Version: 0.1.2 Axioma Tools

Normalizes phone numbers to the E.164 standard (e.g., +14155552671).

What this skill does

  • Parses local and international formats
  • Detects country code (default: US/CA)
  • Returns canonical E.164 string
  • Validates length and country prefix

When to use this skill

  • ✅ Normalize user-entered phone for storage
  • ✅ Deduplicate contacts
  • ✅ Format for SMS APIs (Twilio, etc.)
  • ❌ Validate if a number is reachable (separate API)

Usage

python3 axiom_phone_e164.py "(415) 555-2671"
python3 axiom_phone_e164.py "14155552671" --country US
from axiom_phone_e164 import normalize
normalize('(415) 555-2671', default_country='US')  # '+14155552671'

Validation

Check Status
Unit tests 20+ cases
Performance <100ms
Security Pure stdlib, no injection
Determinism Byte-to-byte stable
License Apache-2.0

Last updated: 2026-06-14