mirror of
https://github.com/ayghri/i-have-adhd.git
synced 2026-10-02 04:14:46 +08:00
OpenCode was previously covered only by the generic agent-skills fallback (skill discovery, no command, no always-on). This adds a first-class OpenCode adapter mirroring the Codex/Pi layout: - .opencode/plugins/i-have-adhd.mjs: server plugin that registers the skills/ path and /i-have-adhd command, and appends the ruleset to the system prompt every turn when ~/.config/opencode/.i-have-adhd-always exists (the OpenCode equivalent of the SessionStart always-on hook). - .opencode/command/i-have-adhd.md: on-demand session command. - opencode.json: run-from-checkout entry point. - INSTALL.md: dedicated OpenCode section; dropped from the catch-all title. Ruleset stays sourced from skills/i-have-adhd/SKILL.md (frontmatter stripped at inject time) — no rule text duplicated.
5 lines
104 B
JSON
5 lines
104 B
JSON
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"plugin": ["./.opencode/plugins/i-have-adhd.mjs"]
|
|
}
|