jhillock

Discord Doctor

IT運用・セキュリティv1.0.0
作者:jhillock更新日 2026-05-11discord-doctor@clawhub_jhillock/discord-doctor
セキュリティスキャン障害対応#Discord

AlphaMoatによると、2026-09時点でDiscord Doctorのダウンロード数は3,255、スター数は1で、AIスキル全体5,078件中3,505位、IT運用・セキュリティでは264件中226位です。

インストール数
103
ダウンロード数
3255
スター数
1
総合順位
#3,505
全体の上位 70% · IT運用・セキュリティの上位 86%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗10331061-
SkillHub ↗10332551—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

アプリやサービスの状態、接続、トークンの有効性、最近の活動を確認する方法を説明します。--fixモードでは依存関係のインストール、サービスの起動や再起動、旧launchd項目の削除、設定ディレクトリの移動も行われる可能性があります。システム状態やサービス稼働に影響し得るため、実行前に具体的なコマンド、対象パス、復旧可能性、許可を確認してください。

資料公開日 2026-10-29

できること

  • Discord bot、Gateway、OAuthの状態確認項目をまとめる。
  • 読み取り専用の診断とシステムを変更し得る自動修復を区別する。
  • 旧設定の移行に関係するパスと副作用を確認する。

使う場面

  • Discord接続やGatewayの稼働状況を調べるとき。
  • OAuthの期限切れや旧設定の競合を確認するとき。
  • 自動修復の前に、インストール、再起動、削除、移動される項目を確認するとき。

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

自動修復を実行せず、このガイドに沿った診断手順をまとめてください。
この修復モードで変更される可能性のあるシステム構成要素と設定パスを説明してください。

月次の推移

ダウンロード数3255
2053269933442026-03 · ダウンロード数 21422026-05 · ダウンロード数 26172026-07 · ダウンロード数 29322026-08 · ダウンロード数 30512026-09 · ダウンロード数 325526-0326-09
スター数1
0122026-03 · スター数 12026-05 · スター数 12026-07 · スター数 12026-08 · スター数 12026-09 · スター数 126-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093255—1
2026-083051+4.1%1
2026-072932—1
2026-052617—1
2026-032142—1

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

2.9 KB・ClawHub v1.0.0
---
name: discord-doctor
description: Quick diagnosis and repair for Discord bot, Gateway, OAuth token, and legacy config issues. Checks connectivity, token expiration, and cleans up old Clawdis artifacts.
metadata: {"clawdbot":{"emoji":"🩺","os":["darwin","linux"],"requires":{"bins":["node","curl"]}}}
---

# Discord Doctor

Quick diagnosis and repair for Discord/Gateway availability issues, OAuth token problems, and legacy Clawdis configuration conflicts.
すべて表示(全 100 行)
## Usage

```bash
# Check status (diagnostic only)
discord-doctor

# Check and auto-fix issues
discord-doctor --fix
```

## What It Checks

1. **Discord App** - Is the Discord desktop app running (optional, for monitoring)
2. **Gateway Process** - Is the Clawdbot gateway daemon running
3. **Gateway HTTP** - Is the gateway responding on port 18789
4. **Discord Connection** - Is the bot actually connected to Discord (via `clawdbot health`)
5. **Anthropic OAuth** - Is your OAuth token valid or expired
6. **Legacy Clawdis** - Detects old launchd services and config directories that cause conflicts
7. **Recent Activity** - Shows recent Discord sessions

## Auto-Fix Capabilities

When run with `--fix`, it can:

- **Start gateway** if not running
- **Install missing npm packages** (like discord.js, strip-ansi)
- **Restart gateway** after fixing dependencies
- **Remove legacy launchd service** (`com.clawdis.gateway.plist`)
- **Backup legacy config** (moves `~/.clawdis` to `~/.clawdis-backup`)

## Common Issues & Fixes

| Issue | Auto-Fix Action |
|-------|-----------------|
| Gateway not running | Starts gateway on port 18789 |
| Missing npm packages | Runs `npm install` + installs specific package |
| Discord disconnected | Restarts gateway to reconnect |
| OAuth token expired | Shows instructions to re-authenticate |
| Legacy launchd service | Removes old `com.clawdis.gateway.plist` |
| Legacy ~/.clawdis config | Moves to `~/.clawdis-backup` |

## OAuth Token Issues

If you see "Access token EXPIRED", run:
```bash
cd ~/Clawdis && npx clawdbot configure
```
Then select "Anthropic OAuth (Claude Pro/Max)" to re-authenticate.

## Legacy Clawdis Migration

If you upgraded from Clawdis to Clawdbot, you may have legacy artifacts causing OAuth token conflicts:

- **Old launchd service**: `~/Library/LaunchAgents/com.clawdis.gateway.plist`
- **Old config directory**: `~/.clawdis/`

Run `discord-doctor --fix` to clean these up automatically.

## Example Output

```
Discord Doctor
Checking Discord and Gateway health...

1. Discord App
   Running (6 processes)

2. Gateway Process
   Running (PID: 66156, uptime: 07:45)

3. Gateway HTTP
   Responding on port 18789

4. Discord Connection
   Discord: ok (@Clawdis) (321ms)

5. Anthropic OAuth
   Valid (expires in 0h 45m)

6. Legacy Clawdis
   No legacy launchd service
   No legacy config directory

7. Recent Discord Activity
   - discord:group:123456789012345678 (21h ago)

Summary
All checks passed! Discord is healthy.
```

IT運用・セキュリティの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。