Remote work

From rysweet/amplihack · View interactive version

Remote work is an AI agent skill from the GitHub repository rysweet/amplihack. Execute amplihack work on remote Azure VMs with automatic region and resource selection

How to use this skill

Skill file

Remote Work Skill

Execute amplihack tasks on remote Azure VMs using the /amplihack:remote command.

When to Use

Use this skill when you want to:

How It Works

When you say things like:

I will:

  1. Extract your task description
  2. Detect region preferences (if mentioned)
  3. Recommend appropriate VM size based on task complexity
  4. Execute /amplihack:remote with proper options
  5. Guide you on accessing results

Region Detection

I automatically detect Azure regions from your request:

VM Size Recommendations

Based on your task complexity keywords:

Small (size s): Quick analysis, simple fixes

Medium (size m): Standard development work

Large (size l): Complex refactoring, large codebases

Extra Large (size xl): Intensive compute tasks

Instructions

When activated:

  1. Parse the user's request to extract:
  1. Determine VM size based on keywords:
  1. Construct the command:

```

/amplihack:remote --region {region} --vm-size {size} auto "{task}"

```

If no region mentioned, omit --region (uses azlin default)

  1. Execute the command using the SlashCommand tool
  1. Guide the user on next steps:

Examples

Example 1: Simple with Region

User: "Run this analysis remotely on an eastus VM"

Your Response:

I'll execute this analysis on a remote Azure VM in eastus.

Detected:
- Task: analysis work
- Region: eastus
- Size: s (small - suitable for analysis)

Executing: /amplihack:remote --region eastus --vm-size s auto "analysis work"

Then use SlashCommand tool to execute it.

Example 2: Large Refactoring

User: "I need to offload this comprehensive refactoring to Azure, use westus2"

Your Response:

I'll execute this comprehensive refactoring on a remote Azure VM in westus2.

Detected:
- Task: comprehensive refactoring
- Region: westus2
- Size: l (large - for comprehensive work)

Executing: /amplihack:remote --region westus2 --vm-size l auto "comprehensive refactoring"

Example 3: No Region Specified

User: "Run this remotely"

Your Response:

I'll execute this task on a remote Azure VM using your default region.

Detected:
- Task: [extract from context]
- Region: default (from azlin config)
- Size: m (medium - standard)

Executing: /amplihack:remote --vm-size m auto "[task]"

Result Integration

After execution completes, guide the user:

Remote execution complete!

Results:
- Logs: .claude/runtime/logs/remote/
- Branches: Check `git branch -r | grep remote-exec`
- Integration: Review changes and merge if ready

To view logs:
  cat .claude/runtime/logs/remote/remote-exec-*.log

To merge remote changes:
  git fetch
  git merge remote-exec/main

Error Handling

If the command fails, explain common issues:

Secrets Detected:

"Remote execution blocked - secrets found in repository. Please remove hardcoded secrets and use .env files instead."

Azlin Not Configured:

"Azlin is not configured. Please run: azlin configure"

Timeout:

"Task timed out. The VM has been preserved for inspection. Use azlin connect <vm-name> to investigate."

Best Practices

Remind users:

Token Budget

See Also

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.