К основному содержанию
скилл CX Codex

vscode-workspace-setup — скилл для Claude Code: настройка VS Code

Скилл vscode-workspace-setup для Claude Code создаёт в проекте папку .vscode с едиными настройками редактора, рекомендациями расширений, задачами сборки и отладкой. Унифицирует форматирование и линт в команде.

MIT 313 установок ★ 64 обновлён 2026-01-12

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add patricio0312rev/skills --skill vscode-workspace-setup -a claude-code
Открыть на GitHub

Что делает vscode-workspace-setup

Скилл создаёт .vscode: settings.json с настройками редактора, extensions.json с рекомендациями расширений, tasks.json с задачами, launch.json с конфигурациями отладки и сниппеты для TypeScript. Настройки заточены под связку Prettier и ESLint: форматирование при сохранении, автофиксы линтера, относительные импорты, одинарные кавычки, отступ в два пробела, линейка на 100 знаков.

В рекомендациях — ESLint, Prettier, Tailwind CSS, TypeScript, React-сниппеты, GitLens, Vitest и Jest, dotenv, Docker и dev containers; hookyqr.beautify попал в список нежелательных. Отдельным шагом идёт devcontainer — одно окружение на всю команду.

Задачи в tasks.json имеют тип npm и вызывают скрипты dev, build, test и test:watch. Если в package.json таких скриптов нет, задачи просто не запустятся. Строка typescript.tsdk смотрит в node_modules/typescript/lib, поэтому TypeScript должен стоять в проекте локально.

Какие задачи решает

  • завести единые настройки редактора для всей команды
  • подобрать список рекомендуемых расширений под TypeScript и React
  • описать задачи сборки и тестов в .vscode/tasks.json
  • убрать node_modules и dist из поиска и проводника
  • включить форматирование Prettier и автофиксы ESLint при сохранении

Примеры запросов агенту

  • Настрой рабочее пространство VS Code для команды: форматирование при сохранении и автофиксы ESLint
  • Сгенерируй .vscode/settings.json и extensions.json под TypeScript-проект с React
  • Добавь в .vscode/tasks.json задачи dev, build и test и подними devcontainer для одинакового окружения

Как установить vscode-workspace-setup

1Через Skills CLI (Vercel)

npx skills add patricio0312rev/skills --skill vscode-workspace-setup -a claude-code

2Вручную: положить файлы

~/.claude/skills/vscode-workspace-setup/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/vscode-workspace-setup/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о vscode-workspace-setup

Как установить vscode-workspace-setup в Claude Code?

Выполните npx skills add patricio0312rev/skills --skill vscode-workspace-setup -a claude-code. Скилл окажется в ~/.claude/skills/vscode-workspace-setup/SKILL.md.

Что делает vscode-workspace-setup?

Собирает папку .vscode с настройками редактора, списком рекомендуемых расширений, npm-задачами, конфигурациями отладки и devcontainer.

Какие скрипты нужны, чтобы задачи запускались?

Задачи вызывают dev, build, test и test:watch из package.json. Без этих скриптов задачи в списке есть, но не стартуют.

Исходный текст

SKILL.md · MIT
---
name: vscode-workspace-setup
description: Configures VS Code workspaces with optimal settings, extensions, tasks, and debugging for team consistency. Use when users request "VS Code setup", "workspace settings", "team VS Code config", "editor configuration", or "devcontainer setup".
---

# VS Code Workspace Setup

Configure VS Code for optimal team productivity and consistency.

## Core Workflow

1. **Create workspace settings**: .vscode folder
2. **Configure editor**: Formatting, linting
3. **Add extensions**: Team recommendations
4. **Setup tasks**: Build, test, lint
5. **Configure debugging**: Launch configurations
6. **Create devcontainer**: Consistent environment

## Workspace Structure

```
.vscode/
├── settings.json        # Workspace settings
├── extensions.json      # Recommended extensions
├── tasks.json          # Build tasks
├── launch.json         # Debug configurations
└── snippets/           # Custom snippets
    └── typescript.json
```

