lint-and-validate – skill Khác cho agent AI
Chạy kiểm tra lint và kiểm tra kiểu đã cấu hình, phân biệt lỗi với các kiểm tra chưa chạy, và báo cáo kết quả xác thực cụ thể.
Cài skill lint-and-validate bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/lint-and-validate-471db.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /lint-and-validate – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/lint-and-validate-471db.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $lint-and-validate – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/lint-and-validate-471db.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /lint-and-validate – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/lint-and-validate-471db.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /lint-and-validate – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Lint and Validate
When to Use
Use after behavior or configuration changes when a repository has relevant lint or type checks. Read the repository's instructions and package scripts first. Run focused checks during development and the required checks before completion.
Procedure
1. Identify the changed languages, configured commands, and installed tools. Inspect package scripts before executing them: a script named lint can modify files or run arbitrary project code.
2. Run the project's read-only lint/type-check commands. For Node projects, prefer declared scripts such as npm run lint and npm run typecheck. Do not use npx to silently fetch an absent checker.
3. For Python, use configured, already installed tools such as ruff check . or mypy .. Do not assume every pyproject.toml configures both. Never add --fix without inspecting the proposed changes and the task's authorization.
4. Fix relevant failures without deleting user work, weakening rules, or raising timeouts just to pass. If a required tool is unavailable, report the exact check that did not run.
5. Report commands, exit results, scope and remaining limitations. Passing lint does not prove the absence of runtime or security defects.
Example
After correcting a TypeScript behavior, inspect package.json, run the configured focused regression test, then npm run lint and npm run typecheck if those scripts exist. If TypeScript is declared but not installed, report the missing local checker; do not substitute a downloaded package or call the result a pass.
Bundled helpers
python scripts/lint_runner.py /absolute/project: runs a conservative set of candidate checks. Node fallback checkers must exist in localnode_modules/.bin; Python candidates must be installed. Inspect the project scripts first. A missing command or failing check exits 1; no configured checks or invalid project metadata exits 2. Exit 0 means the invoked checks passed, not that every needed check was discovered. Python detection is heuristic and may suggest unconfigured Ruff/MyPy commands.python scripts/type_coverage.py /absolute/project: read-only annotation inventory, despite its retained compatibility filename. Samples at most 30 files per language, skips links and build/dependency directories, and bounds file reads. Python uses AST nodes to avoid double-counting functions. TypeScript reports lexical: anyoccurrences, including possible comments and strings. No quality percentage or pass/fail threshold is inferred. Exit 2 means no applicable files; parse/read errors exit 1.
Limitations
The runner executes trusted project commands, which may mutate files or access the network. It does not install dependencies, detect every monorepo configuration, or replace the project's CI contract. The inventory is a bounded source sample, not semantic type coverage; inferred types, generics, decorator behavior and correctness require the actual type checker. Do not label unrun checks as successful.
Skill liên quan
- llm-council – Chạy hội đồng các mô hình open-weight lưu trữ trên Fireworks để so sánh phản hồi và tổng…
- llm-structured-output – Lấy JSON, enum và đối tượng có kiểu đáng tin cậy từ LLM bằng response_format, tool_use…
- load-balancing – Cấu hình load balancer và phân phối lưu lượng. Triển khai health check và SSL…
- local-citation-finder – Local Citation Finder. Dùng khi làm việc với danh mục doanh nghiệp và vị trí dịch vụ.
- local-keyword-generator – Local Keyword Generator. Dùng khi làm việc với dịch vụ hoặc sản phẩm và địa điểm mục…
- local-schema-builder – Local Schema Builder. Dùng khi làm việc với thông tin doanh nghiệp, URL trang, địa chỉ…
- logic-locate – Tìm nguyên nhân gốc của lỗi ĐÃ XÁC NHẬN bằng cách truy vết bán hình thức ngược rồi xuôi.
- long-tail-keyword-generator – Long-Tail Keyword Generator. Dùng khi làm việc với chủ đề gốc và đối tượng hoặc trường…