dsh-i-have-adhd
简体中文 | English

一句话:打一句 /i-have-adhd,让 agent 从此先给行动、多步编号、砍掉寒暄 —— 输出为 ADHD 读者而塑造,不需要任何诊断。
移植自 i-have-adhd(MIT,20k+★),
上游的 SKILL.md 逐字保留、未翻译,只适配 DeepSeek Harness
的插件接口:dsh 没有 skill 服务,所以 /i-have-adhd 注册成一条命令,把 SKILL.md 正文按字节注入当前会话。
✨ 功能
- 🧠 先给行动 —— 第一行就是能做的事:命令、路径、代码片段在前,散文靠后
- 🔢 多步任务编号 —— 每步一个动作、步数最少,没有“然后然后”
- 🎯 结尾一个具体下一步 —— 还开着的事,给一件两分钟内能做完的
- ✂️ 抑制离题 —— 先收尾当前问题,第二件事单独再问
- 🔁 每轮重述状态 —— “第 3/5 步完成”,不让读者自己记住
- ⏱ 具体时间估计 —— 分钟数,不是“一会儿”
- ✅ 让完成可见 —— 直接展示现在能跑的东西,不把成果埋进总结
- 🤐 完整 10 条规则 —— 全文见
skills/i-have-adhd/SKILL.md(逐字保留)
📸 效果
Before
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.
|
After
Run npm install jsonwebtoken@latest, then edit src/auth.ts:42.
- Open
src/auth.ts
- Replace
verifyToken (lines 42–58) with the snippet below
- Run
npm test -- auth.spec.ts
Next: paste the first failing line if any test fails.
|
📦 安装
dsh plugin --profile <你的 profile> add github:GongYuanCaiJi/dsh-i-have-adhd
本包零构建、零运行时依赖(仅 peer @deepseek-ai/dsh-llm,由 profile 提供)。若 pnpm 拦下依赖
安装,在 profile 的 pnpm-workspace.yaml 里把本包加进 allowBuilds。
从本地目录安装:
git clone https://github.com/GongYuanCaiJi/dsh-i-have-adhd.git
cd dsh-i-have-adhd
dsh plugin --profile <你的 profile> add .
🚀 用法
/i-have-adhd # 打开 ADHD 模式,规则注入当前会话
stop adhd mode 或 normal mode # 关闭(SKILL.md 原文规定的关法)
规则对会话内后续每一轮生效,话题切换也不会失效;不确定时,仍然生效。
移植说明(对上游 ayghri/i-have-adhd,commit 2ed0640)
逐字保留(cmp 验证一致,42 个文件):skills/i-have-adhd/SKILL.md 与 agents/*、
extensions/i-have-adhd.ts、hooks/*、evals/*、scripts/*、tests/*、
各平台 manifest(.claude-plugin/ .codex-plugin/ .cursor/ .agents/ gemini/kimi/qwen/plugin.json)、
GEMINI.md、INSTALL.md、.github/*(4 个 workflow + 5 种语言的 README/INSTALL 翻译)。
这一点你可以自己验,不必信我们 —— THIRD_PARTY_NOTICES.md
钉住了上游 commit 与每个逐字文件的 SHA-256,附可直接复制的比对命令。
有限适配(dsh 与上游分发机制不同,逐条见 NOTICES):
package.json:改名 dsh-i-have-adhd(本票要求)、新增 dsh.bundle.patch 与 main/files/scripts.test;上游 pi 键原样保留
- 新增
src/index.js + cordis.patch.yml:dsh 没有 skill 服务,/i-have-adhd 以命令形式注册,把 SKILL.md 正文按字节注入会话
- 新增
test/*.test.js:转接层测试(node:test)
README.md 换成移植品门面(中文优先双语);LICENSE 加移植行;.gitignore 并入上游条目
已知限制: dsh 侧没有与上游 always-on hook(~/.claude/.i-have-adhd-always)等价的
SessionStart 机制,本移植只提供 /i-have-adhd 按需开启;上游 scripts/check_pi_extension.py
与 pi-load-check.yml 是 pi 语境的校验,包名按本票改为 dsh-i-have-adhd 后无法运行,按「全搬」规则保留未改。
🛠 开发
npm install # 装 devDep(@deepseek-ai/dsh-llm,钉死 0.1.0-rc.6)
npm test # node --test,跑转接层单测
📄 License
MIT。上游 i-have-adhd
Copyright (c) 2026 Ayoub Ghriss,本移植 Copyright (c) 2026 GongYuanCaiJi。见 LICENSE。
感谢 ayghri/i-have-adhd 的原作者 ——
如果这个插件对你有用,也请去给上游仓库点个 star。
English

One line: type /i-have-adhd and the agent shapes every response for an ADHD reader — action first, numbered steps, no preamble. No diagnosis needed.
A port of i-have-adhd (MIT, 20k+★) to
DeepSeek Harness. The upstream SKILL.md is
kept byte-identical and untranslated; DeepSeek Harness has no skill service, so /i-have-adhd
is registered as a command that injects the skill body verbatim into the current session.
✨ Features