grandamenium/cortextos/agent-migration
Claude Code and agent skill by grandamenium/cortextos
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install grandamenium/cortextos/agent-migrationSKILL.md
The same SKILL.md was published earlier as grandamenium/cortextos/agent-migration.
Agent Migration Skill
Port any existing agent workspace — cortextOS legacy, custom Claude setup, or any other agent system — into a cortextOS v2 agent. This skill is for the orchestrator. Run it when the user wants to bring an existing agent into the system.
Core Principle
Knowledge transfers. Behavior does not.
Extract durable facts, user preferences, domain expertise, skills, and documents from the old workspace. Write fresh v2 bootstrap files informed by that data. Do NOT copy-paste files wholesale — rewrite them in clean v2 format.
Phase 1: Audit the Source Workspace
Before touching anything, read and catalog what exists.
1a. Identify source location
1b. Catalog by category
Read each file type and note what exists:
| Category | Files to check | Port decision | |
|---|---|---|---|
| Bootstrap | IDENTITY.md, SOUL.md, MEMORY.md, GUARDRAILS.md, USER.md, GOALS.md, SYSTEM.md, TOOLS.md | Extract + rewrite | |
| Skills | .claude/skills/ or skills/ | Copy to .claude/skills/ | |
| CRM / contacts | crm/, contacts.json | Copy to crm/ | |
| Meetings / notes | meetings/, briefs/ | Copy preserving structure | |
| Documents / research | Any .md docs, outputs | Copy to docs/ with topic subfolders | |
| Config | config.json | Extract crons + approval rules | |
| Secrets / .env | .env | DO NOT copy — source fresh from user |
1c. Present audit to user
Tell the user what you found in each category and ask for confirmation before proceeding:
"Here's what [agent name] has and what I'd recommend porting: [breakdown by category]. Anything to add or remove?"
Phase 2: Create the New Agent
Get a Telegram bot token from the user (they must create via @BotFather). Get chat ID via getUpdates after user sends /start + any message.
Do NOT start the agent yet — pre-load files first.
Phase 3: Extract Knowledge (Read Before Writing)
Read these source files carefully before writing anything:
MEMORY.md → extract durable facts
Read the entire file. For each entry ask: Is this still true about the world? Or is it a patch for an old system bug?
Keep: User preferences, business facts, workflow rules the user set, contact info, system account details, discovered patterns that are genuinely useful.
Discard: Entries referencing old file paths, old bus scripts, old system internals, session-specific state, error workarounds.
Rewrite kept entries as clean bullet points in the new agent's MEMORY.md.
GUARDRAILS.md → selective port
Read each row. For each ask: Did the user set this rule, or did the agent add it because of a system bug?
Keep: Rows that encode the user's explicit preferences (e.g. "always approval before external comms", "never email customers without approval").
Discard: Rows that reference old bus scripts, old file paths, or are clearly bug-workarounds (e.g. "always use X script instead of Y because Y crashes").
Add kept rows to the new agent's GUARDRAILS.md domain section.
USER.md → port fully
This is pure knowledge about the user. Port all of it. Rewrite in v2 USER.md format. Remove any section that references old system internals or stale state.
IDENTITY.md → port role, vibe, work style
Extract: name, role, emoji, vibe, work style bullets. Rewrite in v2 IDENTITY.md format. Update any references from old orchestrator name to new orchestrator name (e.g. boss → boss2).
SOUL.md → write fresh, inform with old
Do NOT copy the old SOUL.md. The v2 SOUL.md template is better. Only extract:
- Day/night mode hours (if explicitly set by user)
- Any autonomy rules the user explicitly configured
Write these into the new v2 SOUL.md.
config.json → extract crons
Read the old crons array. Port crons that represent user-defined schedules (inbox triage intervals, calendar checks, etc.). Update skill paths from skills/ to .claude/skills/. Do NOT port crons that reference old bus scripts by path.
Phase 4: Copy Files
Skills
Standard v2 skills (tasks, comms, heartbeat, cron-management, etc.) are already in the template — do not overwrite them with old versions.
CRM
Meetings
Preserve the existing category structure (e.g. business/, personal/, etc.).
Documents
Rule: one subfolder per distinct topic. If unsure, ask the user. Do not dump everything into docs/ root.
Phase 5: Write Bootstrap Files
Write each file fresh. Do not copy-paste from source. Rewrite using extracted knowledge.
goals.json
SOUL.md
Update the day/night placeholders and any autonomy rules:
Phase 6: KB Ingestion
After all files are copied:
Phase 7: Boot + Onboarding
Send a workspace orientation message via the bus. This is the first message the agent will receive. It must instruct the agent to read the entire migrated workspace before doing anything else — including before contacting the user — and then run a migration-aware onboarding:
Log the dispatch:
Update SYSTEM.md team roster:
Decision Reference: What to Port
| Item | Port? | How | |
|---|---|---|---|
| MEMORY.md facts | Selectively | Extract durable facts, rewrite clean | |
| GUARDRAILS.md rows | Selectively | Keep user-set rules, discard bug patches | |
| USER.md | Yes (fully) | Rewrite in v2 format | |
| IDENTITY.md | Yes (role/vibe/style) | Rewrite in v2 format | |
| SOUL.md | No — write fresh | Only extract day/night hours + explicit autonomy rules | |
| TOOLS.md | No — use v2 template | Template is better | |
| Domain skills (.claude/skills/) | Yes | Copy directly | |
| CRM / contacts | Yes | Copy directly | |
| Meetings / briefs | Yes | Copy, preserve structure | |
| Documents / research | Yes | Copy, organize into docs/topic/ subfolders | |
| config.json crons | Selectively | Port user-defined schedules, update paths | |
| .env (tokens/secrets) | Never | Source fresh from user | |
| Daily memory files | No | These are session logs — discard | |
| Old bus script references | Never | Update all paths to v2 cortextos bus commands |
Notes
- Always present the audit to the user before executing — confirm what to include/exclude
- If the source uses old bash bus scripts (
bus/send-message.sh, etc.), translate all commands tocortextos bus <command>equivalents - If the source workspace has custom tools or MCP configs, check with user whether to port them
- The permission-prompt issue (agent getting stuck at file edit approval dialog) is fixed in v2 via pre-approved .claude settings — verify the new agent's .claude/settings.json allows edits
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtemplates/orchestrator/.claude/skills/agent-migration/SKILL.md
Popularity
- Repository stars
- 78
- Repository forks
- 96
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 15 Jul 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/grandamenium/cortextos/agent-migration)