Token导航 LogoToken导航

Agent Skill · 研究检索

preflight-checks(飞行前检查)

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

preflight-checks 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 50,332。

总安装 618周安装 26GitHub Stars 公开资料未说明下载 216核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add charlesjones-dev/claude-code-plugins-dev --skill "preflight-checks"

这个 Skill 是做什么的

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

preflight-checks 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。适用于产品需求文档分析、信息检索与筛选等研究类任务场景。通过关键词匹配和来源仓库路径提供候选结果,支持进一步核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。可通过 npx skills add charlesjones-dev/claude-code-plugins-dev --skill "preflight-checks" 命令安装使用。

来源仓库内路径:skills/preflight-checks

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add charlesjones-dev/claude-code-plugins-dev --skill "preflight-check…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

preflight-checks 怎么安装?

在终端执行 npx skills add charlesjones-dev/claude-code-plugins-dev --skill "preflight-checks"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

preflight-checks 支持哪些 AI 工具?

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

preflight-checks 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

preflight-checks 是免费的吗?

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

preflight-checks 用的人多吗?

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

preflight-checks 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
preflight-checks

飞行前检查 · 本页

618—调用外部服务MIT未收录

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

SKILL.md 原文

name
preflight-checks
description
Comprehensive code quality verification system for running type checking, linting, and tests. Use when validating code quality, preparing commits, running CI checks locally, or when the user mentions preflight, verify, lint, typecheck, or test commands.

Preflight Code Quality Checks

This skill provides comprehensive guidance for discovering and running code quality checks across different project types.

Overview

Preflight checks are the quality gates that verify code before commits, PRs, or deployments. They typically include:

  1. Type Checking - Static type verification (TypeScript, MyPy, etc.)
  2. Linting - Code quality and style enforcement
  3. Formatting - Consistent code style
  4. Security Scanning - Dependency audits and static analysis (SAST)
  5. Testing - Unit, integration, and e2e tests

Quick Reference

Node.js / TypeScript Projects

CheckCommandAuto-fix
TypeScriptnpx tsc --noEmitN/A (manual)
ESLintnpx eslint .npx eslint . --fix
Biomenpx biome check .npx biome check . --write
Prettiernpx prettier --check .npx prettier --write .
Jestnpx jestN/A
Vitestnpx vitest runN/A

Prefer npm scripts when available:

# Check package.json scripts first
npm run lint        # if exists
npm run typecheck   # if exists
npm run test        # if exists
npm run check       # often runs all checks

Python Projects

CheckCommandAuto-fix
MyPymypy .N/A (manual)
Ruff lintruff check .ruff check . --fix
Ruff formatruff format --check .ruff format .
Blackblack --check .black .
isortisort --check .isort .
PytestpytestN/A

With pyproject.toml (modern Python):

# Check for [tool.X] sections
ruff check . && ruff format --check .  # Ruff (fast, recommended)
mypy src/                               # Type checking
pytest                                  # Tests

.NET Projects

CheckCommandAuto-fix
Builddotnet buildN/A
Build strictdotnet build --warnaserrorN/A
Format checkdotnet format --verify-no-changesdotnet format
Testsdotnet testN/A
AnalyzersConfigured in .editorconfigN/A

.NET specific considerations:

  • Warnings as errors: Add <TreatWarningsAsErrors>true</TreatWarningsAsErrors> to .csproj
  • Enable nullable: <Nullable>enable</Nullable> for null safety
  • Analyzers run during build automatically

Go Projects

CheckCommandAuto-fix
Buildgo build ./...N/A
Vetgo vet ./...N/A
golangci-lintgolangci-lint rungolangci-lint run --fix
gofmtgofmt -l .gofmt -w .
Testsgo test ./...N/A

Rust Projects

CheckCommandAuto-fix
Checkcargo checkN/A
Clippycargo clippy -- -D warningscargo clippy --fix
Formatcargo fmt --checkcargo fmt
Testscargo testN/A

Security Scanning (Cross-Platform)

ToolPurposeCommand
pnpm auditDependency CVE scanpnpm audit or pnpm audit:check
npm auditDependency CVE scannpm audit
yarn auditDependency CVE scanyarn audit
eslint-plugin-securityJS/TS security patternsRuns with ESLint
SemgrepSAST scanningsemgrep scan --config auto
Semgrep (Docker)SAST scanningSee platform-specific commands below
pip-auditPython dependency scanpip-audit
cargo-auditRust dependency scancargo audit

IMPORTANT: If Semgrep is detected in CI workflows or config files, you MUST run it as part of preflight checks. Do not skip it.

