const fs = require('fs');
const file = '/root/.openclaw/openclaw.json';
const config = JSON.parse(fs.readFileSync(file, 'utf8'));
if (config.agents && config.agents.defaults && config.agents.defaults.skills) {
delete config.agents.defaults.skills;
}
fs.writeFileSync(file, JSON.stringify(config, null, 2));
console.log('Fixed config');