## Workspace Settings

```json
// .vscode/settings.json
{
  // Editor settings
  "editor.formatOnSave": true,
  "editor.formatOnPaste": false,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit",
    "source.organizeImports": "never"
  },
  "editor.tabSize": 2,
  "editor.insertSpaces": true,
  "editor.detectIndentation": false,
  "editor.rulers": [100],
  "editor.wordWrap": "off",
  "editor.minimap.enabled": false,
  "editor.bracketPairColorization.enabled": true,
  "editor.guides.bracketPairs": "active",
  "editor.inlineSuggest.enabled": true,
  "editor.quickSuggestions": {
    "strings": true
  },

  // Files
  "files.trimTrailingWhitespace": true,
  "files.insertFinalNewline": true,
  "files.trimFinalNewlines": true,
  "files.exclude": {
    "**/node_modules": true,
    "**/.git": true,
    "**/.DS_Store": true,
    "**/dist": true,
    "**/.next": true,
    "**/coverage": true
  },
  "files.watcherExclude": {
    "**/node_modules/**": true,
    "**/.git/objects/**": true,
    "**/dist/**": true,
    "**/.next/**": true
  },
  "files.associations": {
    "*.css": "tailwindcss"
  },

  // Search
  "search.exclude": {
    "**/node_modules": true,
    "**/dist": true,
    "**/.next": true,
    "**/coverage": true,
    "pnpm-lock.yaml": true,
    "package-lock.json": true
  },

  // TypeScript
  "typescript.preferences.importModuleSpecifier": "relative",
  "typescript.preferences.quoteStyle": "single",
  "typescript.suggest.autoImports": true,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "typescript.inlayHints.parameterNames.enabled": "literals",
  "typescript.inlayHints.functionLikeReturnTypes.enabled": true,
  "typescript.tsdk": "node_modules/typescript/lib",

  // JavaScript
  "javascript.preferences.importModuleSpecifier": "relative",
  "javascript.preferences.quoteStyle": "single",
  "javascript.updateImportsOnFileMove.enabled": "always",

  // ESLint
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact"
  ],
  "eslint.workingDirectories": [{ "mode": "auto" }],
  "eslint.codeActionsOnSave.mode": "problems",

  // Prettier
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[markdown]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.wordWrap": "on"
  },
  "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },

  // Tailwind CSS
  "tailwindCSS.experimental.classRegex": [
    ["clsx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"],
    ["cn\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"],
    ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
  ],
  "tailwindCSS.includeLanguages": {
    "typescript": "javascript",
    "typescriptreact": "javascript"
  },

  // Git
  "git.autofetch": true,
  "git.confirmSync": false,
  "git.enableSmartCommit": true,
  "git.inputValidation": true,

  // Terminal
  "terminal.integrated.defaultProfile.osx": "zsh",
  "terminal.integrated.fontSize": 13,
  "terminal.integrated.scrollback": 10000,

  // Explorer
  "explorer.compactFolders": false,
  "explorer.fileNesting.enabled": true,
  "explorer.fileNesting.patterns": {
    "package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, .npmrc",
    "tsconfig.json": "tsconfig.*.json",
    ".eslintrc*": ".eslintignore, .prettierrc*, .prettierignore",
    "*.ts": "${capture}.test.ts, ${capture}.spec.ts",
    "*.tsx": "${capture}.test.tsx, ${capture}.spec.tsx"
  },

  // Debug
  "debug.javascript.autoAttachFilter": "smart",

  // Testing
  "testing.automaticallyOpenPeekView": "never"
}
```

## Recommended Extensions

