← Back to Skills Marketplace
moshiii

Agent Core Extractor

by Moshiii · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
243
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install agent-core-extractor
Description
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...
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-core-extractor
  3. After installation, invoke the skill by name or use /agent-core-extractor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug agent-core-extractor
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 243 downloads so far.

How do I install Agent Core Extractor?

Run "/install agent-core-extractor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agent Core Extractor free?

Yes, Agent Core Extractor is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Agent Core Extractor support?

Agent Core Extractor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agent Core Extractor?

It is built and maintained by Moshiii (@moshiii); the current version is v1.0.0.

💬 Comments