用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill lint命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | lint |
| description | [Code Quality] Run linters and fix issues for backend or frontend Use when this capability is needed. |
[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ATTENTION ask user whether to skip.
Prerequisites: MUST ATTENTION READ before executing:
Understand Code First — HARD-GATE: Do NOT write, plan, or fix until you READ existing code.
- Search 3+ similar patterns (
grep/glob) — citefile:lineevidence- Read existing files in target area — understand structure, base classes, conventions
- Run
python .claude/scripts/code_graph trace <file> --direction both --jsonwhen.code-graph/graph.dbexists- Map dependencies via
connectionsorcallers_of— know what depends on your target- Write investigation to
.ai/workspace/analysis/for non-trivial tasks (3+ files)- Re-read analysis file before implementing — never work from memory alone
- NEVER invent new patterns when existing ones work — match exactly or document deviation
BLOCKED until:
- [ ]Read target files- [ ]Grep 3+ patterns- [ ]Graph trace (if graph.db exists)- [ ]Assumptions verified with evidence
Goal: Run linters (.NET analyzers and/or ESLint/Prettier) and report or auto-fix code quality issues.
Workflow:
dotnet build for .NET analyzers or nx lint / prettier for AngularKey Rules:
fix argument = apply safe auto-fixes, report remaining manual itemsBe skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
Run linting: $ARGUMENTS
Parse arguments:
backend or be → Run .NET analyzersfrontend or fe → Run ESLint/Prettierfix → Auto-fix issues where possibleFor Backend (.NET):
dotnet build {SolutionName}.sln /p:TreatWarningsAsErrors=false
For Frontend (Angular/Nx):
cd src/{ExampleAppWeb}
nx lint playground-text-snippet
nx lint {lib-name}
With auto-fix:
nx lint playground-text-snippet --fix
npx prettier --write "apps/**/*.{ts,html,scss}" "libs/**/*.{ts,html,scss}"
Report format:
Auto-fix behavior:
fix argument provided, apply safe auto-fixesTaskCreate BEFORE startingfile:line evidence for every claim (confidence >80% to act)Converted and distributed by TomeVault — claim your Tome and manage your conversions.