Skip to content

fix(desktop): scan all skill discovery paths, not just {workspaceRoot}/skills/ #1068

Closed

Description

@Astro-Han

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

  1. added
    enhancement
    on Jul 16, 2026
  2. added a commit that references this issue on Jul 16, 2026
    e3bd95e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions