Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions kompass.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@
"summarize-changes": { "enabled": true },
},

"skills": {
"entries": {
"kompass-workflows": { "enabled": true },
},
},

"defaults": {
"baseBranch": "main",
},
Expand Down
6 changes: 0 additions & 6 deletions packages/core/kompass.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@
"summarize-changes": { "enabled": true },
},

"skills": {
"entries": {
"kompass-workflows": { "enabled": true },
},
},

"defaults": {
"baseBranch": "main",
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/skills/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This directory intentionally exists so packaged OpenCode builds always ship a
concrete `skills/` path, even when no bundled skill files are present yet.
This directory contains bundled Kompass skills that ship with packaged OpenCode
builds. Keep a concrete `skills/` path available for runtime registration.
7 changes: 0 additions & 7 deletions packages/opencode/.opencode/kompass.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@
"enabled": true
}
},
"skills": {
"entries": {
"kompass-workflows": {
"enabled": true
}
}
},
"defaults": {
"baseBranch": "main"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/.opencode/skills/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This directory intentionally exists so packaged OpenCode builds always ship a
concrete `skills/` path, even when no bundled skill files are present yet.
This directory contains bundled Kompass skills that ship with packaged OpenCode
builds. Keep a concrete `skills/` path available for runtime registration.
21 changes: 19 additions & 2 deletions packages/opencode/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,29 @@ async function pathExists(filePath: string): Promise<boolean> {
}
}

async function hasBundledSkillDirectories(root: string): Promise<boolean> {
try {
const entries = await readdir(root, { withFileTypes: true });
return entries.some((entry) => entry.isDirectory());
} catch {
return false;
}
}

async function resolveBundledSkillsRoot(): Promise<string | undefined> {
let firstExistingCandidate: string | undefined;

for (const candidate of BUNDLED_SKILL_ROOT_CANDIDATES) {
if (await pathExists(candidate)) return candidate;
if (!await pathExists(candidate)) continue;

firstExistingCandidate ??= candidate;

if (await hasBundledSkillDirectories(candidate)) {
return candidate;
}
}

return undefined;
return firstExistingCandidate;
}

type ApplyConfigOptions = {
Expand Down
6 changes: 0 additions & 6 deletions packages/opencode/kompass.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@
"summarize-changes": { "enabled": true },
},

"skills": {
"entries": {
"kompass-workflows": { "enabled": true },
},
},

"defaults": {
"baseBranch": "main",
},
Expand Down
10 changes: 2 additions & 8 deletions packages/web/src/content/docs/docs/reference/skills/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ description: Overview of skill support in Kompass.

Kompass supports bundled and plugin-provided skills through config-driven filtering.

The base config currently enables the `kompass-workflows` skill entry.
The base config does not enable any bundled Kompass skills yet.

## Bundled skills

### `kompass-workflows`

Bundled Kompass workflow skill entry enabled by the base config.

- enabled through `skills.entries`
- registered automatically by the OpenCode adapter
- backed by a concrete bundled `skills/` path even when the directory is intentionally sparse
None yet.

This file was deleted.

Loading