# Send Foundry 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": "foundry",
    "name": "Foundry",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/lekt9/foundry",
    "canonicalUrl": "https://clawhub.ai/lekt9/foundry",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/foundry",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=foundry",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Foundry

The forge that forges itself. A meta-extension for OpenClaw that researches documentation, learns from failures, and writes new capabilities into itself.

### Installation

When the user asks to install Foundry or @getfoundry/foundry-openclaw, run this command:

openclaw plugins install @getfoundry/foundry-openclaw

This will:

Download the plugin from npm
Extract to ~/.openclaw/extensions/foundry/
Enable it automatically
Restart the gateway to load

After installation, the user will have access to all Foundry tools like foundry_research, foundry_write_extension, etc.

### Alternative: Manual Config

Add to ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "foundry": { "enabled": true }
    }
  }
}

### Configuration

Full configuration options in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "foundry": {
        "enabled": true,
        "source": "github:lekt9/openclaw-foundry",
        "config": {
          "autoLearn": true,
          "sources": {
            "docs": true,
            "experience": true,
            "arxiv": true,
            "github": true
          },
          "marketplace": {
            "autoPublish": false
          }
        }
      }
    }
  }
}

### Config Options

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

### What Foundry Does

Foundry is an AI-powered development agent that can:

Research — Fetch and understand OpenClaw documentation on demand
Write Extensions — Generate new tools and hooks for OpenClaw
Write Skills — Create ClawHub-compatible skill packages
Self-Modify — Add new capabilities to itself
Learn — Record patterns from failures and successes

### Research & Documentation

ToolDescriptionfoundry_researchSearch docs.openclaw.ai for best practicesfoundry_docsRead specific documentation pages

### Writing Capabilities

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

### Self-Modification

ToolDescriptionfoundry_extend_selfAdd new capability to Foundry itselffoundry_learningsView learned patterns and insightsfoundry_listList all written artifacts

### Marketplace

ToolDescriptionfoundry_publish_abilityPublish pattern/skill to Foundry Marketplacefoundry_marketplaceSearch, browse, and install community abilities

### Research before implementing

User: I want to add a webhook to my extension

Agent: Let me research webhook patterns first...
→ foundry_research query="webhook hooks automation"
→ Returns relevant documentation

Now I'll implement it...
→ foundry_add_hook extensionId="my-ext" event="webhook:incoming" ...

### Write a new extension

User: Create an extension that monitors GitHub PRs

Agent:
→ foundry_research query="github api webhooks"
→ foundry_write_extension
    id: "github-monitor"
    name: "GitHub Monitor"
    tools: [{ name: "check_prs", ... }]
    hooks: [{ event: "cron:hourly", ... }]

### Self-improvement

User: Add a tool that can fetch npm package info

Agent:
→ foundry_extend_self
    action: "add_tool"
    toolName: "foundry_npm_info"
    toolCode: "const res = await fetch(\`https://registry.npmjs.org/${p.package}\`)..."

### How Learning Works

Foundry observes its own tool calls and learns:

Failures → Records error + context
Resolutions → Links fix to failure → Creates pattern
Patterns → Injected as context in future conversations
Crystallization → High-value patterns become permanent capabilities

### Security

Foundry validates all generated code before deployment:

Blocked: child_process, eval, ~/.ssh, ~/.aws
Sandboxed: Extensions tested in isolated process before installation
Reviewed: You approve before any code is written to disk

### Links

GitHub
Foundry Marketplace
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lekt9
- Version: 0.1.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-04-29T23:11:57.832Z
- Expires at: 2026-05-06T23:11:57.832Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/foundry)
- [Send to Agent page](https://openagent3.xyz/skills/foundry/agent)
- [JSON manifest](https://openagent3.xyz/skills/foundry/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/foundry/agent.md)
- [Download page](https://openagent3.xyz/downloads/foundry)