返回顶部
e

evidence-url-verifier证据链接验证

Verify evidence URLs are real and accessible. Check that artifact links resolve to actual content, not placeholders.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
395
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

evidence-url-verifier

证据URL验证器

验证证据URL是否真实可访问。

问题

证据链接通常:

  • - 指向不存在的资源
  • 是占位符(example.com)
  • 过期或被删除
  • 与声称的内容不匹配

工作流程

1. URL验证

powershell
function Test-EvidenceUrl {
param([string]$url)

try {
$response = Invoke-WebRequest -Uri $url -Method Head -TimeoutSec 10
return @{
Valid = $true
Status = $response.StatusCode
ContentType = $response.ContentType
}
} catch {
return @{
Valid = $false
Error = $_.Exception.Message
}
}
}

使用示例

$result = Test-EvidenceUrl https://example.com/artifact if ($result.Valid) { Write-Host URL有效: $($result.Status) } else { Write-Error URL无效: $($result.Error) }

2. 内容验证

powershell

检查URL是否与声称的内容类型匹配


$response = Invoke-WebRequest -Uri $url
if ($response.ContentType -notlike text/* -and $expectedType -eq text) {
Write-Warning 内容类型不匹配
}

检查占位符文本

$content = $response.Content if ($content -match lorem ipsum|placeholder|example) { Write-Warning 内容似乎是占位符 }

3. 工件存在性检查

powershell

对于本地路径


if (Test-Path $artifactPath) {
$size = (Get-Item $artifactPath).Length
if ($size -eq 0) {
Write-Warning 工件文件为空
}
} else {
Write-Error 未找到工件: $artifactPath
}

可执行完成标准

标准验证方式
URL可解析HTTP 200响应
内容匹配
类型与预期一致 | | 无占位符 | 内容实质性存在 | | 本地路径存在 | Test-Path返回true |

隐私/安全

  • - 不记录完整URL内容
  • 对响应中的敏感数据进行脱敏处理
  • 遵守速率限制(最多1次请求/秒)

自动触发条件

在以下情况下使用:

  • - 任务声称存在证据工件
  • URL作为证明提供
  • 标记任务完成前
  • 对过往完成情况进行审计



验证证据。信任但需确认。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 evidence-url-verifier-1776286805 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 evidence-url-verifier-1776286805 技能

通过命令行安装

skillhub install evidence-url-verifier-1776286805

下载

⬇ 下载 evidence-url-verifier v1.0.0(免费)

文件大小: 1.69 KB | 发布时间: 2026-4-16 17:59

v1.0.0 最新 2026-4-16 17:59
- Initial release of evidence-url-verifier.
- Checks that evidence URLs resolve to real, accessible content (not placeholders or dead links).
- Validates URLs, verifies content type, and checks for placeholder text.
- Confirms existence and non-emptiness of local artifact paths.
- Ensures privacy by not logging full contents and redacting sensitive data.
- Designed to be used before task completion or during audits involving proof artifacts.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部