Skip to content

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

docs(install): point Zed users at ~/.agents/skills, the only directory Zed scans

Matthew-Selvam589c75290762
diff --git a/.github/install/INSTALL.ja.md b/.github/install/INSTALL.ja.md
index 52e48da..7e2e503 100644
--- a/.github/install/INSTALL.ja.md
+++ b/.github/install/INSTALL.ja.md
@@ -626,7 +626,7 @@ https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md
```bash
git clone https://github.com/ayghri/i-have-adhd
-cp -R i-have-adhd/skills/i-have-adhd ~/.config/zed/skills/
+cp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/
```
### 確認
@@ -639,7 +639,7 @@ Agent Panel で Skills マネージャーを開き、`i-have-adhd` が一覧に
### アンインストール
-Skills マネージャーから `i-have-adhd` を削除するか、`~/.config/zed/skills/i-have-adhd` を削除します。
+Skills マネージャーから `i-have-adhd` を削除するか、`~/.agents/skills/i-have-adhd` を削除します。
### 常時有効(任意)
diff --git a/.github/install/INSTALL.ko.md b/.github/install/INSTALL.ko.md
index 687dfe5..7f3f11a 100644
--- a/.github/install/INSTALL.ko.md
+++ b/.github/install/INSTALL.ko.md
@@ -519,7 +519,7 @@ https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md
```bash
git clone https://github.com/ayghri/i-have-adhd
-cp -R i-have-adhd/skills/i-have-adhd ~/.config/zed/skills/
+cp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/
```
### 확인
@@ -532,7 +532,7 @@ Agent Panel에서 Skills 관리자를 열어 `i-have-adhd`가 목록에 있는
### 제거
-Skills 관리자에서 `i-have-adhd`를 제거하거나 `~/.config/zed/skills/i-have-adhd`를 삭제하세요.
+Skills 관리자에서 `i-have-adhd`를 제거하거나 `~/.agents/skills/i-have-adhd`를 삭제하세요.
### 항상 활성화(선택 사항)
diff --git a/.github/install/INSTALL.pt-BR.md b/.github/install/INSTALL.pt-BR.md
index cacb664..8dfa0df 100644
--- a/.github/install/INSTALL.pt-BR.md
+++ b/.github/install/INSTALL.pt-BR.md
@@ -519,7 +519,7 @@ Prefere o sistema de arquivos? Clone o repositório e coloque a pasta da skill n
```bash
git clone https://github.com/ayghri/i-have-adhd
-cp -R i-have-adhd/skills/i-have-adhd ~/.config/zed/skills/
+cp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/
```
### Verificar
@@ -532,7 +532,7 @@ Importe novamente pela mesma URL (sobrescreve) ou copie a pasta de novo após `g
### Desinstalar
-Remova `i-have-adhd` do gerenciador de Skills ou exclua `~/.config/zed/skills/i-have-adhd`.
+Remova `i-have-adhd` do gerenciador de Skills ou exclua `~/.agents/skills/i-have-adhd`.
### Sempre ativo (opcional)
diff --git a/.github/install/INSTALL.vi.md b/.github/install/INSTALL.vi.md
index c29709c..5c50794 100644
--- a/.github/install/INSTALL.vi.md
+++ b/.github/install/INSTALL.vi.md
@@ -519,7 +519,7 @@ Muốn dùng hệ thống tệp? Clone repo và đặt thư mục skill vào th
```bash
git clone https://github.com/ayghri/i-have-adhd
-cp -R i-have-adhd/skills/i-have-adhd ~/.config/zed/skills/
+cp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/
```
### Xác minh
@@ -532,7 +532,7 @@ Nhập lại từ cùng URL (ghi đè), hoặc sao chép lại thư mục sau `g
### Gỡ cài đặt
-Xóa `i-have-adhd` khỏi trình quản lý Skills, hoặc xóa `~/.config/zed/skills/i-have-adhd`.
+Xóa `i-have-adhd` khỏi trình quản lý Skills, hoặc xóa `~/.agents/skills/i-have-adhd`.
### Luôn bật (không bắt buộc)
diff --git a/.github/install/INSTALL.zh-CN.md b/.github/install/INSTALL.zh-CN.md
index b7b5dad..401d6ea 100644
--- a/.github/install/INSTALL.zh-CN.md
+++ b/.github/install/INSTALL.zh-CN.md
@@ -519,7 +519,7 @@ https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md
```bash
git clone https://github.com/ayghri/i-have-adhd
-cp -R i-have-adhd/skills/i-have-adhd ~/.config/zed/skills/
+cp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/
```
### 验证
@@ -532,7 +532,7 @@ cp -R i-have-adhd/skills/i-have-adhd ~/.config/zed/skills/
### 卸载
-从 Skills 管理器中移除 `i-have-adhd`,或删除 `~/.config/zed/skills/i-have-adhd`。
+从 Skills 管理器中移除 `i-have-adhd`,或删除 `~/.agents/skills/i-have-adhd`。
### 始终启用(可选)
diff --git a/INSTALL.md b/INSTALL.md
index e9d7bde..321422b 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -631,7 +631,7 @@ Prefer the filesystem? Clone the repo and drop the skill folder into your user s
```bash
git clone https://github.com/ayghri/i-have-adhd
-cp -R i-have-adhd/skills/i-have-adhd ~/.config/zed/skills/
+cp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/
```
### Verify
@@ -644,7 +644,7 @@ Re-import from the same URL (overwrites), or re-copy the folder after `git pull`
### Uninstall
-Remove `i-have-adhd` from the Skills manager, or delete `~/.config/zed/skills/i-have-adhd`.
+Remove `i-have-adhd` from the Skills manager, or delete `~/.agents/skills/i-have-adhd`.
### Always-on (optional)
diff --git a/tests/test_install_docs.py b/tests/test_install_docs.py
new file mode 100644
index 0000000..4d47889
--- /dev/null
+++ b/tests/test_install_docs.py
@@ -0,0 +1,65 @@
+#!/usr/bin/env python3
+"""Guards against locale drift in the Zed install instructions.
+
+Zed loads skills from `~/.agents/skills/` and `<worktree>/.agents/skills/` and
+supports no custom search paths, so that is the only directory INSTALL can tell
+a user to copy into. The English file and its five translations are edited by
+hand, and two of them had already drifted to `~/.config/zed/skills/` (a
+directory Zed does not read) with no check catching it. These tests fail if any
+locale points at a directory Zed ignores, or if a locale half-updates and keeps
+both spellings.
+"""
+
+from __future__ import annotations
+
+import unittest
+from pathlib import Path
+
+
+ROOT = Path(__file__).resolve().parents[1]
+INSTALL_FILES = (
+ ROOT / "INSTALL.md",
+ *sorted((ROOT / ".github" / "install").glob("INSTALL.*.md")),
+)
+# Zed reads skills only from these two roots; a custom path is not supported.
+WRONG_ZED_SKILLS_PATH = "~/.config/zed/skills"
+RIGHT_ZED_SKILLS_PATH = "~/.agents/skills"
+
+
+class ZedInstallPathTest(unittest.TestCase):
+ def test_every_locale_is_discovered(self) -> None:
+ # Guards the glob above: a rename that silently drops files would make
+ # the checks below vacuous.
+ self.assertEqual(6, len(INSTALL_FILES))
+
+ def test_no_locale_points_zed_at_a_path_it_does_not_read(self) -> None:
+ for path in INSTALL_FILES:
+ with self.subTest(file=path.name):
+ self.assertNotIn(
+ WRONG_ZED_SKILLS_PATH,
+ path.read_text(encoding="utf-8"),
+ f"{path.name} tells Zed users to copy into "
+ f"{WRONG_ZED_SKILLS_PATH}, which Zed does not scan",
+ )
+
+ def test_every_locale_documents_the_directory_zed_actually_reads(self) -> None:
+ # The <summary> wrapper is identical in every locale, unlike prose, so
+ # scope the assertion to the Zed block instead of the whole file.
+ for path in INSTALL_FILES:
+ with self.subTest(file=path.name):
+ text = path.read_text(encoding="utf-8")
+ start = text.find("<summary><strong>Zed</strong></summary>")
+ self.assertNotEqual(-1, start, f"{path.name} has no Zed block")
+ end = text.find("</details>", start)
+ self.assertNotEqual(-1, end, f"{path.name} has an unclosed Zed block")
+ block = text[start:end]
+ self.assertIn(
+ RIGHT_ZED_SKILLS_PATH,
+ block,
+ f"{path.name} does not mention {RIGHT_ZED_SKILLS_PATH} "
+ "in its Zed block",
+ )
+
+
+if __name__ == "__main__":
+ unittest.main()