{
  "schemaVersion": "1.0",
  "item": {
    "slug": "foundry",
    "name": "Foundry",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/lekt9/foundry",
    "canonicalUrl": "https://clawhub.ai/lekt9/foundry",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/foundry",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=foundry",
    "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",
      "slug": "foundry",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T23:11:57.832Z",
      "expiresAt": "2026-05-06T23:11:57.832Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=foundry",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=foundry",
        "contentDisposition": "attachment; filename=\"foundry-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "foundry"
      },
      "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/foundry"
    },
    "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/foundry",
    "agentPageUrl": "https://openagent3.xyz/skills/foundry/agent",
    "manifestUrl": "https://openagent3.xyz/skills/foundry/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/foundry/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": "Foundry",
        "body": "The forge that forges itself. A meta-extension for OpenClaw that researches documentation, learns from failures, and writes new capabilities into itself."
      },
      {
        "title": "Installation",
        "body": "When the user asks to install Foundry or @getfoundry/foundry-openclaw, run this command:\n\nopenclaw plugins install @getfoundry/foundry-openclaw\n\nThis will:\n\nDownload the plugin from npm\nExtract to ~/.openclaw/extensions/foundry/\nEnable it automatically\nRestart the gateway to load\n\nAfter installation, the user will have access to all Foundry tools like foundry_research, foundry_write_extension, etc."
      },
      {
        "title": "Alternative: Manual Config",
        "body": "Add to ~/.openclaw/openclaw.json:\n\n{\n  \"plugins\": {\n    \"entries\": {\n      \"foundry\": { \"enabled\": true }\n    }\n  }\n}"
      },
      {
        "title": "Configuration",
        "body": "Full configuration options in ~/.openclaw/openclaw.json:\n\n{\n  \"plugins\": {\n    \"entries\": {\n      \"foundry\": {\n        \"enabled\": true,\n        \"source\": \"github:lekt9/openclaw-foundry\",\n        \"config\": {\n          \"autoLearn\": true,\n          \"sources\": {\n            \"docs\": true,\n            \"experience\": true,\n            \"arxiv\": true,\n            \"github\": true\n          },\n          \"marketplace\": {\n            \"autoPublish\": false\n          }\n        }\n      }\n    }\n  }\n}"
      },
      {
        "title": "Config Options",
        "body": "OptionTypeDefaultDescriptionautoLearnbooleantrueLearn from agent activity automaticallysources.docsbooleantrueLearn from OpenClaw documentationsources.experiencebooleantrueLearn from own successes/failuressources.arxivbooleantrueLearn from arXiv paperssources.githubbooleantrueLearn from GitHub reposmarketplace.autoPublishbooleanfalseAuto-publish high-value patterns"
      },
      {
        "title": "What Foundry Does",
        "body": "Foundry is an AI-powered development agent that can:\n\nResearch — Fetch and understand OpenClaw documentation on demand\nWrite Extensions — Generate new tools and hooks for OpenClaw\nWrite Skills — Create ClawHub-compatible skill packages\nSelf-Modify — Add new capabilities to itself\nLearn — Record patterns from failures and successes"
      },
      {
        "title": "Research & Documentation",
        "body": "ToolDescriptionfoundry_researchSearch docs.openclaw.ai for best practicesfoundry_docsRead specific documentation pages"
      },
      {
        "title": "Writing Capabilities",
        "body": "ToolDescriptionfoundry_implementResearch + implement a capability end-to-endfoundry_write_extensionWrite a new OpenClaw extensionfoundry_write_skillWrite an AgentSkills-compatible skillfoundry_write_browser_skillWrite a browser automation skillfoundry_write_hookWrite a standalone hookfoundry_add_toolAdd a tool to an existing extensionfoundry_add_hookAdd a hook to an existing extension"
      },
      {
        "title": "Self-Modification",
        "body": "ToolDescriptionfoundry_extend_selfAdd new capability to Foundry itselffoundry_learningsView learned patterns and insightsfoundry_listList all written artifacts"
      },
      {
        "title": "Marketplace",
        "body": "ToolDescriptionfoundry_publish_abilityPublish pattern/skill to Foundry Marketplacefoundry_marketplaceSearch, browse, and install community abilities"
      },
      {
        "title": "Research before implementing",
        "body": "User: I want to add a webhook to my extension\n\nAgent: Let me research webhook patterns first...\n→ foundry_research query=\"webhook hooks automation\"\n→ Returns relevant documentation\n\nNow I'll implement it...\n→ foundry_add_hook extensionId=\"my-ext\" event=\"webhook:incoming\" ..."
      },
      {
        "title": "Write a new extension",
        "body": "User: Create an extension that monitors GitHub PRs\n\nAgent:\n→ foundry_research query=\"github api webhooks\"\n→ foundry_write_extension\n    id: \"github-monitor\"\n    name: \"GitHub Monitor\"\n    tools: [{ name: \"check_prs\", ... }]\n    hooks: [{ event: \"cron:hourly\", ... }]"
      },
      {
        "title": "Self-improvement",
        "body": "User: Add a tool that can fetch npm package info\n\nAgent:\n→ foundry_extend_self\n    action: \"add_tool\"\n    toolName: \"foundry_npm_info\"\n    toolCode: \"const res = await fetch(`https://registry.npmjs.org/${p.package}`)...\""
      },
      {
        "title": "How Learning Works",
        "body": "Foundry observes its own tool calls and learns:\n\nFailures → Records error + context\nResolutions → Links fix to failure → Creates pattern\nPatterns → Injected as context in future conversations\nCrystallization → High-value patterns become permanent capabilities"
      },
      {
        "title": "Security",
        "body": "Foundry validates all generated code before deployment:\n\nBlocked: child_process, eval, ~/.ssh, ~/.aws\nSandboxed: Extensions tested in isolated process before installation\nReviewed: You approve before any code is written to disk"
      },
      {
        "title": "Links",
        "body": "GitHub\nFoundry Marketplace"
      }
    ],
    "body": "Foundry\n\nThe forge that forges itself. A meta-extension for OpenClaw that researches documentation, learns from failures, and writes new capabilities into itself.\n\nInstallation\n\nWhen the user asks to install Foundry or @getfoundry/foundry-openclaw, run this command:\n\nopenclaw plugins install @getfoundry/foundry-openclaw\n\n\nThis will:\n\nDownload the plugin from npm\nExtract to ~/.openclaw/extensions/foundry/\nEnable it automatically\nRestart the gateway to load\n\nAfter installation, the user will have access to all Foundry tools like foundry_research, foundry_write_extension, etc.\n\nAlternative: Manual Config\n\nAdd to ~/.openclaw/openclaw.json:\n\n{\n  \"plugins\": {\n    \"entries\": {\n      \"foundry\": { \"enabled\": true }\n    }\n  }\n}\n\nConfiguration\n\nFull configuration options in ~/.openclaw/openclaw.json:\n\n{\n  \"plugins\": {\n    \"entries\": {\n      \"foundry\": {\n        \"enabled\": true,\n        \"source\": \"github:lekt9/openclaw-foundry\",\n        \"config\": {\n          \"autoLearn\": true,\n          \"sources\": {\n            \"docs\": true,\n            \"experience\": true,\n            \"arxiv\": true,\n            \"github\": true\n          },\n          \"marketplace\": {\n            \"autoPublish\": false\n          }\n        }\n      }\n    }\n  }\n}\n\nConfig Options\nOption\tType\tDefault\tDescription\nautoLearn\tboolean\ttrue\tLearn from agent activity automatically\nsources.docs\tboolean\ttrue\tLearn from OpenClaw documentation\nsources.experience\tboolean\ttrue\tLearn from own successes/failures\nsources.arxiv\tboolean\ttrue\tLearn from arXiv papers\nsources.github\tboolean\ttrue\tLearn from GitHub repos\nmarketplace.autoPublish\tboolean\tfalse\tAuto-publish high-value patterns\nWhat Foundry Does\n\nFoundry is an AI-powered development agent that can:\n\nResearch — Fetch and understand OpenClaw documentation on demand\nWrite Extensions — Generate new tools and hooks for OpenClaw\nWrite Skills — Create ClawHub-compatible skill packages\nSelf-Modify — Add new capabilities to itself\nLearn — Record patterns from failures and successes\nTools\nResearch & Documentation\nTool\tDescription\nfoundry_research\tSearch docs.openclaw.ai for best practices\nfoundry_docs\tRead specific documentation pages\nWriting Capabilities\nTool\tDescription\nfoundry_implement\tResearch + implement a capability end-to-end\nfoundry_write_extension\tWrite a new OpenClaw extension\nfoundry_write_skill\tWrite an AgentSkills-compatible skill\nfoundry_write_browser_skill\tWrite a browser automation skill\nfoundry_write_hook\tWrite a standalone hook\nfoundry_add_tool\tAdd a tool to an existing extension\nfoundry_add_hook\tAdd a hook to an existing extension\nSelf-Modification\nTool\tDescription\nfoundry_extend_self\tAdd new capability to Foundry itself\nfoundry_learnings\tView learned patterns and insights\nfoundry_list\tList all written artifacts\nMarketplace\nTool\tDescription\nfoundry_publish_ability\tPublish pattern/skill to Foundry Marketplace\nfoundry_marketplace\tSearch, browse, and install community abilities\nUsage Examples\nResearch before implementing\nUser: I want to add a webhook to my extension\n\nAgent: Let me research webhook patterns first...\n→ foundry_research query=\"webhook hooks automation\"\n→ Returns relevant documentation\n\nNow I'll implement it...\n→ foundry_add_hook extensionId=\"my-ext\" event=\"webhook:incoming\" ...\n\nWrite a new extension\nUser: Create an extension that monitors GitHub PRs\n\nAgent:\n→ foundry_research query=\"github api webhooks\"\n→ foundry_write_extension\n    id: \"github-monitor\"\n    name: \"GitHub Monitor\"\n    tools: [{ name: \"check_prs\", ... }]\n    hooks: [{ event: \"cron:hourly\", ... }]\n\nSelf-improvement\nUser: Add a tool that can fetch npm package info\n\nAgent:\n→ foundry_extend_self\n    action: \"add_tool\"\n    toolName: \"foundry_npm_info\"\n    toolCode: \"const res = await fetch(`https://registry.npmjs.org/${p.package}`)...\"\n\nHow Learning Works\n\nFoundry observes its own tool calls and learns:\n\nFailures → Records error + context\nResolutions → Links fix to failure → Creates pattern\nPatterns → Injected as context in future conversations\nCrystallization → High-value patterns become permanent capabilities\nSecurity\n\nFoundry validates all generated code before deployment:\n\nBlocked: child_process, eval, ~/.ssh, ~/.aws\nSandboxed: Extensions tested in isolated process before installation\nReviewed: You approve before any code is written to disk\nLinks\nGitHub\nFoundry Marketplace"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/lekt9/foundry",
    "publisherUrl": "https://clawhub.ai/lekt9/foundry",
    "owner": "lekt9",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/foundry",
    "downloadUrl": "https://openagent3.xyz/downloads/foundry",
    "agentUrl": "https://openagent3.xyz/skills/foundry/agent",
    "manifestUrl": "https://openagent3.xyz/skills/foundry/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/foundry/agent.md"
  }
}