Skip to content
Development
Skill

/fe-quality

前端质量与安全技能包,涵盖前端安全加固、错误监控集成、前端 CI/CD 流水线、无障碍(a11y)合规。 当需要加固前端安全防护(XSS/CSP/依赖审计)、集成错误监控(Sentry/自研SDK)、搭建前端 CI/CD 流水线(GitHub Actions/GitLab CI/Lighthouse CI)、或进行无障碍适配(WCAG/ARIA)时触发此技能。 支持 Angular、Vue、React、原生 JS、Node.js 技术栈。

From plugin
fe-skills
65 skills
Install
$ npx -y skills add wj100/fe-skills --skill fe-quality --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/fe-quality

Context preview

The summary Claude sees to decide when to auto-load this skill.

前端质量与安全技能包,涵盖前端安全加固、错误监控集成、前端 CI/CD 流水线、无障碍(a11y)合规。 当需要加固前端安全防护(XSS/CSP/依赖审计)、集成错误监控(Sentry/自研SDK)、搭建前端 CI/CD 流水线(GitHub Actions/GitLab CI/Lighthouse CI)、或进行无障碍适配(WCAG/ARIA)时触发此技能。 支持 Angular、Vue、React、原生 JS、Node.js 技术栈。

SKILL.md

fe-quality.SKILL.md
name: fe-quality
description: |
  前端质量与安全技能包,涵盖前端安全加固、错误监控集成、前端 CI/CD 流水线、无障碍(a11y)合规。
  当需要加固前端安全防护(XSS/CSP/依赖审计)、集成错误监控(Sentry/自研SDK)、搭建前端 CI/CD 流水线(GitHub Actions/GitLab CI/Lighthouse CI)、或进行无障碍适配(WCAG/ARIA)时触发此技能。
  支持 Angular、Vue、React、原生 JS、Node.js 技术栈。

前端质量与安全

前端质量保障的四大支柱:安全防护、错误监控、自动化流水线、无障碍合规。

快速健康检查

对任意前端项目执行质量快速扫描:

# 1. 依赖安全审计
pnpm audit --production

# 2. 代码规范检查
npx eslint . --ext .ts,.tsx,.vue,.js

# 3. 无障碍检查(需安装 axe-core CLI)
npx @axe-core/cli http://localhost:3000

# 4. Lighthouse 综合审计
npx lighthouse http://localhost:3000 --output html --output-path report.html

场景路由

根据具体需求选择对应参考文档:

| 场景 | 参考文档 | 典型触发 | |------|---------|---------| | XSS 防御、CSP 配置、依赖漏洞 | [security.md](references/security.md) | "加固安全"、"配置 CSP"、"审计依赖" | | Sentry 接入、自研监控、Error Boundary | [error-monitoring.md](references/error-monitoring.md) | "接入 Sentry"、"错误上报"、"监控" | | CI/CD 搭建、Preview Deploy、Lighthouse CI | [cicd-pipeline.md](references/cicd-pipeline.md) | "搭建流水线"、"自动部署"、"CI" | | WCAG 合规、ARIA 标注、键盘导航 | [accessibility.md](references/accessibility.md) | "无障碍"、"a11y"、"屏幕阅读器" |

优先级建议

按风险等级排序处理:

1. **P0 安全漏洞** → 立即修复(XSS、依赖高危漏洞) 2. **P1 错误监控** → 上线前必须具备(生产环境可观测性) 3. **P2 CI/CD** → 提升团队效率(自动化构建、测试、部署) 4. **P3 无障碍** → 持续改进(合规要求、用户体验)

组合使用

  • 安全 + CI/CD:在流水线中集成 `pnpm audit`、依赖检查
  • 监控 + 安全:Sentry 中配置安全相关告警规则
  • a11y + CI/CD:在 PR 检查中集成 axe-core 自动化测试
Ships withfe-skills

面向 AI Coding Agent 的中文前端工程化技能包,覆盖工程基建、性能优化、架构演进、质量安全四大领域。 A Chinese-language frontend engineering skill pack for AI coding agents, covering engineering infrastructure, performance optimization, architecture evolution, and quality assurance.

Get the whole plugin
Stats
6
Stars
0
Forks
Maintained
Maintenance
4mo ago
Last commit
4mo ago
Created

Repo: wj100/fe-skills

Other skills on fe-skills.

fe-architecture
Skill

fe-architecture

前端架构演进技能包,涵盖框架大版本升级、微前端架构、TypeScript 迁移、CSS 架构迁移。 当需要升级框架版本(Vue2→3、React Class→Hooks、Angular 升级)、引入微前端、迁移到 TypeScript、或重构 CSS 架构时触发此技能。 支持 Angular、Vue、React、原生…

@wj100@wj100View Skill
fe-engineering
Skill

fe-engineering

前端工程基建技能包,涵盖项目技术栈分析、最新文档获取、构建工具链升级、前端项目重构、开发规范标准化、Monorepo 治理。 当需要分析前端项目架构、升级构建工具、统一开发规范、管理 Monorepo、或进行系统性重构时触发此技能。 支持 Angular、Vue、React、原生 JS、Node.js 技术栈。

@wj100@wj100View Skill
fe-performance
Skill

fe-performance

前端性能优化技能包,涵盖懒加载与代码分割、图片优化(WebP化)、Service Worker 缓存、首屏性能优化、Core Web Vitals 治理、Bundle 分析与瘦身。 当需要优化前端加载速度、减小包体积、改善用户体验指标、配置缓存策略、或进行性能诊断时触发此技能。 支持…

@wj100@wj100View Skill
pm-fe-assistant
Skill

pm-fe-assistant

面向产品经理(非开发人员)的前端改动协作助手。当用户是 PM、设计师、运营等非技术角色, 通过自然语言描述想要修改的前端界面(文案、样式、按钮、页面布局等)时触发此技能。 助手会用通俗语言沟通、绝不展示代码、绝不进行任何 Git 分支操作,并按"理解需求 → 告知方案 → 执行修改 → 汇报结果"的流程协作。…

@wj100@wj100View Skill