Frontend Review Ciのロゴ

Frontend Review Ci

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

CIが遅い(10分超)、不安定、またはフロントエンドプロジェクトのGitHub Actionsを最適化したい場合に使います。`gh run list`の履歴を分析して、ボトルネックとなるステップを特定し、シャーディング、キャッシュ、並行処理の改善策を提案します。`scripts/audit-ci.sh`を実行します。

Add to TypingMind

概要

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

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

AIスキル「Frontend Review Ci」を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-ci
  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-ci .claude/skills/frontend-review-ci
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Frontend Review — CI Optimization

You are optimizing GitHub Actions CI for a frontend project. The target is median ≤ 10 minutes, max ≤ 15 minutes. Faster CI means developers trust it; trust is what makes the ratchet work.

Procedure

  1. Run scripts/audit-ci.sh --repo <client-repo>.
  2. Read <client-repo>/.frontend-review/report/latest/raw/ci.json.
  3. For the slowest runs, dig into step-level timing:
    bash
    gh run view <run-id> --log | grep -E '^\d{4}-' | head -200
  4. Inventory current workflows under .github/workflows/ and note:
    • Does every job (lint, build, test, coverage, etc.) use a pnpm/npm store cache? A common miss: test.yml has cache but lint.yml and pages.yml do not.
    • Does actions/setup-node use cache: pnpm, or is there a manual actions/cache block for the pnpm store? Either is fine; the key must include hashFiles('**/pnpm-lock.yaml').
    • Does actions/cache cache the Playwright browser store (~/.cache/ms-playwright)?
    • Is there a concurrency: block?
    • Are vitest / playwright sharded?
    • Are jobs serialized via needs: unnecessarily?
    • Are lint and typecheck in the same serial job? They have no dependency on each other and should be separate parallel jobs.

Output

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

  • Current median / max duration
  • Slowest 3 steps in a representative failing + passing run
  • Concrete recommendations, each mapped to a line in a YAML patch (not full rewrite)
  • Estimated wins per recommendation

Then produce a draft PR description that the user can copy into gh pr create, naming the branch ci/optimize.

Development Iteration Timing Targets

Use these as reference thresholds when diagnosing CI slowness. Any stage exceeding 2× its target warrants a dedicated bottleneck issue.

StageTargetHow to measure
HMR (edit → screen)< 500 msVite --debug output
Unit test — single file< 1 svitest / jest output
test:ci — full suite< 1 minCI step duration
typecheck< 30 sCI step duration
lint< 30 sCI step duration
E2E — one shard< 50 sCI step duration
PR CI total (parallel)< 5 minGitHub Actions wall-clock
install (cache hit)< 15 sCI step duration
build< 30 sCI step duration

The PR CI total target is the critical gate. CI slower than 5 minutes is routinely bypassed by developers.

Bottleneck Identification Procedure

  1. Pull step-level timing from the slowest recent run:
    bash
    gh run view <run-id> --log | grep -E '^\d{4}-' | head -200
  2. Identify the single slowest job in the DAG — only the longest path in a parallel graph determines wall-clock time.
  3. Within that job, identify the slowest step.
  4. Propose one change per PR — bundling multiple optimisations makes regression attribution impossible.
  5. Measure wall-clock before/after on the same branch to verify the win.

Typical Optimisation Patterns

AreaCommon fix
installpnpm / npm store cache key, --frozen-lockfile, narrow onlyBuiltDependencies. Audit every workflow file — partial cache (only some jobs cached) is the most common oversight; install without cache is ~20-25 s, with cache hit it drops to ~2-3 s
lint + typecheckSplit into two parallel jobs (no mutual dependency). On a project with ~170 TS files, this alone cuts the lint-job wall-clock in half
typecheckProject References split, skipLibCheck: true, resolve circular type imports
lintlint-staged for PR (changed files only), enable linter's own incremental cache
vitestisolate: false, tune --pool thread count, exclude test fixtures from coverage
PlaywrightTune shard count to test volume, page.route() to mock external APIs, move flaky tests to daily-only tag
Runner sizeLarger runner (4-core+) only as a last resort after exhausting the above

Boundaries

  • Do NOT actually create the PR or push the branch — just draft the description.
  • Do NOT modify workflow YAML in the client repo; the user does that after reviewing your proposal.

Reference

  • Checklist: checklist/09-ci-optimization.md
  • Phase: phase/week-1-ci-baseline.md
  • Templates: templates/github-actions/ci.yml, templates/github-actions/e2e.yml

よくある質問

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

CIが遅い(10分超)、不安定、またはフロントエンドプロジェクトのGitHub Actionsを最適化したい場合に使います。`gh run list`の履歴を分析して、ボトルネックとなるステップを特定し、シャーディング、キャッシュ、並行処理の改善策を提案します。`scripts/audit-ci.sh`を実行します。

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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