# Send Prepublish Privacy Scrub to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "prepublish-privacy-scrub",
    "name": "Prepublish Privacy Scrub",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Dalomeve/prepublish-privacy-scrub",
    "canonicalUrl": "https://clawhub.ai/Dalomeve/prepublish-privacy-scrub",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/prepublish-privacy-scrub",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=prepublish-privacy-scrub",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/prepublish-privacy-scrub"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/prepublish-privacy-scrub",
    "downloadUrl": "https://openagent3.xyz/downloads/prepublish-privacy-scrub",
    "agentUrl": "https://openagent3.xyz/skills/prepublish-privacy-scrub/agent",
    "manifestUrl": "https://openagent3.xyz/skills/prepublish-privacy-scrub/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/prepublish-privacy-scrub/agent.md"
  }
}
```
## Documentation

### Pre-Publish Privacy Scrub

Scan for sensitive data before publishing.

### Problem

Publishing accidentally exposes:

API keys and tokens
Gateway credentials
Personal paths and emails
Internal service URLs

### 1. Sensitive Pattern Detection

function Test-PrivacyScan {
    param([string]$path)
    
    $sensitivePatterns = @(
        'apiKey\\s*[=:]\\s*["\\']?[A-Za-z0-9]',
        'token\\s*[=:]\\s*["\\']?[A-Za-z0-9]{10,}',
        'secret\\s*[=:]\\s*["\\']?[A-Za-z0-9]',
        'password\\s*[=:]\\s*["\\']?.+',
        'Bearer\\s+[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+',
        'sk-[A-Za-z0-9]{32,}',
        'OPENCLAW_\\w+\\s*[=:]\\s*\\S+',
        'https://\\S+\\.ngrok\\S+',
        '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
    )
    
    $files = Get-ChildItem $path -Recurse -File | 
        Where-Object { $_.Extension -in @('.md', '.ps1', '.json', '.txt') }
    
    $findings = @()
    
    foreach ($file in $files) {
        $content = Get-Content $file.FullName -Raw
        foreach ($pattern in $sensitivePatterns) {
            $matches = [regex]::Matches($content, $pattern, 'IgnoreCase')
            foreach ($m in $matches) {
                $findings += @{
                    File = $file.FullName
                    Pattern = $pattern
                    Match = $m.Value.Substring(0, [Math]::Min(20, $m.Value.Length)) + "..."
                }
            }
        }
    }
    
    return $findings
}

### 2. Scrubbing

function Invoke-PrivacyScrub {
    param([string]$path)
    
    $replacements = @{
        'apiKey\\s*[=:]\\s*["\\']?[^"''\\s]+' = 'apiKey: "REDACTED"'
        'token\\s*[=:]\\s*["\\']?[^"''\\s]+' = 'token: "REDACTED"'
        'secret\\s*[=:]\\s*["\\']?[^"''\\s]+' = 'secret: "REDACTED"'
    }
    
    $files = Get-ChildItem $path -Recurse -File
    
    foreach ($file in $files) {
        $content = Get-Content $file.FullName -Raw
        $modified = $false
        
        foreach ($kv in $replacements.GetEnumerator()) {
            if ($content -match $kv.Key) {
                $content = $content -replace $kv.Key, $kv.Value
                $modified = $true
            }
        }
        
        if ($modified) {
            $content | Out-File $file.FullName -Encoding UTF8
            Write-Host "Scrubbed: $($file.Name)"
        }
    }
}

### 3. Pre-Publish Checklist

## Privacy Scan Results

- [ ] No apiKey values in files
- [ ] No token values in files
- [ ] No secret/password in files
- [ ] No personal emails
- [ ] No absolute user paths (C:\\Users\\name\\)
- [ ] No internal service URLs

**Scan Command**:
\`\`\`powershell
Test-PrivacyScan -path "./skill-folder"

## Executable Completion Criteria

| Criteria | Verification |
|----------|-------------|
| Scan executed | Test-PrivacyScan returns results |
| No critical findings | apiKey/token/secret = 0 matches |
| Scrubbing applied | Redacted values in files |
| Checklist complete | All items checked |

## Privacy/Safety

- Scan results not logged externally
- Redacted values use generic placeholder
- Original files backed up before scrub

## Self-Use Trigger

Use when:
- Before any skill publish
- Before git push of skills
- After copying skill from working directory

---

**Scrub first. Publish safe.**
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Dalomeve
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/prepublish-privacy-scrub)
- [Send to Agent page](https://openagent3.xyz/skills/prepublish-privacy-scrub/agent)
- [JSON manifest](https://openagent3.xyz/skills/prepublish-privacy-scrub/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/prepublish-privacy-scrub/agent.md)
- [Download page](https://openagent3.xyz/downloads/prepublish-privacy-scrub)