Tom Boucher
|
375bf3abd6
|
fix(#3126): replace hardcoded globalSkillsBase with first-class runtime-aware mapping (#3140)
* fix(#3126): replace hardcoded globalSkillsBase with runtime-aware mapping
Root cause: buildAgentSkillsBlock() used path.join(os.homedir(), '.claude',
'skills') for globalSkillsBase regardless of config.runtime. Cursor users
(and every non-Claude runtime) saw their global: skill lookups fail with
a warning pointing to the wrong directory.
Fix: introduces get-shit-done/bin/lib/runtime-homes.cjs — a pure, side-
effect-free module covering all 15 GSD runtimes:
Runtime Config base Skills path
claude ~/.claude ~/.claude/skills/
cursor ~/.cursor ~/.cursor/skills/
gemini ~/.gemini ~/.gemini/skills/
codex ~/.codex ~/.codex/skills/
copilot ~/.copilot ~/.copilot/skills/
antigravity ~/.gemini/antigravity ...antigravity/skills/
windsurf ~/.codeium/windsurf ...windsurf/skills/
augment ~/.augment ~/.augment/skills/
trae ~/.trae ~/.trae/skills/
qwen ~/.qwen ~/.qwen/skills/
hermes ~/.hermes ~/.hermes/skills/gsd/ (nested #2841)
codebuddy ~/.codebuddy ~/.codebuddy/skills/
cline ~/.cline null (rules-based, no skills dir)
opencode ~/.config/opencode ...opencode/skills/
kilo ~/.config/kilo ...kilo/skills/
Also adds CLAUDE_CONFIG_DIR env var support (was missing).
Warning messages now show the actual runtime-specific path.
Docs: INVENTORY.md CLI Modules 41→42.
Regression test: 30 assertions across all runtimes.
Suite: 7008/7008. Closes #3126.
* fix(lint+init): allow-test-rule, fix display path duplication (skillName appended twice)
|
2026-05-05 15:02:11 -04:00 |
|