本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)75k · #3029

source-maps

できること

このスキルは、プロジェクトのビルドがソースマップを生成しているか、それを本番のデバッグに安全に扱っているかを確認します。コードを公開せずに、ライブで起きるエラーを調べたい開発者向けです。

使う場面

  • ✓ライブサイトで起きるエラーをデバッグできるように、ソースマップを設定するようエージェントに頼むとき。
  • ✓本番のエラーが、読みにくい圧縮されたコードを指しているとき。
  • ✓アプリをエラー追跡サービスに接続し、ソースマップをそこにアップロードしたいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/source-maps/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/source-maps/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のライブサイトのエラーは、読めない圧縮されたコードを指しています。デバッグできるように、ソースマップを設定してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、ソースマップを生成するようビルドの設定を更新し、それらがどのように扱われるかを確認します。このスキルは、公開して配信するのではなく、エラー追跡サービスにアップロードすることを勧めています。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Provide source maps for production debugging

Source maps are essential for debugging production issues effectively without compromising the performance benefits of minification.

Quick Reference

  • Generate source maps to map minified code back to original source
  • Upload source maps to error tracking services (e.g., Sentry) instead of serving them publicly
  • Ensure source maps are correctly linked in your build process

Check

Verify if the project's build process generates source maps and if they are being correctly handled for production debugging.

Fix

Update the build configuration to generate source maps and integrate with an error tracking service for secure production debugging.

Explain

Explain how source maps enable developers to debug original source code when only minified code is running in the browser.

Code Review

Review the routes, assets, and loading behavior that affect Provide source maps for production debugging. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/source-maps

よくある質問

ソースマップとは何ですか?

圧縮されたコードを元のソースに結びつけるファイルで、エラーを読みやすい形で把握できるようにします。

ソースマップは公開すべきですか?

このスキルは、公開して配信するのではなく、エラー追跡サービスにアップロードすることを勧めています。

ソースマップはサイトを遅くしますか?

このスキルによると、デバッグに使われるため、圧縮の利点を失わずに生成できます。

詳細

作者による元の説明

Use when auditing slow page loads, heavy assets, or rendering delays related to Provide source maps for production debugging. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#3029
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル