Skip to content

A skill to stop your coding agent from burying the answer. ADHD-friendly output.

docs(install): make the Claude Code update step update the installed plugin

Arian Boukania475dba78e7f
diff --git a/.github/install/INSTALL.ar.md b/.github/install/INSTALL.ar.md
index e56e6e1..9d1888b 100644
--- a/.github/install/INSTALL.ar.md
+++ b/.github/install/INSTALL.ar.md
@@ -133,6 +133,7 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
### إلغاء التثبيت
@@ -871,7 +872,7 @@ npx skills remove i-have-adhd -g # إذا ثُبّتت عالميًا
**`/i-have-adhd` ليس في وضع الإكمال التلقائي.** أعد تشغيل الوكيل. تتم قراءة فهرس المكوّن الإضافي عند بدء التشغيل. في Grok، شغّل أيضًا `grok plugin enable i-have-adhd` وتأكد من أن التثبيت استخدم `--trust`.
-**علامة التشغيل الدائم ليس لها أي تأثير.** قم بتحديث المكوّن الإضافي (`claude plugin marketplace update i-have-adhd`) وأعد التشغيل. تتم قراءة الخطافات عند بدء التشغيل، ويتطلب ملف العلامة إصدارًا من المكوّن الإضافي يتضمن `hooks/hooks.json`. لا يقرأ Grok ملف `~/.claude/.i-have-adhd-always`؛ ضع كتلة التشغيل الدائم بدلاً من ذلك في `~/.grok/AGENTS.md` أو `~/.grok/rules/i-have-adhd.md`.
+**علامة التشغيل الدائم ليس لها أي تأثير.** قم بتحديث المكوّن الإضافي (`claude plugin marketplace update i-have-adhd` ثم `claude plugin update i-have-adhd@i-have-adhd`) وأعد التشغيل. تتم قراءة الخطافات عند بدء التشغيل، ويتطلب ملف العلامة إصدارًا من المكوّن الإضافي يتضمن `hooks/hooks.json`. لا يقرأ Grok ملف `~/.claude/.i-have-adhd-always`؛ ضع كتلة التشغيل الدائم بدلاً من ذلك في `~/.grok/AGENTS.md` أو `~/.grok/rules/i-have-adhd.md`.
**فشل `claude plugin marketplace add`.** استخدم نموذج `owner/repo`. يجب أن يشير المسار المحلي إلى جذر المستودع، وليس إلى `.claude-plugin/`.
diff --git a/.github/install/INSTALL.fa.md b/.github/install/INSTALL.fa.md
index 6252391..0291d87 100644
--- a/.github/install/INSTALL.fa.md
+++ b/.github/install/INSTALL.fa.md
@@ -118,6 +118,7 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
### حذف نصب
@@ -786,7 +787,7 @@ Exceptions: explain fully when asked to explain. Confirm before destructive acti
**دستور `/i-have-adhd` در تکمیل خودکار نیست.** عامل را مجدداً راه‌اندازی کنید. فهرست پلاگین‌ها در شروع خوانده می‌شود.
-**پرچم همیشه فعال اثری ندارد.** پلاگین را به‌روزرسانی کنید (`claude plugin marketplace update i-have-adhd`) و مجدداً راه‌اندازی کنید. هوک‌ها در شروع خوانده می‌شوند و پرچم به نسخه‌ای از پلاگین نیاز دارد که `hooks/hooks.json` را ارائه می‌دهد.
+**پرچم همیشه فعال اثری ندارد.** پلاگین را به‌روزرسانی کنید (`claude plugin marketplace update i-have-adhd` و سپس `claude plugin update i-have-adhd@i-have-adhd`) و مجدداً راه‌اندازی کنید. هوک‌ها در شروع خوانده می‌شوند و پرچم به نسخه‌ای از پلاگین نیاز دارد که `hooks/hooks.json` را ارائه می‌دهد.
**دستور `claude plugin marketplace add` با خطا مواجه می‌شود.** از فرم `owner/repo` استفاده کنید. یک مسیر محلی باید به ریشه ریپازیتوری اشاره کند، نه به `.claude-plugin/`.
diff --git a/.github/install/INSTALL.id.md b/.github/install/INSTALL.id.md
index 603d092..951c31f 100644
--- a/.github/install/INSTALL.id.md
+++ b/.github/install/INSTALL.id.md
@@ -77,6 +77,7 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
### Uninstal
@@ -640,7 +641,7 @@ Di Claude Code, Qwen Code, dan Codex gak ada jalan tengah: jikalau Anda tidak me
**`/i-have-adhd` tidak muncul di pelengkapan otomatis (autocomplete).** Mulai ulang agen Anda. Indeks plugin dibaca saat startup.
-**Flag selalu aktif tidak berfungsi.** Perbarui plugin (`claude plugin marketplace update i-have-adhd`) dan mulai ulang. Hook dibaca saat startup, dan flag ini memerlukan versi yang menyertakan `hooks/hooks.json`.
+**Flag selalu aktif tidak berfungsi.** Perbarui plugin (`claude plugin marketplace update i-have-adhd`, lalu `claude plugin update i-have-adhd@i-have-adhd`) dan mulai ulang. Hook dibaca saat startup, dan flag ini memerlukan versi yang menyertakan `hooks/hooks.json`.
**`claude plugin marketplace add` gagal.** Gunakan format `owner/repo`. Jalur lokal harus mengarah ke root repositori, bukan ke `.claude-plugin/`.
diff --git a/.github/install/INSTALL.ja.md b/.github/install/INSTALL.ja.md
index 818bebb..5db205f 100644
--- a/.github/install/INSTALL.ja.md
+++ b/.github/install/INSTALL.ja.md
@@ -77,6 +77,7 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
### アンインストール
@@ -754,7 +755,7 @@ Claude Code、Qwen Code、Codex には中間状態がありません。有効化
**`/i-have-adhd` が自動補完に表示されない →** エージェントを再起動してください。プラグインのインデックスは起動時に読み込まれます。
-**常時有効フラグが効かない →** プラグインを更新(`claude plugin marketplace update i-have-adhd`)して再起動してください。フックは起動時に読み込まれるほか、フラグの認識には `hooks/hooks.json` が含まれるバージョンが必要です。
+**常時有効フラグが効かない →** プラグインを更新(`claude plugin marketplace update i-have-adhd` の後に `claude plugin update i-have-adhd@i-have-adhd`)して再起動してください。フックは起動時に読み込まれるほか、フラグの認識には `hooks/hooks.json` が含まれるバージョンが必要です。
**`claude plugin marketplace add` が失敗する →** `owner/repo` 形式を使用してください。ローカルパスを指定する場合は `.claude-plugin/` ではなくリポジトリのルートを指す必要があります。
diff --git a/.github/install/INSTALL.ko.md b/.github/install/INSTALL.ko.md
index 462afef..d152e42 100644
--- a/.github/install/INSTALL.ko.md
+++ b/.github/install/INSTALL.ko.md
@@ -77,6 +77,7 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
### 제거
@@ -643,7 +644,7 @@ Claude Code, Qwen Code, Codex에는 중간 상태가 없습니다. 켜지 않았
**자동 완성에 `/i-have-adhd`가 없습니다.** 에이전트를 다시 시작하세요. 플러그인 인덱스는 시작 시 읽힙니다.
-**항상 활성화 플래그가 작동하지 않습니다.** 플러그인을 업데이트하고(`claude plugin marketplace update i-have-adhd`) 다시 시작하세요. 훅은 시작 시 읽히며 플래그에는 `hooks/hooks.json`이 포함된 플러그인 버전이 필요합니다.
+**항상 활성화 플래그가 작동하지 않습니다.** 플러그인을 업데이트하고(`claude plugin marketplace update i-have-adhd` 실행 후 `claude plugin update i-have-adhd@i-have-adhd`) 다시 시작하세요. 훅은 시작 시 읽히며 플래그에는 `hooks/hooks.json`이 포함된 플러그인 버전이 필요합니다.
**`claude plugin marketplace add`가 실패합니다.** `owner/repo` 형식을 사용하세요. 로컬 경로는 `.claude-plugin/`이 아니라 저장소 루트를 가리켜야 합니다.
diff --git a/.github/install/INSTALL.pt-BR.md b/.github/install/INSTALL.pt-BR.md
index 10e4d65..0dc4ed5 100644
--- a/.github/install/INSTALL.pt-BR.md
+++ b/.github/install/INSTALL.pt-BR.md
@@ -77,6 +77,7 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
### Desinstalar
@@ -643,7 +644,7 @@ No Claude Code, Qwen Code e Codex não há meio-termo: se você não ativou, est
**`/i-have-adhd` não aparece no preenchimento automático.** Reinicie o agente. O índice de plugins é lido na inicialização.
-**A flag de sempre ativo não funciona.** Atualize o plugin (`claude plugin marketplace update i-have-adhd`) e reinicie. Hooks são lidos na inicialização, e a flag exige a versão que inclui `hooks/hooks.json`.
+**A flag de sempre ativo não funciona.** Atualize o plugin (`claude plugin marketplace update i-have-adhd` e depois `claude plugin update i-have-adhd@i-have-adhd`) e reinicie. Hooks são lidos na inicialização, e a flag exige a versão que inclui `hooks/hooks.json`.
**`claude plugin marketplace add` falha.** Use o formato `owner/repo`. Um caminho local deve apontar para a raiz do repositório, não para `.claude-plugin/`.
diff --git a/.github/install/INSTALL.vi.md b/.github/install/INSTALL.vi.md
index a8c047f..721a973 100644
--- a/.github/install/INSTALL.vi.md
+++ b/.github/install/INSTALL.vi.md
@@ -77,6 +77,7 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
### Gỡ cài đặt
@@ -643,7 +644,7 @@ Trong Claude Code, Qwen Code và Codex không có trạng thái trung gian: nế
**`/i-have-adhd` không có trong tự động hoàn thành.** Khởi động lại agent. Chỉ mục plugin được đọc khi khởi động.
-**Cờ luôn bật không có tác dụng.** Cập nhật plugin (`claude plugin marketplace update i-have-adhd`) và khởi động lại. Hook được đọc khi khởi động, và cờ cần phiên bản plugin có `hooks/hooks.json`.
+**Cờ luôn bật không có tác dụng.** Cập nhật plugin (`claude plugin marketplace update i-have-adhd`, sau đó `claude plugin update i-have-adhd@i-have-adhd`) và khởi động lại. Hook được đọc khi khởi động, và cờ cần phiên bản plugin có `hooks/hooks.json`.
**`claude plugin marketplace add` thất bại.** Dùng dạng `owner/repo`. Đường dẫn cục bộ phải trỏ đến thư mục gốc repo, không phải `.claude-plugin/`.
diff --git a/.github/install/INSTALL.zh-CN.md b/.github/install/INSTALL.zh-CN.md
index 3cd1dfb..bc50c77 100644
--- a/.github/install/INSTALL.zh-CN.md
+++ b/.github/install/INSTALL.zh-CN.md
@@ -130,6 +130,7 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
### 卸载
@@ -804,7 +805,7 @@ npx skills remove i-have-adhd -g # 如果全局安装
**自动补全中没有 `/i-have-adhd`。** 重启智能体。插件索引在启动时读取。
-**始终启用标志无效。** 更新插件(`claude plugin marketplace update i-have-adhd`)并重启。钩子在启动时读取,且该标志需要包含 `hooks/hooks.json` 的插件版本。
+**始终启用标志无效。** 更新插件(先运行 `claude plugin marketplace update i-have-adhd`,再运行 `claude plugin update i-have-adhd@i-have-adhd`)并重启。钩子在启动时读取,且该标志需要包含 `hooks/hooks.json` 的插件版本。
**`claude plugin marketplace add` 失败。** 使用 `owner/repo` 格式。本地路径必须指向仓库根目录,而不是 `.claude-plugin/`。
diff --git a/INSTALL.md b/INSTALL.md
index f39b274..ebcdd7c 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -135,8 +135,13 @@ claude plugin list
```bash
claude plugin marketplace update i-have-adhd
+claude plugin update i-have-adhd@i-have-adhd
```
+The first command refreshes the marketplace listing. The second updates the installed plugin. Restart Claude Code to load it.
+
+`claude plugin update` skips a plugin whose `version` has not changed. If you maintain a fork, bump `version` in `.claude-plugin/plugin.json` after you edit the rules.
+
### Uninstall
```bash
@@ -876,7 +881,7 @@ In Claude Code, Qwen Code, Codex, and Grok, no middle ground: if you did not tur
**`/i-have-adhd` not in autocomplete.** Restart the agent. The plugin index is read at startup. On Grok, also run `grok plugin enable i-have-adhd` and confirm the install used `--trust`.
-**Always-on flag has no effect.** Update the plugin (`claude plugin marketplace update i-have-adhd`) and restart. Hooks are read at startup, and the flag needs the plugin version that ships `hooks/hooks.json`. Grok does not read `~/.claude/.i-have-adhd-always`; put the always-on block in `~/.grok/AGENTS.md` or `~/.grok/rules/i-have-adhd.md`.
+**Always-on flag has no effect.** Update the plugin (`claude plugin marketplace update i-have-adhd`, then `claude plugin update i-have-adhd@i-have-adhd`) and restart. Hooks are read at startup, and the flag needs the plugin version that ships `hooks/hooks.json`. Grok does not read `~/.claude/.i-have-adhd-always`; put the always-on block in `~/.grok/AGENTS.md` or `~/.grok/rules/i-have-adhd.md`.
**`claude plugin marketplace add` fails.** Use the `owner/repo` form. A local path must point at the repo root, not `.claude-plugin/`.
diff --git a/tests/test_install_docs.py b/tests/test_install_docs.py
index e3e1e9c..9515bba 100644
--- a/tests/test_install_docs.py
+++ b/tests/test_install_docs.py
@@ -1,12 +1,31 @@
"""Checks installation paths in INSTALL.md and translations."""
import pathlib
+import re
import unittest
ROOT = pathlib.Path(__file__).resolve().parents[1]
+class ClaudeCodeUpdateTest(unittest.TestCase):
+ def test_marketplace_refresh_is_paired_with_plugin_update(self):
+ # `claude plugin marketplace update` refreshes only the marketplace
+ # listing; the installed copy stays at its old version until
+ # `claude plugin update` runs, so the docs must never offer the first alone.
+ refresh = "claude plugin marketplace update i-have-adhd"
+ update = "claude plugin update i-have-adhd@i-have-adhd"
+ translations = sorted((ROOT / ".github/install").glob("INSTALL.*.md"))
+ self.assertTrue(translations, "No translated installation guides found")
+ for path in [ROOT / "INSTALL.md", *translations]:
+ with self.subTest(file=path.name):
+ text = path.read_text(encoding="utf8")
+ self.assertIn(update, text)
+ for block in re.split(r"\n[^\S\n]*\n", text):
+ if refresh in block:
+ self.assertIn(update, block)
+
+
class ZedInstallPathTest(unittest.TestCase):
def test_zed_install_paths(self):
translations = sorted((ROOT / ".github/install").glob("INSTALL.*.md"))