Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问clear审计异常

ln-741-linter-configuratorln 741 linter 配置器

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

6,239

周安装

268

GitHub Stars

437

下载量

2,187
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ln-741-linter-configurator(ln 741 linter 配置器)
来源仓库:https://github.com/levnikolaevich/claude-code-skills
仓库路径:skills/ln-741-linter-configurator
安装命令:
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-741-linter-configurator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-741-linter-configurator

简介

用于辅助前端页面、组件和样式开发。ln-741-linter-configurator 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

  • 适合生成 React、Vue 或 Next.js 相关代码并整理组件结构。
  • 使用时需结合项目现有设计系统和路由方式,避免生成孤立片段。
  • 涉及页面改动时应配合本地预览和构建检查确认视觉效果。
  • 建议优先复用项目已有样式和组件规范。

SKILL.md

Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If shared/ is missing, fetch files via WebFetch from https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.

ln-741-linter-configurator

Type: L3 Worker Category: 7XX Project Bootstrap

Configures code linting, formatting, and type checking tools for TypeScript, Python, and.NET projects.


Purpose & Scope

Does:

  • Detects which linter stack to configure based on project type
  • Checks for existing linter configurations
  • Generates appropriate config files from templates
  • Installs required dependencies (always latest versions, no pinning)
  • Generates unified lint script (scripts/lint.sh)
  • Verifies all linters run without errors

Does NOT:

  • Configure pre-commit hooks (separate worker)
  • Set up test infrastructure (separate worker)
  • Modify source code

Supported Stacks

TechnologyLinterType CheckerFormatterConfig Files
TypeScriptESLint 9+ (flat config)TypeScript (tsc)Prettiereslint.config.ts, .prettierrc
.NETRoslyn AnalyzersRoslyndotnet format.editorconfig, Directory.Build.props
PythonRuffmypyRuff (built-in)ruff.toml, mypy.toml (or pyproject.toml)

Phase 1: Check Existing Configuration

Before generating configs, check what already exists.

Files to Check:

StackConfig FilesGlob Pattern
TypeScriptESLint configeslint.config.*, .eslintrc*
TypeScriptPrettier config.prettierrc*, prettier.config.*
.NETEditor config.editorconfig
.NETBuild propsDirectory.Build.props
PythonRuff configruff.toml, pyproject.toml
Pythonmypy configmypy.toml, mypy.ini, pyproject.toml [tool.mypy]

Decision Logic:

  1. If no config exists: CREATE from template
  2. If config exists but incomplete (fewer rules/tools than template): EXTEND to match template
  3. If config matches template: SKIP (inform user)

Completeness Check (Python):

AspectCheckTemplate Standard
Ruff rulesCount select entries23+ categories (see ruff_template.toml)
Ruff per-file-ignoresTests section existstests/**/*.py with S101,S105,S106,T201
Ruff advancedmccabe, flake8-bugbear, isortAll present
MyPystrict = trueEnabled
Advanced toolsimport-linter, deptry, vulture in dev depsAll installed
Lint scriptscripts/lint.sh with 7 checksAll 7 active
.editorconfigFile existsPresent

Phase 2: Generate Configuration

Use templates from references/ folder. Customize placeholders based on project.

TypeScript:

  1. Copy eslint_template.ts to project root as eslint.config.ts
  2. Copy prettier_template.json as .prettierrc
  3. Add scripts to package.json:

- "lint": "eslint." - "lint:fix": "eslint. --fix" - "format": "prettier --write." - "format:check": "prettier --check." - "typecheck": "tsc --noEmit" - "lint:all": "npm run typecheck && npm run lint && npm run format:check"

  1. For React projects: uncomment React sections in template

.NET:

  1. Copy editorconfig_template.ini as .editorconfig
  2. Copy directory_build_props_template.xml as Directory.Build.props
  3. Ensure analyzers are included (SDK 5+ includes them by default)

Python:

  1. Copy ruff_template.toml as ruff.toml

- OR merge into existing pyproject.toml under [tool.ruff]

  1. Copy mypy_template.toml as mypy.toml

- OR merge into existing pyproject.toml under [tool.mypy]

  1. Update known-first-party in isort config to match project package name
  2. Update files in mypy config to match project source directories
  3. Generate advanced tool configs in pyproject.toml:

- [tool.importlinter] from importlinter_template.toml -- adapt root_packages and contracts to project layer structure - [tool.vulture] from vulture_template.toml -- adapt paths to project source directory - [tool.deptry] from deptry_template.toml -- adapt extend_exclude

  1. Generate .editorconfig from editorconfig_template.ini -- adapt max_line_length to match ruff line-length

Phase 3: Install Dependencies

Install required packages. Always install latest versions — no version pinning.

TypeScript:

npm install -D eslint @eslint/js typescript-eslint eslint-config-prettier prettier eslint-plugin-unicorn jiti
For React projects, also install: npm install -D eslint-plugin-react eslint-plugin-react-hooks
Note on jiti: Required for eslint.config.ts on Node.js < 22.10. On Node.js 22.10+ TypeScript configs are supported natively.

