by sickn33
代码修改通常会引入语法错误或违反项目规范。此技能可自动执行 linting、类型检查和安全审计,以便在提交前发现问题。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 lint-and-validate 技能" 开始使用
=== lint-and-validate 技能 === 作者: sickn33 描述: 代码修改通常会引入语法错误或违反项目规范。此技能可自动执行 linting、类型检查和安全审计,以便在提交前发现问题。 使用方法: 1. 调用技能: "使用 lint-and-validate 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 lint-and-validate 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
devops
low
MANDATORY: Run appropriate validation tools after EVERY code change. Do not finish a task until the code is error-free.
npm run lint or npx eslint "path" --fixnpx tsc --noEmitnpm audit --audit-level=highruff check "path" --fix (Fast & Modern)bandit -r "path" -llmypy "path"npm run lint && npx tsc --noEmitlint fails: Fix the style or syntax issues immediately.tsc fails: Correct type mismatches before proceeding..eslintrc, tsconfig.json, pyproject.toml and suggest creating one.Strict Rule: No code should be committed or reported as "done" without passing these checks.
| Script | Purpose | Command |
|---|---|---|
scripts/lint_runner.py | Unified lint check | python scripts/lint_runner.py <project_path> |
scripts/type_coverage.py | Type coverage analysis | python scripts/type_coverage.py <project_path> |
View Count
0
Download Count
0
Favorite Count
0
Quality Score
71