{
  "schemaVersion": "1.0",
  "item": {
    "slug": "expiring-local-fileshare",
    "name": "Expiring Local Fileshare",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/tradmangh/expiring-local-fileshare",
    "canonicalUrl": "https://clawhub.ai/tradmangh/expiring-local-fileshare",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/expiring-local-fileshare",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=expiring-local-fileshare",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "METADATA.json",
      "SKILL.md",
      "scripts/share-file.js",
      "scripts/share.sh"
    ],
    "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/expiring-local-fileshare"
    },
    "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/expiring-local-fileshare",
    "agentPageUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/agent",
    "manifestUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/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": "Internal Fileshare",
        "body": "Share single workspace files via expiring HTTP links (tokenized, local-network only)."
      },
      {
        "title": "Features",
        "body": "✅ Single-file sharing (no directory browsing)\n✅ Time-limited tokens (default 1h, configurable; max 24h)\n✅ Optional one-time access (token invalid after first successful download)\n✅ Local/VPN-only (RFC1918 private ranges + localhost)\n✅ UTF-8 encoding (proper display of German umlauts, etc.)\n✅ No-cache headers (always fresh content)\n✅ Auto-cleanup (servers can be killed when done)"
      },
      {
        "title": "Install / Update (ClawHub)",
        "body": "Install:\n\nclawhub install expiring-local-fileshare\n\nUpdate:\n\nclawhub update expiring-local-fileshare"
      },
      {
        "title": "Share a single file",
        "body": "{baseDir}/scripts/share.sh /path/to/file.md [port] [hours] [once]\n\nParameters:\n\nfile-path (required): Absolute path to file\nport (optional): Port number (default: auto-assigned 8888+)\nhours (optional): Validity in hours (default: 1, max: 24)\nonce (optional): Set to once or 1 for one-time access\n\nOutput:\nReturns clickable HTTP link with token, valid for specified duration."
      },
      {
        "title": "Example",
        "body": "# Share a markdown file (1h, auto-port)\n{baseDir}/scripts/share.sh ~/.openclaw/workspace/projects/my-project/README.md\n\n# Share an image (12h, port 9000)\n{baseDir}/scripts/share.sh ~/image.png 9000 12\n\n# Share a file (one-time access, 1h)\n{baseDir}/scripts/share.sh ~/secrets.txt 9001 1 once"
      },
      {
        "title": "How It Works",
        "body": "Starts a lightweight Node.js HTTP server on specified port\nGenerates random 32-char hex token\nReturns URL: http://192.168.0.219:PORT/?token=XXXXX\nValidates:\n\nSource IP (must be LAN or VPN)\nToken match\nExpiry time\n\n\nServes file with correct MIME type and UTF-8 encoding\nLogs all access attempts"
      },
      {
        "title": "Security",
        "body": "Workspace-only by default: refuses to share files outside ~/.openclaw/workspace (override via FILESHARE_ALLOW_ANY_PATH=1, not recommended)\nLocal-only: Only serves to private IP ranges (RFC1918) + localhost (VPN counts).\nToken-based: 128-bit random tokens (computationally infeasible to guess)\nTime-limited: Hard expiry after N hours (default 1h, max 24h)\nOptional one-time: Token invalid after first successful download\nNo listing: Only serves the specified file, no directory browsing\nNo caching: Forces fresh content load"
      },
      {
        "title": "Supported File Types",
        "body": "Auto-detected MIME types:\n\n.png → image/png\n.jpg, .jpeg → image/jpeg\n.md → text/markdown; charset=utf-8\n.txt → text/plain; charset=utf-8\nOthers → application/octet-stream"
      },
      {
        "title": "Disable / Uninstall",
        "body": "There is no background service by default."
      },
      {
        "title": "Stop active shares",
        "body": "# Kill a specific port\nkill $(lsof -t -i:8888)\n\n# Kill all fileshare servers started via this skill\npkill -f \"share-file.js\""
      },
      {
        "title": "Uninstall (ClawHub)",
        "body": "If installed into ~/.openclaw/skills:\n\nrm -rf ~/.openclaw/skills/expiring-local-fileshare"
      },
      {
        "title": "Stopping Shares",
        "body": "# Kill a specific port\nkill $(lsof -t -i:8888)\n\n# Kill all fileshare servers started via this skill\npkill -f \"share-file.js\""
      },
      {
        "title": "Policy / Defaults",
        "body": "Single files only (no folder shares)\nDefault validity: 1h\nMax validity: 24h\nLocal/VPN only (RFC1918 + localhost)\nNo public \"anyone with link\""
      },
      {
        "title": "Troubleshooting",
        "body": "Wrong encoding (umlauts broken)?\n→ Fixed in latest version (UTF-8 charset in headers)\n\nOld version served?\n→ Kill old server + restart (no-cache headers prevent browser caching)\n\nCan't access from outside?\n→ VPN required (home network topology uses NAT/masquerade, see docs/internal-fileshare.md)\n\nPort already in use?\n→ Use different port or kill existing server"
      }
    ],
    "body": "Internal Fileshare\n\nShare single workspace files via expiring HTTP links (tokenized, local-network only).\n\nFeatures\n✅ Single-file sharing (no directory browsing)\n✅ Time-limited tokens (default 1h, configurable; max 24h)\n✅ Optional one-time access (token invalid after first successful download)\n✅ Local/VPN-only (RFC1918 private ranges + localhost)\n✅ UTF-8 encoding (proper display of German umlauts, etc.)\n✅ No-cache headers (always fresh content)\n✅ Auto-cleanup (servers can be killed when done)\nInstall / Update (ClawHub)\n\nInstall:\n\nclawhub install expiring-local-fileshare\n\n\nUpdate:\n\nclawhub update expiring-local-fileshare\n\nUsage\nShare a single file\n{baseDir}/scripts/share.sh /path/to/file.md [port] [hours] [once]\n\n\nParameters:\n\nfile-path (required): Absolute path to file\nport (optional): Port number (default: auto-assigned 8888+)\nhours (optional): Validity in hours (default: 1, max: 24)\nonce (optional): Set to once or 1 for one-time access\n\nOutput: Returns clickable HTTP link with token, valid for specified duration.\n\nExample\n# Share a markdown file (1h, auto-port)\n{baseDir}/scripts/share.sh ~/.openclaw/workspace/projects/my-project/README.md\n\n# Share an image (12h, port 9000)\n{baseDir}/scripts/share.sh ~/image.png 9000 12\n\n# Share a file (one-time access, 1h)\n{baseDir}/scripts/share.sh ~/secrets.txt 9001 1 once\n\nHow It Works\nStarts a lightweight Node.js HTTP server on specified port\nGenerates random 32-char hex token\nReturns URL: http://192.168.0.219:PORT/?token=XXXXX\nValidates:\nSource IP (must be LAN or VPN)\nToken match\nExpiry time\nServes file with correct MIME type and UTF-8 encoding\nLogs all access attempts\nSecurity\nWorkspace-only by default: refuses to share files outside ~/.openclaw/workspace (override via FILESHARE_ALLOW_ANY_PATH=1, not recommended)\nLocal-only: Only serves to private IP ranges (RFC1918) + localhost (VPN counts).\nToken-based: 128-bit random tokens (computationally infeasible to guess)\nTime-limited: Hard expiry after N hours (default 1h, max 24h)\nOptional one-time: Token invalid after first successful download\nNo listing: Only serves the specified file, no directory browsing\nNo caching: Forces fresh content load\nSupported File Types\n\nAuto-detected MIME types:\n\n.png → image/png\n.jpg, .jpeg → image/jpeg\n.md → text/markdown; charset=utf-8\n.txt → text/plain; charset=utf-8\nOthers → application/octet-stream\nDisable / Uninstall\n\nThere is no background service by default.\n\nStop active shares\n# Kill a specific port\nkill $(lsof -t -i:8888)\n\n# Kill all fileshare servers started via this skill\npkill -f \"share-file.js\"\n\nUninstall (ClawHub)\n\nIf installed into ~/.openclaw/skills:\n\nrm -rf ~/.openclaw/skills/expiring-local-fileshare\n\nStopping Shares\n# Kill a specific port\nkill $(lsof -t -i:8888)\n\n# Kill all fileshare servers started via this skill\npkill -f \"share-file.js\"\n\nPolicy / Defaults\nSingle files only (no folder shares)\nDefault validity: 1h\nMax validity: 24h\nLocal/VPN only (RFC1918 + localhost)\nNo public \"anyone with link\"\nTroubleshooting\n\nWrong encoding (umlauts broken)? → Fixed in latest version (UTF-8 charset in headers)\n\nOld version served? → Kill old server + restart (no-cache headers prevent browser caching)\n\nCan't access from outside? → VPN required (home network topology uses NAT/masquerade, see docs/internal-fileshare.md)\n\nPort already in use? → Use different port or kill existing server"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/tradmangh/expiring-local-fileshare",
    "publisherUrl": "https://clawhub.ai/tradmangh/expiring-local-fileshare",
    "owner": "tradmangh",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/expiring-local-fileshare",
    "downloadUrl": "https://openagent3.xyz/downloads/expiring-local-fileshare",
    "agentUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/agent",
    "manifestUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/agent.md"
  }
}