Skip to content

Commit 416b79e

Browse files
authored
Merge pull request #96 from browser-use/fix/remove-customize-opencode-core-plugin
fix: remove customize opencode core skill
2 parents 9db2a13 + b832be8 commit 416b79e

3 files changed

Lines changed: 1 addition & 58 deletions

File tree

‎packages/core/src/plugin/boot.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { PluginV2 } from "../plugin"
2020
import { AccountPlugin } from "./account"
2121
import { AgentPlugin } from "./agent"
2222
import { CommandPlugin } from "./command"
23-
import { SkillPlugin } from "./skill"
2423
import { ConfigProviderPlugin } from "../config/plugin/provider"
2524
import { EnvPlugin } from "./env"
2625
import { ModelsDevPlugin } from "./models-dev"
@@ -100,7 +99,6 @@ export const layer = Layer.effect(
10099
yield* add(AccountPlugin)
101100
yield* add(AgentPlugin.Plugin)
102101
yield* add(CommandPlugin.Plugin)
103-
yield* add(SkillPlugin.Plugin)
104102
for (const item of ProviderPlugins) {
105103
yield* add(item)
106104
}

‎packages/core/src/plugin/skill.ts‎

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,8 @@ export * as SkillPlugin from "./skill"
44

55
import { Effect } from "effect"
66
import { PluginV2 } from "../plugin"
7-
import { AbsolutePath } from "../schema"
8-
import { SkillV2 } from "../skill"
9-
import customizeOpencodeContent from "./skill/customize-opencode.md" with { type: "text" }
10-
11-
export const CustomizeOpencodeContent = customizeOpencodeContent
127

138
export const Plugin = PluginV2.define({
149
id: PluginV2.ID.make("skill"),
15-
effect: Effect.gen(function* () {
16-
const skill = yield* SkillV2.Service
17-
const transform = yield* skill.transform()
18-
19-
yield* transform((editor) => {
20-
editor.source(
21-
new SkillV2.EmbeddedSource({
22-
type: "embedded",
23-
skill: new SkillV2.Info({
24-
name: "customize-opencode",
25-
description:
26-
"Use ONLY when the user is editing or creating opencode's own configuration: opencode.json, opencode.jsonc, files under .opencode/, or files under ~/.config/opencode/. Also use when creating or fixing opencode agents, subagents, skills, plugins, MCP servers, or permission rules. Do not use for the user's own application code, or for any project that is not configuring opencode itself.",
27-
location: AbsolutePath.make("/builtin/customize-opencode.md"),
28-
content: CustomizeOpencodeContent,
29-
}),
30-
}),
31-
)
32-
})
33-
}),
10+
effect: Effect.void,
3411
})

‎packages/core/test/plugin/skill.test.ts‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)