Token导航 LogoToken导航

Agent Skill · 开发

context-verifier(上下文验证器)

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

context-verifier 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为调用外部服务;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 1,585。

总安装 26,632周安装 1,144GitHub Stars 公开资料未说明下载 9,335核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install context-verifier

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

context-verifier 在操作前验证当前编辑文件的一致性,确保 Agent 处理的确实是预期内容。适用于代码修改、配置变更等高风险操作前的安全检查。比对文件哈希或关键字段,降低误操作概率。安装命令为 openclaw skills install context-verifier,需读取目标文件权限。

建议与其他审计工具联用,形成多层防护体系。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

context-verifier 怎么安装?

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

context-verifier 支持哪些 AI 工具?

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

context-verifier 需要什么权限?

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

context-verifier 是免费的吗?

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

context-verifier 用的人多吗?

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

context-verifier 安全吗?

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

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

值得选的地方

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

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
context-verifier

上下文验证器 · 本页

26,632—调用外部服务MIT-0有提醒

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

SKILL.md 原文

name
context-verifier
version
1.5.1
description
Know the file you're editing is the file you think it is — verify integrity before you act
author
Live Neon <contact@liveneon.dev>
homepage
https://github.com/live-neon/skills/tree/main/agentic/context-verifier
repository
leegitw/context-verifier
license
MIT
tags
[agentic, verification, integrity, validation, checksums, drift-detection, state, file-verification]
layer
foundation
status
active
alias
cv
metadata
openclaw
requires
config
workspace

context-verifier (検証)

Unified skill for file hash computation, integrity verification, severity tagging, and context packet creation. Consolidates 3 granular skills into a single verification system.

Trigger: 明示呼出 (explicit invocation)

Source skills: context-packet, file-verifier, severity-tagger

Installation

openclaw install leegitw/context-verifier

Dependencies: None (foundational skill)

Standalone usage: This skill is fully functional standalone. It provides file integrity verification that other skills in the suite depend on. Install this first when adopting the Neon Agentic Suite.

Data handling: This skill performs local-only operations. Hash computation uses standard SHA256 algorithms locally — no file contents are sent to any model, API, or external service. Results are written to output/context-packets/ in your workspace. The skill reads config from .openclaw/context-verifier.yaml or .claude/context-verifier.yaml only.

File access scope: This skill reads user-specified files for hash computation. The metadata declares config and output paths only — the skill will read ANY file path you provide to /cv hash, /cv verify, or /cv packet. Use caution with sensitive files.

What This Solves

AI agents sometimes operate on stale data — editing a file that changed since it was read, or trusting cached content that's now outdated. This skill prevents that by:

  1. Computing hashes of files before and after operations
  2. Detecting changes between read and write
  3. Generating context packets with verifiable checksums for review workflows

The insight: Trust but verify. The file you read might not be the file you're about to edit. Check first.

Usage

/cv <sub-command> [arguments]

Sub-Commands

CommandCJKLogicTrigger
/cv hash哈希file→SHA256(content)Explicit
/cv verify検証file×hash→match✓∨mismatch✗Explicit
/cv tag標記file→severity∈{critical,important,minor}Explicit
/cv packet包装files[]→{path,hash,severity,timestamp}[]Explicit

Arguments

/cv hash

ArgumentRequiredDescription
fileYesFile path to hash
--algorithmNoHash algorithm: sha256 only (MD5/SHA-1 removed - cryptographically broken)

/cv verify

ArgumentRequiredDescription
fileYesFile path to verify
hashYesExpected hash value
--algorithmNoHash algorithm: sha256 only

/cv tag

ArgumentRequiredDescription
fileYesFile path to tag
severityNoSeverity level: critical, important, minor (auto-detected if omitted)

/cv packet

ArgumentRequiredDescription
filesYesComma-separated file paths or glob pattern
--nameNoPacket name (default: auto-generated)
--include-contentNoInclude file content in packet (default: false) - see Security section
⚠️ Security Warning: The --include-content flag stores file contents to disk. Never use this flag with sensitive files (.env, credentials, secrets). See the Security Considerations section below.

