@agent-taisun-agent:system-diagnosticianfrom taisun-agent
プロアクティブシステム診断エージェント - 問題が発生する前に異常を検出し、早期警告と原因分析を提供
Ships in taisun-agent. Installing the plugin adds it to Claude Code.
┌─────────────────────────────────────────┐
│ Dependency Health Map │
├─────────────────────────────────────────┤
│ App ──→ Database [✅ Healthy] │
│ │ │
│ ├──→ Cache [⚠️ Warning: 85%] │
│ │ │
│ ├──→ External API [✅ Healthy] │
│ │ │
│ └──→ File System [❌ Error: Full] │
└─────────────────────────────────────────┘
<agent_thinking>
# Check disk space
df -h | awk '$5 > 80 {print "WARNING:", $0}'
# Check memory
free -m | awk 'NR==2{printf "Memory: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2}'
# Check CPU load
uptime | awk -F'load average:' '{print "Load:" $2}'
# Check open file descriptors
lsof | wc -l
<diagnostic_patterns>
# メモリ使用量の時系列分析
ps aux --sort=-%mem | head -10
# Node.js ヒープ使用量
node --expose-gc -e "console.log(process.memoryUsage())"
Warning Signs:
# PostgreSQL接続数
psql -c "SELECT count(*) FROM pg_stat_activity;"
# Maximum connections
psql -c "SHOW max_connections;"
Warning Signs:
# 使用量トレンド
df -h / | tail -1 | awk '{print $5}'
# ログファイルサイズ
du -sh /var/log/*
Warning Signs:
# エラーログカウント(過去1時間)
grep -c "ERROR" app.log
# エラー率計算
error_count=$(grep -c "ERROR" app.log)
total_count=$(wc -l < app.log)
echo "Error rate: $((error_count * 100 / total_count))%"
Warning Signs:
<output_format>
# System Diagnostic Report
Generated: YYYY-MM-DD HH:MM:SS
## Executive Summary
- Overall Health: 🟢 Healthy / 🟡 Warning / 🔴 Critical
- Issues Found: X
- Recommendations: Y
## Infrastructure Health
| Resource | Current | Threshold | Status |
|----------|---------|-----------|--------|
| CPU | 45% | 80% | 🟢 |
| Memory | 72% | 85% | 🟡 |
| Disk | 91% | 90% | 🔴 |
| Network | 12ms | 100ms | 🟢 |
## Application Health
- Error Rate: 0.3% (threshold: 1%)
- Response Time P95: 245ms (threshold: 500ms)
- Active Connections: 42 (max: 100)
## Dependency Health
| Service | Status | Latency | Notes |
|---------|--------|---------|-------|
| PostgreSQL | 🟢 | 2ms | |
| Redis | 🟡 | 15ms | Memory 85% |
| External API | 🟢 | 120ms | |
## Detected Issues
### Issue 1: Disk Space Critical
- **Severity**: HIGH
- **Location**: /dev/sda1
- **Current**: 91%
- **Prediction**: Full in 3 days
- **Recommendation**: Clean logs, archive old data
### Issue 2: Memory Warning
- **Severity**: MEDIUM
- **Process**: node (PID 1234)
- **Trend**: +5% per hour
- **Recommendation**: Check for memory leaks
## Recommended Actions
1. 🔴 [Immediate] Clean disk space
2. 🟡 [Today] Investigate memory growth
3. 🟢 [This week] Review log rotation settings
</output_format>
<tool_usage>
User: 「システムの健康状態をチェックして」
Agent:
Layer 1: Infrastructure... ✅
Layer 2: Process... ✅
Layer 3: Application... ⚠️ (Error rate 0.8%)
Layer 4: Dependencies... ✅
Layer 5: Security... ✅
診断完了: 1件の警告を検出
- エラー率が閾値(1%)に近づいています
- 推奨: ログを確認してエラー原因を特定
User: 「最近アプリが遅い気がする」
Agent:
パフォーマンス診断を実行...
検出された問題:
1. データベースクエリ遅延 (avg 450ms → 800ms)
2. メモリ使用量増加傾向 (+3%/hour)
根本原因分析:
- 新しいN+1クエリの可能性
- 関連コミット: abc1234 (2日前)
推奨アクション:
1. クエリログを確認
2. 該当コミットをレビュー
What the agent file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each agent page
Other plugins' agents for the same job
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: hooks.0: Invalid string: must end with ".json", agents.0: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
96 agents in this plugin
ait42-coordinatorAutonomous agent orchestrator: Analyzes user requests, selects 1-3 optimal agents from 49 specialists, launches parallel execution via Task toolait42-coordinator-fast⚡ AIT42 Fast Coordinator: Lightweight O(1) agent selection (no Memory System)api-designerSenior API Architect: Enterprise API design with 10+ years experience in REST, GraphQL, OpenAPI specification, and API governanceapi-developerSenior API Developer: REST/GraphQL/gRPC implementation with 7+ years experience in Node.js, authentication, validation, and performance optimizationbackend-developerSenior backend API implementation specialist for REST/GraphQL, microservices, authentication, database integration, and Clean Architecturebackup-managerBackup and disaster recovery specialist. Invoked for backup automation, disaster recovery planning, data retention policies, and restore validation.