10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
Verify evidence URLs are real and accessible. Check that artifact links resolve to actual content, not placeholders.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install dalomeve/evidence-url-verifier打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Verify evidence URLs are real and accessible.
Evidence links often:
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
}
}
}
# Usage
$result = Test-EvidenceUrl "https://example.com/artifact"
if ($result.Valid) {
Write-Host "URL valid: $($result.Status)"
} else {
Write-Error "URL invalid: $($result.Error)"
}
# Check URL matches claimed content type
$response = Invoke-WebRequest -Uri $url
if ($response.ContentType -notlike "text/*" -and $expectedType -eq "text") {
Write-Warning "Content type mismatch"
}
# Check for placeholder text
$content = $response.Content
if ($content -match "lorem ipsum|placeholder|example") {
Write-Warning "Content appears to be placeholder"
}
# For local paths
if (Test-Path $artifactPath) {
$size = (Get-Item $artifactPath).Length
if ($size -eq 0) {
Write-Warning "Artifact file is empty"
}
} else {
Write-Error "Artifact not found: $artifactPath"
}
| Criteria | Verification |
|---|---|
| URL resolves | HTTP 200 response |
| Content matches | Type matches expected |
| No placeholders | Content is substantive |
| Local paths exist | Test-Path returns true |
Use when:...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Evidence URL Verifier
Verify evidence URLs are real and accessible.
## Problem
Evidence links often:
- Point to non-existent resources
- Are placeholders (example.com)
- Expire or get deleted
- Don't match claimed content
## Workflow
### 1. URL Validation
```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
}
}
}
# Usage
$result = Test-EvidenceUrl "https://example.com/artifact"
if ($result.Valid) {
Write-Host "URL valid: $($result.Status)"
} else {
Write-Error "URL invalid: $($result.Error)"
}
```
### 2. Content Verification
```powershell
# Check URL matches claimed content type
$response = Invoke-WebRequest -Uri $url
if ($response.ContentType -notlike "text/*" -and $expectedType -eq "text") {
Write-Warning "Content type mismatch"
}
# Check for placeholder text
$content = $response.Content
if ($content -match "lorem ipsum|placeholder|example") {
Write-Warning "Content appears to be placeholder"
}
```
### 3. Artifact Existence
```powershell
# For local paths
if (Test-Path $artifactPath) {
$size = (Get-Item $artifactPath).Length
if ($size -eq 0) {
Write-Warning "Artifact file is empty"
}
} else {
Write-Error "Artifact not found: $artifactPath"
}
```
## Executable Completion Criteria
| Criteria | Verification |
|----------|-------------|
| URL resolves | HTTP 200 response |
| Content matches | Type matches expected |
| No placeholders | Content is substantive |
| Local paths exist | Test-Path returns true |
## Privacy/Safety
- Don't log full URL contents
- Redact sensitive data in responses
- Respect rate limits (max 1 req/sec)
## Self-Use Trigger
Use when:...generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.