← 返回 Skills 市场
abeltennyson

abe-foundry

作者 AbelTennyson · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
66
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install abe-foundry
功能描述
Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills
使用说明 (SKILL.md)

Foundry

The forge that forges itself. A meta-extension for OpenClaw that researches documentation, learns from failures, and writes new capabilities into itself. AI capabilities are powered by SkillBoss API Hub (https://api.heybossai.com/v1/pilot), providing unified access to LLM, search, scraping, and other AI services.

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

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

All AI inference (LLM, web search, scraping) is routed through SkillBoss API Hub using SKILLBOSS_API_KEY.

AI API Usage

Foundry uses SkillBoss API Hub for all AI capabilities:

import requests, os

SKILLBOSS_API_KEY = os.environ["SKILLBOSS_API_KEY"]
API_BASE = "https://api.heybossai.com/v1"

def pilot(body: dict) -> dict:
    r = requests.post(
        f"{API_BASE}/pilot",
        headers={"Authorization": f"Bearer {SKILLBOSS_API_KEY}", "Content-Type": "application/json"},
        json=body,
        timeout=60,
    )
    return r.json()

# LLM 生成代码/分析文档
result = pilot({"type": "chat", "inputs": {"messages": [{"role": "user", "content": "..."}]}, "prefer": "balanced"})
text = result["result"]["choices"][0]["message"]["content"]

# 网页搜索(研究文档、arxiv)
result = pilot({"type": "search", "inputs": {"query": "openclaw webhook hooks"}, "prefer": "balanced"})
results = result["result"]

# 网页抓取(获取文档页面内容)
result = pilot({"type": "scraping", "inputs": {"url": "https://docs.openclaw.ai/hooks"}})
content = result["result"]

Tools

Research & Documentation

Tool Description
foundry_research Search documentation for best practices (via SkillBoss API Hub search)
foundry_docs Read specific documentation pages (via SkillBoss API Hub scraping)

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

安全使用建议
This skill will install a third-party OpenClaw plugin, route all AI/search/scraping through an external vendor (SkillBoss) using an API key, and can modify itself and write new extensions. Before installing: 1) Confirm and trust the upstream repository (inspect the npm package / GitHub repo code yourself). 2) Don't provide high-privilege secrets to SKILLBOSS_API_KEY unless you trust the service; consider using a scoped or read-only key and monitor/rotate it. 3) Disable autoLearn/autoPublish in config before enabling or run in an isolated/test instance. 4) Audit what data the plugin sends (ensure no private docs, credentials, or user data are transmitted). 5) Prefer manual install and manual review of the plugin files instead of allowing automatic restart. The mismatch between the registry metadata (no env) and the SKILL.md (requires SKILLBOSS_API_KEY) is a red flag — ask the publisher for source, signed releases, and an explanation of data handling/publishing policies before use.
功能分析
Type: OpenClaw Skill Name: abe-foundry Version: 1.0.0 Foundry is a 'self-writing' meta-extension that generates and executes code, self-modifies, and installs external npm packages (@getfoundry/foundry-openclaw). While these capabilities are aligned with its stated purpose as a development 'forge,' the ability to dynamically write extensions and the reliance on an external API (api.heybossai.com) for core logic present a significant security risk for remote code execution and persistence. The SKILL.md file contains explicit instructions for the agent to perform system-level installations and modifications upon user request.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The SKILL.md declares the skill uses an external SkillBoss API (SKILLBOSS_API_KEY) and instructs installing an npm plugin that will be extracted into ~/.openclaw/extensions/foundry/. However the registry metadata at the top of the package lists no required env vars while the runtime instructions require SKILLBOSS_API_KEY — that mismatch is unexplained. Requiring node and an npm-installed plugin is coherent with a code-generation meta-extension, but the external API dependency and auto-learning/publishing features are heavy privileges for a skill described as a 'meta-extension' and should be explicitly justified.
Instruction Scope
The SKILL.md instructs the agent to install a plugin (which writes to ~/.openclaw and restarts the gateway), to learn from 'experience' (agent activity/failures), and to route all LLM/search/scraping through an external API endpoint (https://api.heybossai.com). The instructions do not limit what content is sent to that API — this grants the skill discretion to upload documentation, agent activity, or generated code to an external service. Self-modification and auto-publish steps increase the chance of undesired changes being written and distributed.
Install Mechanism
The skill is instruction-only (no install spec inside the package), but instructs running `openclaw plugins install @getfoundry/foundry-openclaw`, which will download an npm package and extract it into the user's OpenClaw extensions directory and restart the gateway. Downloading and executing a third-party npm package (from an external repo: github:lekt9/openclaw-foundry) is a higher-risk operation — the SKILL.md does not recommend auditing the package or provide signature/verification guidance.
Credentials
SKILL.md requires SKILLBOSS_API_KEY to call the external SkillBoss API. That is a reasonable single credential for an external AI service, but the registry metadata omitted it (inconsistency). More importantly, the skill's described behavior (autoLearn, reading 'experience', scraping docs, generating code and possibly publishing) could cause it to send sensitive internal data and agent artifacts to that external service. The SKILL.md provides no safeguards on what is sent, nor any scoped minimal permissions guidance.
Persistence & Privilege
The skill is not marked always:true, but it can be invoked autonomously (disable-model-invocation: false). Combined with capabilities to install/enable a plugin, write new capabilities into itself, learn from agent activity, and optionally publish artifacts, this provides significant persistence and modification power. The instructions explicitly write into ~/.openclaw and restart the gateway — actions with lasting system/agent impact.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install abe-foundry
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /abe-foundry 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of abe-foundry: AI-powered meta-extension for OpenClaw. - Enables Foundry, a self-writing meta-extension that researches documentation, learns from failures, and generates new OpenClaw capabilities. - Provides tools for researching docs, writing extensions, hooks, skills, and self-modification. - Integrates with SkillBoss API Hub for LLM, search, and scraping. - Supports automated learning from usage, failures, and documentation. - Includes documentation for installation, configuration, and security measures.
元数据
Slug abe-foundry
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

abe-foundry 是什么?

Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 66 次。

如何安装 abe-foundry?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install abe-foundry」即可一键安装,无需额外配置。

abe-foundry 是免费的吗?

是的,abe-foundry 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

abe-foundry 支持哪些平台?

abe-foundry 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 abe-foundry?

由 AbelTennyson(@abeltennyson)开发并维护,当前版本 v1.0.0。

💬 留言讨论