{
  "schemaVersion": "1.0",
  "item": {
    "slug": "code-share",
    "name": "Code Share",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Jeromestein/code-share",
    "canonicalUrl": "https://clawhub.ai/Jeromestein/code-share",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/code-share",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-share",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/create_gist.sh",
      "scripts/update_gist.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",
      "slug": "code-share",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T22:20:19.304Z",
      "expiresAt": "2026-05-08T22:20:19.304Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-share",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-share",
        "contentDisposition": "attachment; filename=\"code-share-0.2.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "code-share"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/code-share"
    },
    "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/code-share",
    "agentPageUrl": "https://openagent3.xyz/skills/code-share/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-share/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-share/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": "Gist Code Share",
        "body": "When returning code:\n\nIf code is 10 lines or fewer, inline code block is allowed.\nIf code is over 10 lines, prefer GitHub Gist.\nDefault to secret gist unless user asks for public.\nReturn a short summary + gist URL; avoid pasting long duplicate code in chat.\nNever publish secrets in shared code. If sensitive values are needed, use placeholders and tell user to fill them locally."
      },
      {
        "title": "Required checks",
        "body": "Verify GitHub CLI auth: gh auth status\nIf not authenticated (or missing gist scope), ask user to run: gh auth login\nKeep behavior simple: do not auto-fallback to alternate sharing backends by default; prefer guiding user to configure GitHub properly."
      },
      {
        "title": "Sensitive data policy (mandatory)",
        "body": "Before sharing code, scan for sensitive data and remove it.\n\nNever include API keys, tokens, passwords, private keys, cookies, session IDs, webhook secrets, phone/email PII, or absolute local secret paths.\nIf code requires secrets, replace with placeholders, for example:\n\nAPI_KEY=\"<FILL_ME>\"\nTOKEN=\"<YOUR_TOKEN_HERE>\"\n.env entry with empty value\n\n\nAdd a short note telling the user to fill placeholders locally after copying."
      },
      {
        "title": "Update mode (same URL)",
        "body": "When user asks to modify previously shared code, prefer updating the same gist link (new revision) instead of creating a new gist.\n\nUse:\n\n./scripts/update_gist.sh <gist_url_or_id> <file> \"<short description>\" [public|secret] [lang]\n\nBehavior:\n\nKeep the same gist URL.\nSave changes as a new revision.\nReturn the same fixed 3-line response format.\n\nCreate a new gist only when:\n\nuser explicitly asks for a new link, or\nexisting gist is not editable by current GitHub account."
      },
      {
        "title": "Create gist",
        "body": "Use:\n\ngh gist create <file> --desc \"<short description>\"\n\nIf code is generated in-session, write it to a temp file in workspace first. Use language-appropriate extension (.py, .js, .ts, etc.) so Gist syntax highlighting works well.\n\nWith bundled script:\n\n./scripts/create_gist.sh <file> \"<short description>\" [public|secret] [lang]\n\nIf <file> has no extension, pass [lang] (for example python, typescript) so the script can upload with a proper extension.\n\nDefault behavior: do not use --web (automation-friendly).\nOptional: use --web only when the user explicitly asks to open the gist in browser immediately."
      },
      {
        "title": "Response format (fixed)",
        "body": "Always use exactly this 3-line format:\n\nOne sentence on what was shared.\nGist URL (separate line).\nFile: <filename> · Lines: <line_count>\n\nExample:\n\nShared the full script as a secret Gist for clean copy/paste.\nhttps://gist.github.com/...\nFile: lc761_solution.py · Lines: 42"
      }
    ],
    "body": "Gist Code Share\n\nWhen returning code:\n\nIf code is 10 lines or fewer, inline code block is allowed.\nIf code is over 10 lines, prefer GitHub Gist.\nDefault to secret gist unless user asks for public.\nReturn a short summary + gist URL; avoid pasting long duplicate code in chat.\nNever publish secrets in shared code. If sensitive values are needed, use placeholders and tell user to fill them locally.\nRequired checks\nVerify GitHub CLI auth: gh auth status\nIf not authenticated (or missing gist scope), ask user to run: gh auth login\nKeep behavior simple: do not auto-fallback to alternate sharing backends by default; prefer guiding user to configure GitHub properly.\nSensitive data policy (mandatory)\n\nBefore sharing code, scan for sensitive data and remove it.\n\nNever include API keys, tokens, passwords, private keys, cookies, session IDs, webhook secrets, phone/email PII, or absolute local secret paths.\nIf code requires secrets, replace with placeholders, for example:\nAPI_KEY=\"<FILL_ME>\"\nTOKEN=\"<YOUR_TOKEN_HERE>\"\n.env entry with empty value\nAdd a short note telling the user to fill placeholders locally after copying.\nUpdate mode (same URL)\n\nWhen user asks to modify previously shared code, prefer updating the same gist link (new revision) instead of creating a new gist.\n\nUse:\n\n./scripts/update_gist.sh <gist_url_or_id> <file> \"<short description>\" [public|secret] [lang]\n\n\nBehavior:\n\nKeep the same gist URL.\nSave changes as a new revision.\nReturn the same fixed 3-line response format.\n\nCreate a new gist only when:\n\nuser explicitly asks for a new link, or\nexisting gist is not editable by current GitHub account.\nCreate gist\n\nUse:\n\ngh gist create <file> --desc \"<short description>\"\n\n\nIf code is generated in-session, write it to a temp file in workspace first. Use language-appropriate extension (.py, .js, .ts, etc.) so Gist syntax highlighting works well.\n\nWith bundled script:\n\n./scripts/create_gist.sh <file> \"<short description>\" [public|secret] [lang]\n\n\nIf <file> has no extension, pass [lang] (for example python, typescript) so the script can upload with a proper extension.\n\nDefault behavior: do not use --web (automation-friendly). Optional: use --web only when the user explicitly asks to open the gist in browser immediately.\n\nResponse format (fixed)\n\nAlways use exactly this 3-line format:\n\nOne sentence on what was shared.\nGist URL (separate line).\nFile: <filename> · Lines: <line_count>\n\nExample:\n\nShared the full script as a secret Gist for clean copy/paste. https://gist.github.com/... File: lc761_solution.py · Lines: 42"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Jeromestein/code-share",
    "publisherUrl": "https://clawhub.ai/Jeromestein/code-share",
    "owner": "Jeromestein",
    "version": "0.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/code-share",
    "downloadUrl": "https://openagent3.xyz/downloads/code-share",
    "agentUrl": "https://openagent3.xyz/skills/code-share/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-share/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-share/agent.md"
  }
}