← Back to list

config-migrator
by fractary
⭐ 4🍴 0📅 Jan 10, 2026
SKILL.md
name: config-migrator description: Migrates codex configuration files from v2.0 push-based sync to v3.0 pull-based retrieval format with automatic backups model: claude-haiku-4-5
Config Migrator Skill
<CRITICAL_RULES>
- ALWAYS create backup before modifying configuration
- NEVER overwrite without backup confirmation
- ALWAYS validate new configuration before saving
- STOP immediately if validation fails
- PRESERVE all settings - no data loss during migration </CRITICAL_RULES>
-
Analyze & Plan
- Extract v2.0 settings (organization, codex_repo, sync_patterns)
- Plan v3.0 structure with sources array
- Map sync_patterns to permission defaults if present
- Calculate what changes will be made
-
Create Backup
- Generate backup filename with timestamp
- Copy current config to backup location
- Verify backup created successfully
- Log backup path
-
Convert Configuration
- Build v3.0 config structure
- Add default source for codex repository
- Convert sync_patterns to permission guidance (as comment)
- Preserve organization, codex_repo, version fields
- Add performance defaults
-
Validate
- Check JSON syntax
- Verify required fields present
- Validate source configuration
- Test that config is loadable
-
Apply or Preview
- If
dry_run: show diff and exit - If not
dry_runand notskip_prompts: ask for confirmation - Write new configuration
- Verify write successful
- If
-
Test
- Attempt to load new configuration
- If test fails: restore from backup
- If test succeeds: report success
<COMPLETION_CRITERIA>
- Configuration successfully migrated OR dry-run preview shown
- Backup created (unless dry-run)
- Validation passed
- Migration summary provided </COMPLETION_CRITERIA>
./skills/config-migrator/scripts/migrate-config.sh "$config_path" "$dry_run" "$force" "$backup_path"
The script returns JSON output with migration results.
- Summary of what changed
- Backup location for rollback
- Next steps:
- Test retrieval:
/fractary-codex:fetch @codex/project/path - View cache:
/fractary-codex:cache-list - Read migration guide:
docs/MIGRATION-PHASE4.md
- Test retrieval:
- Rollback command if needed
<ERROR_HANDLING>
- Config not found: Inform user, ask if they want to create new v3.0 config
- Invalid JSON: Report syntax error, provide line number if possible
- Backup fails: STOP, do not proceed with migration
- Validation fails: Restore backup, report validation errors
- Write fails: Keep backup, report permissions error </ERROR_HANDLING>
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon