Loading...
Loading...
Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills
npx skill4agent add lekt9/openclaw-foundry foundry@getfoundry/foundry-openclawopenclaw plugins install @getfoundry/foundry-openclaw~/.openclaw/extensions/foundry/foundry_researchfoundry_write_extension~/.openclaw/openclaw.json{
"plugins": {
"entries": {
"foundry": { "enabled": true }
}
}
}~/.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
}
}
}
}
}
}| Option | Type | Default | Description |
|---|---|---|---|
| boolean | | Learn from agent activity automatically |
| boolean | | Learn from OpenClaw documentation |
| boolean | | Learn from own successes/failures |
| boolean | | Learn from arXiv papers |
| boolean | | Learn from GitHub repos |
| boolean | | Auto-publish high-value patterns |
| Tool | Description |
|---|---|
| Search docs.openclaw.ai for best practices |
| Read specific documentation pages |
| Tool | Description |
|---|---|
| Research + implement a capability end-to-end |
| Write a new OpenClaw extension |
| Write an AgentSkills-compatible skill |
| Write a browser automation skill |
| Write a standalone hook |
| Add a tool to an existing extension |
| Add a hook to an existing extension |
| Tool | Description |
|---|---|
| Add new capability to Foundry itself |
| View learned patterns and insights |
| List all written artifacts |
| Tool | Description |
|---|---|
| Publish pattern/skill to Foundry Marketplace |
| Search, browse, and install community abilities |
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" ...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", ... }]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}`)..."child_processeval~/.ssh~/.aws