接入你的智能体
發布者自己的指令。不是 PlugMCP 端點。
用我們的金鑰與日誌託管一份副本。
npx -y [email protected]Claude Code 沒有本機指令的安裝連結。複製下方指令並在終端機中執行。
claude mcp add eslint-plugin-claude -- npx -y eslint-plugin-claude@1.0.0在終端機中執行。
{ "mcpServers": { "eslint-plugin-claude": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}claude_desktop_config.json
遠端 URL 還是本機指令? 兩種安裝方式的差異
An ESLint plugin that lints Claude Code configuration: CLAUDE.md, skills, subagents, hooks, settings, permissions, MCP servers, and plugin manifests.
It checks each of these against the Claude Code docs. It runs on
@eslint/markdown and
@eslint/json.
These limits apply to each rule:
~/.claude/. A rule option
can name what the repository cannot see.claude plugin validate.
A CLI check is quantitative, as the rules of this plugin are. A session tool, such as
/doctor, can make qualitative checks, so it does not count. A rule can report the cases that
the tool does not check. When the tool starts to make the check, the rule is deprecated, and
the next major release removes it.ADR 001 (Decisions 2 and 14) records these decisions.
A daily job watches the docs. It compares each docs page that a rule cites with a stored snapshot. For a changed block, it opens or updates an issue. For a moved or renamed section, it opens an issue to update the links of each rule doc. A person decides each issue with the docs watch runbook. ADR 002 records this decision.
pnpm add -D eslint @eslint/markdown @eslint/json eslint-plugin-claude
Requires ESLint 10, @eslint/markdown 8, @eslint/json 2 and Node ^22.13.0 || >=24. The two
language plugins are peers, so your project and this plugin use the same copy.
// eslint.config.js
import { defineConfig } from 'eslint/config'
import claude from 'eslint-plugin-claude'
export default defineConfig([{ plugins: { claude }, extends: ['claude/recommended'] }])
Each rule brings its own files glob and language, and a rule can add a second language and
glob. The config registers markdown and json, so you need no other setup. Rule IDs take the form claude/<rule>.
You can change the severity or the options of a rule. Put the rule in rules, in the block
that extends the config:
export default defineConfig([
{
plugins: { claude },
extends: ['claude/recommended'],
rules: {
'claude/agent-body-nonempty': 'warn',
'claude/skill-description-max-length': ['warn', { listingMax: 1000 }],
},
},
])
The doc of each rule shows its entry.
Each config is an array of blocks. The block of a rule has the name claude/<config>/<rule>, such
as claude/recommended/command-legacy-format. The two blocks that give the files of each language
have the names claude/<config>/markdown-files and claude/<config>/json-files. These names are
stable from version 1.0.0. A rule that is off in a config has no block of its own there. The
block of its language gives its files. A glob that matches each file of a language, such as
**/*.md, is not in that block. To change the files of a rule, find its block by the name, and
replace files:
// eslint.config.js
import { defineConfig } from 'eslint/config'
import claude from 'eslint-plugin-claude'
export default defineConfig(
claude.configs.recommended.map((block) =>
block.name === 'claude/recommended/command-legacy-format'
? { ...block, files: ['packages/app/.claude/commands/**/*.md'] }
: block,
),
)
A rule that reads two languages has two blocks with the same name. Compare block.language too
('markdown/gfm' or 'json/json') to change only one of them. A rule also checks the place of a
file in code, so a wider glob can give no new report. The plugin has no setting and no rule option
for files.
Each config turns on rules whose glob is **/*.md, such as the agent rules. So each config sets
markdown/gfm with YAML frontmatter on each .md file. That replaces a language that an earlier
block sets for those files. The agent rules have this glob because a plugin manifest can name an
agent file at any path in the plugin. Each rule finds its files in code. To narrow the files of
a rule, follow Change the files of a rule.
The rules are in groups by the type of file that they check. The groups follow the rule inventory.
The list marks each rule that has options. The doc of each rule gives each option, and its default if it has one.
💼 Configurations enabled in.
⚠️ Configurations set to warn in.
✅ Set in the recommended configuration.
🔒 Set in the strict configuration.
⚙️ Has configuration options.
An ESLint plugin that lints Claude Code configuration: CLAUDE.md, skills, subagents, hooks, settings, permissions, MCP servers, and plugin manifests.
{ "mcpServers": { "eslint-plugin-claude": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
這筆記錄未列出必要的環境變數。
Eslint Plugin Claude 透過 stdio 在本機執行。
上次檢查時間:2026-11-16。 An ESLint plugin that lints Claude Code configuration: CLAUDE.md, skills, subagents, hooks, settings, permissions, MCP servers, and plugin manifests.