lekt8

Foundry

AI 智能体v0.1.0
作者:lekt8更新于 2026-05-18foundry@clawhub_lekt9/foundry
工作流编排工具调用#Docs

据 AlphaMoat 统计,截至 2026-10,Foundry 累计下载 5,438 次、获 1 个星标,按累计下载量在本次参与排名的 5,109 个 AI 技能中排名第 2,564 位,在「AI 智能体」分类(987 个)中排名第 500 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
5,438
星标
1
全站下载量排名
#2,564
全站前 51% · 「AI 智能体」前 51%
平台累计下载星标评论
ClawHub ↗4,241--
SkillHub ↗5,4381—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

自编写元扩展,锻造新能力——研究文档,编写扩展、工具、钩子和技能

月度数据趋势

累计下载5,438
3,1934,3995,6042026-05 · 累计下载 3,3592026-07 · 累计下载 3,7532026-08 · 累计下载 3,8782026-09 · 累计下载 4,2072026-10 · 累计下载 5,43826-0526-0926-10
星标1
0122026-05 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 12026-10 · 星标 126-0526-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-105,438—1
2026-094,207—1
2026-083,878+3.3%1
2026-073,753—1
2026-053,359—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.2 KB · ClawHub v0.1.0
---
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
展开全部(共 190 行)
**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:

```bash
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`:
```json
{
  "plugins": {
    "entries": {
      "foundry": { "enabled": true }
    }
  }
}
```

## 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 |

## 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

| 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:

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

## 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](https://github.com/lekt9/openclaw-foundry)
- [Foundry Marketplace](https://api.claw.getfoundry.app)

「AI 智能体」分类下的热门技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。