skills$openclaw/foundry
lekt91.1k

by lekt9

foundry – OpenClaw Skill

foundry is an OpenClaw Skills integration for coding workflows. Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills

1.1k stars8.0k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namefoundry
descriptionSelf-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills OpenClaw Skills integration.
ownerlekt9
repositorylekt9/foundry
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lekt9/foundry
last updatedFeb 7, 2026

Maintainer

lekt9

lekt9

Maintains foundry in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
265 B
SKILL.md
5.2 KB
SKILL.md

name: foundry description: Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills homepage: https://getfoundry.app user-invocable: true metadata: {"openclaw":{"requires":{"bins":["node"]},"repository":"github:lekt9/openclaw-foundry"}}

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:

  1. Download the plugin from npm
  2. Extract to ~/.openclaw/extensions/foundry/
  3. Enable it automatically
  4. 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

OptionTypeDefaultDescription
autoLearnbooleantrueLearn from agent activity automatically
sources.docsbooleantrueLearn from OpenClaw documentation
sources.experiencebooleantrueLearn from own successes/failures
sources.arxivbooleantrueLearn from arXiv papers
sources.githubbooleantrueLearn from GitHub repos
marketplace.autoPublishbooleanfalseAuto-publish high-value patterns

What Foundry Does

Foundry is an AI-powered development agent that can:

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

Tools

Research & Documentation

ToolDescription
foundry_researchSearch docs.openclaw.ai for best practices
foundry_docsRead specific documentation pages

Writing Capabilities

ToolDescription
foundry_implementResearch + implement a capability end-to-end
foundry_write_extensionWrite a new OpenClaw extension
foundry_write_skillWrite an AgentSkills-compatible skill
foundry_write_browser_skillWrite a browser automation skill
foundry_write_hookWrite a standalone hook
foundry_add_toolAdd a tool to an existing extension
foundry_add_hookAdd a hook to an existing extension

Self-Modification

ToolDescription
foundry_extend_selfAdd new capability to Foundry itself
foundry_learningsView learned patterns and insights
foundry_listList all written artifacts

Marketplace

ToolDescription
foundry_publish_abilityPublish pattern/skill to Foundry Marketplace
foundry_marketplaceSearch, browse, and install community abilities

Usage Examples

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:

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

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
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

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

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

Full configuration options in `~/.openclaw/openclaw.json`: ```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 | Option | Type | Default | Description | |--------|------|---------|-------------| | `autoLearn` | boolean | `true` | Learn from agent activity automatically | | `sources.docs` | boolean | `true` | Learn from OpenClaw documentation | | `sources.experience` | boolean | `true` | Learn from own successes/failures | | `sources.arxiv` | boolean | `true` | Learn from arXiv papers | | `sources.github` | boolean | `true` | Learn from GitHub repos | | `marketplace.autoPublish` | boolean | `false` | Auto-publish high-value patterns |

FAQ

How do I install foundry?

Run openclaw add @lekt9/foundry in your terminal. This installs foundry into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lekt9/foundry. Review commits and README documentation before installing.