# Send Code Share 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": "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": {
    "downloadUrl": "/downloads/code-share",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-share",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/create_gist.sh",
      "scripts/update_gist.sh"
    ],
    "downloadMode": "redirect",
    "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Gist Code Share

When returning code:

If code is 10 lines or fewer, inline code block is allowed.
If code is over 10 lines, prefer GitHub Gist.
Default to secret gist unless user asks for public.
Return a short summary + gist URL; avoid pasting long duplicate code in chat.
Never publish secrets in shared code. If sensitive values are needed, use placeholders and tell user to fill them locally.

### Required checks

Verify GitHub CLI auth: gh auth status
If not authenticated (or missing gist scope), ask user to run: gh auth login
Keep behavior simple: do not auto-fallback to alternate sharing backends by default; prefer guiding user to configure GitHub properly.

### Sensitive data policy (mandatory)

Before sharing code, scan for sensitive data and remove it.

Never include API keys, tokens, passwords, private keys, cookies, session IDs, webhook secrets, phone/email PII, or absolute local secret paths.
If code requires secrets, replace with placeholders, for example:

API_KEY="<FILL_ME>"
TOKEN="<YOUR_TOKEN_HERE>"
.env entry with empty value


Add a short note telling the user to fill placeholders locally after copying.

### Update mode (same URL)

When user asks to modify previously shared code, prefer updating the same gist link (new revision) instead of creating a new gist.

Use:

./scripts/update_gist.sh <gist_url_or_id> <file> "<short description>" [public|secret] [lang]

Behavior:

Keep the same gist URL.
Save changes as a new revision.
Return the same fixed 3-line response format.

Create a new gist only when:

user explicitly asks for a new link, or
existing gist is not editable by current GitHub account.

### Create gist

Use:

gh gist create <file> --desc "<short description>"

If 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.

With bundled script:

./scripts/create_gist.sh <file> "<short description>" [public|secret] [lang]

If <file> has no extension, pass [lang] (for example python, typescript) so the script can upload with a proper extension.

Default behavior: do not use --web (automation-friendly).
Optional: use --web only when the user explicitly asks to open the gist in browser immediately.

### Response format (fixed)

Always use exactly this 3-line format:

One sentence on what was shared.
Gist URL (separate line).
File: <filename> · Lines: <line_count>

Example:

Shared the full script as a secret Gist for clean copy/paste.
https://gist.github.com/...
File: lc761_solution.py · Lines: 42
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Jeromestein
- Version: 0.2.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T22:20:19.304Z
- Expires at: 2026-05-08T22:20:19.304Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/code-share)
- [Send to Agent page](https://openagent3.xyz/skills/code-share/agent)
- [JSON manifest](https://openagent3.xyz/skills/code-share/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/code-share/agent.md)
- [Download page](https://openagent3.xyz/downloads/code-share)