スキル一覧に戻る
Optima-Financial

frontend-auditor

by Optima-Financial

Claude Code skills for microservices architecture, Optima platform implementation, and critical thinking

0🍴 0📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


name: frontend-auditor description: Audit frontend code for security, UX regressions, performance, and accessibility issues. Use when reviewing React, Next.js, Vue, Svelte, or any frontend code changes. Triggers on "audit frontend", "review UI", "check accessibility", "a11y audit", "frontend security", "UX review", "performance audit", "review components", "audit React".

Frontend Auditor

Comprehensive auditor for frontend code focusing on security, correctness, UX regressions, performance, accessibility, and maintainability. All findings are grounded in actual code, components, routes, and state management patterns.

When to Use

  • Reviewing frontend code changes before merge
  • Auditing React/Next/Vue/Svelte components
  • Checking accessibility compliance
  • Performance auditing UI code
  • Security review of client-side code
  • UX regression testing after changes

Audit Workflow

On EVERY invocation, execute these steps in order:

Step 1: Detect Stack & Layout

Identify the frontend technology stack:

- Framework: React/Next.js/Vue/Svelte/Angular/etc.
- Router: React Router/Next.js App Router/Vue Router/etc.
- State management: Redux/Zustand/Jotai/Pinia/Context/etc.
- Styling: Tailwind/CSS Modules/Styled Components/Emotion/etc.
- Build tool: Vite/Webpack/Turbopack/etc.
- API layer: fetch/axios/React Query/SWR/tRPC/etc.

Identify key locations:

  • App entrypoints (main.tsx, App.tsx, _app.tsx)
  • Pages/routes directory structure
  • Shared components library
  • API client layer and hooks

Step 2: Scan Recent Changes

Review what has changed recently:

# Check working directory changes
git status
git diff --stat

# Review recent commits affecting frontend
git log --oneline -20 --all -- "src/" "app/" "pages/" "components/" "lib/"

Summarize:

  • What UI/behavior changes were introduced?
  • What components/routes were modified?
  • What possible regressions could occur?

Step 3: Build UI Map

Create a map of the touched areas:

ComponentDetails
Routes/ScreensPages affected, navigation flows
ComponentsUI components modified
Data FetchingAPI calls, queries, mutations
FormsForm handling, validation
StateLocal/global state changes

Step 4: Execute Audit Checklist

Audit touched components plus critical paths (auth flows, payments, user data display).

See CHECKLIST.md for the complete audit checklist covering:

  • Security (XSS, token storage, secrets leakage)
  • Correctness & UX (loading states, validation, edge cases)
  • Performance (bundle size, re-renders, network)
  • Accessibility (keyboard nav, ARIA, contrast)
  • Maintainability (types, tests, component design)

Output Format

Structure your audit report as follows:

A) Scope Scanned

Framework: [detected stack]
Routes reviewed: [list routes/pages]
Components analyzed: [count]
Commits analyzed: [range]

B) UI Map

Routes: [list affected routes]
Components: [key components modified]
Data flows: [API integrations touched]
State: [state management affected]

C) Findings by Category

Use severity levels:

SeverityIconMeaning
CRITICAL:red_circle:XSS, auth bypass, data exposure
HIGH:orange_circle:Security issue, major UX regression
MEDIUM:yellow_circle:Performance issue, a11y problem
LOW:white_circle:Minor issue, code smell
INFO:blue_circle:Observation, suggestion

For each finding:

### [SEVERITY] Title

**Location:** `components/Form.tsx:45`
**Category:** Security > XSS

**Issue:** [Describe the problem]

**Evidence:**
[Code snippet]

**Risk:** [What could go wrong]

**Fix:**
[Code showing the fix]

D) Summary Table

CategoryCriticalHighMediumLow
Security0101
UX/Correctness0021
Performance0012
Accessibility0110
Maintainability0002

E) Suggested Patches

Step-by-step fixes for critical and high-severity issues:

1. [First fix with code]
2. [Second fix with code]
3. ...

Quick Commands

# Check for vulnerable dependencies
npm audit
pnpm audit

# Find potential XSS vectors (React)
grep -rn "dangerouslySetInnerHTML\|innerHTML" --include="*.tsx" --include="*.jsx"

# Find hardcoded secrets
grep -rn "API_KEY\|SECRET\|password" --include="*.ts" --include="*.tsx"

# Check bundle size
npx vite-bundle-visualizer
npx @next/bundle-analyzer

# Lighthouse audit
npx lighthouse http://localhost:3000 --view

Resources

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です