跳到正文
cccskills
免费在 GitHub 公开中文介绍

improve-rule

按评分标准检查 Front-End Checklist 规则文档,通过具体步骤和代码示例补全缺项,改写含糊的智能体指令,并验证文档结构。

原文查看原文说明

Use when reviewing or improving a Front-End Checklist rule MDX file to raise its quality score, fix stub prompts, add missing fields, or enrich content with real code examples.

AI 评分90分/ 100查看安装方法

适用场景

  • 扩充尚未完成的检查清单规则
  • 细化智能体的检查与修复指令
  • 提交拉取请求前检查规则结构和质量

中文介绍

功能

检查 Front-End Checklist 中的 MDX 规则文档,使开发者和智能体更容易使用。通过评分工具和结构验证找出缺项,将含糊的检查、修复和解释指令改写为明确指出 HTML 属性、CSS 或 JavaScript 操作的具体指令。同时补充要点、适用场景、相关规则、参考资料,以及正确和错误的代码示例。

适用场景

适合完善尚未写完的规则,或审查新增、修改规则的拉取请求。帮助统一内容结构,让读者依次阅读代码示例、原因说明和验证方法,并以达到质量评分的合格参考线,即至少50分为目标。

使用示例

  • “为这条规则评分,并改进缺失的内容。”
  • “细化检查和修复指令,添加正确与错误的示例。”
  • “检查标题顺序,确认最后一个二级标题是 ## Verification。”

注意事项

本技能面向 Front-End Checklist 的规则 MDX 文件。验证使用项目内的 pnpm score:rules 和 pnpm validate:rule-structure。浏览器支持说明依据项目方针及软件包提供的兼容性数据核实。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

客观评估

AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。

指令清晰度能否看出何时使用、做什么
A良好明确以规则 MDX 文件为对象,完善未完成内容及含糊指令。
步骤具体性步骤、输入输出和示例是否具体
A良好提供评分命令、八步修改流程、标题顺序及至少50分的合格标准。
安全性发送数据、删除文件、执行命令等是否有说明
A良好将编辑范围限定为规则 MDX 文件,并明确列出评分和结构验证命令。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足需要 pnpm 和项目验证脚本,但未提供环境安装步骤。

总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月23日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(2)

  • SKILL.md5.2 KB
  • references/scoring-rubric.md3.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Improve a Front-End Checklist Rule

This skill helps you review and improve the quality of rule MDX files in the Front-End Checklist project. Use it to fix stub content, write better AI prompts, and enrich rules so they score well against the quality rubric.

Quality Dimensions

Every rule is scored across these dimensions (see references/scoring-rubric.md for full details):

DimensionMaxWhat "good" looks like
prompts.check10Specific audit instruction, not generic
prompts.fix10Actionable fix steps with CSS/HTML/JS specifics
prompts.explain10Explains the why, not just restates the title
tldr53+ concise bullets, each a standalone takeaway
whyItMatters51–2 sentences, concrete user impact
aiContext5"Applies to…" — when should an agent use this?
relatedRules52+ slug + reason pairs
codeExamples103+ ✅/❌ annotated blocks in the body
bodyDepth10300+ words, not a stub
resources5External links (MDN, WCAG, articles)
prompts.codeReview5Code review workflow prompt (optional)

Base score: 100 with additional conditional V2 points. Target: ≥ 50 (passing).

Stub Prompts — What to Avoid

These patterns are automatically detected as low-quality:

  • "Verify if the project adheres to: [Rule Title]"
  • "Update the codebase to align with: [Rule Title]"
  • "Explain the importance of [Rule Title]"

Replace them with specific, actionable instructions that name the exact HTML attributes, CSS properties, or JavaScript patterns involved.

Check

Run the quality scorer on a specific rule to see its current score:

pnpm score:rules packages/content/rules/en/{category}/{slug}.mdx

Then open the MDX file and identify which dimensions are failing.

Run the structure validator as well:

pnpm validate:rule-structure packages/content/rules/en/{category}/{slug}.mdx

The rule body must follow this order:

  • intro paragraph before any H2
  • ## Code Example or ## Code Examples
  • ## Why It Matters
  • optional guidance sections
  • final ## Verification

Rule Contract V2 adds conditional sections:

  • ## Exceptions for false positives, caveats, or valid exceptions
  • ### Automated Checks and ### Manual Checks inside ## Verification when both matter
  • ## Browser Support, ## Support Notes, or ## Standards when compatibility or compliance changes implementation decisions

Use the repo browser policy plus package-backed compatibility data for browser-support notes. Do not guess support ranges from memory.

