{
  "schemaVersion": "1.0",
  "item": {
    "slug": "clangd-lsp",
    "name": "Clangd LSP",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/bowen31337/clangd-lsp",
    "canonicalUrl": "https://clawhub.ai/bowen31337/clangd-lsp",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/clangd-lsp",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clangd-lsp",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.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",
      "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/clangd-lsp"
    },
    "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/clangd-lsp",
    "agentPageUrl": "https://openagent3.xyz/skills/clangd-lsp/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clangd-lsp/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clangd-lsp/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": "clangd LSP",
        "body": "C/C++ language server integration providing comprehensive code intelligence through clangd (part of LLVM)."
      },
      {
        "title": "Capabilities",
        "body": "Code intelligence: Autocomplete, go-to-definition, find references\nError detection: Real-time diagnostics for compilation errors\nFormatting: Code formatting with clang-format\nRefactoring: Rename symbols, extract function\nSupported extensions: .c, .h, .cpp, .cc, .cxx, .hpp, .hxx, .C, .H"
      },
      {
        "title": "Via Homebrew (macOS)",
        "body": "brew install llvm\n# Add to PATH\nexport PATH=\"/opt/homebrew/opt/llvm/bin:$PATH\""
      },
      {
        "title": "Via package manager (Linux)",
        "body": "# Ubuntu/Debian\nsudo apt install clangd\n\n# Fedora\nsudo dnf install clang-tools-extra\n\n# Arch Linux\nsudo pacman -S clang"
      },
      {
        "title": "Windows",
        "body": "winget install LLVM.LLVM\n\nOr download from LLVM releases.\n\nVerify installation:\n\nclangd --version"
      },
      {
        "title": "Usage",
        "body": "The language server runs automatically in LSP-compatible editors. For manual operations:"
      },
      {
        "title": "Compile",
        "body": "gcc file.c -o output      # C\ng++ file.cpp -o output    # C++\nclang file.c -o output    # with clang"
      },
      {
        "title": "Format code",
        "body": "clang-format -i file.cpp"
      },
      {
        "title": "Static analysis",
        "body": "clang-tidy file.cpp -- -std=c++17"
      },
      {
        "title": "Configuration",
        "body": "Create .clangd in project root:\n\nCompileFlags:\n  Add: [-std=c++17, -Wall, -Wextra]\n  Remove: [-W*]\nDiagnostics:\n  UnusedIncludes: Strict\n  MissingIncludes: Strict\n\nOr compile_commands.json for complex projects:\n\ncmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .\n# or\nbear -- make"
      },
      {
        "title": "Integration Pattern",
        "body": "When editing C/C++ code:\n\nclangd uses compile_commands.json for project understanding\nRun clang-format to format code\nUse clang-tidy for static analysis\nCompile with warnings enabled (-Wall -Wextra)"
      },
      {
        "title": "Common Flags",
        "body": "Compile flags:\n\n-std=c++17 - C++17 standard\n-Wall -Wextra - Enable warnings\n-O2 - Optimization level\n-g - Debug symbols\n-I<path> - Include path\n-L<path> - Library path\n\nclang-tidy checks:\n\nclang-tidy file.cpp --checks='*' --\nclang-tidy file.cpp --fix --  # Auto-fix"
      },
      {
        "title": "More Information",
        "body": "clangd Website\nGetting Started Guide\nLLVM Project"
      }
    ],
    "body": "clangd LSP\n\nC/C++ language server integration providing comprehensive code intelligence through clangd (part of LLVM).\n\nCapabilities\nCode intelligence: Autocomplete, go-to-definition, find references\nError detection: Real-time diagnostics for compilation errors\nFormatting: Code formatting with clang-format\nRefactoring: Rename symbols, extract function\nSupported extensions: .c, .h, .cpp, .cc, .cxx, .hpp, .hxx, .C, .H\nInstallation\nVia Homebrew (macOS)\nbrew install llvm\n# Add to PATH\nexport PATH=\"/opt/homebrew/opt/llvm/bin:$PATH\"\n\nVia package manager (Linux)\n# Ubuntu/Debian\nsudo apt install clangd\n\n# Fedora\nsudo dnf install clang-tools-extra\n\n# Arch Linux\nsudo pacman -S clang\n\nWindows\nwinget install LLVM.LLVM\n\n\nOr download from LLVM releases.\n\nVerify installation:\n\nclangd --version\n\nUsage\n\nThe language server runs automatically in LSP-compatible editors. For manual operations:\n\nCompile\ngcc file.c -o output      # C\ng++ file.cpp -o output    # C++\nclang file.c -o output    # with clang\n\nFormat code\nclang-format -i file.cpp\n\nStatic analysis\nclang-tidy file.cpp -- -std=c++17\n\nConfiguration\n\nCreate .clangd in project root:\n\nCompileFlags:\n  Add: [-std=c++17, -Wall, -Wextra]\n  Remove: [-W*]\nDiagnostics:\n  UnusedIncludes: Strict\n  MissingIncludes: Strict\n\n\nOr compile_commands.json for complex projects:\n\ncmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .\n# or\nbear -- make\n\nIntegration Pattern\n\nWhen editing C/C++ code:\n\nclangd uses compile_commands.json for project understanding\nRun clang-format to format code\nUse clang-tidy for static analysis\nCompile with warnings enabled (-Wall -Wextra)\nCommon Flags\n\nCompile flags:\n\n-std=c++17 - C++17 standard\n-Wall -Wextra - Enable warnings\n-O2 - Optimization level\n-g - Debug symbols\n-I<path> - Include path\n-L<path> - Library path\n\nclang-tidy checks:\n\nclang-tidy file.cpp --checks='*' --\nclang-tidy file.cpp --fix --  # Auto-fix\n\nMore Information\nclangd Website\nGetting Started Guide\nLLVM Project"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/bowen31337/clangd-lsp",
    "publisherUrl": "https://clawhub.ai/bowen31337/clangd-lsp",
    "owner": "bowen31337",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/clangd-lsp",
    "downloadUrl": "https://openagent3.xyz/downloads/clangd-lsp",
    "agentUrl": "https://openagent3.xyz/skills/clangd-lsp/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clangd-lsp/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clangd-lsp/agent.md"
  }
}