Configuration

Configuration is loaded from (in order of precedence):

  1. .openclaw/context-verifier.yaml (OpenClaw standard)
  2. .claude/context-verifier.yaml (Claude Code compatibility)
  3. Defaults (built-in patterns)

Security Considerations

Local-only processing: All hash computation uses standard SHA256 algorithms executed locally. No file contents are ever sent to any LLM, API, or external service. The "agent's model" is only used to interpret your commands — not to process file contents.

What this skill does NOT do:

  • Send file contents to any model or API (hashing is local)
  • Call external APIs or third-party services
  • Modify source files (only writes to output/context-packets/)

What this skill accesses:

  • Configuration files in .openclaw/context-verifier.yaml and .claude/context-verifier.yaml
  • Any user-specified files for hash computation (read-only) — the skill reads whatever paths you provide
  • Its own output directory output/context-packets/ (write)

⚠️ IMPORTANT: Unlike other skills in this suite, context-verifier reads arbitrary files that you specify. The metadata only declares config/output paths. When you run /cv hash myfile.go, the skill reads myfile.go even though it's not in the metadata. This is by design — verification requires reading the files you want to verify.

This skill handles file metadata and optionally file contents. Follow these guidelines:

Sensitive File Detection (Not Reading)

The critical_patterns (e.g., *.env, *credentials*, *secret*) are used for:

  • Detection: Identifying files that should trigger warnings
  • Severity tagging: Marking files as critical for change-blocking behavior

By default, /cv hash and /cv packet compute hashes without reading file contents into output. The hash is computed but the file content is not stored.

--include-content Flag

⚠️ WARNING: The --include-content flag writes actual file contents to disk.

RiskMitigation
Secrets written to diskNever use --include-content with .env, credentials, or secret files
Sensitive data in gitAdd output/context-packets/ to .gitignore (see below)
Data retentionPackets are stored indefinitely; manually delete when no longer needed

Recommended usage:

