foundry
Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills
Install
mkdir -p .claude/skills/foundry && curl -L -o skill.zip "https://mcp.directory/api/skills/download/9171" && unzip -o skill.zip -d .claude/skills/foundry && rm skill.zipInstalls to .claude/skills/foundry
About this skill
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
| 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 |
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
Tools
Research & Documentation
| Tool | Description |
|---|---|
foundry_research | Search docs.openclaw.ai for best practices |
foundry_docs | Read specific documentation pages |
Writing Capabilities
| Tool | Description |
|---|---|
foundry_implement | Research + implement a capability end-to-end |
foundry_write_extension | Write a new OpenClaw extension |
foundry_write_skill | Write an AgentSkills-compatible skill |
foundry_write_browser_skill | Write a browser automation skill |
foundry_write_hook | Write a standalone hook |
foundry_add_tool | Add a tool to an existing extension |
foundry_add_hook | Add a hook to an existing extension |
Self-Modification
| Tool | Description |
|---|---|
foundry_extend_self | Add new capability to Foundry itself |
foundry_learnings | View learned patterns and insights |
foundry_list | List all written artifacts |
Marketplace
| Tool | Description |
|---|---|
foundry_publish_ability | Publish pattern/skill to Foundry Marketplace |
foundry_marketplace | Search, 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:
- 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
More by openclaw
View all skills by openclaw →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversAI-driven control of live Chrome via Chrome DevTools: browser automation, debugging, performance analysis and network mo
Serena is a free AI code generator toolkit providing robust code editing and retrieval, turning LLMs into powerful artif
Arize Phoenix — unified interface for managing prompts, exploring datasets, and running LLM experiments across providers
Integrate FireCrawl for advanced web scraping to extract clean, structured data from complex websites—fast, scalable, an
Empower AI with the Exa MCP Server—an AI research tool for real-time web search, academic data, and smarter, up-to-date
Cipher empowers agents with persistent memory using vector databases and embeddings for seamless context retention and t
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.