-
Notifications
You must be signed in to change notification settings - Fork 8
Add Arm Migration prompt files for various AI agents #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
73c0e10
Add Arm migration prompt file for VS Code agent
jaidev17 db98d40
Add arm-migration.md prompt file for codex
jaidev17 36c48f4
Add kiro arm migration prompt file
jaidev17 6afb82a
Add cursor arm migration command file
jaidev17 1520887
Add windsurf arm migration prompt file
jaidev17 f9c18e2
Add Windsurf arm-migration workflow prompt file
jaidev17 598f4a3
Rename folder from agent-specific-prompt-files to agent-integrations
jaidev17 79e502b
Add antigravity arm-migration documentation
jaidev17 0f47859
Update antigravity arm-migration documentation
jaidev17 855dd9e
adding slash command file (toml) for gemini cli
jaidev17 363285e
Codex - Add instructions on how to install Arm MCP server, if it is a…
jaidev17 c687a9b
Fixing formatting issues in prompt files.
jaidev17 016cc21
adding agent install instructions markdown file and edit codex prompt…
jaidev17 a103d92
fixing typos; syntax for json and toml
jaidev17 a01275c
adding json comment
jaidev17 97df715
Apply suggestions from code review
jaidev17 1e5244c
add missing data to kiro prompt files
jaidev17 ed4f774
add new line at end
jaidev17 4c07a8e
Apply suggestions from code review
jaidev17 c003410
pull latest docker image
jaidev17 99b9598
Add arm-mcp verification to agent prompts
jaidev17 3e1e01e
Update agent-integrations/windsurf/arm-migration.md
jaidev17 47f5eb0
Update agent-integrations/vs-code/arm-migration.prompt.md
jaidev17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # Arm MCP Server Installation | ||
|
|
||
| Search online for the latest MCP configuration instructions for your agent, then configure the Arm MCP server using the Docker image. | ||
|
|
||
| Pull the Docker image: | ||
|
|
||
| ``` | ||
| docker pull armlimited/arm-mcp:latest | ||
| ``` | ||
|
jaidev17 marked this conversation as resolved.
|
||
|
|
||
| Use the following command and args in your MCP configuration (adjusting the format as required by your agent): | ||
|
|
||
| For JSON-based configurations: | ||
|
|
||
| ```json | ||
| { | ||
| "command": "docker", | ||
| "args": [ | ||
| "run", | ||
| "--rm", | ||
| "-i", | ||
| "--pull=always", | ||
| "-v", "/path/to/your/workspace:/workspace", | ||
| "--name", "arm-mcp", | ||
| "armlimited/arm-mcp:latest" | ||
| ] | ||
|
jaidev17 marked this conversation as resolved.
|
||
| } | ||
| ``` | ||
|
|
||
| For TOML-based configurations: | ||
|
|
||
| ```toml | ||
| [mcp_servers."arm-mcp"] | ||
| type = "stdio" | ||
| command = "docker" | ||
| args = [ | ||
| "run", | ||
| "--rm", | ||
| "-i", | ||
| "--pull=always", | ||
| "-v", | ||
| "/path/to/your/workspace:/workspace", | ||
|
jaidev17 marked this conversation as resolved.
|
||
| "--name", | ||
| "arm-mcp", | ||
| "armlimited/arm-mcp:latest", | ||
| ] | ||
| ``` | ||
|
|
||
| Replace `/path/to/your/workspace` with the absolute path to the project you want to migrate. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <!-- | ||
| Place this file at .agent/workflows/arm-migration.md in your workspace. | ||
| Invoke using /arm-migration | ||
| --> | ||
| --- | ||
| description: Scan a project and migrate to Arm architecture | ||
| --- | ||
|
|
||
| Before starting, verify that the `arm-mcp` MCP server is installed and available. If you don't have access to the arm-mcp tools (skopeo, check_image, knowledge_base_search, migrate_ease_scan, mca, sysreport_instructions), refer to the [MCP Server Installation Guide](https://github.com/arm/mcp/blob/main/agent-integrations/agent-install-instructions.md) to install it on antigravity. | ||
|
|
||
| Your goal is to migrate a codebase from x86 to Arm. Use the mcp server tools to help you with this. Check for x86-specific dependencies (such as build flags, intrinsics, and libraries) and change them to Arm architecture equivalents, ensuring compatibility and optimizing performance. Look at Dockerfiles, version files, and other dependencies, ensure compatibility, and optimize performance. | ||
|
|
||
| # Steps | ||
|
jaidev17 marked this conversation as resolved.
|
||
| * Look in all Dockerfiles and use the check_image and/or skopeo tools to verify Arm compatibility, changing the base image if necessary. | ||
| * Look at the packages installed by the Dockerfile and send each package to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the contents of any requirements.txt files line-by-line and send each line to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the codebase that you have access to, and determine what the language used is. | ||
| * Run the migrate_ease_scan tool on the codebase, using the appropriate language scanner based on what language the codebase uses, and apply the suggested changes. Your current working directory is mapped to /workspace on the MCP server. | ||
| * OPTIONAL: If you have access to build tools, rebuild the project for Arm, if you're running on an Arm-based runner. Fix any compilation errors. | ||
| * OPTIONAL: If you have access to any benchmarks or integration tests for the codebase, run these and report the timing improvements to the user. | ||
|
|
||
| # Pitfalls to avoid | ||
|
|
||
| * Don't confuse a software version with a language wrapper package version. For example, when checking the Python Redis client, check the Python package name "redis" rather than the Redis server version. Setting the Python Redis package version to the Redis server version in requirements.txt will fail. | ||
| * NEON lane indices must be compile-time constants, not variables. | ||
| * If you're unsure about Arm equivalents, use knowledge_base_search to find documentation. | ||
| * Be sure to find out from the user or system what the target machine is, and use the appropriate intrinsics. For instance, if neoverse (Graviton, Axion, Cobalt) is targeted, use the latest SME/SME2. | ||
|
|
||
| If you have good versions to update for the Dockerfile, requirements.txt, and other files, change them immediately without asking for confirmation. | ||
|
|
||
| Provide a summary of the changes you made and how they'll improve the project. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <!-- Place this prompt file at ~/.codex/prompts/arm-migration.md to enable it. | ||
| Invoke using /prompts:arm-migration in the codex chat. | ||
| --> | ||
| --- | ||
| description: Scan a project and migrate to Arm architecture | ||
| --- | ||
|
|
||
| Before starting, verify that the `arm-mcp` MCP server is installed and available. If you don't have access to the arm-mcp tools (skopeo, check_image, knowledge_base_search, migrate_ease_scan, mca, sysreport_instructions), refer to the [MCP Server Installation Guide](https://github.com/arm/mcp/blob/main/agent-integrations/agent-install-instructions.md) to install it on codex. | ||
|
|
||
| Your goal is to migrate a codebase from x86 to Arm. Use the mcp server tools to help you with this. Check for x86-specific dependencies (such as build flags, intrinsics, and libraries) and change them to Arm architecture equivalents, ensuring compatibility and optimizing performance. Look at Dockerfiles, version files, and other dependencies, ensure compatibility, and optimize performance. | ||
|
|
||
| Steps to follow: | ||
| * Look in all Dockerfiles and use the check_image and/or skopeo tools to verify Arm compatibility, changing the base image if necessary. | ||
| * Look at the packages installed by the Dockerfile and send each package to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the contents of any requirements.txt files line-by-line and send each line to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the codebase that you have access to, and determine what the language used is. | ||
| * Run the migrate_ease_scan tool on the codebase, using the appropriate language scanner based on what language the codebase uses, and apply the suggested changes. Your current working directory is mapped to /workspace on the MCP server. | ||
| * OPTIONAL: If you have access to build tools, rebuild the project for Arm, if you're running on an Arm-based runner. Fix any compilation errors. | ||
| * OPTIONAL: If you have access to any benchmarks or integration tests for the codebase, run these and report the timing improvements to the user. | ||
|
|
||
| Pitfalls to avoid: | ||
|
|
||
| * Don't confuse a software version with a language wrapper package version. For example, when checking the Python Redis client, check the Python package name "redis" rather than the Redis server version. Setting the Python Redis package version to the Redis server version in requirements.txt will fail. | ||
| * NEON lane indices must be compile-time constants, not variables. | ||
| * If you're unsure about Arm equivalents, use knowledge_base_search to find documentation. | ||
| * Be sure to find out from the user or system what the target machine is, and use the appropriate intrinsics. For instance, if neoverse (Graviton, Axion, Cobalt) is targeted, use the latest SME/SME2. | ||
|
|
||
| If you have good versions to update for the Dockerfile, requirements.txt, and other files, change them immediately without asking for confirmation. | ||
|
|
||
| Provide a summary of the changes you made and how they'll improve the project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| <!-- | ||
| Place this file at .cursor/commands/arm-migration.md in your workspace | ||
| Invoke in chat: /arm-migration | ||
| --> | ||
|
|
||
| Before starting, verify that the `arm-mcp` MCP server is installed and available. If you don't have access to the arm-mcp tools (skopeo, check_image, knowledge_base_search, migrate_ease_scan, mca, sysreport_instructions), refer to the [MCP Server Installation Guide](https://github.com/arm/mcp/blob/main/agent-integrations/agent-install-instructions.md) to install it on cursor. | ||
|
|
||
| Your goal is to migrate a codebase from x86 to Arm. Use the mcp server tools to help you with this. Check for x86-specific dependencies (such as build flags, intrinsics, and libraries) and change them to Arm architecture equivalents, ensuring compatibility and optimizing performance. Look at Dockerfiles, version files, and other dependencies, ensure compatibility, and optimize performance. | ||
|
|
||
| Steps to follow: | ||
| * Look in all Dockerfiles and use the check_image and/or skopeo tools to verify Arm compatibility, changing the base image if necessary. | ||
| * Look at the packages installed by the Dockerfile and send each package to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the contents of any requirements.txt files line-by-line and send each line to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the codebase that you have access to, and determine what the language used is. | ||
| * Run the migrate_ease_scan tool on the codebase, using the appropriate language scanner based on what language the codebase uses, and apply the suggested changes. Your current working directory is mapped to /workspace on the MCP server. | ||
| * OPTIONAL: If you have access to build tools, rebuild the project for Arm, if you're running on an Arm-based runner. Fix any compilation errors. | ||
| * OPTIONAL: If you have access to any benchmarks or integration tests for the codebase, run these and report the timing improvements to the user. | ||
|
|
||
| Pitfalls to avoid: | ||
|
|
||
| * Don't confuse a software version with a language wrapper package version. For example, when checking the Python Redis client, check the Python package name "redis" rather than the Redis server version. Setting the Python Redis package version to the Redis server version in requirements.txt will fail. | ||
| * NEON lane indices must be compile-time constants, not variables. | ||
| * If you're unsure about Arm equivalents, use knowledge_base_search to find documentation. | ||
| * Be sure to find out from the user or system what the target machine is, and use the appropriate intrinsics. For instance, if neoverse (Graviton, Axion, Cobalt) is targeted, use the latest SME/SME2. | ||
|
|
||
| If you have good versions to update for the Dockerfile, requirements.txt, and other files, change them immediately without asking for confirmation. | ||
|
|
||
| Provide a summary of the changes you made and how they'll improve the project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Gemini CLI Custom Slash Command: /arm-migration | ||
| # | ||
| # Location: Place this file in your project's .gemini/commands/ directory | ||
| # For project-scoped: <project>/.gemini/commands/arm-migration.toml | ||
| # For user-scoped: ~/.gemini/commands/arm-migration.toml | ||
| # | ||
| # Usage: Run the command in Gemini CLI by typing: | ||
| # /arm-migration | ||
|
|
||
| description = "Migrates a codebase from x86 to Arm architecture with compatibility checks and optimizations." | ||
|
|
||
| prompt = """ | ||
| Before starting, verify that the `arm-mcp` MCP server is installed and available. If you don't have access to the arm-mcp tools (skopeo, check_image, knowledge_base_search, migrate_ease_scan, mca, sysreport_instructions), refer to the [MCP Server Installation Guide](https://github.com/arm/mcp/blob/main/agent-integrations/agent-install-instructions.md) to install it on gemini. | ||
|
|
||
| Your goal is to migrate a codebase from x86 to Arm. Use the mcp server tools to help you with this. Check for x86-specific dependencies (such as build flags, intrinsics, and libraries) and change them to Arm architecture equivalents, ensuring compatibility and optimizing performance. Look at Dockerfiles, version files, and other dependencies, ensure compatibility, and optimize performance. | ||
|
|
||
| Steps to follow: | ||
| * Look in all Dockerfiles and use the check_image and/or skopeo tools to verify Arm compatibility, changing the base image if necessary. | ||
| * Look at the packages installed by the Dockerfile and send each package to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the contents of any requirements.txt files line-by-line and send each line to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the codebase that you have access to, and determine what the language used is. | ||
| * Run the migrate_ease_scan tool on the codebase, using the appropriate language scanner based on what language the codebase uses, and apply the suggested changes. Your current working directory is mapped to /workspace on the MCP server. | ||
| * OPTIONAL: If you have access to build tools, rebuild the project for Arm, if you're running on an Arm-based runner. Fix any compilation errors. | ||
| * OPTIONAL: If you have access to any benchmarks or integration tests for the codebase, run these and report the timing improvements to the user. | ||
|
|
||
| Pitfalls to avoid: | ||
|
|
||
| * Don't confuse a software version with a language wrapper package version. For example, when checking the Python Redis client, check the Python package name "redis" rather than the Redis server version. Setting the Python Redis package version to the Redis server version in requirements.txt will fail. | ||
| * NEON lane indices must be compile-time constants, not variables. | ||
| * If you're unsure about Arm equivalents, use knowledge_base_search to find documentation. | ||
| * Be sure to find out from the user or system what the target machine is, and use the appropriate intrinsics. For instance, if neoverse (Graviton, Axion, Cobalt) is targeted, use the latest SME/SME2. | ||
|
|
||
| If you have good versions to update for the Dockerfile, requirements.txt, and other files, change them immediately without asking for confirmation. | ||
|
|
||
| Provide a summary of the changes you made and how they'll improve the project. | ||
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <!-- | ||
| Place this file at .kiro/steering/arm-migration.md in your workspace. | ||
| Invoke using #arm-migration | ||
| --> | ||
| --- | ||
| inclusion: always | ||
| --- | ||
|
|
||
| Before starting, verify that the `arm-mcp` MCP server is installed and available. If you don't have access to the arm-mcp tools (skopeo, check_image, knowledge_base_search, migrate_ease_scan, mca, sysreport_instructions), refer to the [MCP Server Installation Guide](https://github.com/arm/mcp/blob/main/agent-integrations/agent-install-instructions.md) to install it on kiro. | ||
|
|
||
| Your goal is to migrate a codebase from x86 to Arm. Use the MCP server tools to help you with this. Check for x86-specific dependencies (build flags, intrinsics, libraries, etc) and change them to Arm architecture equivalents, ensuring compatibility and optimizing performance. Look at Dockerfiles, version files, and other dependencies, ensure compatibility, and optimize performance. | ||
|
|
||
| Steps to follow: | ||
| * Look in all Dockerfiles and use the check_image and/or skopeo tools to verify Arm compatibility, changing the base image if necessary. | ||
| * Look at the packages installed by the Dockerfile and send each package to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the contents of any requirements.txt files line-by-line and send each line to the knowledge_base_search tool to check each package for Arm compatibility. If a package isn't compatible, change it to a compatible version. When invoking the tool, explicitly ask "Is [package] compatible with Arm architecture?" where [package] is the name of the package. | ||
| * Look at the codebase that you have access to, and determine what the language used is. | ||
| * Run the migrate_ease_scan tool on the codebase, using the appropriate language scanner based on what language the codebase uses, and apply the suggested changes. Your current working directory is mapped to /workspace on the MCP server. | ||
| * OPTIONAL: If you have access to build tools, rebuild the project for Arm, if you're running on an Arm-based runner. Fix any compilation errors. | ||
| * OPTIONAL: If you have access to any benchmarks or integration tests for the codebase, run these and report the timing improvements to the user. | ||
|
|
||
| Pitfalls to avoid: | ||
|
|
||
| * Don't confuse a software version with a language wrapper package version. For example, when checking the Python Redis client, check the Python package name "redis" rather than the Redis server version. Setting the Python Redis package version to the Redis server version in requirements.txt will fail. | ||
| * NEON lane indices must be compile-time constants, not variables. | ||
| * If you're unsure about Arm equivalents, use knowledge_base_search to find documentation. | ||
| * Be sure to find out from the user or system what the target machine is, and use the appropriate intrinsics. For instance, if neoverse (Graviton, Axion, Cobalt) is targeted, use the latest SME/SME2. | ||
|
|
||
| If you have good versions to update for the Dockerfile, requirements.txt, and other files, change them immediately without asking for confirmation. | ||
|
|
||
| Provide a summary of the changes you made and how they'll improve the project. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.