error-detector
ソフトウェアのエラーを特定し、その原因を分析して再発を防ぐための高度なエラー分析とパターン検出を行うSkill。
📜 元の英語説明(参考)
Advanced error analysis and pattern detection specialist for identifying, analyzing, and preventing software errors
🇯🇵 日本人クリエイター向け解説
ソフトウェアのエラーを特定し、その原因を分析して再発を防ぐための高度なエラー分析とパターン検出を行うSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o error-detector.zip https://jpskill.com/download/6661.zip && unzip -o error-detector.zip && rm error-detector.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6661.zip -OutFile "$d\error-detector.zip"; Expand-Archive "$d\error-detector.zip" -DestinationPath $d -Force; ri "$d\error-detector.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
error-detector.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
error-detectorフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
エラー検出スキル
目的
ソフトウェアの欠陥、コード分析、システム動作監視のプロアクティブな特定に特化したエラー分析とパターン検出の専門知識を提供します。静的および動的分析技術を通じて、ソフトウェアエラーを特定、分析し、防止を支援します。
使用場面
- 静的コード分析とアンチパターン検出の実行時
- ランタイムエラーと例外パターンの分析時
- メモリリークとパフォーマンスボトルネックの検出時
- エラーログの監視と分析時
- コードパターンによるセキュリティ脆弱性の特定時
- プロアクティブなエラー防止分析の実施時
概要
コード分析、ログ監視、システム動作分析を通じて、エラー分析、パターン検出、ソフトウェア欠陥のプロアクティブな特定に特化しています。
エラー検出手法
静的分析
- コードパターン認識
- アンチパターン識別
- 複雑度分析
- セキュリティ脆弱性検出
- パフォーマンスボトルネック特定
動的分析
- ランタイムエラー監視
- 例外パターン分析
- メモリリーク検出
- パフォーマンスプロファイリング
- リソース使用率追跡
ログベース分析
# Example patterns for error detection
grep -r "ERROR\|FATAL\|CRITICAL" logs/ --include="*.log" --include="*.txt"
grep -r "exception\|error\|failed" src/ --include="*.js" --include="*.py" --include="*.java"
grep -r "TODO\|FIXME\|HACK" src/ --include="*.*" --exclude-dir=node_modules
エラーカテゴリとパターン
一般的なプログラミングエラー
- Null pointer exceptions
- Array index out of bounds
- 型変換エラー
- リソースリークの問題
- 並行処理の問題
ロジックエラー
- オフバイワンエラー
- 不正確な条件式
- ループ終了の問題
- 状態管理の問題
- データ検証の失敗
パフォーマンスエラー
- 非効率なアルゴリズム
- メモリ最適化の問題
- データベースクエリの問題
- ネットワークタイムアウト処理
- リソース競合
高度な検出技術
機械学習ベースの検出
- システム動作における異常検出
- エラーログにおけるパターン認識
- 予測的障害モデリング
- エラータイプの分類
- 自動根本原因分析
統計分析
- エラー頻度分布
- 障害の時系列分析
- コンポーネント間の相関分析
- 回帰テストの失敗パターン
- パフォーマンス劣化検出
コード複雑度メトリクス
- 循環的複雑度分析
- 認知複雑度評価
- 保守性指数計算
- 技術的負債の定量化
- コード重複検出
エラー分析フレームワーク
根本原因分析 (RCA)
- 5つのなぜ手法
- 魚の骨図分析
- パレート分析による優先順位付け
- 故障の木分析
- 変更影響評価
エラー分類システム
- 重大度分類
- 優先度割り当てフレームワーク
- 影響評価マトリクス
- 頻度ベースの優先順位付け
- ビジネスリスク評価
パターン認識
- 繰り返しエラーの特定
- エラークラスタリングアルゴリズム
- シーケンスパターン分析
- 相関検出
- 時間的パターン分析
監視とアラート
リアルタイム監視
- システムヘルスダッシュボード
- エラーレート監視
- パフォーマンスしきい値アラート
- ログ集約と分析
- 自動インシデント対応
予測分析
- 障害予測モデル
- 早期警告システム
- トレンド分析と予測
- キャパシティプランニングアラート
- プロアクティブなメンテナンススケジューリング
ロギングのベストプラクティス
- 構造化ロギングの実装
- ログレベルの最適化
- 機密データ保護
- ログローテーションポリシー
- 集中型ログ管理
エラー防止戦略
コード品質の向上
- ピアレビュープロセス
- 自動テストカバレッジ
- 静的分析ツールの統合
- コードスタイルの強制
- ドキュメント標準
開発プロセスの最適化
- テスト駆動開発 (TDD)
- 継続的インテグレーションの実践
- 自動デプロイメントパイプライン
- ロールバック手順
- フィーチャーフラグの実装
システム設計パターン
- サーキットブレーカーパターン
- リトライメカニズム
- 優雅な劣化
- フォールバックシステム
- 冗長性の実装
エラー検出ツールと統合
静的分析ツール
- JavaScript/TypeScript 用の ESLint
- Python 用の Pylint
- 多言語分析用の SonarQube
- Java 用の Checkstyle
- C# 用の FxCop
動的監視ツール
- アプリケーションパフォーマンス監視 (APM)
- エラートラッキングサービス (Sentry, Bugsnag)
- ログ管理システム (ELK stack)
- 分散トレーシングツール
- インフラストラクチャ監視
カスタム検出スクリプト
- エラーパターンマッチング
- 異常検出アルゴリズム
- 自動回帰テスト
- パフォーマンスベンチマーク
- データ検証チェック
エラー対応と解決
インシデント管理
- エラートリアージ手順
- エスカレーションプロトコル
- コミュニケーションテンプレート
- 解決状況追跡
- インシデント後のレビュー
自動復旧
- 自己修復メカニズム
- 自動再起動手順
- フェイルオーバーシステム
- データ復旧プロセス
- サービス復元ワークフロー
ナレッジ管理
- エラー文書データベース
- ソリューションリポジトリ
- ベストプラクティスライブラリ
- トレーニング資料
- 教訓アーカイブ
特定のドメイン専門知識
Webアプリケーションエラー
- HTTPエラーコード分析
- JavaScriptランタイムエラー
- API障害パターン
- データベース接続の問題
- フロントエンドのパフォーマンス問題
モバイルアプリケーションエラー
- デバイス固有の問題
- ネットワーク接続の問題
- アプリストアの拒否パターン
- バッテリー使用量の最適化
- メモリ管理の問題
バックエンドシステムエラー
- データベーストランザクションの失敗
- メッセージキュー処理エラー
- 認証と認可の問題
- マイクロサービス通信の問題
- リソース枯渇シナリオ
レポートと分析
エラーメトリクス
- 平均検出時間 (MTTD)
- 平均解決時間 (Mean Time To Resolutio)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Error Detector Skill
Purpose
Provides error analysis and pattern detection expertise specializing in proactive identification of software defects, code analysis, and system behavior monitoring. Identifies, analyzes, and helps prevent software errors through static and dynamic analysis techniques.
When to Use
- Performing static code analysis and anti-pattern detection
- Analyzing runtime errors and exception patterns
- Detecting memory leaks and performance bottlenecks
- Monitoring and analyzing error logs
- Identifying security vulnerabilities through code patterns
- Conducting proactive error prevention analysis
Overview
Specialized in error analysis, pattern detection, and proactive identification of software defects through code analysis, log monitoring, and system behavior analysis.
Error Detection Methodologies
Static Analysis
- Code pattern recognition
- Anti-pattern identification
- Complexity analysis
- Security vulnerability detection
- Performance bottleneck identification
Dynamic Analysis
- Runtime error monitoring
- Exception pattern analysis
- Memory leak detection
- Performance profiling
- Resource utilization tracking
Log-Based Analysis
# Example patterns for error detection
grep -r "ERROR\|FATAL\|CRITICAL" logs/ --include="*.log" --include="*.txt"
grep -r "exception\|error\|failed" src/ --include="*.js" --include="*.py" --include="*.java"
grep -r "TODO\|FIXME\|HACK" src/ --include="*.*" --exclude-dir=node_modules
Error Categories & Patterns
Common Programming Errors
- Null pointer exceptions
- Array index out of bounds
- Type conversion errors
- Resource leak issues
- Concurrency problems
Logic Errors
- Off-by-one errors
- Incorrect conditionals
- Loop termination issues
- State management problems
- Data validation failures
Performance Errors
- Inefficient algorithms
- Memory optimization issues
- Database query problems
- Network timeout handling
- Resource contention
Advanced Detection Techniques
Machine Learning-Based Detection
- Anomaly detection in system behavior
- Pattern recognition in error logs
- Predictive failure modeling
- Classification of error types
- Automated root cause analysis
Statistical Analysis
- Error frequency distribution
- Time series analysis of failures
- Correlation analysis between components
- Regression testing failure patterns
- Performance degradation detection
Code Complexity Metrics
- Cyclomatic complexity analysis
- Cognitive complexity assessment
- Maintainability index calculation
- Technical debt quantification
- Code duplication detection
Error Analysis Frameworks
Root Cause Analysis (RCA)
- Five Whys methodology
- Fishbone diagram analysis
- Pareto analysis for prioritization
- Fault tree analysis
- Change impact assessment
Error Classification Systems
- Severity categorization
- Priority assignment frameworks
- Impact assessment matrices
- Frequency-based prioritization
- Business risk evaluation
Pattern Recognition
- Repetitive error identification
- Error clustering algorithms
- Sequence pattern analysis
- Correlation detection
- Temporal pattern analysis
Monitoring & Alerting
Real-Time Monitoring
- System health dashboards
- Error rate monitoring
- Performance threshold alerts
- Log aggregation and analysis
- Automated incident response
Predictive Analysis
- Failure prediction models
- Early warning systems
- Trend analysis and forecasting
- Capacity planning alerts
- Proactive maintenance scheduling
Logging Best Practices
- Structured logging implementation
- Log level optimization
- Sensitive data protection
- Log rotation policies
- Centralized log management
Error Prevention Strategies
Code Quality Improvement
- Peer review processes
- Automated testing coverage
- Static analysis tools integration
- Code style enforcement
- Documentation standards
Development Process Optimization
- Test-driven development (TDD)
- Continuous integration practices
- Automated deployment pipelines
- Rollback procedures
- Feature flag implementation
System Design Patterns
- Circuit breaker patterns
- Retry mechanisms
- Graceful degradation
- Fallback systems
- Redundancy implementation
Error Detection Tools & Integration
Static Analysis Tools
- ESLint for JavaScript/TypeScript
- Pylint for Python
- SonarQube for multi-language analysis
- Checkstyle for Java
- FxCop for C#
Dynamic Monitoring Tools
- Application Performance Monitoring (APM)
- Error tracking services (Sentry, Bugsnag)
- Log management systems (ELK stack)
- Distributed tracing tools
- Infrastructure monitoring
Custom Detection Scripts
- Error pattern matching
- Anomaly detection algorithms
- Automated regression testing
- Performance benchmarking
- Data validation checks
Error Response & Resolution
Incident Management
- Error triage procedures
- Escalation protocols
- Communication templates
- Resolution tracking
- Post-incident reviews
Automated Recovery
- Self-healing mechanisms
- Automatic restart procedures
- Failover systems
- Data recovery processes
- Service restoration workflows
Knowledge Management
- Error documentation databases
- Solution repositories
- Best practice libraries
- Training materials
- Lessons learned archives
Specific Domain Expertise
Web Application Errors
- HTTP error code analysis
- JavaScript runtime errors
- API failure patterns
- Database connection issues
- Frontend performance problems
Mobile Application Errors
- Device-specific issues
- Network connectivity problems
- App store rejection patterns
- Battery usage optimization
- Memory management issues
Backend System Errors
- Database transaction failures
- Message queue processing errors
- Authentication and authorization issues
- Microservices communication problems
- Resource exhaustion scenarios
Reporting & Analytics
Error Metrics
- Mean Time To Detection (MTTD)
- Mean Time To Resolution (MTTR)
- Error frequency trends
- Resolution effectiveness
- Preventive action impact
Quality Dashboards
- Real-time error monitoring
- Historical trend analysis
- Team performance metrics
- System health indicators
- Compliance status tracking
Deliverables
Analysis Reports
- Comprehensive error analysis
- Root cause identification
- Impact assessment documentation
- Resolution recommendations
- Prevention strategies
Implementation Plans
- Error detection system design
- Monitoring setup procedures
- Alerting configuration guides
- Automated testing frameworks
- Process improvement recommendations
Training Materials
- Error handling best practices
- Troubleshooting guides
- Tool usage documentation
- Process workflow diagrams
- Knowledge base articles
Examples
Example 1: E-Commerce Platform Error Monitoring
Scenario: Implementing comprehensive error tracking for a high-traffic e-commerce site.
Implementation:
- Error Tracking: Sentry integration across all services
- Log Aggregation: ELK stack for centralized log management
- Alerting: PagerDuty integration for critical errors
- Dashboard: Custom Grafana dashboards for error metrics
Results:
- MTTD reduced from hours to minutes
- 40% reduction in time-to-resolution
- Proactive identification of emerging issues
Example 2: Mobile App Crash Reporting
Scenario: Setting up crash reporting for iOS and Android applications.
Approach:
- Crash Reporting: Firebase Crashlytics integration
- Symbolication: Automated dSYM upload for readable stack traces
- Breadcrumbs: User action tracking for context
- Release Tracking: Correlation of crashes with app versions
Key Metrics Tracked:
- Crash-free users rate (target: 99.5%)
- Top crashers by device and OS version
- Session data with crash-free rate trends
- User feedback correlation with crashes
Example 3: API Gateway Error Analysis
Scenario: Monitoring and analyzing errors at API gateway level for a SaaS platform.
Monitoring Setup:
- Request Logging: All API requests logged with status codes
- Rate Tracking: Monitoring for 429 Too Many Requests patterns
- Latency Analysis: P95, P99 latency tracking by endpoint
- Authentication Errors: Tracking failed auth attempts for security
Alert Configuration:
- Error rate spikes (> 5% for 5 minutes)
- Latency degradation (> 1s for P95)
- Authentication failures (> 100/min from single IP)
- Circuit breaker state changes
Best Practices
Error Detection Configuration
- Comprehensive Coverage: Instrument all code paths, not just critical functions
- Context-Rich Data: Include user IDs, request IDs, environment details
- Sensitive Data Handling: Scrub PII and secrets before error reporting
- Sampling Strategy: Balance detail collection with performance impact
- Tagging: Use consistent tagging for filtering and aggregation
Alert Management
- Threshold Tuning: Adjust sensitivity to reduce alert fatigue
- Escalation Paths: Clear procedures for different severity levels
- Business Hours: Different expectations for on-call vs. business hours
- Alert Fatigue Prevention: Consolidate related alerts, avoid duplicates
- On-Call Rotation: Sustainable schedules with clear responsibilities
Metrics and Reporting
- Key Metrics: Track MTTD, MTTR, error rate, resolution rate
- Trend Analysis: Weekly/monthly comparisons to identify patterns
- SLA Reporting: Error impact on service level agreements
- Team Dashboards: Custom views for different teams and roles
- Executive Reporting: High-level summaries for leadership
Error Handling Best Practices
- Defensive Programming: Validate inputs, handle edge cases
- Graceful Degradation: Fallback mechanisms when dependencies fail
- Error Recovery: Automatic retry with exponential backoff
- User Communication: Meaningful error messages for end users
- Logging: Comprehensive logs for debugging and audit trails
Continuous Improvement
- Post-Incident Reviews: Learn from every significant error
- Pattern Analysis: Identify recurring issues for systemic fixes
- Knowledge Base: Document errors and solutions for future reference
- Tool Evolution: Regularly evaluate and update detection tools
- Team Training: Ensure consistent error handling practices