```json
// .vscode/extensions.json
{
  "recommendations": [
    // Essential
    "dbaeumer.vscode-eslint",
    "esbenp.prettier-vscode",
    "bradlc.vscode-tailwindcss",

    // TypeScript
    "ms-vscode.vscode-typescript-next",
    "yoavbls.pretty-ts-errors",

    // React
    "dsznajder.es7-react-js-snippets",
    "burkeholland.simple-react-snippets",

    // Git
    "eamodio.gitlens",
    "mhutchie.git-graph",

    // Testing
    "vitest.explorer",
    "orta.vscode-jest",

    // Utilities
    "streetsidesoftware.code-spell-checker",
    "christian-kohler.path-intellisense",
    "christian-kohler.npm-intellisense",
    "mikestead.dotenv",
    "EditorConfig.EditorConfig",

    // AI
    "github.copilot",
    "github.copilot-chat",

    // Debugging
    "ms-vscode.js-debug-nightly",

    // Docker
    "ms-azuretools.vscode-docker",
    "ms-vscode-remote.remote-containers"
  ],
  "unwantedRecommendations": [
    "hookyqr.beautify"
  ]
}
```

## Build Tasks

```json
// .vscode/tasks.json
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "dev",
      "type": "npm",
      "script": "dev",
      "problemMatcher": [],
      "isBackground": true,
      "presentation": {
        "reveal": "always",
        "panel": "dedicated"
      },
      "group": {
        "kind": "build",
        "isDefault": true
      }
    },
    {
      "label": "build",
      "type": "npm",
      "script": "build",
      "problemMatcher": ["$tsc"],
      "presentation": {
        "reveal": "always"
      },
      "group": "build"
    },
    {
      "label": "test",
      "type": "npm",
      "script": "test",
      "problemMatcher": [],
      "presentation": {
        "reveal": "always"
      },
      "group": "test"
    },
    {
      "label": "test:watch",
      "type": "npm",
      "script": "test:watch",
      "problemMatcher": [],
      "isBackground": true,
      "presentation": {
        "reveal": "always",
        "panel": "dedicated"
      },
      "group": "test"
    },
    {
      "label": "lint",
      "type": "npm",
      "script": "lint",
      "problemMatcher": ["$eslint-stylish"],
      "presentation": {
        "reveal": "never"
      }
    },
    {
      "label": "lint:fix",
      "type": "npm",
      "script": "lint:fix",
      "problemMatcher": ["$eslint-stylish"],
      "presentation": {
        "reveal": "never"
      }
    },
    {
      "label": "typecheck",
      "type": "npm",
      "script": "typecheck",
      "problemMatcher": ["$tsc-watch"],
      "presentation": {
        "reveal": "silent"
      }
    },
    {
      "label": "typecheck:watch",
      "type": "shell",
      "command": "npx tsc --noEmit --watch",
      "problemMatcher": ["$tsc-watch"],
      "isBackground": true,
      "presentation": {
        "reveal": "always",
        "panel": "dedicated"
      }
    }
  ]
}
```

## Debug Configurations

```json
// .vscode/launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Next.js: Debug Server",
      "type": "node-terminal",
      "request": "launch",
      "command": "npm run dev",
      "serverReadyAction": {
        "pattern": "- Local:.+(https?://.+)",
        "uriFormat": "%s",
        "action": "debugWithChrome"
      }
    },
    {
      "name": "Next.js: Debug Full Stack",
      "type": "node-terminal",
      "request": "launch",
      "command": "npm run dev",
      "serverReadyAction": {
        "pattern": "- Local:.+(https?://.+)",
        "uriFormat": "%s",
        "action": "debugWithChrome"
      }
    },
    {
      "name": "Chrome: Debug Client",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceFolder}",
      "sourceMaps": true,
      "sourceMapPathOverrides": {
        "webpack://_N_E/*": "${webRoot}/*"
      }
    },
    {
      "name": "Vite: Debug",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:5173",
      "webRoot": "${workspaceFolder}/src",
      "sourceMaps": true
    },
    {
      "name": "Jest: Current File",
      "type": "node",
      "request": "launch",
      "program": "${workspaceFolder}/node_modules/.bin/jest",
      "args": [
        "${relativeFile}",
        "--config",
        "jest.config.js",
        "--runInBand"
      ],
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen"
    },
    {
      "name": "Vitest: Current File",
      "type": "node",
      "request": "launch",
      "program": "${workspaceFolder}/node_modules/.bin/vitest",
      "args": ["run", "${relativeFile}"],
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen"
    },
    {
      "name": "Node: Attach",
      "type": "node",
      "request": "attach",
      "port": 9229,
      "restart": true
    },
    {
      "name": "Node: Current File",
      "type": "node",
      "request": "launch",
      "program": "${file}",
      "runtimeArgs": ["-r", "ts-node/register"],
      "console": "integratedTerminal"
    }
  ],
  "compounds": [
    {
      "name": "Full Stack Debug",
      "configurations": ["Next.js: Debug Server", "Chrome: Debug Client"]
    }
  ]
}
```

## Custom Snippets

```json
// .vscode/snippets/typescript.json
{
  "React Functional Component": {
    "prefix": "rfc",
    "body": [
      "interface ${1:Component}Props {",
      "  $2",
      "}",
      "",
      "export function ${1:Component}({ $3 }: ${1:Component}Props) {",
      "  return (",
      "    <div>",
      "      $0",
      "    </div>",
      "  );",
      "}"
    ],
    "description": "React Functional Component with TypeScript"
  },
  "React useState": {
    "prefix": "us",
    "body": [
      "const [${1:state}, set${1/(.*)/${1:/capitalize}/}] = useState<${2:type}>($3);"
    ],
    "description": "React useState hook"
  },
  "React useEffect": {
    "prefix": "ue",
    "body": [
      "useEffect(() => {",
      "  $1",
      "  return () => {",
      "    $2",
      "  };",
      "}, [$3]);"
    ],
    "description": "React useEffect hook"
  },
  "Console Log": {
    "prefix": "cl",
    "body": ["console.log('${1:label}:', $2);"],
    "description": "Console log with label"
  },
  "Async Function": {
    "prefix": "af",
    "body": [
      "async function ${1:name}(${2:params}): Promise<${3:void}> {",
      "  $0",
      "}"
    ],
    "description": "Async function"
  },
  "Try Catch": {
    "prefix": "tc",
    "body": [
      "try {",
      "  $1",
      "} catch (error) {",
      "  if (error instanceof Error) {",
      "    console.error(error.message);",
      "  }",
      "  throw error;",
      "}"
    ],
    "description": "Try catch with proper error handling"
  },
  "Zod Schema": {
    "prefix": "zod",
    "body": [
      "const ${1:Schema} = z.object({",
      "  ${2:field}: z.${3:string}(),",
      "});",
      "",
      "type ${1:Schema} = z.infer<typeof ${1:Schema}>;"
    ],
    "description": "Zod schema with type inference"
  }
}
```

## Dev Container

```json
// .devcontainer/devcontainer.json
{
  "name": "Node.js Development",
  "image": "mcr.microsoft.com/devcontainers/typescript-node:20",

  // Features to install
  "features": {
    "ghcr.io/devcontainers/features/github-cli:1": {},
    "ghcr.io/devcontainers/features/docker-in-docker:2": {}
  },

  // Forward ports
  "forwardPorts": [3000, 5173],

  // Environment variables
  "containerEnv": {
    "NODE_ENV": "development"
  },

  // Run commands after container is created
  "postCreateCommand": "npm install",

  // VS Code settings for container
  "customizations": {
    "vscode": {
      "settings": {
        "terminal.integrated.defaultProfile.linux": "zsh"
      },
      "extensions": [
        "dbaeumer.vscode-eslint",
        "esbenp.prettier-vscode",
        "bradlc.vscode-tailwindcss",
        "github.copilot"
      ]
    }
  },

  // Mount volumes
  "mounts": [
    "source=${localWorkspaceFolder}/.git,target=/workspaces/${localWorkspaceFolderBasename}/.git,type=bind"
  ],

  // User configuration
  "remoteUser": "node"
}
```

## EditorConfig

```ini
# .editorconfig
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[Makefile]
indent_style = tab
```

## Best Practices

1. **Commit settings**: Version control .vscode
2. **Use workspace settings**: Not user settings
3. **Recommend extensions**: extensions.json
4. **Configure tasks**: Common operations
5. **Setup debugging**: Launch configurations
6. **Add snippets**: Team conventions
7. **Use devcontainers**: Consistent environments
8. **File nesting**: Clean explorer

