360 Secure SkillHub
360 安全技能中心

QA Check

核心功能覆盖构建验证、浏览器功能测试、移动端响应式检查、链接有效性验证、性能及SEO基础核查六大维度,配套一键运行脚本。典型使用场景包括生产部署前、项目分享前、技能发布前及重大代码改动后。输入为项目目录,输出检查结果,任一不达标需修复重测,仅通过方可部署,还包含部署后验证步骤,全面保障上线质量。

gizmo-dev
gizmo-dev
热度 26.21
最近更新 2026-05-11 17:26:07
分类:开发依赖:代码执行 / 联网浏览搜索 / 读写文件应用场景:DevOps / 工作流 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add qa-check
Metadata
name
qa-check
description
Mandatory quality assurance for all dev work before publishing. Use BEFORE deploying any project to production. Validates build, tests browser functionality, checks mobile responsiveness, and ensures no broken links/images.
author
gizmolab
version
1.0.0
tags
["qa","quality","testing","validation","deployment"]

QA Check

Mandatory pre-deployment quality assurance. Run this before ANY project goes live.

When to Use

  • Before vercel --prod or any production deploy
  • Before announcing/sharing any project URL
  • Before publishing skills to ClawHub
  • After major code changes

QA Checklist

1. Build Validation

# Ensure build succeeds without errors
cd <project-dir>
npm run build

Fail criteria: Build errors, warnings about missing dependencies

2. Browser Functional Test

Use browser tool to verify:

  • Page loads without console errors
  • All interactive elements work (buttons, links, forms)
  • No broken images (check Network tab for 404s)
  • No JavaScript errors in console
browser snapshot → check for errors
browser console → verify no red errors

3. Mobile Responsiveness

browser screenshot --mobile

Check:

  • Content readable on mobile viewport
  • No horizontal scroll
  • Buttons/links tappable (not too small)
  • Navigation works

4. Link Validation

# Check all external links resolve
grep -r "href=" src/ | grep -o 'https://[^"]*' | sort -u | while read url; do
  curl -s -o /dev/null -w "%{http_code} $url\n" "$url"
done

5. Performance Quick Check

  • Page loads in < 3 seconds
  • No massive bundle warnings (> 500KB)
  • Images optimized (not raw screenshots)

6. SEO/Meta Basics

Verify in index.html:

  • <title> set (not generic)
  • <meta name="description"> present
  • <meta property="og:*"> for social sharing
  • Favicon present

Pre-Deploy Command

# Run full QA suite
scripts/qa-check.sh <project-dir>

Fail = No Deploy

If ANY check fails:

  1. Document the issue
  2. Fix it
  3. Re-run QA
  4. Only then deploy

Quick Reference

Check Tool Pass Criteria
Build npm run build Exit 0, no errors
Browser browser snapshot No console errors
Mobile browser screenshot Readable, no scroll
Links curl All 200/301
Speed Browser < 3s load
SEO Read index.html All meta present

Post-Deploy Verification

After deploy, ALWAYS:

  1. Visit production URL in browser
  2. Click through main features
  3. Check mobile view
  4. Verify analytics loading (if added)

Only THEN announce/share the project.