Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jiushiwon/wg-skills --skill frontend-code-doctorgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/frontend-code-doctor)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/frontend-code-doctor"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/frontend-code-doctor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/frontend-code-doctor"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/frontend-code-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00086 | $0.01374 |
| Opus 5 | $0.00043 | $0.00687 |
| Sonnet 5 | $0.00017 | $0.00275 |
| Haiku 4.5 | $0.00009 | $0.00137 |
Grade A, and why
frontend-code-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Frontend Code Doctor - uniapp + Vue3 代码审查
本技能用于审查 uniapp + Vue3 + TypeScript 前端项目,发现代码质量问题、性能问题和潜在 bug。
审查维度
本技能从以下 5 个维度进行审查,默认全部开启:
| 维度 | 优先级 | 检查内容 |
|---|---|---|
| Urgent | P0 | 必须修复的严重问题 |
| TypeScript | P1 | 类型安全、any 用法、类型推断 |
| uniapp 规范 | P1 | 条件编译、平台 API、安全区域 |
| Performance | P1 | 性能问题、内存泄漏 |
| Business | P2 | 业务逻辑、配置管理 |
| React | P1 | Hooks 规则、useEffect 依赖、自定义 hook |
| Security | P1 | XSS、CSRF、敏感信息、输入校验 |
| i18n | P2 | 硬编码中文、翻译 key、RTL 支持 |
| Accessibility | P1 | aria-*、键盘导航、焦点管理 |
开始审查
Step 1: 收集文件
使用 Glob 收集待审查的源文件:
# Vue 文件
Glob "**/*.vue"
# TypeScript 文件
Glob "**/*.ts"
排除以下目录:
node_modules/dist/unpackage/.git/
Step 2: 执行审查
按照以下规则进行检查,将发现的违规标记到对应位置。
Urgent 问题(P0,必须修复)
| 规则 ID | 问题描述 | 检查模式 |
|---|---|---|
| U1 | any 类型丢失类型提示 |
Grep : any |
| U2 | 业务码异常未 throw | 检查 request.ts 错误处理 |
| U3 | 内存泄漏(setTimeout 无清理) | Grep setTimeout.*50 递归模式 |
| U4 | 硬编码测试 URL | 检查 deeflow.ts 中的 URL |
| U5 | 图片下载失败无 fallback | 检查 downloadProtectedFile |
TypeScript 类型安全(P1)
# 检查 any 类型用法
Grep ": any" --output_mode content -n
Performance 问题(P1)
# 检查 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)
# 检查 useEffect 依赖
Grep "useEffect\([^)]*\)" --output_mode content
# 检查 hooks 在循环/条件中调用
Grep "(useState|useEffect|useCallback).*\n.*if" --multiline --output_mode content
Security 安全检查(P1)
# 检查硬编码密钥
Grep "(apiKey|secretKey|token).*=.*['\"][a-zA-Z0-9_-]{20,}" --output_mode content
# 检查 localStorage token
Grep "localStorage\.(setItem|getItem).*token" --output_mode content
i18n 国际化检查(P2)
# 检查中文字符
Grep "[一-龥]" --output_mode content
Accessibility 无障碍检查(P1)
# 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
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 181 lines · 86 tokens per session scan A 6cfdb782f025
frontend-code-doctor is a skill published in the GitHub repository jiushiwon/wg-skills (98 stars, last pushed yesterday), licensed Apache-2.0. It adds 86 tokens to every session and 1,374 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
vue-best-practices
A review checklist for Vue 2 and Vue 3 components, covering component names, prop declarations, TypeScript casts, API styles and complex template expressions.
standards-to-tooling
Translates project coding standards into concrete linting and formatting tool configurations. Given human-readable conventions (from AGENTS.md, code review guidelines, or team standards), this skill produces ESLint, Prettier, Biome, TypeScript, and other tool configs that enforce them automatically. Covers discovery…
svelte5
Reviews Svelte components for idiomatic patterns, identifies anti-patterns carried over from React/Vue/Svelte 4, and suggests Svelte 5 refactorings. Use when writing or reviewing Svelte components, asking "is this idiomatic", "Svelte way", doing Svelte 5 migration, or encountering smells like: effect assigns state…
Component Test Scaffold (Vue.js)
Generate Vue.js component test skeletons (Vue Test Utils) from specifications.
review-frontend
Performs a strict code review of the Svelte 5 frontend code (files, diffs, or snippets). Trigger whenever the user shares frontend code (Svelte, TypeScript, CSS) and asks for a review, feedback, or says "review this" — including partial snippets.
fe-framework-coding-standard
Standardized frontend implementation guidance for FE Dev using the SRS-declared Frontend-Framework. Use when coding, refactoring, or reviewing UI work in React Native, ReactJS, Flutter, Vue.js, Angular, or Next.js; FE Dev reads docs/SRS.md Frontend-Framework plus §3.4.2/§3.4.5 for multi-app projects, then selects the…