{
  "schemaVersion": "1.0",
  "item": {
    "slug": "context7-docs",
    "name": "Context7 Documentation Skill",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/jaylane/context7-docs",
    "canonicalUrl": "https://clawhub.ai/jaylane/context7-docs",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/context7-docs",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=context7-docs",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt",
      "scripts/resolve-library.sh",
      "scripts/query-docs.sh",
      "references/LIBRARY-ID-FORMAT.md",
      "references/API-REFERENCE.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/context7-docs"
    },
    "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/context7-docs",
    "agentPageUrl": "https://openagent3.xyz/skills/context7-docs/agent",
    "manifestUrl": "https://openagent3.xyz/skills/context7-docs/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/context7-docs/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": "Overview",
        "body": "Context7 provides up-to-date, version-specific documentation and code examples for thousands of programming libraries and frameworks. Use this skill whenever you need current documentation that may differ from your training data — especially for fast-moving libraries like Next.js, React, Supabase, LangChain, etc."
      },
      {
        "title": "When to Use This Skill",
        "body": "The user asks about a library's API and you're unsure if your knowledge is current\nThe user requests code examples for a specific library version\nThe user asks for setup, configuration, or migration guides\nThe user mentions \"use context7\" or asks for up-to-date docs\nYou need to verify whether an API or method still exists in the latest version"
      },
      {
        "title": "Step 1: Resolve the Library ID",
        "body": "First, find the Context7-compatible library ID for the library the user is asking about.\n\nbash scripts/resolve-library.sh --query \"How to set up authentication\" --library-name \"next.js\"\n\nThis returns a list of matching libraries with:\n\nLibrary ID — e.g., /vercel/next.js (use this in Step 2)\nName and Description\nCode Snippets — number of available examples (prefer higher counts)\nBenchmark Score — quality indicator out of 100 (prefer higher)\nSource Reputation — High, Medium, Low, or Unknown (prefer High/Medium)\nVersions — available version-specific IDs like /vercel/next.js/v14.3.0\n\nSelection criteria — Pick the library that best matches based on:\n\nName similarity (exact matches first)\nDescription relevance to the user's task\nHigher Code Snippet count\nHigher Benchmark Score\nHigh or Medium Source Reputation\n\nIf the user already provides a library ID in /org/project format, skip this step."
      },
      {
        "title": "Step 2: Query the Documentation",
        "body": "Use the library ID from Step 1 to fetch relevant documentation:\n\nbash scripts/query-docs.sh --library-id \"/vercel/next.js\" --query \"How to set up authentication with JWT\"\n\nThis returns documentation text with code examples directly relevant to the query."
      },
      {
        "title": "Shortcut: Direct curl",
        "body": "You can also call the API directly without the scripts:\n\nSearch for a library:\n\ncurl -s \"https://context7.com/api/search\" \\\n  -H \"Content-Type: application/json\" \\\n  ${CONTEXT7_API_KEY:+-H \"Authorization: Bearer $CONTEXT7_API_KEY\"} \\\n  -d '{\"query\": \"How to set up auth\", \"libraryName\": \"next.js\"}' | jq .\n\nQuery documentation:\n\ncurl -s \"https://context7.com/api/context\" \\\n  -H \"Content-Type: application/json\" \\\n  ${CONTEXT7_API_KEY:+-H \"Authorization: Bearer $CONTEXT7_API_KEY\"} \\\n  -d '{\"query\": \"JWT authentication middleware\", \"libraryId\": \"/vercel/next.js\"}' | jq ."
      },
      {
        "title": "Important Guidelines",
        "body": "Call resolve at most 3 times per question. If you can't find what you need, use the best result.\nCall query-docs at most 3 times per question. Use the best information you have.\nBe specific with queries. Good: \"How to set up authentication with JWT in Express.js\". Bad: \"auth\".\nUse versions when relevant. If the user specifies a version, look for it in the resolve results and use the versioned library ID (e.g., /vercel/next.js/v14.3.0).\nDo NOT include sensitive data (API keys, passwords, credentials) in your queries — they are sent to the Context7 API."
      },
      {
        "title": "Handling Edge Cases",
        "body": "SituationActionNo results from resolveTry a different library name or broader search termMultiple good matchesPick the one with the best name match + highest snippet countUser specifies a versionLook for versioned IDs in resolve resultsEmpty docs responseTry a more specific or different queryRate limit hitWait a moment and retry, or suggest the user set CONTEXT7_API_KEY"
      },
      {
        "title": "Environment Setup",
        "body": "For higher rate limits, set a free API key:\n\nexport CONTEXT7_API_KEY=\"your-key-here\"\n\nGet a free key at: https://context7.com/dashboard"
      },
      {
        "title": "Next Steps",
        "body": "See API-REFERENCE.md for full endpoint documentation\nSee LIBRARY-ID-FORMAT.md for details on library ID format and versioning"
      }
    ],
    "body": "Context7 Documentation Lookup\nOverview\n\nContext7 provides up-to-date, version-specific documentation and code examples for thousands of programming libraries and frameworks. Use this skill whenever you need current documentation that may differ from your training data — especially for fast-moving libraries like Next.js, React, Supabase, LangChain, etc.\n\nWhen to Use This Skill\nThe user asks about a library's API and you're unsure if your knowledge is current\nThe user requests code examples for a specific library version\nThe user asks for setup, configuration, or migration guides\nThe user mentions \"use context7\" or asks for up-to-date docs\nYou need to verify whether an API or method still exists in the latest version\nTwo-Step Workflow\nStep 1: Resolve the Library ID\n\nFirst, find the Context7-compatible library ID for the library the user is asking about.\n\nbash scripts/resolve-library.sh --query \"How to set up authentication\" --library-name \"next.js\"\n\n\nThis returns a list of matching libraries with:\n\nLibrary ID — e.g., /vercel/next.js (use this in Step 2)\nName and Description\nCode Snippets — number of available examples (prefer higher counts)\nBenchmark Score — quality indicator out of 100 (prefer higher)\nSource Reputation — High, Medium, Low, or Unknown (prefer High/Medium)\nVersions — available version-specific IDs like /vercel/next.js/v14.3.0\n\nSelection criteria — Pick the library that best matches based on:\n\nName similarity (exact matches first)\nDescription relevance to the user's task\nHigher Code Snippet count\nHigher Benchmark Score\nHigh or Medium Source Reputation\n\nIf the user already provides a library ID in /org/project format, skip this step.\n\nStep 2: Query the Documentation\n\nUse the library ID from Step 1 to fetch relevant documentation:\n\nbash scripts/query-docs.sh --library-id \"/vercel/next.js\" --query \"How to set up authentication with JWT\"\n\n\nThis returns documentation text with code examples directly relevant to the query.\n\nShortcut: Direct curl\n\nYou can also call the API directly without the scripts:\n\nSearch for a library:\n\ncurl -s \"https://context7.com/api/search\" \\\n  -H \"Content-Type: application/json\" \\\n  ${CONTEXT7_API_KEY:+-H \"Authorization: Bearer $CONTEXT7_API_KEY\"} \\\n  -d '{\"query\": \"How to set up auth\", \"libraryName\": \"next.js\"}' | jq .\n\n\nQuery documentation:\n\ncurl -s \"https://context7.com/api/context\" \\\n  -H \"Content-Type: application/json\" \\\n  ${CONTEXT7_API_KEY:+-H \"Authorization: Bearer $CONTEXT7_API_KEY\"} \\\n  -d '{\"query\": \"JWT authentication middleware\", \"libraryId\": \"/vercel/next.js\"}' | jq .\n\nImportant Guidelines\nCall resolve at most 3 times per question. If you can't find what you need, use the best result.\nCall query-docs at most 3 times per question. Use the best information you have.\nBe specific with queries. Good: \"How to set up authentication with JWT in Express.js\". Bad: \"auth\".\nUse versions when relevant. If the user specifies a version, look for it in the resolve results and use the versioned library ID (e.g., /vercel/next.js/v14.3.0).\nDo NOT include sensitive data (API keys, passwords, credentials) in your queries — they are sent to the Context7 API.\nHandling Edge Cases\nSituation\tAction\nNo results from resolve\tTry a different library name or broader search term\nMultiple good matches\tPick the one with the best name match + highest snippet count\nUser specifies a version\tLook for versioned IDs in resolve results\nEmpty docs response\tTry a more specific or different query\nRate limit hit\tWait a moment and retry, or suggest the user set CONTEXT7_API_KEY\nEnvironment Setup\n\nFor higher rate limits, set a free API key:\n\nexport CONTEXT7_API_KEY=\"your-key-here\"\n\n\nGet a free key at: https://context7.com/dashboard\n\nNext Steps\nSee API-REFERENCE.md for full endpoint documentation\nSee LIBRARY-ID-FORMAT.md for details on library ID format and versioning"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/jaylane/context7-docs",
    "publisherUrl": "https://clawhub.ai/jaylane/context7-docs",
    "owner": "jaylane",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/context7-docs",
    "downloadUrl": "https://openagent3.xyz/downloads/context7-docs",
    "agentUrl": "https://openagent3.xyz/skills/context7-docs/agent",
    "manifestUrl": "https://openagent3.xyz/skills/context7-docs/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/context7-docs/agent.md"
  }
}