Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

preflightpreflight 搜索

Agent Skill

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

总安装

261

周安装

11

GitHub Stars

公开资料未说明

下载量

92
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/cerico/macfair --skill preflight

简介

Preflight 在创建 PR 前运行,捕获常见代码质量问题。

  • 适用于 TypeScript 严格模式检查、any 类型使用和测试覆盖率验证。
  • 针对变更文件进行分组报告,提供 file:line 级别的问题定位。
  • 安装前需确认是否会执行 tsc 或 make 命令,避免破坏构建流程。
  • 输出为非阻塞性警告,允许开发者选择性修复后重新运行。

SKILL.md

Preflight

Run this before creating a PR to catch common issues in changed files.

Instructions

  1. Run git diff main --name-only to get list of changed files
  2. For each changed file, run the checks below
  3. Report issues with file:line references
  4. Group by category for readability

Checks

TypeScript Strict

  • No any types - find proper type or use unknown
  • No @ts-ignore or @ts-expect-error without explanation
  • Local interfaces use Props not ComponentNameProps
  • Type check passes (use make types if available, else pnpm tsc --noEmit)
# Check if 'types' target is available in make output
make 2>/dev/null | grep -q 'types' && make types || pnpm tsc --noEmit

React Patterns

  • 'use client' only where actually needed (hooks, browser APIs, event handlers)
  • Browser-only libs use dynamic(() => import(...), {ssr: false})
  • No console.log left in code (use proper logging or remove)

Route Structure

  • Routes have loading.tsx with skeleton
  • Routes have error.tsx with reset button
  • Page components are server components unless they need client features

Data Fetching

  • Prisma queries use select to specify fields (not bare findMany())
  • No N+1 patterns (queries inside loops)
  • tRPC routers return flat structures

Validation

  • Zod schemas in validations/ not inline in components

Environment Variables

  • No process.env.* outside constants/ directory
  • New env vars added to .env.example
  • NEXT_PUBLIC_ prefix only for client-safe values
  • Server-only secrets not accessed in client components

Imports

  • Use @/ path alias (no ../../../ climbs)
  • Barrel exports updated when adding new files

Dead Code

  • No unused imports
  • No unused variables or parameters
  • No unused functions or components
  • No commented-out code blocks (delete or restore)
  • No unreachable code after return/throw

Security

  • No hardcoded secrets or API keys
  • No dangerouslySetInnerHTML without sanitization
  • No raw SQL queries (use parameterized/Prisma)
  • No sensitive data in console.log or error messages
  • User input validated before use

Dependency Vulnerabilities

Quick audit check (not full analysis - use /audit for that):

pnpm audit 2>/dev/null | head -20
  • No critical/high vulnerabilities in direct dependencies
  • Transitive/dev-only vulnerabilities: note but don't block (run /audit for full analysis)

Git Hygiene

  • No merge conflict markers (<<<<<<<, =======, >>>>>>>)
  • No .only or .skip left in test files
  • No debugger statements
  • No .env.local or other local config committed
  • No large binary files that shouldn't be in git

Performance

  • Large objects/arrays use useMemo if recreated each render
  • Images have explicit width and height (prevents layout shift)
  • No synchronous heavy operations in render path
  • Lists over 100 items paginated or virtualized
  • No useEffect without dependency array

Styling

  • Theme-aware colors (text-muted-foreground) not hardcoded (text-gray-500)
  • Images use <Image> from next/image

Dates

  • Use formatInTimeZone from date-fns-tz, not format from date-fns
  • Display dates in facilityTimezone, store in UTC

Accessibility

  • Images have alt attributes
  • Interactive elements have proper aria-* attributes
  • Form inputs have associated labels

Code Style

  • No semicolons
  • Files end with single newline
  • Empty lines have no whitespace
  • No trailing whitespace

Output Format

## Preflight Report

> Note: Not running test suites (vitest/playwright) - assuming you've run them or will before pushing. CI is the backstop.

### TypeScript (2 issues)
- app/users/page.tsx:15 - `any` type used, consider `User[]`
- components/modal.tsx:8 - uses `UserModalProps` instead of `Props`

### Route Structure (1 issue)
- app/bookings/ - missing loading.tsx

### Imports (1 issue)
- lib/utils.ts:3 - relative import `../../components`, use `@/components`

### Passed
- React Patterns
- Data Fetching
- Validation
- Styling
- Dates
- Accessibility
- Code Style

Severity

Report issues but don't block. Developer decides what to fix. Some checks are style preferences, others are bugs waiting to happen.

Must fix: Security issues, merge conflict markers, hardcoded secrets, .only/.skip in tests Should fix: any types, missing error boundaries, N+1 queries, timezone bugs, unused code, performance issues Nice to fix: Naming conventions, import style, semicolons

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.29%
按下载量换算32

Claude

29.71%
按下载量换算27

Cursor

19.35%
按下载量换算18

Gemini CLI

10%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills