Frontend Code Doctor logo

Frontend Code Doctor

Community
jiushiwon
frontend-code-doctor

前端代码审查技能,支持 uniapp + Vue3 + React + TypeScript 项目。审查范围:类型安全、uniapp 特有规范、Vue3/React 最佳实践、性能问题、安全漏洞、i18n 国际化、Accessibility 无障碍。使用方式:当用户请求审查前端代码、进行 code review、检查代码质量问题时调用。

Overview

Publisherjiushiwon
Repositorywg-skills
Skill namefrontend-code-doctor
Stars
123
Forks
38
Bundled files
8
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiushiwon on GitHub. Read the source before you install it.

Installation

Install the Frontend Code Doctor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/frontend/frontend-code-doctor
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiushiwon/wg-skills.git /tmp/wg-skills
mkdir -p .claude/skills
cp -r /tmp/wg-skills/vibeCoding/frontend/frontend-code-doctor .claude/skills/frontend-code-doctor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Frontend Code Doctor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Frontend Code Doctor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Frontend Code Doctor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Frontend Code Doctor - uniapp + Vue3 代码审查

本技能用于审查 uniapp + Vue3 + TypeScript 前端项目,发现代码质量问题、性能问题和潜在 bug。

审查维度

本技能从以下 5 个维度进行审查,默认全部开启:

维度优先级检查内容
UrgentP0必须修复的严重问题
TypeScriptP1类型安全、any 用法、类型推断
uniapp 规范P1条件编译、平台 API、安全区域
PerformanceP1性能问题、内存泄漏
BusinessP2业务逻辑、配置管理
ReactP1Hooks 规则、useEffect 依赖、自定义 hook
SecurityP1XSS、CSRF、敏感信息、输入校验
i18nP2硬编码中文、翻译 key、RTL 支持
AccessibilityP1aria-*、键盘导航、焦点管理

开始审查

Step 1: 收集文件

使用 Glob 收集待审查的源文件:

bash
# Vue 文件
Glob "**/*.vue"

# TypeScript 文件
Glob "**/*.ts"

排除以下目录:

  • node_modules/
  • dist/
  • unpackage/
  • .git/

Step 2: 执行审查

按照以下规则进行检查,将发现的违规标记到对应位置。

Urgent 问题(P0,必须修复)
规则 ID问题描述检查模式
U1any 类型丢失类型提示Grep : any
U2业务码异常未 throw检查 request.ts 错误处理
U3内存泄漏(setTimeout 无清理)Grep setTimeout.*50 递归模式
U4硬编码测试 URL检查 deeflow.ts 中的 URL
U5图片下载失败无 fallback检查 downloadProtectedFile
TypeScript 类型安全(P1)
bash
# 检查 any 类型用法
Grep ": any" --output_mode content -n
Performance 问题(P1)
bash
# 检查 Math.random()(打字机效果等)
Grep "Math.random()" --output_mode content

# 检查 Magic Numbers
Grep "9999999" --output_mode content

# 检查 console 日志
Grep "console\.(log|info|warn)" --output_mode content
React Hooks 检查(P1)
bash
# 检查 useEffect 依赖
Grep "useEffect\([^)]*\)" --output_mode content

# 检查 hooks 在循环/条件中调用
Grep "(useState|useEffect|useCallback).*\n.*if" --multiline --output_mode content
Security 安全检查(P1)
bash
# 检查硬编码密钥
Grep "(apiKey|secretKey|token).*=.*['\"][a-zA-Z0-9_-]{20,}" --output_mode content

# 检查 localStorage token
Grep "localStorage\.(setItem|getItem).*token" --output_mode content
i18n 国际化检查(P2)
bash
# 检查中文字符
Grep "[一-龥]" --output_mode content
Accessibility 无障碍检查(P1)
bash
# img without alt
Grep "<img(?![^>]* alt)" --glob "*.vue" --output_mode content

# 检查 input without label
Grep "<input(?![^>]* aria-label)(?![^>]* aria-labelledby)" --glob "*.vue" --output_mode content

审查输出格式(必须严格遵守)

markdown
# Frontend Code Doctor - <项目名>

> 审查时间:<YYYY-MM-DD HH:mm:ss>
> 技术栈:uniapp + Vue3 + TypeScript

---

## Found <N> urgent issues need to be fixed

## 1 <问题简述>
FilePath: <文件路径> line <行号>

<相关代码片段>

### Suggested fix
<修复建议>

---

## Found <M> suggestions for improvement

## 1 <问题简述>
FilePath: <文件路径> line <行号>

<相关代码片段>

### Suggested fix
<修复建议>

---

## 统计

| 类别 | 数量 |
|------|------|
| Urgent 问题 | N |
| TypeScript 问题 | M |
| Performance 问题 | K |
| React 问题 | R |
| Security 问题 | S |
| i18n 问题 | I |
| Accessibility 问题 | A |
| **总计** | Σ |

---

<如果发现 10+ 严重问题>
发现较多严重问题(10+),是否需要我应用 Suggested fix 进行修复?

注意事项

  1. 报告头部:必须是 "Code Doctor - 项目名"
  2. 时间格式:YYYY-MM-DD HH:mm:ss
  3. 技术栈:根据项目实际情况填写
  4. 统计表格:必须在最后输出

交付确认

如果发现的严重问题 >= 10 个,在末尾询问:

发现较多严重问题(10+),是否需要我应用 Suggested fix 进行修复?

触发词

frontend-code-doctor、Frontend Code Doctor - uniapp + Vue3 代码审查

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Frontend Code Doctor AI skill do?

前端代码审查技能,支持 uniapp + Vue3 + React + TypeScript 项目。审查范围:类型安全、uniapp 特有规范、Vue3/React 最佳实践、性能问题、安全漏洞、i18n 国际化、Accessibility 无障碍。使用方式:当用户请求审查前端代码、进行 code review、检查代码质量问题时调用。

Why use Frontend Code Doctor on TypingMind?

Because you install it once and use it with any model. Frontend Code Doctor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Frontend Code Doctor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/frontend/frontend-code-doctor. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Frontend Code Doctor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Frontend Code Doctor?

As many as you like. As long as a model supports skills, you can use Frontend Code Doctor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Frontend Code Doctor AI skill free?

Yes. It is published on GitHub by jiushiwon under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