Token导航 LogoToken导航

Agent Skill · 效率

skill-preflight(技能预检)

skill-preflight 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

skill-preflight 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 15,109。

总安装 3,213周安装 138GitHub Stars 公开资料未说明下载 1,126核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install skill-preflight

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

使用本地嵌入自动将相关技能和协议注入代理上下文中。免费,无 API 调用 — 使用 Ollama 和 nomic-embed-text。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install skill-preflight;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

skill-preflight 怎么安装?

在终端执行 openclaw skills install skill-preflight。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

skill-preflight 支持哪些 AI 工具?

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

skill-preflight 需要什么权限?

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

skill-preflight 是免费的吗?

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

skill-preflight 用的人多吗?

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

skill-preflight 安全吗?

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

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

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

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

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

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
skill-preflight

技能预检 · 本页

3,213—接触敏感数据MIT-0有提醒

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

SKILL.md 原文

name
Skill Preflight
description
Automatically inject relevant skills and protocols into agent context using local embeddings. Free, no API calls — uses Ollama with nomic-embed-text.
status
active
tags
author
Chemdawg
license
MIT

Skill Preflight

A smart plugin for OpenClaw that automatically injects the most relevant skills and protocols into your agent's context before each run. Uses Ollama embeddings — free, offline-capable, no separate embedding API key required.

What It Does

When you run an agent, this plugin:

  1. Scans your skills/ and memory/protocols/ directories for documentation
  2. Embeds each doc using nomic-embed-text (via Ollama)
  3. Matches the incoming prompt against your docs using cosine similarity
  4. Injects only the relevant ones above a configurable threshold
  5. Deduplicates within a session (same doc won't be re-injected)

Result: Agents follow custom protocols and skills without burning tokens on irrelevant context.

Requirements

  • OpenClaw ≥ 1.0
  • Ollama running locally on http://localhost:11434
  • Model: nomic-embed-text (download with ollama pull nomic-embed-text)

Quick Start

1. Install Ollama

Download from ollama.com and install.

2. Pull the embedding model

ollama pull nomic-embed-text

3. Start Ollama

ollama serve

Leave this running in the background. It listens on http://localhost:11434 by default.

4. Install the plugin

Add to your openclaw.json:

{
  "plugins": {
    "skill-preflight": {
      "enabled": true,
      "config": {
        "minScore": 0.3,
        "maxResults": 3,
        "protocolDirs": ["memory/protocols"],
        "skillsDirs": ["skills"]
      }
    }
  }
}

5. Add your docs

Create your skills and protocols in:

  • skills/ — skill documentation (looks for SKILL.md in subdirs or loose .md files)
  • memory/protocols/ — protocol docs (.md files, 1 level deep)

Configuration

OptionDefaultDescription
protocolDirs["memory/protocols"]Directories to scan for protocol docs (recursive, 1 level)
skillsDirs["skills"]Directories to scan for skill docs
toolsFiles["TOOLS.md"]Individual files to always include in the index
pinnedDocs[]Docs always injected first, regardless of score
maxResults3Max ranked docs to inject per run (pinned docs don't count toward this)
maxDocLines100Truncate injected docs to N lines (0 = no limit)
minScore0.3Cosine similarity threshold (0–1). Lower = more permissive. Tune via debug logs.
embedModelnomic-embed-text:latestOllama embedding model
ollamaBaseUrlhttp://localhost:11434Ollama API base URL. For local-only privacy, keep this on localhost, 127.0.0.1, or ::1. If you point it at a remote host, prompt text and indexed doc content are sent to that host for embeddings.
requestTimeoutMs10000Timeout for embedding requests (ms)
minPromptLength20Minimum prompt length to trigger preflight. Short prompts skip embedding.

Pinned Docs

Pin specific docs so they're always injected first, regardless of relevance score:

{
  "plugins": {
    "skill-preflight": {
      "config": {
        "pinnedDocs": ["memory/protocols/house-rules.md", "skills/ethereum/SKILL.md"]
      }
    }
  }
}

Pinned docs appear first and don't count toward maxResults.

Tuning the Threshold

Enable debug logging in OpenClaw to see similarity scores:

skill-preflight: scores — DebuggingProtocol(0.72), EthereumSkill(0.51), MemoryProtocol(0.34), ...

Use this to dial in minScore. If too many irrelevant docs are injected, raise it. If relevant docs are missing, lower it.

Troubleshooting

"Ollama embedding unavailable"

  • Check Ollama is running: curl http://localhost:11434/api/tags
  • Check model is installed: ollama list (should show nomic-embed-text)
  • Check timeout: If embedding is slow, increase requestTimeoutMs in config

"Not injecting docs I expect"

  • Enable debug logs in OpenClaw to see scores
  • Check file locations: Docs must be in configured protocolDirs or skillsDirs
  • Check doc metadata: Docs with status: deprecated or status: archived are skipped
  • Verify content: Empty docs or docs with only frontmatter score 0 on all prompts

"Too many/too few docs injected"

  • Adjust minScore (lower threshold = more docs)
  • Adjust maxResults (cap on how many ranked docs)
  • Use pinnedDocs to always include critical docs

Ollama is slow

  • nomic-embed-text takes ~100–300ms per document on typical hardware
  • This is a one-time cost per new doc; embeddings are cached for 1 hour
  • For faster iteration during development, raise minScore to reduce docs being embedded

File Format

Docs are standard Markdown with optional frontmatter:

---
name: My Custom Skill
description: A brief description of what this does
status: active
---

# My Custom Skill

Detailed instructions, examples, step-by-step procedures...

Frontmatter is optional. If not provided, the first heading or filename is used as the title, and the first few lines become the description.

How It Works Under the Hood

  1. Initialization: Plugin scans configured dirs and builds a doc index
  2. Doc caching: Docs are cached for 1 hour to avoid repeated disk reads
  3. Embedding: On each agent run, the prompt is embedded via Ollama
  4. Ranking: Docs are scored by cosine similarity, top N are selected
  5. Deduplication: Tracked per session so the same doc isn't re-injected
  6. Injection: Matched docs are formatted and prepended to the prompt context

Privacy & Performance

  • No separate embedding API required — embeddings go through your configured Ollama endpoint
  • Local-only when Ollama is local — keep ollamaBaseUrl on localhost, 127.0.0.1, or ::1 if you want docs and prompts to stay on the same machine
  • Remote Ollama changes the trust boundary — if ollamaBaseUrl points to another host, the following are sent to that host for embedding:

- Prompt text from every agent run - Full indexed markdown content including secrets, API keys, credentials, and all sensitive data in your docs - Any confidential information embedded in your skills, protocols, and tools documentation

  • Offline capable — once the Ollama model is downloaded and running locally, no internet is required
  • Caching: Docs cached for 1 hour, embeddings cached in memory per session
  • Session-aware: Same doc won't be re-injected in a single conversation

License

MIT


Questions? Check the OpenClaw docs at openclaw.ai or report issues on GitHub.

平台分布

OpenClaw

98.9%
按下载量换算1,114

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

可疑

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills