Frontend Review Depsのロゴ

Frontend Review Deps

コミュニティ
mizchi
frontend-review-deps

依存関係の健全性を監査するときに使います。古くなったパッケージ、攻撃経路を考慮したCVEの優先度判定、非推奨または利用が減少しているライブラリの検出(trend-watch)に対応します。`audit-deps.sh`と`audit-trend-watch.sh`を実行します。セキュリティ全体を把握するには`frontend-review-security`と併用します。

概要

公開者mizchi
リポジトリskills
スキル名frontend-review-deps
スター
333
フォーク
4
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    mizchiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Frontend Review Deps」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mizchi/skills/tree/main/frontend-review-deps
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mizchi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/frontend-review-deps .claude/skills/frontend-review-deps
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFrontend Review Depsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にFrontend Review Depsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Frontend Review Depsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Frontend Review — Dependencies

You are auditing the dependency health of a frontend project. This covers three areas:

  1. Freshness — outdated packages and breaking update procedures
  2. CVE triage — vulnerabilities weighted by actual attack vector, not just CVSS score
  3. Trend watch — deprecated, abandoned, or superseded libraries that should be migrated

Procedure

  1. In parallel, run:
    • scripts/audit-deps.sh --repo <client-repo>
    • scripts/audit-trend-watch.sh --repo <client-repo>
  2. Read raw/deps.json and raw/trend-watch.json.
  3. For each CVE finding, apply the attack-vector triage matrix below before assigning priority.
  4. For each trend-watch finding (Tier 1/2/3), confirm the installed version and assess migration cost.

CVE Triage — Attack Vector Matrix

Do not use CVSS score alone. A CVSS 9.8 RCE in a devDependency has zero production impact for a browser-only SPA.

CVE TypedevDep onlyRuntime (SPA)Runtime (SSR/Edge)
RCEignoreignoreP0
Prototype PollutionignoreP1 (check input path)P0
ReDoSignoreP1 (check user input reach)P0
Path TraversalignoreignoreP0
XSS via libraryignoreP0 (HTML-generating libs)P0
SSRFignoreignoreP0
Supply Chain (postinstall malware)CI P0CI P0P0

Triage procedure:

  1. Run pnpm audit --prod to exclude devDeps from output.
  2. Focus on Prototype Pollution / ReDoS / XSS — other types are low-risk for browser-only SPAs.
  3. For each remaining finding, check whether user-controlled input can reach the vulnerable code path. If not, downgrade to P2.
  4. For SSR / Edge Functions, treat RCE / Path Traversal / SSRF as P0.
  5. Document every ignored CVE in kpi/audit-triage.md with the reason.
bash
# Runtime-only CVEs (excludes devDeps)
pnpm audit --prod --audit-level=moderate --json | jq '
  .vulnerabilities | to_entries[] |
  { name: .key, severity: .value.severity,
    via: [.value.via[] | select(type=="object") | .title] }'

# Prototype Pollution / ReDoS only
pnpm audit --prod --json 2>/dev/null | jq -r '
  .vulnerabilities | to_entries[] |
  .value.via[] | select(type=="object") |
  select(.title | test("prototype|pollution|redos|regex denial"; "i")) |
  "\(.severity) \(.title) in \(.name)"' | sort -u

Trend Watch — Library Tiers

Cross-references package.json against data/trend-watch-config.json:

  • Tier 1 (migrate now): Deprecated / abandoned / superseded — no rational reason to continue. Includes libraries where migration cost is low and a mature alternative exists, even if not officially deprecated (jest → vitest, axios → ky/fetch, cypress → Playwright).
  • Tier 2 (plan migration): Maintenance mode / satisfaction declining / RSC-incompatible.
  • Tier 3 (watch): EOL versions exist / satisfaction trending down.

For each Tier 1 finding: propose a concrete migration path and estimate effort (hours/days). For each Tier 2 finding: recommend scheduling a migration in the next 1–3 months. For each Tier 3 finding: add to the ongoing monitoring list.

Library Selection — Web Standards First

Before recommending a new dependency as a replacement, apply this order:

  1. Can a Web Platform / ECMAScript standard API cover this?
Use caseAvoidUse instead
Date / timemoment, date-fns, dayjsTemporal (polyfill), or Date for simple cases
Array / object utilitieslodash, ramdaArray.prototype.{flatMap,findLast,groupBy}, Object.{entries,fromEntries,groupBy}, structuredClone()
HTTP requestsaxios, requestfetch + AbortController
UUID generationuuid, nanoidcrypto.randomUUID()
URL / query paramsqs, query-stringURL, URLSearchParams
Number / date formattingnumeral.jsIntl.NumberFormat, Intl.DateTimeFormat
  1. Tree-shakable? Only what is imported should end up in the bundle.
  2. Actively maintained? Release within the last 6 months.
  3. Bundle impact < 5 kb gzip? Verify with pnpm build and a bundle analyser.

Breaking Update Procedure

  1. Propose as a standalone PR — never bundle with feature or refactor work.
  2. Read the changelog for removed APIs; grep / ast-grep the codebase for usages.
  3. Require typecheck && lint && test:ci && e2e to pass before merge.
  4. If VRT snapshots exist, regenerate them in a Linux container after the upgrade.

Output

Write <client-repo>/.frontend-review/report/latest/md/deps-review.md with:

  • Outdated packages table (name, current, latest, breaking?)
  • CVE findings after attack-vector triage (priority, package, type, reason for priority)
  • Trend watch findings by tier (Tier 1: migration now, Tier 2: plan, Tier 3: monitor)
  • Ignored CVEs with justification (for kpi/audit-triage.md)
  • Recommended PRs: update batches + migration starting points

Boundaries

  • Do NOT assess TypeScript / lint / dead code — that's frontend-review-hygiene.
  • Do NOT run the AI pentest or check HTML sinks — that's frontend-review-security.
  • Do NOT touch source files in the client repo.

Reference

  • Checklist: 02-dependencies.md, 27-dependency-audit.md, 28-trend-watch.md
  • Data: data/trend-watch-config.json, data/trend-watch-history.json
  • Scripts: scripts/audit-deps.sh, scripts/audit-trend-watch.sh, scripts/fetch-trend-data.sh
  • Phase: week-1-ci-baseline.md

よくある質問

AIスキル「Frontend Review Deps」では何ができますか?

依存関係の健全性を監査するときに使います。古くなったパッケージ、攻撃経路を考慮したCVEの優先度判定、非推奨または利用が減少しているライブラリの検出(trend-watch)に対応します。`audit-deps.sh`と`audit-trend-watch.sh`を実行します。セキュリティ全体を把握するには`frontend-review-security`と併用します。

TypingMindでFrontend Review Depsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Frontend Review Depsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFrontend Review Depsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mizchi/skills/tree/main/frontend-review-depsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Frontend Review Depsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Frontend Review Depsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFrontend Review Depsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Frontend Review Deps」は無料ですか?

mizchiがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