import path from "path" import { fileURLToPath } from "url" const pluginDir = path.dirname(fileURLToPath(import.meta.url)) const skillsDir = path.resolve(pluginDir, "../../skills") export const CompoundEngineeringPlugin = async () => ({ config: async (config) => { config.skills = config.skills || {} config.skills.paths = config.skills.paths || [] if (!config.skills.paths.includes(skillsDir)) { config.skills.paths.push(skillsDir) } }, }) export default CompoundEngineeringPlugin