/** * Skill Injector / 技能注入器 * When task() is called with load_skills, injects skill content into the output * 当 task() 带 load_skills 调用时,将技能内容注入输出 * * Also: on keyword match, pre-loads skill content into the conversation * 同时:关键词匹配时,预加载技能内容到对话中 */ import type { PluginInput } from "@opencode-ai/plugin"; export declare function createSkillInjectorHook(ctx: PluginInput): { /** Inject skill content when keyword is detected / 关键词匹配时注入技能内容 */ "chat.message": (input: any, output: any) => Promise; /** On task() with load_skills, inject the skill content / task() 调用时注入技能 */ "tool.execute.after": (input: any, output: any) => Promise; };