概要
AIプログラミングアシスタントに一連のルールを提供し、回答をより簡潔かつ直接的にします。余計な定型挨拶を省き、手順に番号を付け、次のアクションから始めます。ADHDユーザー向けに特別に設計されていますが、直接的な答えを求めるすべての開発者にも役立ちます。
README プレビュー
\n \n\n\n ADHD-friendly outputs. No ADHD diagnosis needed!\n\n\n \n\n\n\n## Install\n\n\nClaude Code\n\n```bash\nclaude plugin marketplace add ayghri/i-have-adhd\nclaude plugin install i-have-adhd@i-have-adhd\n```\n\nThen type `/i-have-adhd`. No local clone needed: Claude Code fetches the repo and keeps it updated.\n\nWant it on every session? `touch ~/.claude/.i-have-adhd-always` (see [INSTALL.md](./INSTALL.md)).\n\n\n\n\nCodex\n\n```bash\ncodex plugin marketplace add ayghri/i-have-adhd --ref main\ncodex plugin add i-have-adhd@i-have-adhd\n```\n\nThen type `$i-have-adhd` to apply the output style explicitly. The skill can also be invoked implicitly when Codex sees a task that benefits from it.\n\n\n\nInstall instructions for other coding agents live in [INSTALL.md](./INSTALL.md).\n\n## What it does\n\nA skill for your coding assistant that stops it from burying the answer. Action first. Steps numbered. No "Hope this helps!"\n\n\n## What changes\n\n\n\n\n\n\n## Before\n\n> Great question! Let me think about this. Your auth flow has a few moving pieces: the middleware, the token verification, and the cookie handling. Looking at `src/auth.ts`, the `verifyToken` function (around lines 42-58) seems to be using an older `jsonwebtoken` API. One approach would be to update the package and rewrite that function. After making the change, you'd want to run the auth tests to confirm nothing breaks. By the way, you might also want to look at your dependency versions overall. Hope this helps! Let me know if you want to dig deeper.\n\n\n\n\n\n## After\n\n> Run `npm install jsonwebtoken@latest`, then edit `src/auth.ts:42`.\n>\n> 1. Open `src/auth.ts`\n> 2. Replace `verifyToken` (lines 42–58) with the snippet below\n> 3. Run `npm test -- auth.spec.ts`\n>\n> Next: paste the first failing line if any test fails.\n\n\n\n\n\n\n## The rules\n\n10 rules. Full text in [SKILL.md](./skills/i-have-adhd/SKILL.md).\n\n1. Lead with the next action.\n2. Number multi-step tasks.\n3. End with o
FAQ (5)
トラブル対応なぜHermesでスキルをインストールした後、`/i-have-adhd`が動作しないのですか?
Hermesは個々のスキルをスラッシュコマンドとして登録しません。インストールコマンドは正しいです:
hermes skills install ayghri/i-have-adhd/skills/i-have-adhd
スキルは ~/.hermes/skills/ 配下にインストールされますが、エージェントに直接指示することで有効化されます。例えば:
use i-have-adhd mode
会話がスキルの説明に一致する場合、Hermesが自動的に読み込むこともあります。無効にするには、次のように言います:
stop adhd mode
/i-have-adhd と入力しないでください。Hermesは認識されないコマンドとして報告します。
トラブル対応main で SKILL.md が変更されたにもかかわらず、`claude plugin update` を実行しても古いままになる Claude Code プラグインはどうすれば修正できますか?
これは、.claude-plugin/plugin.json の version を変更せずにプラグインファイルが変更された場合に発生します。Claude Code は、バージョン文字列が変更されるまでキャッシュされたバージョンを保持し続けます。これを修正するには、整合させているすべてのマニフェストでバージョンを上げて(例: 0.3.0 から 0.3.1 へ)、次を実行します:
claude plugin marketplace update i-have-adhd
claude plugin update i-have-adhd@i-have-adhd
既存のインストールに対する即時の回避策として、プラグインをアンインストールして再インストールします:
claude plugin uninstall i-have-adhd@i-have-adhd
claude plugin marketplace update i-have-adhd
claude plugin install i-have-adhd@i-have-adhd
今後は、SKILL.md やその他の同梱されているプラグインコンテンツが変更されるたびに、プラグインのバージョンを上げてください。
トラブル対応WindowsのClaude Code SessionStartフックで'sh'が見つからず、PowerShellで${CLAUDE_PLUGIN_ROOT}が空になるエラーを修正するにはどうすればよいですか?
同梱されているフックはPOSIX構文を使用していますが、WindowsではPowerShell経由で実行されます。PowerShellはshを見つけることができず、また${CLAUDE_PLUGIN_ROOT}は環境変数の参照ではなくPowerShellの変数構文であるため、空文字列に展開されてしまいます。PowerShellでは$env:CLAUDE_PLUGIN_ROOTを使用するか、シェルフックをNode/PowerShell実装に置き換えてください。
即時の回避策: PowerShell版を作成します。たとえば、プラグインルートにi-have-adhd-always.ps1を作成します:
$flag = Join-Path $HOME '.claude\.i-have-adhd-always'
if (-not (Test-Path $flag -PathType Leaf)) { exit 0 }
$skill = Get-ChildItem -Path $PSScriptRoot -Recurse -Filter SKILL.md -File |
Sort-Object LastWriteTime -Descending |
Select-Object -First 1
if (-not $skill) { exit 0 }
$text = Get-Content -Raw $skill.FullName
$text = [regex]::Replace($text, '(?s)\A---\r?\n.*?\r?\n---\r?\n?', '')
Write-Output $text
exit 0
次に、フックコマンドをその絶対パスに向け直します:
"command": "powershell -NoProfile -ExecutionPolicy Bypass -File \"C:\\path\\to\\plugin\\i-have-adhd-always.ps1\""
Claude Codeを再起動してください。フラグファイルが存在しない場合、スクリプトはコード0で何も出力せずに終了します。
恒久的でポータブルな修正: always-on.shをalways-on.mjsに移植し、Claude Codeで利用可能なNodeで実行します。Windowsでは、次のようなPowerShellで安全なコマンドを使用します:
"command": "node \"$env:CLAUDE_PLUGIN_ROOT\\hooks\\always-on.mjs\""
WindowsとPOSIX用にOS固有のフックエントリを使用するか、Nodeを優先しshにフォールバックするランチャーを提供してください。PowerShellのフックコマンドで${CLAUDE_PLUGIN_ROOT}を直接使用しないでください。
トラブル対応ドキュメント内の npm install の例が原因で発生する `unpinned_npm_install` サプライチェーン警告を修正するにはどうすればよいですか?
バージョンが固定されていない例(npm install jsonwebtoken や npm install jsonwebtoken@latest など)を、サードパーティパッケージをインストールしないアクション優先の指示に置き換えてください。例: Edit src/auth.ts:42 to update the token validation. skills/i-have-adhd/SKILL.md、.cursor/skills/i-have-adhd/SKILL.md、README.md、および翻訳版のREADMEファイルを含むすべての同期コピーを更新してください。該当する場合はソースから再生成してください。インストールコマンドを残す必要がある場合は、npm install --save-exact jsonwebtoken@<version> でバージョンを固定してください。ただし、不要な例を削除する方がシンプルで、古くなったバージョンのドキュメントを避けることができます。
トラブル対応OpenCode プラグインをグローバルにインストールした後に `/i-have-adhd` コマンドが表示されない問題を修正するにはどうすればよいですか?
OpenCode 1.18.27 では、.opencode/command/ 内のコマンドは、そのプロジェクトのチェックアウトから OpenCode を実行した場合にのみ検出されます。また、スキル由来のコマンドも TUI のスラッシュコマンドメニューには表示されません。グローバルインストールの場合は、~/.config/opencode/commands/ を通じてコマンドを公開してください:
mkdir -p ~/.config/opencode/commands
ln -sf ~/.config/opencode/vendor/i-have-adhd/.opencode/command/i-have-adhd.md \
~/.config/opencode/commands/i-have-adhd.md
OpenCode を再起動して / と入力すると、/i-have-adhd が表示されるはずです。プラグイン側での恒久的な修正としては、プラグインの config フックで config.command["i-have-adhd"] に description と template を指定してコマンドを登録する方法があります。