Fix

When improving a rule:

  1. Fix stub prompts first — they have the highest point value (30 pts combined)

    • check: name the exact attributes/patterns to audit
    • fix: give step-by-step remediation with code snippets
    • explain: explain the user impact, not just the technical detail
  2. Add aiContext — one sentence: "Applies to any HTML page with [X]" or "Use when reviewing [Y] in [Z] context"

  3. Add/expand tldr — 3 bullets minimum, each ending with a concrete rule of thumb

  4. Enrich body content — add ✅ good example and ❌ bad example code blocks for each concept

  5. Add relatedRules — link 2+ rules with a reason explaining the connection

  6. Add resources — MDN docs, WCAG success criteria, relevant articles

  7. Fix structure lint issues — rename final Testing/Checklist-style headings to ## Verification, keep optional guidance between Why It Matters and Verification, and never place H2 sections after Verification

  8. Add contract clarity where needed — use Exceptions, verification split, and standards/support notes only when the rule type actually benefits from them

Explain

The quality score is a proxy for how useful the rule is to both human developers and AI agents.

  • A rule with stub prompts gives Claude generic instructions — the AI can't provide targeted help
  • A rule without code examples is hard to learn from
  • A rule without aiContext won't trigger at the right moment when used as a Claude Code skill
  • A rule without relatedRules is an island — agents can't traverse the knowledge graph

High-quality rules become high-quality skills that Claude can use proactively and precisely.

Code Review

When reviewing a PR that adds or modifies rule MDX files, check:

  • No stub prompts (grep for "Verify if the project adheres to")
  • At least 3 tldr bullets
  • whyItMatters is specific (mentions user impact, not just "improves quality")
  • Body has at least one ✅ and one ❌ code example
  • ## Verification is the final H2 and ## Why It Matters appears before it
  • pnpm validate:rule-structure {file} passes
  • Score is ≥ 50: pnpm score:rules {file}

See references/scoring-rubric.md for the full scoring specification. Rule page: https://frontendchecklist.io

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

404-page

免费有简介AI 评分 100分

创建并检查自定义404页面,通过搜索、导航和主要页面链接,为访问失效或已迁移页面的访客指明去向,同时核对页面显示内容与HTTP状态码。

  • 创建自定义404页面
  • 完善失效链接的搜索与导航
  • 检查不存在的页面是否返回200
thedaviddias/Front-End-Checklist7.5万2026年10月6日 更新

Audit or create a dedicated About page that explains a website’s purpose and identifies its people or organization. Review the rendered output and supporting information, including expertise and contact details, to find gaps.

中文简介正在准备中。当前显示英语简介。

  • Reviewing a website’s About page
  • Creating a page about the organization and its mission
  • Checking how operator information appears in rendered output
thedaviddias/Front-End-Checklist7.5万2026年10月6日 更新

accessibility-testing

免费有简介AI 评分 80分

为页面和共用组件添加自动无障碍测试,检查现有测试的覆盖缺口,并将检查接入持续集成流程,以发现结构、属性问题及修改引入的新问题。

  • 检查共用组件的测试覆盖范围
  • 为页面交互测试添加无障碍检查
  • 在持续集成中运行无障碍检查
thedaviddias/Front-End-Checklist7.5万2026年10月6日 更新

accessible-authentication

免费有简介AI 评分 90分

检查从登录、多因素认证到账户恢复的完整流程,找出禁止粘贴、验证码必须手动输入等使用障碍,并协助改进认证方式。

  • 检查完整登录流程的无障碍性
  • 确认验证码粘贴与自动填充
  • 检查密码重置与账户恢复流程
thedaviddias/Front-End-Checklist7.5万2026年10月6日 更新

accessible-notifications

免费有简介AI 评分 100分

检查表单错误、完成通知和实时更新能否通过屏幕阅读器传达,核对实际显示的HTML属性、通知停留时间及关闭方式,并指出具体问题。

  • 检查表单错误是否被朗读
  • 调整完成通知的显示时间
  • 检查实时通知
thedaviddias/Front-End-Checklist7.5万2026年10月6日 更新

accessible-tables

免费有简介AI 评分 100分

检查表头与数据单元格的对应关系,将 HTML 调整为屏幕阅读器也能传达数据含义的结构。从简单表格到包含合并单元格的复杂表格都可检查。

  • 检查表格的屏幕阅读器支持
  • 检查合并单元格与表头的关联
  • 审查设计系统中的表格
thedaviddias/Front-End-Checklist7.5万2026年10月6日 更新

查看 thedaviddias 的全部技能

报告此技能的问题