## Output Checklist

Every VS Code workspace should include:

- [ ] Workspace settings.json
- [ ] Recommended extensions.json
- [ ] Build tasks.json
- [ ] Debug launch.json
- [ ] Custom snippets
- [ ] EditorConfig
- [ ] Format on save enabled
- [ ] ESLint integration
- [ ] Prettier as default formatter
- [ ] DevContainer configuration (optional)

© patricio0312rev · MIT · patricio0312rev/skills

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
vscode-ext-localization официальный github Скилл vscode-ext-localization помогает локализовать пользовательские тексты расширения VS Code. Подходит, когда вы добавляете переводы или обновляете существующие. CX Codex +1 8 900установок create-hook NeoLabHQ Скилл create-hook анализирует проект и предлагает хуки под ваш стек: типизацию, форматирование, линт, тесты. Дальше создаёт скрипт и проверяет его. CX Codex +1 1 200установок vscode-extension-dev-typescript-cursorrules-prompt-file PatrickJS Правило vscode-extension-dev-typescript-cursorrules-prompt-file для Cursor задаёт рекомендации по разработке расширений VSCode на TypeScript. Оно охватывает архитектуру, API редактора, безопасность и тесты. CX Codex +1 ★ 41 178звёзд репо vscode-extension rohitg00 Субагент vscode-extension для проектирования и сборки расширений VS Code. Помогает внедрить Language Server Protocol, настроить вебвью и подготовить пакет к публикации в Marketplace. CX Codex ★ 2 858звёзд репо typescript siviter-xyz Скилл typescript для Claude Code задаёт стандарты написания и изменения кода на TypeScript. Активируется при работе с файлами TypeScript и TypeScript React. CX Codex +1 239установок vue3 sanjeed5 Задаёт единый стиль Vue 3: Composition API, TypeScript, ESLint и Prettier. Выравнивает код в проектах с несколькими разработчиками. CX Codex +1 ★ 3 589звёзд репо

Из того же набора148

Весь набор →
frontend-refactor-planner Скилл frontend-refactor-planner составляет поэтапный план рефакторинга фронтенда: делит крупные компоненты, упрощает состояние и улучшает доступность. Пригодится при разборе легаси-кода. CX Codex +1 321установок openapi-generator Скилл openapi-generator для Claude Code, Codex, Cursor и других ИИ-редакторов генерирует спецификации OpenAPI 3.0/3.1 прямо из маршрутов Express, Next.js, Fastify, Hono или NestJS. CX Codex +1 320установок api-test-suite-generator Скилл api-test-suite-generator для Claude Code сканирует определения маршрутов и генерирует тесты API на Jest, Vitest или Supertest. Закрывает покрытие эндпоинтов, у которых тестов ещё нет. CX Codex +1 319установок prisma-migration-assistant Скилл prisma-migration-assistant помогает планировать и проводить миграции Prisma без потери данных. Подходит для разделения колонок, смены типов и безопасного наполнения таблиц. CX Codex +1 316установок readme-generator Скилл readme-generator создаёт структурированный README.md с бейджами, шагами установки, таблицами API и правилами контрибьютинга. Пригодится при оформлении новых репозиториев. CX Codex +1 313установок cypress-playwright-setup Скилл cypress-playwright-setup для Claude Code, Codex, Cursor и других агентов, который разворачивает E2E-тестирование на Cypress или Playwright: page objects, фикстуры и CI-интеграция. CX Codex +1 313установок page-layout-builder Скилл page-layout-builder для Claude Code собирает каркасы страниц dashboard, авторизации, настроек и CRUD. Создаёт маршруты, навигацию и заготовки состояния. CX Codex +1 312установок curl-command-generator Скилл curl-command-generator собирает готовые cURL-команды по определениям маршрутов в Express, Next.js или Fastify: с методами, заголовками, токеном и телом запроса. CX Codex +1 311установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой