Devin local migration

From tinh2/skills-hub-registry · View interactive version

Devin local migration is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Audits a repository for all Cascade (legacy Windsurf local agent) references and migrates them to Devin Local.

How to use this skill

Skill file

You are an autonomous migration agent. Audit the current repository for all Cascade references and produce a migration to Devin Local. Do not ask for confirmation — find, patch, and report.

TARGET:

$ARGUMENTS (defaults to current working directory if empty)

============================================================

PHASE 1: DISCOVERY

============================================================

Grep the repo for all Cascade references. Search these file types:

grep -rI \
  --include="*.yml" --include="*.yaml" \
  --include="*.sh" --include="Makefile" \
  --include="*.json" --include="*.md" \
  --include="*.toml" --include="*.env*" \
  -l "cascade" . 2>/dev/null | sort

Also check for binary references and hidden directories:

grep -rI --include="*.yml" --include="*.yaml" \
  --include="*.sh" --include="Makefile" \
  -n "cascade" . 2>/dev/null

Catalog all findings into three buckets:

BUCKET A — Safe string replacement

BUCKET B — Structural review needed

BUCKET C — Documentation only (low risk)

Output:

DISCOVERY REPORT
Total files with Cascade references: N
  Bucket A (safe replacement): N files
  Bucket B (structural review): N files
  Bucket C (docs only): N files

If total files = 0: output "No Cascade references found — migration already complete." and stop.

============================================================

PHASE 2: BUCKET A MIGRATION

============================================================

For each Bucket A file, apply these transformations:

  1. Binary/command references
  1. Agent name declarations
  1. Environment variables
  1. Path references
  1. GitHub Actions runner names

Apply changes with sed or direct file edits. Do not change comments or documentation (those are Bucket C).

After applying: run git diff --stat to show the scope of changes.

============================================================

PHASE 3: BUCKET B AUDIT

============================================================

For each Bucket B file:

  1. Open and read the full file
  2. Identify which Cascade-specific internals it uses:
  1. Assess rewrite complexity:

Output per file:

FILE: .windsurf/tools/my-tool.py
Complexity: Medium
Uses: cascade.on_tool_call hook
Devin Local equivalent: devin_local::hooks::on_tool_call (Rust FFI) or MCP tool (recommended)
Action required: Rewrite as MCP tool for language-agnostic integration

Recommended migration path for custom tools:

Rewrite Cascade Python tool definitions as MCP servers instead of Devin Local Rust FFI. MCP tools work across all agents (Devin Local, Claude Agent, Codex) and don't require rewriting when you switch agents again.

Template:

// .devin/tools/my-tool/mcp.json
{
  "name": "my-tool",
  "description": "What this tool does",
  "command": "node .devin/tools/my-tool/server.js",
  "protocol": "mcp"
}

============================================================

PHASE 4: ACP CONFIGURATION (OPTIONAL)

============================================================

If the repo has agent workflow rules that route to Cascade, check whether the team would benefit from ACP multi-agent routing to Devin Local + Claude Agent or Codex.

Look for routing rules in:

If found, generate a sample ACP routing config:

// .devin/agents/claude-agent.json
{
  "name": "claude-agent",
  "protocol": "acp",
  "command": "npx @anthropic-ai/claude-agent",
  "capabilities": ["code", "test", "review", "large-context"]
}
// .devin/agents/codex.json
{
  "name": "codex",
  "protocol": "acp",
  "command": "npx @openai/codex",
  "capabilities": ["code", "test"]
}

Output this as a recommendation, not an automatic change. Include a one-line explanation of when to route to each agent.

============================================================

PHASE 5: DOCUMENTATION UPDATES (BUCKET C)

============================================================

For each Bucket C file:

Do not alter CHANGELOG entries — those are historical records and should not be modified.

============================================================

PHASE 6: VALIDATION

============================================================

After applying all Bucket A changes:

  1. Run git diff — verify only expected files changed
  2. Check no new cascade references were introduced:

```shell

grep -rI --include=".yml" --include=".sh" --include="Makefile" "cascade" .

```

  1. If the repo has CI tests, run them:

```shell

# Detect CI test runner

if [ -f "package.json" ]; then pnpm test 2>/dev/null || npm test 2>/dev/null; fi

if [ -f "Makefile" ]; then make test 2>/dev/null; fi

```

  1. Verify the Devin Local binary is reachable if available:

```shell

which devin-local 2>/dev/null || echo "devin-local not in PATH — install via Devin Desktop"

```

============================================================

OUTPUT

============================================================

Devin Local Migration Report

Summary

Auto-patched files

[list each file with the change summary]

Manual review required

[list each Bucket B file with complexity rating and recommended action]

ACP routing opportunity

[present if routing rules were found, otherwise omit]

Validation

Next steps

  1. Review git diff before staging
  2. For Bucket B files: rewrite as MCP tools (recommended) or Devin Local Rust FFI
  3. Set DEVIN_LOCAL_API_KEY in your CI environment if CASCADE_API_KEY was used
  4. Update Devin Desktop to the latest version to get Devin Local
  5. Test your first Devin Local session interactively before relying on CI automation

============================================================

STRICT RULES

============================================================

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.