{
  "schemaVersion": "1.0",
  "item": {
    "slug": "sanitize",
    "name": "AgentWard Sanitize",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/agentward-ai/sanitize",
    "canonicalUrl": "https://clawhub.ai/agentward-ai/sanitize",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/sanitize",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sanitize",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "clawhub.json",
      "references/SUPPORTED_PII.md",
      "scripts/sanitize.py"
    ],
    "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-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/sanitize"
    },
    "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/sanitize",
    "agentPageUrl": "https://openagent3.xyz/skills/sanitize/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sanitize/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sanitize/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": "AgentWard Sanitize",
        "body": "Detect and redact personally identifiable information (PII) from text files."
      },
      {
        "title": "IMPORTANT — PII Safety Rules",
        "body": "Do NOT read the input file directly. It may contain sensitive PII.\nALWAYS use --output FILE to write sanitized output to a file.\nOnly read the OUTPUT file, never the raw input.\nOnly show the user the redacted output, never the raw input.\n--json and --preview are safe — they do NOT print raw PII values to stdout.\nThe entity map (raw PII → placeholder mapping) is written to a separate sidecar file (*.entity-map.json) only when --output is used. Do NOT read the entity map file."
      },
      {
        "title": "What it does",
        "body": "Scans files for PII — credit cards, SSNs, emails, phone numbers, API keys, IP addresses, mailing addresses, dates of birth, passport numbers, driver's license numbers, bank routing numbers, medical license numbers, and insurance member IDs — and replaces each instance with a numbered placeholder like [CREDIT_CARD_1]."
      },
      {
        "title": "Sanitize a file (RECOMMENDED — always use --output)",
        "body": "python scripts/sanitize.py patient-notes.txt --output clean.txt"
      },
      {
        "title": "Preview mode (detect PII categories/offsets without showing raw values)",
        "body": "python scripts/sanitize.py notes.md --preview"
      },
      {
        "title": "JSON output (safe — no raw PII in stdout)",
        "body": "python scripts/sanitize.py report.txt --json --output clean.txt"
      },
      {
        "title": "Filter to specific categories",
        "body": "python scripts/sanitize.py log.txt --categories ssn,credit_card,email --output clean.txt"
      },
      {
        "title": "Supported PII categories",
        "body": "See references/SUPPORTED_PII.md for the full list with detection methods and false positive mitigation.\n\nCategoryPattern typeExamplecredit_cardLuhn-validated 13-19 digits4111 1111 1111 1111ssn3-2-4 digit groups123-45-6789cvvKeyword-anchored 3-4 digitsCVV: 123expiry_dateKeyword-anchored MM/YYexpiry 01/30api_keyProvider prefix patternssk-abc..., ghp_..., AKIA...emailStandard email formatuser@example.comphoneUS/intl phone numbers+1 (555) 123-4567ip_addressIPv4 addresses192.168.1.100date_of_birthKeyword-anchored datesDOB: 03/15/1985passportKeyword-anchored alphanumericPassport: AB1234567drivers_licenseKeyword-anchored alphanumericDL: D12345678bank_routingKeyword-anchored 9 digitsrouting: 021000021addressStreet + city/state/zip742 Evergreen Terrace Dr, Springfield, IL 62704medical_licenseKeyword-anchored license IDLicense: CA-MD-8827341insurance_idKeyword-anchored member/policy IDMember ID: BCB-2847193"
      },
      {
        "title": "Security and Privacy",
        "body": "All processing is local. The script makes zero network calls. No data leaves your machine.\nZero dependencies. Uses only Python standard library — no third-party packages to audit.\nPII never reaches stdout. The --json and --preview modes strip raw PII values from output. The entity map (containing raw PII to placeholder mappings) is only written to a sidecar file on disk when --output is used.\nDesigned for agent safety. The skill instructions above tell the agent to never read the raw input file or the entity map file — only the sanitized output."
      },
      {
        "title": "Requirements",
        "body": "Python 3.11+\nNo external dependencies (stdlib only)"
      },
      {
        "title": "About",
        "body": "Built by AgentWard — the open-source permission control plane for AI agents."
      }
    ],
    "body": "AgentWard Sanitize\n\nDetect and redact personally identifiable information (PII) from text files.\n\nIMPORTANT — PII Safety Rules\nDo NOT read the input file directly. It may contain sensitive PII.\nALWAYS use --output FILE to write sanitized output to a file.\nOnly read the OUTPUT file, never the raw input.\nOnly show the user the redacted output, never the raw input.\n--json and --preview are safe — they do NOT print raw PII values to stdout.\nThe entity map (raw PII → placeholder mapping) is written to a separate sidecar file (*.entity-map.json) only when --output is used. Do NOT read the entity map file.\nWhat it does\n\nScans files for PII — credit cards, SSNs, emails, phone numbers, API keys, IP addresses, mailing addresses, dates of birth, passport numbers, driver's license numbers, bank routing numbers, medical license numbers, and insurance member IDs — and replaces each instance with a numbered placeholder like [CREDIT_CARD_1].\n\nUsage\nSanitize a file (RECOMMENDED — always use --output)\npython scripts/sanitize.py patient-notes.txt --output clean.txt\n\nPreview mode (detect PII categories/offsets without showing raw values)\npython scripts/sanitize.py notes.md --preview\n\nJSON output (safe — no raw PII in stdout)\npython scripts/sanitize.py report.txt --json --output clean.txt\n\nFilter to specific categories\npython scripts/sanitize.py log.txt --categories ssn,credit_card,email --output clean.txt\n\nSupported PII categories\n\nSee references/SUPPORTED_PII.md for the full list with detection methods and false positive mitigation.\n\nCategory\tPattern type\tExample\ncredit_card\tLuhn-validated 13-19 digits\t4111 1111 1111 1111\nssn\t3-2-4 digit groups\t123-45-6789\ncvv\tKeyword-anchored 3-4 digits\tCVV: 123\nexpiry_date\tKeyword-anchored MM/YY\texpiry 01/30\napi_key\tProvider prefix patterns\tsk-abc..., ghp_..., AKIA...\nemail\tStandard email format\tuser@example.com\nphone\tUS/intl phone numbers\t+1 (555) 123-4567\nip_address\tIPv4 addresses\t192.168.1.100\ndate_of_birth\tKeyword-anchored dates\tDOB: 03/15/1985\npassport\tKeyword-anchored alphanumeric\tPassport: AB1234567\ndrivers_license\tKeyword-anchored alphanumeric\tDL: D12345678\nbank_routing\tKeyword-anchored 9 digits\trouting: 021000021\naddress\tStreet + city/state/zip\t742 Evergreen Terrace Dr, Springfield, IL 62704\nmedical_license\tKeyword-anchored license ID\tLicense: CA-MD-8827341\ninsurance_id\tKeyword-anchored member/policy ID\tMember ID: BCB-2847193\nSecurity and Privacy\nAll processing is local. The script makes zero network calls. No data leaves your machine.\nZero dependencies. Uses only Python standard library — no third-party packages to audit.\nPII never reaches stdout. The --json and --preview modes strip raw PII values from output. The entity map (containing raw PII to placeholder mappings) is only written to a sidecar file on disk when --output is used.\nDesigned for agent safety. The skill instructions above tell the agent to never read the raw input file or the entity map file — only the sanitized output.\nRequirements\nPython 3.11+\nNo external dependencies (stdlib only)\nAbout\n\nBuilt by AgentWard — the open-source permission control plane for AI agents."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/agentward-ai/sanitize",
    "publisherUrl": "https://clawhub.ai/agentward-ai/sanitize",
    "owner": "agentward-ai",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/sanitize",
    "downloadUrl": "https://openagent3.xyz/downloads/sanitize",
    "agentUrl": "https://openagent3.xyz/skills/sanitize/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sanitize/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sanitize/agent.md"
  }
}