重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
configure-editor by laurigates/claude-plugins
npx skills add https://github.com/laurigates/claude-plugins --skill configure-editor包含 Shell 命令
此技能包含可能执行系统命令的 shell 命令指令(!command``)。安装前请仔细审查。
检查并配置编辑器设置,以确保团队内的一致性。
| 何时使用此技能 | 何时使用其他方法 |
|---|---|
| 为团队设置一致的编辑器配置时 | 仅个人编辑器偏好(在用户设置中配置) |
| 检查 EditorConfig 或 VS Code 工作区合规性时 | 仅查看现有的 .editorconfig(使用 Read 工具) |
| 为检测到的语言配置保存时格式化时 | 项目不使用 VS Code(手动为其他编辑器配置) |
| 为项目工具添加推荐的 VS Code 扩展时 | 扩展已正确配置 |
| 设置调试配置和任务时 | 无需调试的简单项目 |
find . -maxdepth 1 -name \'.editorconfig\'find . -maxdepth 1 -name \'.vscode/settings.json\'广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
find . -maxdepth 1 -name \'.vscode/extensions.json\'find . -maxdepth 1 -name \'.vscode/launch.json\'find . -maxdepth 1 -name \'.vscode/tasks.json\'find . -maxdepth 1 \( -name 'package.json' -o -name 'tsconfig.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'biome.json' \)find . -maxdepth 1 -name \'.project-standards.yaml\'从 $ARGUMENTS 解析:
--check-only: 报告合规状态,不进行修改--fix: 自动应用所有修复,无需提示执行此编辑器配置工作流:
检查语言指示器:
| 指示器 | 语言/工具 | 所需配置 |
|---|---|---|
package.json | JavaScript/TypeScript | Biome |
tsconfig.json | TypeScript | TypeScript 扩展 |
pyproject.toml | Python | Ruff, Python 扩展 |
Cargo.toml | Rust | rust-analyzer |
biome.json | Biome 格式化程序/检查器 | Biome 扩展 |
根据以下要求检查现有配置:
EditorConfig:
.editorconfig 是否存在VS Code 设置:
.vscode/settings.json 是否存在VS Code 扩展:
.vscode/extensions.json 是否存在打印格式化的合规性报告,显示每项检查的状态:
Editor Configuration Compliance Report
=======================================
Project: [name]
Languages: [detected]
Detected Tools: [detected]
EditorConfig: [status per check]
VS Code Settings: [status per check]
VS Code Extensions: [status per check]
Overall: [X issues found]
Recommendations: [list specific fixes]
如果使用 --check-only,则在此处停止。
根据检测到的语言应用修复。使用 REFERENCE.md 中的配置。
.editorconfig,包含语言特定部分.vscode/settings.json,包含保存时格式化和每种语言的格式化程序.vscode/extensions.json,包含针对检测到的工具的推荐扩展.vscode/launch.json,包含针对检测到的语言的调试配置.vscode/tasks.json,包含构建/测试/检查任务更新 .project-standards.yaml:
components:
editor: "2025.1"
editor_config: true
vscode_settings: true
vscode_extensions: true
创建 docs/EDITOR_SETUP.md,包含团队的快速入门说明,涵盖 VS Code 设置、推荐扩展和故障排除。
打印所有更改的摘要,包括创建/更新的文件、推荐的扩展以及团队的后续步骤。
有关详细的配置模板和语言特定设置,请参阅 REFERENCE.md。
| 上下文 | 命令 |
|---|---|
| 检查 EditorConfig 是否存在 | `test -f .editorconfig && echo "exists" |
| 验证 EditorConfig 语法 | editorconfig-checker .editorconfig 2>&1 (如果已安装) |
| 检查 VS Code 设置是否存在 | test -f .vscode/settings.json && jq empty .vscode/settings.json 2>&1 |
| 列出检测到的语言 | find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' \) -exec basename {} \; |
| 快速合规性检查 | /configure:editor --check-only |
| 自动修复所有问题 | /configure:editor --fix |
| 标志 | 描述 |
|---|---|
--check-only | 报告状态,不提供修复 |
--fix | 自动应用所有修复,无需提示 |
# 检查合规性并提供修复
/configure:editor
# 仅检查,不修改
/configure:editor --check-only
# 自动修复所有问题
/configure:editor --fix
/configure:formatting - 配置代码格式化/configure:linting - 配置代码检查工具/configure:all - 运行所有合规性检查每周安装数
49
仓库
GitHub 星标数
24
首次出现
2026年2月9日
安全审计
安装于
opencode49
gemini-cli49
github-copilot49
codex49
amp49
cline49
Contains Shell Commands
This skill contains shell command directives (!command``) that may execute system commands. Review carefully before installing.
Check and configure editor settings for consistency across the team.
| Use this skill when... | Use another approach when... |
|---|---|
| Setting up consistent editor configuration across a team | Personal editor preferences only (configure in user settings) |
| Checking EditorConfig or VS Code workspace compliance | Just viewing existing .editorconfig (use Read tool) |
| Configuring format-on-save for detected languages | Project doesn't use VS Code (configure for other editors manually) |
| Adding recommended VS Code extensions for project tools | Extensions are already properly configured |
| Setting up debug configurations and tasks | Simple project with no debugging needs |
find . -maxdepth 1 -name \'.editorconfig\'find . -maxdepth 1 -name \'.vscode/settings.json\'find . -maxdepth 1 -name \'.vscode/extensions.json\'find . -maxdepth 1 -name \'.vscode/launch.json\'find . -maxdepth 1 -name \'.vscode/tasks.json\'find . -maxdepth 1 \( -name 'package.json' -o -name 'tsconfig.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'biome.json' \)find . -maxdepth 1 -name \'.project-standards.yaml\'Parse from $ARGUMENTS:
--check-only: Report compliance status without modifications--fix: Apply all fixes automatically without promptingExecute this editor configuration workflow:
Check for language indicators:
| Indicator | Language/Tool | Configuration Needed |
|---|---|---|
package.json | JavaScript/TypeScript | Biome |
tsconfig.json | TypeScript | TypeScript extension |
pyproject.toml | Python | Ruff, Python extension |
Cargo.toml | Rust | rust-analyzer |
biome.json | Biome formatter/linter |
Check existing configuration against these requirements:
EditorConfig:
.editorconfig existsVS Code Settings:
.vscode/settings.json existsVS Code Extensions:
.vscode/extensions.json existsPrint a formatted compliance report showing status of each check:
Editor Configuration Compliance Report
=======================================
Project: [name]
Languages: [detected]
Detected Tools: [detected]
EditorConfig: [status per check]
VS Code Settings: [status per check]
VS Code Extensions: [status per check]
Overall: [X issues found]
Recommendations: [list specific fixes]
If --check-only, stop here.
Apply fixes based on detected languages. Use configurations from REFERENCE.md.
.editorconfig with language-specific sections.vscode/settings.json with format-on-save and per-language formatters.vscode/extensions.json with recommended extensions for detected tools.vscode/launch.json with debug configurations for detected languages.vscode/tasks.json with build/test/lint tasksUpdate .project-standards.yaml:
components:
editor: "2025.1"
editor_config: true
vscode_settings: true
vscode_extensions: true
Create docs/EDITOR_SETUP.md with quick start instructions for the team covering VS Code setup, recommended extensions, and troubleshooting.
Print a summary of all changes made, including files created/updated, extensions recommended, and next steps for the team.
For detailed configuration templates and language-specific settings, see REFERENCE.md.
| Context | Command |
|---|---|
| Check if EditorConfig exists | `test -f .editorconfig && echo "exists" |
| Validate EditorConfig syntax | editorconfig-checker .editorconfig 2>&1 (if installed) |
| Check VS Code settings exist | test -f .vscode/settings.json && jq empty .vscode/settings.json 2>&1 |
| List detected languages | find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' \) -exec basename {} \; |
| Quick compliance check | /configure:editor --check-only |
| Auto-fix all issues | /configure:editor --fix |
| Flag | Description |
|---|---|
--check-only | Report status without offering fixes |
--fix | Apply all fixes automatically without prompting |
# Check compliance and offer fixes
/configure:editor
# Check only, no modifications
/configure:editor --check-only
# Auto-fix all issues
/configure:editor --fix
/configure:formatting - Configure code formatting/configure:linting - Configure linting tools/configure:all - Run all compliance checksWeekly Installs
49
Repository
GitHub Stars
24
First Seen
Feb 9, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode49
gemini-cli49
github-copilot49
codex49
amp49
cline49
GitHub Actions 官方文档查询助手 - 精准解答 CI/CD 工作流问题
53,800 周安装
| Biome extension |