.NET:

  • Analyzers included in SDK 5+ — no separate install needed

Python:

uv add --dev ruff mypy import-linter deptry vulture pip-audit
# OR without uv:
pip install ruff mypy import-linter deptry vulture pip-audit

Phase 4: Generate Lint Script

Generate scripts/lint.sh from lint_script_template.sh with ALL checks for the detected stack.

  1. Copy lint_script_template.sh to scripts/lint.sh
  2. Uncomment ALL check lines matching detected stack -- both basic AND advanced tools:
StackChecksTOTAL
Pythonruff check, ruff format, mypy, lint-imports, deptry, vulture, pip-audit7
TypeScripttypecheck, eslint, prettier, knip, depcruise5
.NETdotnet build, dotnet format2
  1. Set TOTAL to match active checks count
  2. Uncomment matching auto-fix commands in --fix block
  3. Make executable: chmod +x scripts/lint.sh
  4. For TypeScript: ensure "lint:all" script exists in package.json

Phase 5: Verify Setup

After configuration, verify everything works.

TypeScript:

npx tsc --noEmit
npx eslint .
npx prettier --check .

.NET:

dotnet format --verify-no-changes

Python:

ruff check .
ruff format --check .
mypy

Unified verification:

bash scripts/lint.sh

Expected: Exit code 0 for all checks.

On Failure: Check error output, adjust config, re-verify.


Phase 6: Fix Lint Errors

After generating all configs and installing tools, run bash scripts/lint.sh --all to see all violations.

  1. Run bash scripts/lint.sh --fix to auto-fix what ruff can
  2. Fix remaining errors manually (file by file)
  3. For C901 (complexity) on functions that cannot be refactored now: add # noqa: C901
  4. For deptry false positives: add [tool.deptry.per_rule_ignores] entries
  5. Repeat until bash scripts/lint.sh passes with 0 failures

Critical Rules

RULE 1: Always include eslint-config-prettier (last in config) when using ESLint + Prettier together.
RULE 2: Use ESLint flat config format (eslint.config.ts), NOT legacy .eslintrc.
RULE 3: Ruff replaces Black, isort, flake8, and many other Python tools. Do NOT install them separately.
RULE 4: Never disable strict TypeScript rules without documented reason.
RULE 5: Always run mypy alongside Ruff for Python projects. Ruff handles style/bugs, mypy handles type safety.
RULE 6: Use recommendedTypeChecked as ESLint default, not just recommended. Downgrade individual rules if needed.
RULE 7: Never pin dependency versions in install commands -- always install latest.
RULE 8: Advanced static analysis tools (import-linter, deptry, vulture, pip-audit) are MANDATORY for Python projects, not optional.

Monitor (2.1.98+): When lint/typecheck verification commands expected >30s, use Monitor. Fallback: Bash(run_in_background=true).

Definition of Done

  • Appropriate config files created for detected stack
  • Dependencies installed (latest versions)
  • scripts/lint.sh generated with correct checks for stack
  • Lint command runs without errors on project source
  • Format command runs without errors
  • Type checker runs without errors (mypy for Python, tsc for TypeScript)
  • No ESLint/Prettier conflicts (eslint-config-prettier installed)
  • Advanced tools installed and configured (import-linter, deptry, vulture, pip-audit)
  • scripts/lint.sh runs ALL checks (7 for Python) with exit code 0
  • .editorconfig created with settings matching ruff config
  • User informed of available lint/format commands

Reference Files

FilePurpose
eslint_template.tsESLint flat config template (TypeScript)
prettier_template.jsonPrettier config template
ruff_template.tomlPython Ruff config template
mypy_template.tomlPython mypy config template
lint_script_template.shUnified lint script template
editorconfig_template.ini.NET editorconfig template
directory_build_props_template.xml.NET analyzers template
importlinter_template.tomlPython import-linter config template
vulture_template.tomlPython vulture config template
deptry_template.tomlPython deptry config template
linter_guide.mdDetailed configuration guide

Error Handling

ErrorCauseResolution
ESLint/Prettier conflictMissing eslint-config-prettierInstall and add as last config
ESLint projectService errorConfig file not in tsconfigAdd to allowDefaultProject list
ESLint .ts config failsMissing jitinpm install -D jiti
TypeScript parse errorsParser version mismatchAlign typescript-eslint with TS version
mypy missing stubsThird-party library without typesAdd [[mypy.overrides]] with ignore_missing_imports
mypy strict too strictHundreds of errors on first runStart with relaxed config, enable strict gradually
Ruff not foundNot installedpip install ruff or uv add ruff
dotnet format failsMissing SDKInstall.NET SDK

Version: 4.0.0 Last Updated: 2026-03-18

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.14%
按下载量换算615

Gemini CLI

21.14%
按下载量换算462

OpenCode

17.55%
按下载量换算384

Antigravity

12.37%
按下载量换算271

Codex

7.36%
按下载量换算161

Cursor

3.12%
按下载量换算68

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills