{
  "schemaVersion": "1.0",
  "item": {
    "slug": "c",
    "name": "C",
    "source": "tencent",
    "type": "skill",
    "category": "其他",
    "sourceUrl": "https://clawhub.ai/ivangdavila/c",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/c",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/c",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=c",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "memory.md",
      "pointers.md",
      "preprocessor.md",
      "strings.md",
      "types.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",
      "slug": "c",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T03:07:12.957Z",
      "expiresAt": "2026-05-06T03:07:12.957Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=c",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=c",
        "contentDisposition": "attachment; filename=\"c-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "c"
      },
      "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/c"
    },
    "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/c",
    "agentPageUrl": "https://openagent3.xyz/skills/c/agent",
    "manifestUrl": "https://openagent3.xyz/skills/c/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/c/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": "Quick Reference",
        "body": "TopicFilemalloc/free, leaks, double freememory.mdNull, dangling, pointer arithmeticpointers.mdNull terminator, buffer overflowstrings.mdInteger overflow, signed/unsignedtypes.mdMacro traps, include guardspreprocessor.mdCommon undefined behaviorundefined.md"
      },
      {
        "title": "Critical Rules",
        "body": "malloc returns void* — cast required in C++, optional in C but check for NULL\nfree(ptr); ptr = NULL; — always null after free to prevent double-free\nsizeof(array) in function gives pointer size, not array size — pass length separately\nchar str[5] = \"hello\"; — no room for null terminator, UB when used as string\nstrcpy doesn't check bounds — use strncpy and manually null-terminate\nSigned overflow is UB — compiler can optimize assuming it never happens\ni++ + i++ is UB — no sequence point between modifications\nReturning pointer to local variable — dangling pointer, UB on use\n#define SQUARE(x) x*x — SQUARE(1+2) = 1+2*1+2 = 5, not 9\nmemcpy with overlapping regions — use memmove instead\nUninitialized variables — contain garbage, UB if used\nArray out of bounds — no runtime check, silent corruption or crash"
      }
    ],
    "body": "Quick Reference\nTopic\tFile\nmalloc/free, leaks, double free\tmemory.md\nNull, dangling, pointer arithmetic\tpointers.md\nNull terminator, buffer overflow\tstrings.md\nInteger overflow, signed/unsigned\ttypes.md\nMacro traps, include guards\tpreprocessor.md\nCommon undefined behavior\tundefined.md\nCritical Rules\nmalloc returns void* — cast required in C++, optional in C but check for NULL\nfree(ptr); ptr = NULL; — always null after free to prevent double-free\nsizeof(array) in function gives pointer size, not array size — pass length separately\nchar str[5] = \"hello\"; — no room for null terminator, UB when used as string\nstrcpy doesn't check bounds — use strncpy and manually null-terminate\nSigned overflow is UB — compiler can optimize assuming it never happens\ni++ + i++ is UB — no sequence point between modifications\nReturning pointer to local variable — dangling pointer, UB on use\n#define SQUARE(x) x*x — SQUARE(1+2) = 1+2*1+2 = 5, not 9\nmemcpy with overlapping regions — use memmove instead\nUninitialized variables — contain garbage, UB if used\nArray out of bounds — no runtime check, silent corruption or crash"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/c",
    "publisherUrl": "https://clawhub.ai/ivangdavila/c",
    "owner": "ivangdavila",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/c",
    "downloadUrl": "https://openagent3.xyz/downloads/c",
    "agentUrl": "https://openagent3.xyz/skills/c/agent",
    "manifestUrl": "https://openagent3.xyz/skills/c/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/c/agent.md"
  }
}