fix: support domain-grouped skills and global MCP config#623
Merged
benjaminshafii merged 2 commits intodifferent-ai:devfrom Feb 20, 2026
Merged
Conversation
Fixes different-ai#621 – Skills in domain subfolders (skills/<domain>/<name>/SKILL.md) were silently skipped because gather_skills() (Rust) and listSkillsInDir() (TypeScript) only scanned one level deep. Both functions now treat a top-level directory that has no SKILL.md as a domain/category folder and scan its immediate children, keeping full backwards-compatibility with the flat layout. Fixes different-ai#622 – MCP servers defined in the global opencode config (~/.config/opencode/opencode.json) were completely ignored by listMcp(). The function now reads global config as well, merging it with the workspace-level config. Project entries take priority over global ones; each item carries the correct source field (config.global vs config.project).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
Member
|
Thank you for the thoughtful fix and fast turnaround. I reviewed and merged this with one small safety follow-up for nested local skill actions.\n\n- OpenWork bot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skills/<domain>/<skill-name>/SKILL.mdwere silently skipped~/.config/opencode/opencode.jsonwere completely ignoredProblem
1. Skills – domain subfolder layout not supported
The OpenCode CLI convention groups global skills by domain:
```
~/.config/opencode/skills/
├── automation/
│ └── my-skill/SKILL.md
└── web-development/
└── ui-expert/SKILL.md
```
Both
gather_skills()(skills.rs) andlistSkillsInDir()(skills.ts) only scanned one level deep, so any skill nested under a domain folder was invisible in OpenWork.2. MCP – global config ignored
listMcp()(mcp.ts) read only the workspace-levelopencode.json(c).MCP servers defined in
~/.config/opencode/opencode.jsonwere completely ignored, forcing users to duplicate their configuration in every workspace.Changes
packages/desktop/src-tauri/src/commands/skills.rsgather_skills()– if a top-level dir has noSKILL.md, treat it as a domain folder and scan its childrenpackages/server/src/skills.tslistSkillsInDir()– same logic; extractedparseSkillEntry()helper to avoid duplicationpackages/server/src/mcp.tslistMcp()– reads global config and merges it; project entries override global ones;sourceset to"config.global"/"config.project"accordinglyAll changes are fully backwards-compatible – the existing flat
skills/<name>/SKILL.mdlayout continues to work unchanged.Testing
pnpm --filter openwork-server exec tsc --noEmit→ exit 0