| name | ecosystem-migration |
| description | Migrate existing repositories to use Personal GitHub Ecosystem templates and patterns. USE THIS SKILL when user says "migrate to ecosystem", "adopt templates", "convert workflow", "upgrade CI", or wants to transition existing projects. |
| allowed-tools | ["Bash","Read","Write","Edit","Glob","Grep"] |
Ecosystem Migration Skill
Purpose
Migrate existing repositories to use Personal GitHub Ecosystem templates and patterns, including workflow conversion and AI integration adoption.
Triggers
- "migrate this repo to the ecosystem"
- "adopt the python template"
- "convert to reusable workflows"
- "upgrade my CI to ecosystem standards"
- "add ecosystem AI integration"
Usage
Point this skill at an existing repository to assess its current state and receive a migration plan. Choose from full adoption, workflow-only, or incremental strategies based on project complexity.
Migration Assessment
[ -f "pyproject.toml" ] && echo "Python"
[ -f "package.json" ] && echo "Node.js"
[ -f "go.mod" ] && echo "Go"
[ -f "Cargo.toml" ] && echo "Rust"
[ -f "build.gradle.kts" ] && echo "Java"
ls -la .github/workflows/ 2>/dev/null
[ -f "CLAUDE.md" ] && echo "Has CLAUDE.md"
[ -f ".github/copilot-instructions.md" ] && echo "Has Copilot"
Migration Strategies
Strategy 1: Full Template Adoption
Best for: New-ish projects with minimal customization
mkdir -p .migration-backup
cp -r .github .migration-backup/
cp -r ~/ecosystem/templates/python-template/.github ./
cp ~/ecosystem/templates/python-template/CLAUDE.md ./
mkdir -p .vscode
cp ~/ecosystem/templates/python-template/.vscode/mcp.json .vscode/
Strategy 2: Workflow-Only Migration
Best for: Established projects wanting CI standardization
name: CI
on: [push, pull_request]
jobs:
ci:
uses: zircote/.github/.github/workflows/reusable-ci-python.yml@2192c47863886d7a867b5042fb08de414f948f49
with:
python-version: '3.12'
secrets: inherit
Strategy 3: Incremental Adoption
Best for: Large projects requiring careful migration
Phase 1: AI Integration
- Add CLAUDE.md
- Add copilot-instructions.md
- Add mcp.json
Phase 2: Standardize Tooling
- Update linter/formatter configs
Phase 3: Migrate Workflows
- Add reusable workflow alongside existing
- Test and validate
- Remove old workflow
Phase 4: Security Baseline
- Add pre-commit hooks
- Configure gitleaks
- Enable Dependabot
Adding AI Integration
cat > CLAUDE.md << 'EOF'
[Describe project]
```bash
[relevant commands]
```
[Document standards]
EOF
mkdir -p .github
cat > .github/copilot-instructions.md << 'EOF'
[Describe for Copilot]
[Language patterns]
EOF
Converting to Reusable Workflows
Before:
name: CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- run: pip install ruff && ruff check .
After:
name: CI
on: [push]
jobs:
ci:
uses: zircote/.github/.github/workflows/reusable-ci-python.yml@2192c47863886d7a867b5042fb08de414f948f49
Validation After Migration
for f in CLAUDE.md .github/copilot-instructions.md; do
[ -f "$f" ] && echo "✓ $f" || echo "✗ $f"
done
actionlint .github/workflows/*.yml
grep -rnE "uses:.*@(main|master|v[0-9])" .github/workflows/ || echo "all pinned"
Rollback Procedure
cp -r .migration-backup/.github ./
rm CLAUDE.md .github/copilot-instructions.md
git checkout HEAD~1 -- .github/workflows/
Migration Checklist
Pre-Migration
During Migration
Post-Migration