Token导航 LogoToken导航

Agent Skill · 研究检索

checking-files-with-lsp(使用 lsp 检查文件)

checking-files-with-lsp 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

checking-files-with-lsp 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 42,706。

总安装 1,048周安装 45GitHub Stars 52下载 367核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:checking-files-with-lsp(使用 lsp 检查文件)
来源仓库:https://github.com/zenobi-us/dotfiles
仓库路径:skills/checking-files-with-lsp
安装命令:
npx skills add https://github.com/zenobi-us/dotfiles --skill checking-files-with-lsp
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/zenobi-us/dotfiles --skill checking-files-with-lsp

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

checking-files-with-lsp 用于根据文件类型自动选择语言服务器或 linter 工具进行代码校验,适合在 Codex、Claude、Cursor、Gemini CLI 中需要系统性验证语法、类型或风格问题时使用。适用于配置文件和代码文件的自动化质量检测,支持多语言智能匹配。

核心能力是工具发现、选择与执行的一体化流程,避免人工干预。安装命令为 npx skills add https://github.com/zenobi-us/dotfiles --skill checking-files-with-lsp。

使用前需确认 mise 工具已安装可用 LSP/linter 服务且项目目录可访问。

来源仓库内路径:skills/checking-files-with-lsp

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zenobi-us/dotfiles --skill checking-files-with…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

checking-files-with-lsp 怎么安装?

在终端执行 npx skills add https://github.com/zenobi-us/dotfiles --skill checking-files-with-lsp。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

checking-files-with-lsp 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

checking-files-with-lsp 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/zenobi-us/dotfiles --skill checking-files-with-lsp;npx skills add zenobi-us/dotfiles --skill "checking-files-with-lsp" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

checking-files-with-lsp 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

checking-files-with-lsp 用的人多吗?

公开数据是累计安装 1,048 次,近一周安装 45 次,下载 367 次,GitHub 52 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

checking-files-with-lsp 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
checking-files-with-lsp

使用 lsp 检查文件 · 本页

1,04852执行命令MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Checking Files With LSP

Overview

When you need to validate, check, or understand a file's structure or code quality, use language servers and linters to do it systematically. This skill provides a reliable workflow: detect the file type, search mise for available LSP/linter tools, intelligently choose one, and run the check.

Core principle: Let the appropriate tool for the language do the validation work, not manual inspection. Automate tool discovery and selection.

When to Use

Use this skill when:

  • Checking code files for syntax errors, type issues, or style problems
  • Validating configuration files (YAML, TOML, JSON, KDL, etc.)
  • Understanding code structure or quality of unfamiliar files
  • Verifying Markdown files for formatting/link issues
  • Need to quickly understand what problems exist in a file

Don't use when:

  • Just reading a file to understand its contents (no validation needed)
  • Running full test suites (that's testing, not validation)
  • Analyzing code behavior (that's debugging, not validation)

The Workflow

Step 1: Detect File Type

Determine the language/type from file extension:

.lua     → lua
.ts/.tsx → typescript
.py      → python
.go      → go
.rs      → rust
.md      → markdown
.json    → json
.yaml    → yaml
.toml    → toml
.kdl     → kdl

If extension is unclear or missing, inspect file shebang or content patterns.

Step 2: Search Mise for LSP/Linters

Run: mise search <filetype>

This returns all available language servers, linters, and formatters for that language.

Example outputs:

mise search lua
lua-language-server    (most popular)
stylua                 (formatter)

mise search python
pyright
pylance
python-language-server
black
ruff

Step 3: Make Smart Selection

Prioritize by tool type: Language Server (LSP) > Linter > Formatter

LSPs provide the most comprehensive validation. Linters catch style/quality issues. Formatters are secondary for validation purposes.

If ONE obvious choice exists:

  • Auto-select it (e.g., only lua-language-server for Lua)
  • Verify installation: mise list | grep <tool> (if not listed, install it)
  • Install: mise install lua-language-server
  • Run it on the file

If MULTIPLE choices exist:

  • Filter by priority: Show LSPs first, linters second, skip formatters
  • Rank by popularity: Most-used tools first (measured by GitHub stars, then npm/PyPI downloads as tiebreaker)
  • Show ranked list to user (with tool type and brief descriptions)
  • Let user pick by number/letter
  • Verify and install selected tool
  • Run it on the file

If NO tools found:

  • Inform user explicitly: "No LSP/linter available in mise for [filetype]"
  • Suggest alternatives in order:

1. Check online package managers (npm, PyPI, cargo, etc.) if not in mise 2. Look for generic validators (jq for JSON, yamllint for YAML, etc.) 3. Basic syntax checking (built-in language checkers) 4. Manual validation with structured guidance

  • Offer: "Would you like me to help install from another source?"

Step 4: Run Validation

Execute the selected tool against the file and return results: errors, warnings, style issues, and suggestions.

Quick Reference

TaskAction
Detect file typeUse file extension as primary signal
Find toolsmise search <filetype>
Install obvious choicemise install <tool> (auto-selected)
Show optionsPresent ranked list for user choice
Run validationExecute tool with file path

Common Mistakes

Mistake: Skip file type detection

  • Wrong: "It's a code file, any language server works"
  • Right: File type determines which LSP applies. Wrong LSP = wrong errors

Mistake: Pick random LSP when multiple exist

  • Wrong: "I'll just try the first one" or "They're all the same"
  • Right: Different LSPs check different aspects. Use ranking: most popular > less common. Filter by type: LSP > Linter > Formatter
  • No exceptions: You must present options to user when multiple exist, not guess

Mistake: Assume LSP is installed

  • Wrong: "Let me just run lua-language-server..."
  • Right: Always verify with mise search first. Check mise list before installing. Install if needed

Mistake: Don't check system requirements

  • Wrong: "Install the LSP and it'll work"
  • Right: Some LSPs need runtime dependencies (Python, Node, etc.). Test LSP runs before reporting results

Mistake: When LSP unavailable, give up

  • Wrong: "No tool for this language, can't validate"
  • Right: Explore alternatives in order: online package managers → generic validators → syntax checking → manual guidance

Mistake: Mixing tool categories

  • Wrong: Showing formatters and linters equally for validation
  • Right: Prioritize LSP > Linter > Formatter. Use tool type as first filter

Fallback Validation Options

When LSP/linter not available in mise:

  1. Check online package managers (npm, PyPI, cargo, etc.) if not in mise
  2. Look for generic validators - JSON validators, YAML checkers work across projects
  3. Basic syntax checking - Some languages have built-in syntax checkers
  4. Manual validation - Provide structured review guidance
  5. Suggest installation - "Would you like me to help install from another source?"

Implementation Steps

When helping a user check a file:

  1. Ask or determine: "What file are we checking?"
  2. Detect the file type from extension
  3. Run: mise search <filetype>
  4. Decide: obvious choice or show ranked options?
  5. Verify installation: mise list | grep <tool> (check if already installed)
  6. Install if needed: mise install <selected-tool>
  7. Test tool runs: Verify LSP/linter executes without errors
  8. Run: Execute tool against file with appropriate flags
  9. Report: Show user the validation results
  10. Offer next steps: "Fix these issues?" or "Run checks again?"

Troubleshooting

Tool installs but won't run:

  • Some LSPs need runtime dependencies (Python for some tools, Node for others)
  • Check LSP documentation for runtime requirements
  • Example: python-language-server needs Python installed
  • Verify with: mise exec <tool> -- <tool> --version

Mise search returns no results:

  • Language might not be in mise database
  • Try alternative package managers: npm (JavaScript), PyPI (Python), cargo (Rust)
  • Or use generic validators: jq (JSON), yamllint (YAML)

LSP finds errors but tool isn't right for the job:

  • Wrong tool selected (formatter instead of LSP)
  • Go back to Step 3, filter by type priority (LSP > Linter)
  • Ask user to pick a different option from the list

File has unusual extension:

  • Use file content inspection (shebang, headers) as fallback
  • Example: Executable shell scripts often lack .sh extension
  • Check content to confirm type before searching mise

Real-World Impact

  • Fast validation: No manual code review for common issues
  • Consistent checking: Same tool, same criteria, every time
  • Discovery: Find issues you'd miss with manual inspection
  • Automation: Can be integrated into workflows, CI/CD, pre-commit hooks
  • Language agnostic: Same pattern works for any language with an LSP available

平台分布

OpenCode

30.92%
按下载量换算113

Claude Code

24.55%
按下载量换算90

Antigravity

19.19%
按下载量换算70

Gemini CLI

11.75%
按下载量换算43

moltbot

7.19%
按下载量换算26

windsurf

3.07%
按下载量换算11

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/zenobi-us/dotfiles --skill checking-files-with-lsp;npx skills add zenobi-us/dotfiles --skill "checking-files-with-lsp" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills