tel-mailto
它能做什么
这项技能检查网页上的联系方式,并将其转换为可点击的链接。适用于希望访客能轻松联系他们的商家负责人和网站团队。
适用场景
- ✓当联系页面显示的电话号码需要访客手动复制的时候。
- ✓当网站上的邮箱地址是纯文本而不是链接的时候。
- ✓当审核列出商家联系方式的页面的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/tel-mailto/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“网站的访客需要复制我的电话号码才能拨打。请帮我把它改成点击即可拨打的链接。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找出页面上的电话号码和邮箱,并用链接包裹它们。电话链接使用不含空格或短横线的国际格式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Tel & Mailto Links
On mobile devices, tel: and mailto: links trigger the native phone dialer and email client with one tap; plain-text contact info forces copy-paste and measurably reduces contact conversion rates.
Quick Reference
- Wrap phone numbers in
<a href="tel:+15551234567">for click-to-call on mobile devices - Wrap email addresses in
<a href="mailto:contact@example.com">for one-click email compose - Use E.164 format for
tel:links:+followed by country code and number, no spaces or dashes - Plain text phone numbers and emails require users to copy-paste — a UX and conversion friction point
Check
Scan the HTML for phone numbers (patterns like \+?[0-9\s\-().]{7,}) and email addresses ([\w.-]+@[\w.-]+\.[a-z]{2,}). Verify that phone numbers are wrapped in <a href="tel:..."> and emails in <a href="mailto:...">. Flag any that appear as plain text.
Fix
Wrap each phone number in an anchor tag: <a href="tel:+15551234567">+1 (555) 123-4567</a>. Wrap each email in: <a href="mailto:contact@example.com">contact@example.com</a>. Format tel: values using E.164 (+[country][number]) without spaces.
Explain
Explain how tel: and mailto: URI schemes work in HTML, why E.164 format is required for international compatibility, and how these links improve mobile UX and contact conversion rates.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Tel & Mailto Links. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/tel-mailto
常见问题
什么是国际电话格式?
这项技能建议使用 E.164 格式,以加号和国家代码开头,不含空格或短横线。
号码的显示外观会改变吗?
不会。可见文字可以保持不变,而链接中包含更干净的号码。
这对桌面电脑有帮助吗?
这项技能主要针对手机,在手机上点击即可打开拨号或邮件应用。
详情
作者的原始描述
Use when applies to contact pages, business listing pages, headers/footers, and any page displaying a phone number or email address. Use when auditing contact UX or schema-marked LocalBusiness pages.
热度
- GitHub 星标
- 75k
- 排名
- #3049
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。