Use when creating or modifying any UI element visible to the user, reviewing HTML markup, adding interactive elements, or when Lighthouse Accessibility drops below 90.
中文简介正在准备中。当前显示原文说明。
Use when completing any task (final validation step), running audits, preparing for deployment, or when ESLint/TypeScript/build errors occur.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
This skill references the following globals — read them BEFORE starting work:
system/globals/responsiveness.md— Breakpoints, test order, anti-patterns
Testing, Validation, Code Quality, Launch Readiness
| Metric | Target | Measurement |
|---|---|---|
| Lighthouse Best Practices | >90 | Lighthouse JSON → categories.best-practices.score * 100 |
| ESLint Errors | 0 | npm run lint -- --format json |
| ESLint Warnings | 0 | npm run lint -- --format json |
| Formatting Issues | 0 | npm run format:check |
| HTML Validation Errors | 0 | npx html-validate dist/ |
# Full QA pipeline
npm run check:kpis # All static convention checks (single source of truth)
npm run lint # ESLint errors/warnings
npm run format:check # Prettier formatting
npm run check # Astro type check — covers .astro templates, which tsc alone does not
npm run build # Astro build (0 errors, 0 warnings)
Shortcut: npm run validate runs check:kpis, lint, format:check and check in sequence.
# or javascript:void(0))public/favicon.svg)public/og-image.png, 1200x630px)astro.config.mjsclient:load directives| Category | Minimum | Ideal |
|---|---|---|
| Performance | 90 | 95+ |
| Accessibility | 90 | 95+ |
| Best Practices | 90 | 95+ |
| SEO | 90 | 95+ |
These rules always apply — even under time pressure, even for "just a small update":
npm run build. "I only changed text" — content changes can also break the build (missing frontmatter fields, broken links).// eslint-disable-next-line is allowed, but only with an explanation of why the rule doesn't apply here.lint → format → tsc → build) takes under 30 seconds.Read LEARNINGS.md in this directory to avoid known anti-patterns.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Use when creating or modifying any UI element visible to the user, reviewing HTML markup, adding interactive elements, or when Lighthouse Accessibility drops below 90.
中文简介正在准备中。当前显示原文说明。
Use when creating or modifying .astro/.tsx files, configuring astro.config.mjs, working with Content Collections, or when TypeScript or build errors occur.
中文简介正在准备中。当前显示原文说明。
Use when creating or editing pages, blog posts, or content files, adding meta tags, or when Lighthouse SEO drops below 90.
中文简介正在准备中。当前显示原文说明。
Use when starting work on an AstroDeck project, needing to understand the project structure, or looking up available components, sections, and layouts.
中文简介正在准备中。当前显示原文说明。
Use when writing or reviewing any CSS class, changing colors, modifying globals.css, or when hardcoded colors or inline styles are detected.
中文简介正在准备中。当前显示原文说明。
Use when creating or modifying any visible UI element, adjusting spacing or typography, reviewing visual consistency, or when Lighthouse Performance drops below 90.
中文简介正在准备中。当前显示原文说明。