A skill to stop your coding agent from burying the answer. ADHD-friendly output.
fix(docs): create Zed skills directory before copying
ayghri5368463340df
diff --git a/.github/install/INSTALL.ja.md b/.github/install/INSTALL.ja.mdindex 7e2e503..e2824f4 100644--- a/.github/install/INSTALL.ja.md+++ b/.github/install/INSTALL.ja.md@@ -626,6 +626,7 @@ https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md```bashgit clone https://github.com/ayghri/i-have-adhd+mkdir -p ~/.agents/skillscp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/```diff --git a/.github/install/INSTALL.ko.md b/.github/install/INSTALL.ko.mdindex 7f3f11a..c31449c 100644--- a/.github/install/INSTALL.ko.md+++ b/.github/install/INSTALL.ko.md@@ -519,6 +519,7 @@ https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md```bashgit clone https://github.com/ayghri/i-have-adhd+mkdir -p ~/.agents/skillscp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/```diff --git a/.github/install/INSTALL.pt-BR.md b/.github/install/INSTALL.pt-BR.mdindex 8dfa0df..746b4a8 100644--- a/.github/install/INSTALL.pt-BR.md+++ b/.github/install/INSTALL.pt-BR.md@@ -519,6 +519,7 @@ Prefere o sistema de arquivos? Clone o repositório e coloque a pasta da skill n```bashgit clone https://github.com/ayghri/i-have-adhd+mkdir -p ~/.agents/skillscp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/```diff --git a/.github/install/INSTALL.vi.md b/.github/install/INSTALL.vi.mdindex 5c50794..c4bbd8f 100644--- a/.github/install/INSTALL.vi.md+++ b/.github/install/INSTALL.vi.md@@ -519,6 +519,7 @@ Muốn dùng hệ thống tệp? Clone repo và đặt thư mục skill vào th```bashgit clone https://github.com/ayghri/i-have-adhd+mkdir -p ~/.agents/skillscp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/```diff --git a/.github/install/INSTALL.zh-CN.md b/.github/install/INSTALL.zh-CN.mdindex 401d6ea..b9ea31b 100644--- a/.github/install/INSTALL.zh-CN.md+++ b/.github/install/INSTALL.zh-CN.md@@ -519,6 +519,7 @@ https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md```bashgit clone https://github.com/ayghri/i-have-adhd+mkdir -p ~/.agents/skillscp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/```diff --git a/INSTALL.md b/INSTALL.mdindex 321422b..b76a642 100644--- a/INSTALL.md+++ b/INSTALL.md@@ -631,6 +631,7 @@ Prefer the filesystem? Clone the repo and drop the skill folder into your user s```bashgit clone https://github.com/ayghri/i-have-adhd+mkdir -p ~/.agents/skillscp -R i-have-adhd/skills/i-have-adhd ~/.agents/skills/```diff --git a/tests/test_install_docs.py b/tests/test_install_docs.pyindex 4d47889..7c890a7 100644--- a/tests/test_install_docs.py+++ b/tests/test_install_docs.py@@ -4,7 +4,7 @@Zed loads skills from `~/.agents/skills/` and `<worktree>/.agents/skills/` andsupports no custom search paths, so that is the only directory INSTALL can tella 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+hand, and all six had drifted to `~/.config/zed/skills/` (adirectory Zed does not read) with no check catching it. These tests fail if anylocale points at a directory Zed ignores, or if a locale half-updates and keepsboth spellings.@@ -12,6 +12,10 @@ both spellings.from __future__ import annotations+import shlex+import shutil+import subprocess+import tempfileimport unittestfrom pathlib import Path@@ -27,6 +31,36 @@ RIGHT_ZED_SKILLS_PATH = "~/.agents/skills"class ZedInstallPathTest(unittest.TestCase):+ def test_filesystem_install_creates_discoverable_skill(self) -> None:+ for path in INSTALL_FILES:+ for agents_exists in (False, True):+ with self.subTest(file=path.name, agents_exists=agents_exists):+ text = path.read_text(encoding="utf-8")+ block = text.split("<summary><strong>Zed</strong></summary>", 1)[1]+ block = block.split("</details>", 1)[0]+ commands = [+ shlex.split(line) for line in block.splitlines()+ if line.startswith(("mkdir ", "cp "))+ ]+ self.assertTrue(commands)+ with tempfile.TemporaryDirectory() as directory:+ base = Path(directory)+ home = base / "test home"+ home.mkdir()+ if agents_exists:+ (home / ".agents").mkdir()+ source = base / "i-have-adhd/skills/i-have-adhd"+ shutil.copytree(ROOT / "skills/i-have-adhd", source)+ for _ in range(2): # Installation and re-copy update.+ for command in commands:+ args = [+ str(home) + arg[1:] if arg.startswith("~/") else arg+ for arg in command+ ]+ subprocess.run(args, cwd=base, check=True, capture_output=True)+ installed = home / ".agents/skills/i-have-adhd/SKILL.md"+ self.assertEqual((source / "SKILL.md").read_bytes(), installed.read_bytes())+def test_every_locale_is_discovered(self) -> None:# Guards the glob above: a rename that silently drops files would make# the checks below vacuous.