用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/Alex_Skill_Mall --skill opt-in-workspace-writes命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | opt-in-workspace-writes |
| description | Extensions/tools that auto-write to user workspaces without consent: |
| lastReviewed | 2026-04-30T00:00:00.000Z |
Extensions/tools that auto-write to user workspaces without consent:
.vscode/ folders unexpectedlyGet explicit consent before any workspace mutation.
const choice = await vscode.window.showInformationMessage(
'Initialize Alex configuration in this workspace?',
{ modal: true },
'Yes, create .github/',
'No, skip'
);
if (choice !== 'Yes, create .github/') {
return; // User declined, do nothing
}
const files = [
'.github/copilot-instructions.md',
'.github/config/settings.json'
];
const choice = await vscode.window.showInformationMessage(
`This will create ${files.length} files:\n${files.join('\n')}`,
{ modal: true, detail: files.join('\n') },
'Create Files',
'Cancel'
);
// After creating files
vscode.window.showInformationMessage(
'Configuration created.',
'Undo'
).then(selection => {
if (selection === 'Undo') {
// Delete the created files
files.forEach(f => fs.unlinkSync(path.join(workspaceRoot, f)));
}
});
| Path | Why It's Dangerous |
|---|---|
.vscode/ | Shared via git, affects all developers |
.github/ | Shared via git, affects CI/CD |
package.json | Changes dependencies/scripts |
.gitignore | Affects what's tracked |
| Root config files | .eslintrc, tsconfig.json, etc. |
architecture extension-development ux consent