Repository navigation
Description
Problem
The desktop app only discovers skills from {workspaceRoot}/skills/. Skills installed at the standard cross-client paths (~/.agents/skills/, ~/.maka/skills/, {cwd}/.agents/skills/, {cwd}/.maka/skills/) are invisible to the model — never injected into the system prompt catalog, never loadable via the Skill tool.
The CLI already does this correctly via resolveSkillDiscoveryPaths (5 paths, packages/runtime/src/skills.ts:216-222), but the desktop app passes a bare workspaceRoot string to buildSkillsPromptFragment and buildSkillAgentTool, which normalizeSkillSource turns into a single { dir: join(root, 'skills') } entry.
Cross-product baseline
| Path | Maka CLI | Maka Desktop | Gemini CLI | Codex |
|---|---|---|---|---|
{cwd}/.maka/skills |
✅ | ❌ | ✅ (.gemini) |
✅ (.codex) |
{cwd}/.agents/skills |
✅ | ❌ | ✅ | ✅ |
{workspaceRoot}/skills |
✅ | ✅ | — | — |
~/.maka/skills |
✅ | ❌ | ✅ (.gemini) |
✅ (.codex) |
~/.agents/skills |
✅ | ❌ | ✅ | ✅ |
Maka Desktop is the only host that misses these paths. resolveSkillDiscoveryPaths already implements the Agent Skills spec (https://agentskills.io/client-implementation/adding-skills-support) and is exported from @maka/runtime.
Root cause
Two call sites pass a bare string instead of the multi-path source:
// apps/desktop/src/main/system-prompt-main.ts:54
const skills = await buildSkillsPromptFragment(deps.workspaceRoot, undefined, options?.skillBudget);
// apps/desktop/src/main/main.ts:715
buildSkillAgentTool(workspaceRoot),The CLI equivalents already use resolveSkillDiscoveryPaths:
// packages/cli/src/cli-system-prompt.ts:62
const skillSource = resolveSkillDiscoveryPaths(input.cwd, input.workspaceRoot, input.homeDir);
// packages/cli/src/runtime-bootstrap.ts:221
const skillTool = buildSkillAgentTool(({ cwd }) => resolveSkillDiscoveryPaths(cwd, input.workspaceRoot), host);Desired outcome
Both desktop call sites use resolveSkillDiscoveryPaths(cwd, workspaceRoot) instead of the bare workspaceRoot string. Skills at all 5 standard paths become visible to the model and loadable via the Skill tool.
Non-goals
- Expanding the governance UI (
listInstalledSkills/ skill management panel) to scan all paths. The governance UI can continue to manage{workspaceRoot}/skills/only; multi-path skills are model-visible and loadable but not manageable from the UI. This is a separate feature tracked in feat(skills): Improve maka skill management architecture #424. - Changing CLI behavior (already correct).
Activity
fix(desktop): scan all skill discovery paths, not just {workspaceRoot…