← 返回 Skills 市场
moshiii

Agent Core Extractor

作者 Moshiii · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
243
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-core-extractor
功能描述
Export the agent core from supported framework repositories into a small source-only zip for AI migration or cross-framework analysis. Use when the user want...
使用说明 (SKILL.md)

AgentPearl Exporter

Use this skill to build a pure agent-core export from one or more supported repositories.

When To Use It

Use this skill when the user wants to:

  • extract only the files that define an agent
  • package agent-core files into a clean zip
  • detect which supported framework a repo uses
  • prepare source material for AI-driven migration into another agent framework
  • study the identity, instruction, runtime, capability, multi-agent, or composition layers of an agent repo

Supported Frameworks

The bundled exporter detects these framework signatures:

  • nanoclaw-ts-bootstrap
  • nanobot-py-templates
  • nullclaw-zig-bootstrap
  • zeroclaw-rs-config-prompt
  • openfang-rs-manifests
  • codex-rs-builtins

Workflow

  1. Confirm the target repositories exist under a common base directory.
  2. Run scripts/export-agent-core-pack.sh.
  3. Inspect the resulting zip, README.txt, and MANIFEST.txt.
  4. If the user needs migration guidance, read references/AGENT_CORE.md to map the exported files into agent-core layers.

Commands

Export the default supported repositories under ~/Documents/GitHub:

./scripts/export-agent-core-pack.sh

Export a subset of repositories:

./scripts/export-agent-core-pack.sh --repos nanobot,openfang

Choose a base directory, output directory, and archive name:

./scripts/export-agent-core-pack.sh \
  --base-dir ~/Documents/GitHub \
  --output-dir ./out \
  --name agent-core-snapshot \
  --repos codex,nullclaw

Rules

  • Keep the archive source-only.
  • Include only files that directly define agent behavior.
  • Exclude tests, build artifacts, dependency folders, unrelated app code, and target-framework metadata.
  • If a repository does not match a supported signature, stop and report it instead of guessing.

References

  • Read references/AGENT_CORE.md when you need the layer model for interpreting exported files.
安全使用建议
This skill appears coherent and local-only, but be mindful before running it: point --base-dir at repositories you control, and run with a specific --repos list to avoid copying unexpected files. The exporter will copy config and prompt files from those repos — if those files contain secrets or provider keys, they will be included in the generated zip. Verify the zip contents before sharing, ensure the zip binary is installed, and run the script in a controlled environment (or on a copy of your repos) if you have sensitive data in your project trees.
功能分析
Type: OpenClaw Skill Name: agent-core-extractor Version: 1.0.0 The skill includes a bash script (`scripts/export-agent-core-pack.sh`) that exhibits a path traversal vulnerability because it fails to sanitize the `--repos` input before constructing file paths. While the script's stated purpose is to package agent configuration files, it targets potentially sensitive files like `.claude/settings.json` and various framework-specific configuration files across the user's filesystem (defaulting to `~/Documents/GitHub`). Although no evidence of intentional data exfiltration or malicious backdoors was found, the combination of broad file access and the lack of input validation on shell-executed paths meets the criteria for a suspicious classification.
能力评估
Purpose & Capability
The name/description, SKILL.md, README, and the included script all align: they detect repository framework signatures and copy a small set of source files into a staging directory and zip it. No unrelated credentials, binaries, or services are requested.
Instruction Scope
The runtime instructions are limited to running the bundled shell script which reads repositories under a configurable base directory (default ~/Documents/GitHub). This is in-scope for extracting agent-core files, but note the script will read arbitrary files within those repos (including any config files present) and will fail/exit if a specified repo is missing or unsupported.
Install Mechanism
No install spec is provided; this is an instruction-only skill with a bundled shell script. The script requires the zip binary (checked at runtime). No downloads or archive extraction from external URLs occur.
Credentials
The skill declares no required environment variables or credentials. The script uses HOME and PWD via shell expansion (normal) and accepts a --base-dir flag; there is no request for unrelated secrets or external tokens.
Persistence & Privilege
The skill is not always-enabled, does not modify other skills, and does not request elevated persistence. It performs filesystem reads and writes within the user-specified output directory only.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-core-extractor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-core-extractor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of AgentPearl Exporter. - Export agent core files from supported framework repositories into a source-only zip for portability or analysis. - Detects agent framework signatures for six different frameworks. - Provides commands and scripting for flexible exporting and packaging. - Excludes tests, build artifacts, dependencies, and non-core files to ensure clean exports. - Includes reference documentation for interpreting exported agent-core layers.
元数据
Slug agent-core-extractor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Agent Core Extractor 是什么?

Export the agent core from supported framework repositories into a small source-only zip for AI migration or cross-framework analysis. Use when the user want... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 243 次。

如何安装 Agent Core Extractor?

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

Agent Core Extractor 是免费的吗?

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

Agent Core Extractor 支持哪些平台?

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

谁开发了 Agent Core Extractor?

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

💬 留言讨论