Skip to content

fix(cli): restore built-in skill registration#8919

Merged
alex-alecu merged 4 commits intomainfrom
fix/internal-skills
Apr 15, 2026
Merged

fix(cli): restore built-in skill registration#8919
alex-alecu merged 4 commits intomainfrom
fix/internal-skills

Conversation

@alex-alecu
Copy link
Copy Markdown
Contributor

@alex-alecu alex-alecu commented Apr 14, 2026

Why

The kilo-config built-in skill stopped loading after the upstream OpenCode v1.3.5 merge (6cf72ef). The Effect migration in that commit refactored the skill service internals, and the Kilo-specific loop that seeded built-in skills into state was not preserved. Users asking about Kilo configuration no longer got the skill that teaches the agent how Kilo settings work.

What changed

Re-added the registration loop that seeds built-in skills into the skill service before filesystem discovery runs. The import and constants were already in place — only the loop that actually writes them into state was missing. Built-in skills are registered first so that any user-created skill with the same name naturally takes priority. Existing tests were updated to filter out built-in skills when counting filesystem-discovered skills, making them resilient to future built-in additions. A new regression test verifies built-in skills load correctly and can be overridden.

How to test

Start the CLI bun dev, open a session, and ask "how do I configure Kilo?" — the agent should use the kilo-config skill.

Screenshot 2026-04-15 at 11 29 03

Comment thread packages/opencode/src/skill/index.ts
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Apr 14, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • packages/kilo-vscode/webview-ui/src/components/settings/AgentBehaviourTab.tsx
  • packages/opencode/src/skill/index.ts
  • packages/opencode/test/kilocode/builtin-skills.test.ts
  • packages/opencode/test/skill/skill.test.ts

Reviewed by gpt-5.4-2026-03-05 · 351,503 tokens

@alex-alecu alex-alecu merged commit 5182ea6 into main Apr 15, 2026
19 checks passed
@alex-alecu alex-alecu deleted the fix/internal-skills branch April 15, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants