pdx20269388

Validates email format and suggests corrections for common domain typos (e.g., gmial→gmail). Use when performing email format validation or domain typo correction.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "pdx20269388" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-538d49890e0338a61e87b9ca503a03bed35fbace40bab747d8f1b0ca7c2c6f1c. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/pdx20269388 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Validates email format and suggests corrections for common domain typos (e.g., gmial→gmail). Use when performing email format validation or domain typo correction.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: pdx20269388
slug: pdx20269388
displayName: 邮箱校验纠错
version: 1.0.0
summary: 邮箱格式校验,并对常见域名拼写错误给出纠错提示。
license: MIT
description: 校验邮箱格式并提示常见域名拼写错误(如 gmial→gmail)。当用户要邮箱校验纠错、邮箱域名纠错时使用。

邮箱校验纠错

灵感:能力工具箱 email-validate(自研)。

小四原创:基础格式检查 + 常见域名错拼建议;不替代 MX 探测,不发验证邮件。

何时使用

  • 客户邮箱失焦校验
  • 导入名单批量标红
  • gmial.com / qq.con 一类笔误提示

硬约束

  1. 先做格式合法性(简单 RFC 友好正则或 validator)。
  2. 域名错拼表可配置;命中则 suggestion 完整邮箱。
  3. 仅提示不强制改;用户可忽略。
  4. 实现要点注释标 小四原创。
  5. 与 validator-field-check 可组合:本包多了纠错层。

推荐实现

const DOMAIN_FIX: Record<string, string> = {
  'gmial.com': 'gmail.com',
  'gamil.com': 'gmail.com',
  'gnail.com': 'gmail.com',
  'qq.con': 'qq.com',
  'qq.cm': 'qq.com',
  '163.cm': '163.com',
  'outlok.com': 'outlook.com',
  'hotmial.com': 'hotmail.com',
}

export type EmailCheck =
  | { ok: true; email: string; suggestion?: string }
  | { ok: false; reason: string; suggestion?: string }

// 小四原创:格式 + 域名纠错
export function checkEmailWithTypo(input: string): EmailCheck {
  const email = String(input || '').trim().toLowerCase()
  if (!email) return { ok: false, reason: '请填写邮箱' }
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
    return { ok: false, reason: '邮箱格式不正确' }
  }
  const [local, domain] = email.split('@')
  const fixed = DOMAIN_FIX[domain]
  if (fixed) {
    return {
      ok: true,
      email,
      suggestion: `${local}@${fixed}`,
    }
  }
  return { ok: true, email }
}

Agent 步骤

  1. 失焦调用 checkEmailWithTypo。
  2. 有 suggestion 时展示「是否改为 xxx?」。
  3. 批量导入输出错误行 + 建议列。
  4. 自测:合法、非法、gmial 纠错。

不要做

  • 未授权向该地址发验证邮件。
  • 把纠错表当成「仅允许这些域名」。

附加

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决邮箱格式校验和常见域名拼写纠错的实际痛点
  • 适用于表单失焦校验、批量导入等高频场景
Trigger Precision90/100

Highlights

  • 触发描述清晰明确,覆盖邮箱校验和域名纠错两种典型场景
Structure and Standards90/100

Areas to improve

  • description 写错位置 Reported severity: Minor

    顶层 frontmatter 中 description 字段为空,实际描述内容出现在 skill_body 内部

    Recommendation: 建议将 description 内容移至顶层 frontmatter 的 description 字段

Highlights

  • 文档结构完整,包含使用场景、约束条件、实现方案和 Agent 步骤
  • 提供了清晰的 TypeScript 代码示例和自测用例
Execution Reliability90/100

Highlights

  • 提供了完整的邮箱校验和域名纠错实现逻辑
  • 包含格式合法性检查和常见域名错拼映射表
  • 异常处理合理,符合硬约束要求
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.