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

find-npm-packages

查找适用于前端检查项的npm软件包,核实下载量、最近发布时间和注册信息,将符合条件的软件包名称添加到规则文件的元数据中。

原文查看原文说明

Use when you need to find the 2-3 most popular and well-maintained npm packages relevant to a frontend checklist rule, validate they meet quality thresholds, and add them to the rule's frontmatter.

实测评分 未实测

查看安装方法

适用场景

  • 为检查项添加npm软件包引用
  • 按下载量和发布时间筛选软件包
  • 查找用于检测、修复和测试的工具

中文介绍

功能

查找与前端检查项相关的npm软件包,并将符合条件的候选项添加到规则文件中。它先了解规则要解决的问题,再调查可用于检测、修复和测试的软件包。每个候选项都必须满足三个条件:每周下载量超过10,000次、最近一次发布在18个月以内,并且已收录于npm registry。

适用场景

适合为Front-End Checklist规则补充可用于实现或验证的工具信息。如果除了相关性,还需要核实软件包的使用量和发布时间,也可以使用。通常选择两到三个软件包;符合条件的候选项不足时,可以只添加一个,也可以将字段留空。

使用示例

  • “查找适合这条规则的npm软件包,将符合条件的候选项添加到npmPackages。”
  • “综合考虑检测、修复和测试用途,最多选择三个软件包。”

注意事项

运行环境需要支持npm搜索,以及注册信息和下载量的获取。目标必须是位于指定目录结构中的规则文件。添加后使用pnpm validate:packages验证,写入的内容仅限软件包名称。

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

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好明确列出npm查询地址和文件添加范围,并提供写入后的验证步骤。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足使用curl、jq和pnpm,但未说明安装方法或验证脚本的准备方式。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月23日 评估。仅供参考,安装前请同时查看原文。

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

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

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

包含的文件(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

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

find-npm-packages

Identify, validate, and add npm package references to a Front-End Checklist rule.

What this skill does

Given a rule file or rule slug, this skill will:

  1. Understand what the rule is checking for
  2. Research which npm packages are commonly used to implement, automate, or enforce the rule
  3. Validate each candidate against quality thresholds (popularity + maintenance)
  4. Select the best 2–3 packages
  5. Add them to the rule's npmPackages frontmatter field

Quality thresholds (mandatory — do not skip)

Before selecting any package, check it against these criteria using the npm registry:

CriterionMinimum
Weekly downloads>10,000/week
Last publishWithin 18 months
npm registryMust be listed (registry.npmjs.org/{name})

Packages that fail any threshold must be excluded, regardless of how relevant they are.

Research steps

Step 1 — Understand the rule

Read the rule file: packages/content/rules/en/{category}/{slug}.mdx

Focus on:

  • What problem does this rule solve?
  • What technique, spec, or behavior does it enforce?
  • What tools or linters are mentioned in the tools: field?

Step 2 — Identify candidates

Search for packages that:

  • Detect the issue (linters, audit tools, CLI scanners)
  • Fix or implement the pattern (frameworks, utilities, polyfills)
  • Test for compliance (test utilities, CI integrations)

Use https://www.npmjs.com/search?q={keywords} and knowledge of the ecosystem to find candidates.

Prefer packages that are:

  • Part of the official toolchain (e.g., eslint, stylelint, official plugins)
  • Widely adopted across the industry
  • Actively maintained (recent commits, open issues responded to)

Step 3 — Validate each candidate

For each candidate package, fetch and verify:

# Metadata
curl https://registry.npmjs.org/{package}/latest | jq '{name, version, description}'

# Weekly downloads
curl https://api.npmjs.org/downloads/point/last-week/{package} | jq '.downloads'

Record the weekly download count and last publish date. Reject any below threshold.

Step 4 — Select 2–3 packages

  • Do not add more than 3 packages per rule
  • Prioritize diversity: prefer one detector, one fixer, one framework helper when relevant
  • If fewer than 2 pass the threshold, it's acceptable to add only 1 or leave the field empty
  • Never invent packages — only list packages that actually exist and pass validation

Step 5 — Update the rule frontmatter

Add a npmPackages array to the frontmatter with the package names only (metadata is fetched at build time):

npmPackages:
  - eslint
  - eslint-plugin-jsx-a11y
  - axe-core

Place it after tools: and before resources:.

Validation after adding

Run the validation script to confirm all packages pass thresholds:

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

If any package fails, either remove it or replace it with a better alternative.

Example output

For the rule accessibility/form-labels:

npmPackages:
  - eslint-plugin-jsx-a11y
  - axe-core
  - @testing-library/jest-dom

All three have >100k weekly downloads and were published within the last 6 months.

What NOT to do

  • ❌ Do not add packages with <10k weekly downloads
  • ❌ Do not add packages last published >18 months ago
  • ❌ Do not add more than 3 packages
  • ❌ Do not add general-purpose packages that are only tangentially related
  • ❌ Do not invent package names — verify each one exists on npm
  • ❌ Do not add the package version (it's fetched at build time)

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

404-page

免费有简介

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

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

about-page

免费有简介

检查或创建说明网站用途与运营方的介绍页面,核对组织历史、使命、专业能力及联系方式,并检查实际页面输出,找出信息缺漏。

  • 检查现有的网站介绍页面
  • 创建介绍组织与使命的页面
  • 核对页面输出中的运营方信息
thedaviddias/Front-End-Checklist7.5万2026年10月6日 更新

accessibility-testing

免费有简介

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

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

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

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

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

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

accessible-tables

免费有简介

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

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

查看 thedaviddias 的全部技能

报告此技能的问题