portability/codex
GitHub用于在Codex和NeuDrive之间迁移工作区数据、配置及技能包,支持备份、恢复及批量导入导出。
Trigger Scenarios
Install
npx skills add agi-bar/neuDrive --skill portability/codex -g -y
SKILL.md
Frontmatter
{
"name": "portability\/codex",
"tags": [
"portability",
"migration",
"backup",
"codex",
"neudrive"
],
"source": "system",
"read_only": true,
"description": "Guide for importing Codex workspace conventions into NeuDrive or exporting NeuDrive context back into Codex workflows.",
"when_to_use": "Use when the user asks to migrate, back up, restore, import, or export Codex projects, prompts, tools, or automations."
}
Codex Portability Manual
Overview
Use this skill when the user wants to move data between Codex and NeuDrive. Codex portability is manual-first: preserve workspace structure, conventions, prompts, tool configuration, and automation intent without claiming full feature parity.
When To Use
Use this skill for:
- backing up Codex workspace context into NeuDrive
- restoring NeuDrive context into Codex-compatible prompts, files, or setup instructions
- mapping Codex project instructions, tools, and automations into NeuDrive
Platform Feature Map
workspace or project instructions->/projects/<name>/context.mdplus profile rules where stablereusable prompts-> skill-like reference material or project assetstools / MCP config-> tool metadata and connection metadataautomation manifests-> automation shadow recordssession transcripts or notes-> conversation archive and project logs
Skill And Package Rules
Codex portability often produces reusable prompt bundles, scripts, or helper packages that should live under neuDrive /skills.
- Use
import_skill(name, files)for one text/code bundle whose full directory can be represented asmap[path]string. - Nested paths like
scripts/run.py,prompts/review.txt,config/tool.yaml, anddata/schema.xsdare allowed. - Do not simplify a bundle to only
SKILL.md; include the whole bundle directory and every text/code file it depends on. - If the user asks for all skills, a workspace export, or any multi-bundle batch, do not use
import_skillas the primary transport. - Use
import_skills_archivefor multi-bundle imports, binary-heavy bundles, or any case where exact bytes matter. - Supported zip layouts are:
- one skill at zip root:
SKILL.md,scripts/...,prompts/...,assets/... - many skills as top-level directories:
skill-a/SKILL.md,skill-b/SKILL.md, and related files below each directory
- one skill at zip root:
- Every imported skill directory must contain
SKILL.md. - All skill imports land under neuDrive
/skills/<name>/.... - Do not
catbase64(zip), paste archive base64 into chat, or otherwise emit long archive strings into the conversation, because that can crash the conversation session. - If one archive is too large for a single MCP tool call, use
prepare_skills_uploadand present both the browser upload link and the curl command when available. Prefer the browser path for ordinary users and curl for terminal-comfortable users.
Import Into NeuDrive
Recommended order:
- Classify stable workspace conventions versus project-specific instructions.
- Write stable preferences into
memory/profile. - Write project-specific context into
/projects/<name>/context.md. - Use
write_filefor imported data that should be preserved as files even when it does not fit a first-class neuDrive domain such as profile, memory, project, or skill. The agent may design a sensible custom directory structure for those files. - If reusable prompt/script bundles should live under neuDrive
/skills, apply the skill/package rules above and preserve the full directory contents. - Preserve tool and MCP configuration as structured metadata.
- Preserve automation manifests as intent plus schedule notes.
- Preserve transcripts, outputs, and other unsupported file-like assets with archive notes, metadata, or custom file trees when no first-class domain exists yet.
Export Back To Codex
When exporting NeuDrive data back into Codex:
- Generate workspace or project instruction files from NeuDrive project context.
- Generate reusable prompt bundles from profile and skill content.
- Generate draft tool and MCP configuration notes from stored metadata.
- Generate automation recreation notes from stored automation intent.
- Keep the process manual-first and mark every assumption clearly.
Known Limits
- Codex portability currently relies on manual or prompt-driven reconstruction.
- There is no dedicated Codex-native import/export pipeline yet.
- Tool and MCP configuration can be preserved as metadata, but live credentials should stay in NeuDrive vault.
- Automation parity is documentation-first.
Prompt Template
Use or adapt this prompt when another agent needs to execute Codex portability work:
Read
/skills/portability/codex/SKILL.mdfirst. Separate stable workspace conventions from project-specific context. Write stable rules into NeuDrive profile, write true project context into NeuDrive projects, usewrite_filefor additional imported file-like data that should be preserved even when it does not fit a first-class neuDrive domain, and preserve tool and MCP configuration as metadata plus automation intent as recreation notes. If reusable prompt or script bundles should live under neuDrive/skills, useimport_skillfor one text/code directory with full contents. If the user asks for all skills, a workspace export, or any multi-bundle batch, do not useimport_skillas the primary transport; useimport_skills_archive/prepare_skills_uploadfor multi-skill, binary-heavy, or transport-limited archives instead. Do notcatbase64(zip), paste archive base64 into chat, or otherwise emit long archive strings into the conversation. When exporting back to Codex, produce manual-first setup instructions and clearly mark unsupported parity.
{{CURRENT_USER_SNAPSHOT}}
Version History
- 5df41f2 Current 2026-07-24 15:56


