算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
find-npm-packages在需要查找与前端检查规则相关的 2-3 个最受欢迎且维护良好的 npm packages、验证它们是否满足质量阈值并将它们添加到规则的 frontmatter 时使用。
AI 翻译
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Identify, validate, and add npm package references to a Front-End Checklist rule.
Given a rule file or rule slug, this skill will:
npmPackages frontmatter fieldBefore selecting any package, check it against these criteria using the npm registry:
| Criterion | Minimum |
|---|---|
| Weekly downloads | >10,000/week |
| Last publish | Within 18 months |
| npm registry | Must be listed (registry.npmjs.org/{name}) |
Packages that fail any threshold must be excluded, regardless of how relevant they are.
Read the rule file: packages/content/rules/en/{category}/{slug}.mdx
Focus on:
tools: field?Search for packages that:
Use https://www.npmjs.com/search?q={keywords} and knowledge of the ecosystem to find candidates.
Prefer packages that are:
eslint, stylelint, official plugins)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.
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:.
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.
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.