{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/prepublish-privacy-scrub",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=prepublish-privacy-scrub",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/prepublish-privacy-scrub",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Pre-Publish Privacy Scrub",
        "body": "Scan for sensitive data before publishing."
      },
      {
        "title": "Problem",
        "body": "Publishing accidentally exposes:\n\nAPI keys and tokens\nGateway credentials\nPersonal paths and emails\nInternal service URLs"
      },
      {
        "title": "1. Sensitive Pattern Detection",
        "body": "function Test-PrivacyScan {\n    param([string]$path)\n    \n    $sensitivePatterns = @(\n        'apiKey\\s*[=:]\\s*[\"\\']?[A-Za-z0-9]',\n        'token\\s*[=:]\\s*[\"\\']?[A-Za-z0-9]{10,}',\n        'secret\\s*[=:]\\s*[\"\\']?[A-Za-z0-9]',\n        'password\\s*[=:]\\s*[\"\\']?.+',\n        'Bearer\\s+[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+',\n        'sk-[A-Za-z0-9]{32,}',\n        'OPENCLAW_\\w+\\s*[=:]\\s*\\S+',\n        'https://\\S+\\.ngrok\\S+',\n        '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'\n    )\n    \n    $files = Get-ChildItem $path -Recurse -File | \n        Where-Object { $_.Extension -in @('.md', '.ps1', '.json', '.txt') }\n    \n    $findings = @()\n    \n    foreach ($file in $files) {\n        $content = Get-Content $file.FullName -Raw\n        foreach ($pattern in $sensitivePatterns) {\n            $matches = [regex]::Matches($content, $pattern, 'IgnoreCase')\n            foreach ($m in $matches) {\n                $findings += @{\n                    File = $file.FullName\n                    Pattern = $pattern\n                    Match = $m.Value.Substring(0, [Math]::Min(20, $m.Value.Length)) + \"...\"\n                }\n            }\n        }\n    }\n    \n    return $findings\n}"
      },
      {
        "title": "2. Scrubbing",
        "body": "function Invoke-PrivacyScrub {\n    param([string]$path)\n    \n    $replacements = @{\n        'apiKey\\s*[=:]\\s*[\"\\']?[^\"''\\s]+' = 'apiKey: \"REDACTED\"'\n        'token\\s*[=:]\\s*[\"\\']?[^\"''\\s]+' = 'token: \"REDACTED\"'\n        'secret\\s*[=:]\\s*[\"\\']?[^\"''\\s]+' = 'secret: \"REDACTED\"'\n    }\n    \n    $files = Get-ChildItem $path -Recurse -File\n    \n    foreach ($file in $files) {\n        $content = Get-Content $file.FullName -Raw\n        $modified = $false\n        \n        foreach ($kv in $replacements.GetEnumerator()) {\n            if ($content -match $kv.Key) {\n                $content = $content -replace $kv.Key, $kv.Value\n                $modified = $true\n            }\n        }\n        \n        if ($modified) {\n            $content | Out-File $file.FullName -Encoding UTF8\n            Write-Host \"Scrubbed: $($file.Name)\"\n        }\n    }\n}"
      },
      {
        "title": "3. Pre-Publish Checklist",
        "body": "## Privacy Scan Results\n\n- [ ] No apiKey values in files\n- [ ] No token values in files\n- [ ] No secret/password in files\n- [ ] No personal emails\n- [ ] No absolute user paths (C:\\Users\\name\\)\n- [ ] No internal service URLs\n\n**Scan Command**:\n```powershell\nTest-PrivacyScan -path \"./skill-folder\"\n\n## Executable Completion Criteria\n\n| Criteria | Verification |\n|----------|-------------|\n| Scan executed | Test-PrivacyScan returns results |\n| No critical findings | apiKey/token/secret = 0 matches |\n| Scrubbing applied | Redacted values in files |\n| Checklist complete | All items checked |\n\n## Privacy/Safety\n\n- Scan results not logged externally\n- Redacted values use generic placeholder\n- Original files backed up before scrub\n\n## Self-Use Trigger\n\nUse when:\n- Before any skill publish\n- Before git push of skills\n- After copying skill from working directory\n\n---\n\n**Scrub first. Publish safe.**"
      }
    ],
    "body": "Pre-Publish Privacy Scrub\n\nScan for sensitive data before publishing.\n\nProblem\n\nPublishing accidentally exposes:\n\nAPI keys and tokens\nGateway credentials\nPersonal paths and emails\nInternal service URLs\nWorkflow\n1. Sensitive Pattern Detection\nfunction Test-PrivacyScan {\n    param([string]$path)\n    \n    $sensitivePatterns = @(\n        'apiKey\\s*[=:]\\s*[\"\\']?[A-Za-z0-9]',\n        'token\\s*[=:]\\s*[\"\\']?[A-Za-z0-9]{10,}',\n        'secret\\s*[=:]\\s*[\"\\']?[A-Za-z0-9]',\n        'password\\s*[=:]\\s*[\"\\']?.+',\n        'Bearer\\s+[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+',\n        'sk-[A-Za-z0-9]{32,}',\n        'OPENCLAW_\\w+\\s*[=:]\\s*\\S+',\n        'https://\\S+\\.ngrok\\S+',\n        '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'\n    )\n    \n    $files = Get-ChildItem $path -Recurse -File | \n        Where-Object { $_.Extension -in @('.md', '.ps1', '.json', '.txt') }\n    \n    $findings = @()\n    \n    foreach ($file in $files) {\n        $content = Get-Content $file.FullName -Raw\n        foreach ($pattern in $sensitivePatterns) {\n            $matches = [regex]::Matches($content, $pattern, 'IgnoreCase')\n            foreach ($m in $matches) {\n                $findings += @{\n                    File = $file.FullName\n                    Pattern = $pattern\n                    Match = $m.Value.Substring(0, [Math]::Min(20, $m.Value.Length)) + \"...\"\n                }\n            }\n        }\n    }\n    \n    return $findings\n}\n\n2. Scrubbing\nfunction Invoke-PrivacyScrub {\n    param([string]$path)\n    \n    $replacements = @{\n        'apiKey\\s*[=:]\\s*[\"\\']?[^\"''\\s]+' = 'apiKey: \"REDACTED\"'\n        'token\\s*[=:]\\s*[\"\\']?[^\"''\\s]+' = 'token: \"REDACTED\"'\n        'secret\\s*[=:]\\s*[\"\\']?[^\"''\\s]+' = 'secret: \"REDACTED\"'\n    }\n    \n    $files = Get-ChildItem $path -Recurse -File\n    \n    foreach ($file in $files) {\n        $content = Get-Content $file.FullName -Raw\n        $modified = $false\n        \n        foreach ($kv in $replacements.GetEnumerator()) {\n            if ($content -match $kv.Key) {\n                $content = $content -replace $kv.Key, $kv.Value\n                $modified = $true\n            }\n        }\n        \n        if ($modified) {\n            $content | Out-File $file.FullName -Encoding UTF8\n            Write-Host \"Scrubbed: $($file.Name)\"\n        }\n    }\n}\n\n3. Pre-Publish Checklist\n## Privacy Scan Results\n\n- [ ] No apiKey values in files\n- [ ] No token values in files\n- [ ] No secret/password in files\n- [ ] No personal emails\n- [ ] No absolute user paths (C:\\Users\\name\\)\n- [ ] No internal service URLs\n\n**Scan Command**:\n```powershell\nTest-PrivacyScan -path \"./skill-folder\"\n\n\n## Executable Completion Criteria\n\n| Criteria | Verification |\n|----------|-------------|\n| Scan executed | Test-PrivacyScan returns results |\n| No critical findings | apiKey/token/secret = 0 matches |\n| Scrubbing applied | Redacted values in files |\n| Checklist complete | All items checked |\n\n## Privacy/Safety\n\n- Scan results not logged externally\n- Redacted values use generic placeholder\n- Original files backed up before scrub\n\n## Self-Use Trigger\n\nUse when:\n- Before any skill publish\n- Before git push of skills\n- After copying skill from working directory\n\n---\n\n**Scrub first. Publish safe.**"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Dalomeve/prepublish-privacy-scrub",
    "publisherUrl": "https://clawhub.ai/Dalomeve/prepublish-privacy-scrub",
    "owner": "Dalomeve",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}