# Safe: Hash only (default) - no content stored
/cv packet src/*.go --name "pre-refactor"

# Risky: Content included - ensure no sensitive files in glob
/cv packet docs/*.md --name "docs-backup" --include-content

# NEVER do this:
/cv packet .env --include-content  # Stores secrets to disk!

Required .gitignore Entry

Add to your .gitignore to prevent accidental commits:

# Context verification packets (may contain sensitive data)
output/context-packets/

Storage and Retention

  • Location: Packets stored in output/context-packets/ (workspace-local)
  • Format: Unencrypted JSON
  • Retention: No automatic deletion; clean up manually
  • Access: Standard filesystem permissions (no additional access controls)

For sensitive environments, consider:

  1. Restricting output/ directory permissions
  2. Using encrypted filesystems
  3. Periodic cleanup of old packets

Provenance

This skill is developed by Live Neon (https://github.com/live-neon/skills) and published to ClawHub under the leegitw account. Both refer to the same maintainer.

Core Logic

Hash Computation

Default algorithm: SHA-256

hash(file) = SHA256(file.content)

Severity Classification

Files are auto-classified based on configurable patterns:

SeverityDefault PatternsBehavior on Change
critical*.env, *credentials*, *secret*, project configBlock operation
important*.go, *.ts, *.md (in docs/)Warn user
minor*.log, *.tmp, output/*Info only

Critical file patterns are configurable via .openclaw/context-verifier.yaml:

# .openclaw/context-verifier.yaml
critical_patterns:
  - "*.env"
  - "*credentials*"
  - "*secret*"
  - "CLAUDE.md"     # Claude Code projects
  - "AGENTS.md"     # OpenClaw projects
  - "pyproject.toml" # Python projects
  - "Cargo.toml"    # Rust projects

Context Packet Structure

{
  "id": "PKT-20260215-001",
  "created": "2026-02-15T10:30:00Z",
  "files": [
    {
      "path": "src/main.go",
      "hash": "abc123...",
      "severity": "important",
      "size": 1234,
      "modified": "2026-02-15T10:00:00Z"
    }
  ],
  "metadata": {
    "purpose": "pre-refactor snapshot",
    "creator": "context-verifier"
  }
}

Output

/cv hash output

[HASH] src/main.go
Algorithm: SHA-256
Hash: a1b2c3d4e5f6...
Size: 1,234 bytes
Modified: 2026-02-15 10:00:00

/cv verify output (match)

[VERIFY] src/main.go
Status: ✓ MATCH
Expected: a1b2c3d4e5f6...
Actual:   a1b2c3d4e5f6...

/cv verify output (mismatch)

[VERIFY] src/main.go
Status: ✗ MISMATCH
Expected: a1b2c3d4e5f6...
Actual:   x9y8z7w6v5u4...

WARNING: File has changed since last read.
Action: Re-read file before making changes.

/cv tag output

[TAG] src/main.go
Severity: important
Reason: Go source file
Behavior: Warn on unexpected change

/cv packet output

[PACKET CREATED]
ID: PKT-20260215-001
Files: 4
Total size: 10,234 bytes

Files included:
- src/main.go (important) - a1b2c3...
- src/handler.go (important) - d4e5f6...
- docs/README.md (important) - j0k1l2...
- config/settings.yaml (important) - m3n4o5...

Stored: output/context-packets/PKT-20260215-001.json
Note: Avoid including sensitive files (.env, credentials) in packets. Use specific globs like src/*.go rather than * to exclude secrets.

Integration

  • Layer: Foundation (no dependencies)
  • Depends on: None (foundational verification system)
  • Used by: failure-memory (for file change detection), constraint-engine (for pre-action checks)

Failure Modes

ConditionBehavior
File not foundError: "File not found: {path}"
Permission deniedError: "Cannot read file: {path}"
Invalid hash formatError: "Invalid hash format. Expected: {algorithm}"
Glob matches no filesWarning: "No files match pattern: {glob}"

Next Steps

After invoking this skill:

ConditionAction
Hash mismatchAlert user, suggest re-read of file
Critical file changedBlock operation, require verification
Packet createdStore in output/context-packets/ for audit

Workspace Files

This skill reads/writes:

output/
└── context-packets/
    └── PKT-YYYYMMDD-XXX.json

Examples

Verify file before editing

/cv hash src/main.go
# Save hash: a1b2c3d4e5f6...

# ... later, before editing ...

/cv verify src/main.go a1b2c3d4e5f6
# ✓ MATCH - safe to edit

Create context packet for refactoring

/cv packet src/*.go,internal/**/*.go --name "pre-refactor"
# Creates packet with all Go files

# ... after refactoring ...

# Can compare against packet to see what changed

Tag sensitive files

/cv tag .env
# Severity: critical

/cv tag src/handler.go
# Severity: important

Verify database migration before deployment

/cv packet db/migrations/*.sql --name "pre-deploy-migrations"
# Creates packet with all migration files

# After staging deployment...
/cv verify db/migrations/001_users.sql abc123...
# ✓ MATCH - migration file unchanged, safe to deploy to production

Create API schema verification packet

/cv packet api/schemas/*.json,api/openapi.yaml --name "api-schema-v2"
# Creates packet with all API schema files for version control

Acceptance Criteria

  • [ ] /cv hash computes SHA-256 hash of file
  • [ ] /cv verify compares file hash against expected value
  • [ ] /cv verify clearly indicates match/mismatch
  • [ ] /cv tag auto-classifies file severity based on patterns
  • [ ] /cv tag allows manual severity override
  • [ ] /cv packet creates JSON packet with file metadata
  • [ ] /cv packet supports glob patterns
  • [ ] Critical file changes trigger block behavior
  • [ ] Workspace files stored in documented location

*Consolidated from 3 skills as part of agentic skills consolidation (2026-02-15).*

平台分布

OpenClaw

86.93%
按下载量换算8,115

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

调用外部服务

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

安装前确认

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

继续浏览同类 Skills