Semgrep Detection Priority:

  1. Package.json scripts (e.g., pnpm run semgrep)
  2. Config files: .semgreprc.yml, .semgrep.yml, semgrep.yml, .semgrep/
  3. CI workflows: .github/workflows/*.yml (extract --config flags)
  4. README.md documentation - ALWAYS check this before trying generic Docker commands
  5. Local CLI: semgrep --version
  6. Docker fallback (see platform-specific commands below)

Semgrep Docker Commands (AUTOMATIC PLATFORM DETECTION):

CRITICAL: Detect the platform from environment context and use the correct command automatically.

  • Windows (win32): ALWAYS use MSYS_NO_PATHCONV=1 prefix:
  MSYS_NO_PATHCONV=1 docker run --rm -v "$(pwd):/src" semgrep/semgrep semgrep scan --config auto /src
  • macOS (darwin) / Linux: Standard command:
  docker run --rm -v "$(pwd):/src" semgrep/semgrep semgrep scan --config auto /src

Why MSYS_NO_PATHCONV=1 is required on Windows: Git Bash/MSYS2 auto-converts POSIX paths to Windows paths. Without this prefix, /src becomes C:/Program Files/Git/src, causing "Invalid scanning root" error. DO NOT try without the prefix first on Windows.

Discovery Strategy

Step 1: Identify Project Type(s)

Check for presence of key files:

# JavaScript/TypeScript
package.json, tsconfig.json, deno.json

# Python
pyproject.toml, setup.py, requirements.txt, Pipfile

# .NET
*.csproj, *.sln, *.fsproj

# Go
go.mod

# Rust
Cargo.toml

Step 2: Check for Configured Scripts/Tasks

package.json scripts (Node.js):

{
  "scripts": {
    "lint": "eslint .",
    "typecheck": "tsc --noEmit",
    "test": "vitest",
    "check": "npm run lint && npm run typecheck && npm run test"
  }
}

pyproject.toml (Python):

[tool.ruff]
line-length = 100

[tool.mypy]
strict = true

[tool.pytest.ini_options]
testpaths = ["tests"]

Makefile targets:

lint:
    ruff check .

test:
    pytest

check: lint test

Step 3: Detect CI Configuration

Check for CI files to align local checks with CI:

  • .github/workflows/*.yml - GitHub Actions (also check for semgrep jobs)
  • .gitlab-ci.yml - GitLab CI
  • azure-pipelines.yml - Azure DevOps
  • Jenkinsfile - Jenkins
  • .circleci/config.yml - CircleCI

Step 4: Detect Security Tools

Check for security scanning configuration:

  • package.json devDependencies for eslint-plugin-security
  • package.json scripts containing audit or semgrep
  • Semgrep config files: .semgreprc.yml, .semgrep.yml, semgrep.yml
  • CI workflows for semgrep jobs (extract --config flags for local replication)
  • README.md for documented security commands (often in Security sections)
  • Lock files (pnpm-lock.yaml, package-lock.json, yarn.lock) for audit support

Best Practices

Execution Order

Run checks in order of speed and feedback value:

  1. Format check (fastest, catches style issues)
  2. Type checking (fast, catches type errors)
  3. Linting (medium, catches quality issues)
  4. Security scanning (medium, catches vulnerabilities)
  5. Tests (slowest, catches logic errors)

This order provides fastest feedback on failures.

Handling Monorepos

For monorepos, check for workspace configuration:

  • pnpm-workspace.yaml
  • lerna.json
  • package.json with workspaces field
  • Cargo.toml with [workspace]

Run checks at workspace root or iterate through packages.

CI Alignment

Ensure local preflight matches CI:

# Good: Use same commands as CI
npm run lint    # Same as CI step

# Avoid: Different commands locally vs CI
eslint . --max-warnings=0  # If CI uses npm run lint

Exit Codes

Respect exit codes for CI integration:

  • 0 - Success, no issues
  • 1 - Failure, issues found
  • 2 - Configuration error

Caching

For faster subsequent runs:

  • ESLint: Uses .eslintcache with --cache flag
  • TypeScript: Uses tsconfig.tsbuildinfo with incremental: true
  • Pytest: Uses .pytest_cache
  • Rust: Uses target/ directory

Error Messages Reference

TypeScript Common Errors

TS2339: Property 'x' does not exist on type 'Y'
-> Add property to interface or use type assertion

TS2322: Type 'X' is not assignable to type 'Y'
-> Check type definitions, may need union type

TS7006: Parameter 'x' implicitly has an 'any' type
-> Add explicit type annotation

ESLint Common Errors

@typescript-eslint/no-unused-vars
-> Remove unused variable or prefix with _

@typescript-eslint/no-explicit-any
-> Replace 'any' with specific type

import/order
-> Auto-fixable: eslint --fix

Python Common Errors

mypy: Incompatible return value type
-> Check return type annotation matches actual return

ruff: E501 Line too long
-> Auto-fixable or configure line-length

ruff: F401 Module imported but unused
-> Remove unused import

Integration with Pre-commit Hooks

Preflight checks can be configured as pre-commit hooks:

.pre-commit-config.yaml:

repos:
  - repo: local
    hooks:
      - id: preflight
        name: Preflight Checks
        entry: npm run check
        language: system
        pass_filenames: false

Husky (Node.js):

# .husky/pre-commit
npm run lint
npm run typecheck

When to Skip Checks

Some scenarios where partial checks are acceptable:

  • --no-verify for emergency fixes (use sparingly)
  • WIP commits on feature branches
  • Exploratory/spike work

Always run full preflight before:

  • Opening PRs
  • Merging to main/master
  • Deploying to production

平台分布

Claude Code

29.79%
按下载量换算64

OpenCode

23.73%
按下载量换算51

windsurf

18.79%
按下载量换算41

trae

12.4%
按下载量换算27

Codex

8.94%
按下载量换算19

Antigravity

4.1%
按下载量换算9

安全审计

暂无安全审计结果可展示。

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills