Agent skill

Build Agent Msi

by Devolutions in Devolutions/devolutions-gateway

Build the Devolutions Agent Windows MSI installer locally. An agent skill from Devolutions/devolutions-gateway.

Apache-2.0Auto-check passedDevelopment

Install Build Agent Msi

skills CLI
$ npx skills add Devolutions/devolutions-gateway --skill build-agent-msi -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Devolutions/devolutions-gateway build-agent-msi --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Devolutions/devolutions-gateway.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/build-agent-msi .claude/skills/build-agent-msi && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
build-agent-msi
GitHub stars
161
Token cost
~1.5k tokens
SKILL.md length
329 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

Build the Devolutions Agent Windows MSI installer locally. An agent skill from Devolutions/devolutions-gateway.

  • Works in 5 steps: Build Rust Binaries → Download tun2socks and wintun → Download multi-pwsh → …
  • Rebuild the agent MSI
  • SKILL.md covers Required Tools, Important Notes, Step 1 — Build Rust Binaries and Step 2 — Download tun2socks…, plus 5 more sections
  • Calls cargo, dotnet and pwsh

What it does

Build Agent Msi is an agent skill from Devolutions/devolutions-gateway. Build the Devolutions Agent Windows MSI installer locally. Use when asked to build, compile, or rebuild the agent MSI.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Rust. The repository describes itself as: A blazing fast relay server adaptable to different protocols and desired levels of traffic inspection. The licence is Apache-2.0.

When your agent uses it

  • Rebuild the agent MSI

Example prompts

  • “/build-agent-msi”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Build Rust Binaries
  2. Download tun2socks and wintun
  3. Download multi-pwsh
  4. Build the .NET DesktopAgent
  5. Build the MSI

What it can do on your machine

Read from SKILL.md and the folder at commit 81a3141. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo
    • dotnet
    • pwsh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Build Agent Msi loads about 1.5k tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 329 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Devolutions/devolutions-gateway at commit 81a3141, republished under its Apache-2.0 licence (© Devolutions). 329 words, ~1,497 tokens.

Download SKILL.mdSave it as .claude/skills/build-agent-msi/SKILL.md (or your agent's skills folder).
name
build-agent-msi
description
Build the Devolutions Agent Windows MSI installer locally. Use when asked to build, compile, or rebuild the agent MSI.

Build Devolutions Agent MSI Locally

Required Tools

  • MSBuild — VS 2022: C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\MSBuild.exe
  • MakeAppx.exe — Windows SDK: C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\MakeAppx.exe
  • Rust/cargo

Important Notes

  • Static CRT is required. Local builds do NOT link the CRT statically by default, but CI does. Without +crt-static, the binary fails at runtime with exit code -1073741515 (0xC0000135, DLL not found) on any machine that doesn't have the MSVC redistributable installed — including fresh VMs. Always set $Env:RUSTFLAGS = "-C target-feature=+crt-static" before cargo build.

  • devolutions-agent-updater is NOT a separate package. It is a [[bin]] target inside the devolutions-agent package (see devolutions-agent/Cargo.toml). Building -p devolutions-agent produces both devolutions-agent.exe and devolutions-agent-updater.exe. Do NOT use -p devolutions-agent-updater — it will fail with "package ID specification did not match any packages".

  • PEDM shell extension MSIX only builds in debug profile. The MakeAppx step is not wired into the release build. Always point DAGENT_PEDM_SHELL_EXT_MSIX at target\debug\DevolutionsPedmShellExt.msix even when building a release MSI.

  • MSI version encoding. The MSI product version must have a major component < 256, so the year prefix 20 must be stripped: 2026.1.0 → 26.1.0. The registry decoder adds 2000 back.

  • MSBuild output filename. MSBuild writes Release\DevolutionsAgent.msi. Rename it to the versioned form (DevolutionsAgent-x86_64-<version>.msi) after the build if needed for distribution.

Step 1 — Build Rust Binaries

powershell
cd D:\devolutions-gateway
$Env:PATH += ";C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64"  # needed for PEDM MSIX
$Env:RUSTFLAGS = "-C target-feature=+crt-static"                              # required — matches CI
cargo build --release -p devolutions-agent -p devolutions-session
cargo build -p devolutions-pedm-shell-ext  # debug only — MSIX step not wired into release profile
# devolutions-agent-updater.exe is produced automatically alongside devolutions-agent.exe

Step 2 — Download tun2socks and wintun

powershell
cd D:\devolutions-gateway
pwsh ci/download-tun2socks.ps1
# Produces: tun2socks.exe and wintun.dll in the repo root

Step 3 — Download multi-pwsh

powershell
cd D:\devolutions-gateway
.\ci\download-multi-pwsh.ps1 -Architecture x64 -Destination "D:\devolutions-gateway\multi-pwsh"

Step 4 — Build the .NET DesktopAgent

powershell
cd D:\devolutions-gateway\dotnet\DesktopAgent
dotnet build
# Output: bin\Debug\net48\DevolutionsDesktopAgent.exe

Step 5 — Build the MSI

powershell
cd D:\devolutions-gateway\package\AgentWindowsManaged

$base = "D:\devolutions-gateway"
$Env:DAGENT_EXECUTABLE          = "$base\target\release\devolutions-agent.exe"
$Env:DAGENT_UPDATER_EXECUTABLE  = "$base\target\release\devolutions-agent-updater.exe"
$Env:DAGENT_PEDM_SHELL_EXT_DLL  = "$base\target\release\devolutions_pedm_shell_ext.dll"
$Env:DAGENT_PEDM_SHELL_EXT_MSIX = "$base\target\debug\DevolutionsPedmShellExt.msix"  # always debug
$Env:DAGENT_SESSION_EXECUTABLE  = "$base\target\release\devolutions-session.exe"
$Env:DAGENT_TUN2SOCKS_EXE       = "$base\tun2socks.exe"
$Env:DAGENT_WINTUN_DLL          = "$base\wintun.dll"
$Env:DAGENT_MULTI_PWSH_EXECUTABLE = "$base\multi-pwsh\multi-pwsh.exe"
$Env:DAGENT_DESKTOP_AGENT_PATH  = "$base\dotnet\DesktopAgent\bin\Debug\net48"
$version = (Get-Content "$base\VERSION" -Raw).Trim()
if ($version.StartsWith("20")) { $version = $version.Substring(2) }  # strip century: 2026.1.0 → 26.1.0
$Env:DAGENT_VERSION  = $version
$Env:DAGENT_PLATFORM = "x64"

& "C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\MSBuild.exe" DevolutionsAgent.sln /t:clean,restore,build /p:Configuration=Release /verbosity:minimal

Output: package/AgentWindowsManaged/Release/DevolutionsAgent.msi

Optionally rename to a versioned filename and compute the SHA-256 (needed for productinfo.json):

powershell
$msi = "D:\devolutions-gateway\package\AgentWindowsManaged\Release\DevolutionsAgent.msi"
$versioned = "D:\devolutions-gateway\package\AgentWindowsManaged\Release\DevolutionsAgent-x86_64-20$($Env:DAGENT_VERSION).0.msi"
Copy-Item $msi $versioned -Force
$hash = (Get-FileHash $versioned -Algorithm SHA256).Hash
$hash | Set-Content "$([System.IO.Path]::ChangeExtension($versioned, 'sha'))"

Installing the MSI

Always install with administrator rights. Double-clicking the MSI from Explorer runs the installer under an impersonated (non-elevated) token, which causes Error code 5 or silent failures in custom actions that require elevation.

Install from an already-elevated PowerShell prompt:

powershell
# Option 1 — msiexec with log (recommended for debugging)
msiexec /i "C:\path\to\DevolutionsAgent-x86_64-2026.1.0.0.msi" /l*v "C:\path\to\log.log"

# Option 2 — silent install
msiexec /i "C:\path\to\DevolutionsAgent-x86_64-2026.1.0.0.msi" /quiet

Common Build Failures

Missing WixSharp.wix.bin NuGet Package
powershell
cd D:\devolutions-gateway\package\AgentWindowsManaged
dotnet add package WixSharp.wix.bin --prerelease
# Must match the WixSharp version (3.14.1)
MakeAppx Not Found During PEDM Shell Ext Build
powershell
$Env:PATH += ";C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64"
0xC0000135 / Exit Code -1073741515 at Runtime

The binary was built without static CRT. Rebuild with $Env:RUSTFLAGS = "-C target-feature=+crt-static" (see Step 1). This matches the CI build and eliminates the dependency on the MSVC redistributable.

© Devolutions, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/build-agent-msi of Devolutions/devolutions-gateway.

Open the folder on GitHubat commit 81a3141

Compare with similar skills

Build Agent Msi next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Build Agent Msi compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Build Agent Msi this skillDevolutions/devolutions-gateway161—~1.5kAutomated safety check: PassApache-2.0
Migrate Core Code to Submodulestinyhumansai/openhuman41k—~2.6kAutomated safety check: PassGPL-3.0
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
OpenLogi macOS Permissions TriageAprilNEA/OpenLogi23k—~2.5kAutomated safety check: NotesApache-2.0
RTK Rust Design Patternsrtk-ai/rtk83k—~1.9kAutomated safety check: PassApache-2.0
Release Skillsnexmoe/eve4213 repos~3.3kAutomated safety check: PassNone

Similar skills

  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    41k GitHub stars~2.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Decides whether an OpenLogi device problem on macOS is a privacy-permission (TCC) problem, using agent log lines, and says which identity needs which grant.

    23k GitHub stars~2.5k tokensUpdated 4 days ago
    DevelopmentAuto-check: notes
  • Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.

    83k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Release Skills

    nexmoe/eve

    Universal release workflow. An agent skill from nexmoe/eve.

    421 GitHub starsUsed in 3 repos~3.3k tokens
    DevelopmentAuto-check passed
  • Pnpm Engine

    teambit/bit

    Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.

    18k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from Devolutions/devolutions-gateway

All 19 skills in this repo
  • Tessl Skill Linting

    Devolutions/devolutions-gateway

    Review, lint, create, edit, refine, optimize, compress, or validate any agent skill in this repository, including any SKILL.md.

    161 GitHub stars~740 tokensUpdated yesterday
    Auto-check passed
  • Changelog To Jira

    Devolutions/devolutions-gateway

    Creates missing DGW Jira tickets from CHANGELOG.md entries and updates the file with the new ticket links.

    161 GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed
  • Commit And PR Conventions

    Devolutions/devolutions-gateway

    Follow the adopted commit and pull-request conventions. An agent skill from Devolutions/devolutions-gateway.

    161 GitHub stars~739 tokensUpdated yesterday
    Auto-check passed
  • Prepare Release

    Devolutions/devolutions-gateway

    Prepares a Devolutions Gateway / Devolutions Agent release commit: bumps the version, generates and inserts the changelog, creates Jira tickets, generates the ToolBox changelog, and produces the…

    161 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Build Gateway Msi

    Devolutions/devolutions-gateway

    Build the Devolutions Gateway Windows MSI installer locally.

    161 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check: warnings
  • Installer Localization

    Devolutions/devolutions-gateway

    Add or change Windows installer (MSI) strings or languages for Devolutions Gateway or Devolutions Agent.

    161 GitHub stars~618 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Build Agent Msi

What does Build Agent Msi do?

Build the Devolutions Agent Windows MSI installer locally. An agent skill from Devolutions/devolutions-gateway. Build Agent Msi is an agent skill from Devolutions/devolutions-gateway. Build the Devolutions Agent Windows MSI installer locally.

When should I use Build Agent Msi?

Build Agent Msi fits situations like: rebuild the agent MSI.

How do I install Build Agent Msi in Claude Code?

Run `npx skills add Devolutions/devolutions-gateway --skill build-agent-msi -a claude-code`. Or copy the skill folder (.agents/skills/build-agent-msi in Devolutions/devolutions-gateway) into .claude/skills/build-agent-msi in your project. Claude Code loads it when a task matches its description.

How do I install Build Agent Msi in Codex?

Run `npx skills add Devolutions/devolutions-gateway --skill build-agent-msi -a codex`. Or copy the skill folder (.agents/skills/build-agent-msi in Devolutions/devolutions-gateway) into .agents/skills/build-agent-msi in your project. Codex loads it when a task matches its description.

Can I use Build Agent Msi in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Devolutions/devolutions-gateway --skill build-agent-msi -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/build-agent-msi, .gemini/skills/build-agent-msi, .github/skills/build-agent-msi and .opencode/skills/build-agent-msi in your project.

What does Build Agent Msi need to run?

Going by SKILL.md and its folder, Build Agent Msi needs the command-line tools its instructions call (cargo, dotnet and pwsh).

Does Build Agent Msi access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Build Agent Msi safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Build Agent Msi use?

Build Agent Msi is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Build Agent Msi use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Build Agent Msi?

Skills that share tags, products or a category with Build Agent Msi: Migrate Core Code to Submodules (tinyhumansai/openhuman, 41k stars), Rust Best Practices (farm-fe/farm, 5.6k stars), OpenLogi macOS Permissions Triage (AprilNEA/OpenLogi, 23k stars) and RTK Rust Design Patterns (rtk-ai/rtk, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Build Agent Msi?

Devolutions (a GitHub organization) maintains it in Devolutions/devolutions-gateway, which has 161 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 6, 2026.

Source: Devolutions/devolutions-gateway on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.