agent-import
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Import a migration bundle into Starchild. Downloads from relay, validates, and loads all components using native tools.
6installs
Added on
NPX Install
npx skill4agent add starchild-ai-agent/official-skills agent-importTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Agent Import — Migration Bundle Loader
Download and load a migration bundle into this Starchild agent. The bundle is created by another agent using the skill.
agent-exportQuick Start
When user provides a migration code and download token:
1. Run the import script to download & extract
2. Review the extracted data with the user
3. Apply each component using native toolsStep 1 — Download & Extract
The user will provide two values from the source agent: a CODE (8 chars) and a DOWNLOAD_TOKEN.
bash
python3 sc-agent-migration/skills/agent-import/scripts/download.py <CODE> <DOWNLOAD_TOKEN>This downloads from the relay over the public internet — no special network required. The download token authorizes the download; it is single-use and expires with the code (1 hour TTL).
On success the script extracts the bundle to and prints a summary of what's included.
migration/Step 2 — Review Contents
Read and summarize what the bundle contains before applying anything:
bash
cat migration/manifest.json
cat migration/memory/agent.json 2>/dev/null
cat migration/memory/user.json 2>/dev/null
cat migration/identity/profile.json 2>/dev/null
cat migration/identity/soul.md 2>/dev/null
cat migration/user/settings.json 2>/dev/null
cat migration/tasks/tasks.json 2>/dev/null
cat migration/env/keys.json 2>/dev/null
find migration/files/ -type f 2>/dev/nullAlways show the user a summary and ask for confirmation before applying.
Step 3 — Apply Components
Apply each component using Starchild native tools. The order matters:
3a. User Settings (first — sets timezone/language for everything else)
Read , then call:
migration/user/settings.jsonuser_settings(action="update", settings={
"name": "...",
"what_to_call": "...",
"timezone": "...",
"language": "..."
})Only include fields that are present in the JSON.
3b. Agent Identity
Read , then call:
migration/identity/profile.jsonagent_profile(action="update", profile={
"name": "...",
"vibe": "...",
"emoji": "...",
"creature": "..."
})3c. SOUL.md
If exists, read it and write to .
migration/identity/soul.mdprompt/SOUL.mdMerge with existing SOUL.md if it has content. Don't overwrite platform defaults blindly — integrate the personality bits.
3d. Memory — Agent
Read , for each entry call:
migration/memory/agent.jsonmemory(action="add", target="memory", content="<entry>")⚠️ Memory has a 5000 char limit. If the bundle has many entries, prioritize the most useful ones. Check current usage with first.
memory(action="read")3e. Memory — User
Read , for each entry call:
migration/memory/user.jsonmemory(action="add", target="user", content="<entry>")⚠️ User memory has a 3000 char limit. Prioritize preferences and corrections.
3f. Tasks
Read , for each task:
migration/tasks/tasks.jsonscheduled_task(action="register", title=..., schedule=..., description=..., channels=...)- Write the script based on the description
run.py - Test it:
bash("python3 tasks/{job_id}/run.py") scheduled_task(action="activate", job_id=...)
Tasks need actual implementation — the description is a spec, not runnable code. Use your judgment to build each task's script.
3g. Environment Keys
Read , then call:
migration/env/keys.jsonrequest_env_input(env_vars=[...], reason="Migration from <source>")This prompts the user to enter values securely.
3h. Files
Copy files from to the workspace:
migration/files/bash
cp -r migration/files/* . 2>/dev/nullReview what's being copied and skip anything that would overwrite important existing files.
Step 4 — Cleanup
bash
rm -rf migration/ migration-bundle.tar.gzError Handling
| Error | Cause | Fix |
|---|---|---|
| Wrong or missing download token | Re-check the token from the source agent output |
| Code already used or never existed | Ask source agent to re-export |
| Code older than 1 hour | Ask source agent to re-export |
| Too many failed attempts | Wait 1 hour |
| Invalid tar.gz | Corrupted upload | Re-export from source agent |
| No manifest.json | Invalid bundle structure | Bundle must have manifest.json at root |