← 返回 Skills 市场
Editorconfig Linter
作者
charlie-morrison
· GitHub ↗
· v1.0.0
· MIT-0
88
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install editorconfig-linter
功能描述
Validate .editorconfig syntax and check source files for EditorConfig compliance.
使用说明 (SKILL.md)
EditorConfig Linter
Validate .editorconfig files and check source files for compliance.
Commands
Validate .editorconfig syntax
python3 scripts/editorconfig-linter.py validate .editorconfig
Check files against .editorconfig rules
python3 scripts/editorconfig-linter.py check src/
python3 scripts/editorconfig-linter.py check src/ --editorconfig .editorconfig
Show effective config for a file
python3 scripts/editorconfig-linter.py show src/main.py
Fix violations automatically
python3 scripts/editorconfig-linter.py fix src/
Options
--editorconfig PATH— Path to .editorconfig (default: auto-discover)--format text|json|markdown— Output format (default: text)--strict— Exit 1 on any violation (CI mode)--exclude PATTERN— Glob pattern to exclude (repeatable)--max-files N— Max files to check (default: 1000)
What It Checks
.editorconfig Syntax
- Invalid property names
- Invalid property values (indent_style must be tab/space, etc.)
- Duplicate sections
- Unreachable sections (shadowed by earlier glob)
- Missing root = true
- Invalid glob patterns
File Compliance (9 rules)
indent_style— tabs vs spacesindent_size— number of spaces per indentend_of_line— lf, crlf, crcharset— utf-8, utf-8-bom, latin1, utf-16be, utf-16letrim_trailing_whitespace— trailing whitespace checkinsert_final_newline— file ends with newlinemax_line_length— line length limittab_width— tab display width- Mixed indentation detection
Exit Codes
- 0: No violations
- 1: Violations found (or --strict)
- 2: Invalid arguments or .editorconfig errors
安全使用建议
This skill appears to do what it claims: parse .editorconfig, report violations, and optionally auto-fix issues. Before running: (1) inspect the full scripts/editorconfig-linter.py file locally (the provided listing in this review is truncated near the end); (2) run 'validate' and 'check' first to see issues, and back up your repository or use version control before using 'fix' since it can modify files; (3) run it on a small test directory or in a sandbox to confirm behavior (line-ending and BOM fixes can alter many files); (4) if you need absolute assurance, open the rest of the script to confirm there are no network calls or unexpected filesystem operations beyond the stated checks and fixes.
功能分析
Type: OpenClaw Skill
Name: editorconfig-linter
Version: 1.0.0
The skill bundle provides a standard EditorConfig linter and fixer implemented in Python using only the standard library. The code in scripts/editorconfig-linter.py performs file system operations (reading and writing) consistent with its stated purpose of validating and fixing file formatting, with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description (EditorConfig linter) match the included artefacts: SKILL.md documents validate/check/show/fix commands and the bundle includes a Python script implementing parsing and file checks. No unrelated env vars, binaries, or installs are requested.
Instruction Scope
SKILL.md instructs the agent to run the bundled Python script against project files (e.g., python3 scripts/editorconfig-linter.py check src/). The script legitimately reads repository files to check compliance and supports a 'fix' command that will modify files — this is expected for an auto-fixer but is a potentially impactful operation the user should run on backed-up or non-sensitive data first.
Install Mechanism
No install spec; the skill is instruction-only with a bundled Python script relying only on the stdlib. This is low-risk compared with remote downloads or package installs.
Credentials
The skill declares no required environment variables, credentials, or config paths. The script operates on files passed as arguments and does not import networking or credential-handling libraries, so requested access is proportionate to its purpose.
Persistence & Privilege
always is false and model invocation is allowed (platform default). The skill does not request permanent system-wide changes, nor does it try to modify other skills or agent configuration according to the provided files.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install editorconfig-linter - 安装完成后,直接呼叫该 Skill 的名称或使用
/editorconfig-linter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Editorconfig Linter 是什么?
Validate .editorconfig syntax and check source files for EditorConfig compliance. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 88 次。
如何安装 Editorconfig Linter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install editorconfig-linter」即可一键安装,无需额外配置。
Editorconfig Linter 是免费的吗?
是的,Editorconfig Linter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Editorconfig Linter 支持哪些平台?
Editorconfig Linter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Editorconfig Linter?
由 charlie-morrison(@charlie-morrison)开发并维护,当前版本 v1.0.0。
推荐 Skills