Skip to content

Firzus/agent-skills / skills/engineering/reverse-engineer

reverse-engineer

Verified

Reverse engineer shipped software quickly with compact, cited evidence. Covers Electron/asar apps, native PE/ELF/Mach-O binaries and Node addons, Go/Rust/.NET binaries, APKs and minified JS bundles. Use to explain how a feature works, trace IPC channels and native calls, extract versions and dependencies, or decompile one function.

FileKindSize
SKILL.mdskill md5.8 KB
references/install-tools.mdmarkdown3.3 KB
scripts/install-tools.ps1script3.6 KB
scripts/install-tools.shexecutablescript3.0 KB

scripts/install-tools.sh

View on GitHub
#!/bin/sh
# Installs optional third-party tools of the reverse-engineer skill into the per-user tools root
# ($REVERSE_ENGINEER_TOOLS, or the macOS/Linux default below). No admin rights, no PATH change:
# the reverse-engineer tools look there first. Needs curl, tar and unzip.
# Usage: sh install-tools.sh jdk ghidra jadx ilspycmd   (any subset)
set -eu

[ "$#" -gt 0 ] || { echo "usage: $0 jdk|ghidra|jadx|ilspycmd ..." >&2; exit 2; }
case "$(uname -s)" in
  Darwin) os=mac; default="$HOME/Library/Application Support/reverse-engineer/tools" ;;
  Linux) os=linux; default="${XDG_DATA_HOME:-$HOME/.local/share}/reverse-engineer/tools" ;;
  *) echo "unsupported system $(uname -s); on Windows use install-tools.ps1" >&2; exit 2 ;;
esac
root="${REVERSE_ENGINEER_TOOLS:-$default}"
case "$(uname -m)" in arm64 | aarch64) arch=aarch64 ;; *) arch=x64 ;; esac
tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT

# Prints the download URL of the latest release asset of $1 matching the regex $2.
# GH_TOKEN or GITHUB_TOKEN, when set, lifts the anonymous GitHub API limit (60 requests an hour per IP).
release() {
  api="https://api.github.com/repos/$1/releases/latest"
  token="${GH_TOKEN:-${GITHUB_TOKEN:-}}"
  if [ -n "$token" ]; then
    json="$(curl -fsSL -H "Authorization: Bearer $token" "$api")" || json=""
  else
    json="$(curl -fsSL "$api")" || json=""
  fi
  [ -n "$json" ] || { echo "cannot read the latest release of $1 (GitHub API rate limit? set GH_TOKEN)" >&2; exit 1; }
  url="$(printf '%s\n' "$json" | grep -o '"browser_download_url": *"[^"]*"' | cut -d'"' -f4 | grep -E "$2" | head -n 1)" || true
  [ -n "$url" ] || { echo "no release asset matching $2 in $1" >&2; exit 1; }
  printf '%s\n' "$url"
}

# Downloads $1 and extracts it into $2 (zip by extension, else tar.gz).
fetch() {
  curl -fsSL -o "$tmp/archive" "$1"
  mkdir -p "$2"
  case "$1" in
    *.zip) unzip -qo "$tmp/archive" -d "$2" ;;
    *) tar -xzf "$tmp/archive" -C "$2" ;;
  esac
  rm -f "$tmp/archive"
}

for tool in "$@"; do
  case "$tool" in
    jdk) fetch "https://api.adoptium.net/v3/binary/latest/21/ga/$os/$arch/jdk/hotspot/normal/eclipse" "$root" ;;
    ghidra)
      url="$(release NationalSecurityAgency/ghidra '\.zip$')"
      fetch "$url" "$root"
      ;;
    jadx)
      # The CLI archive, not jadx-gui.
      url="$(release skylot/jadx '/jadx-[0-9.]+\.zip$')"
      fetch "$url" "$root/jadx"
      chmod +x "$root/jadx/bin/jadx" "$root/jadx/bin/jadx-gui"
      ;;
    ilspycmd)
      # Reuse an installed .NET 10+ SDK, else install one into the tools root.
      if command -v dotnet >/dev/null 2>&1 && dotnet --list-sdks | grep -qE '^[1-9][0-9]\.'; then
        dotnet=dotnet
      else
        curl -fsSL -o "$tmp/dotnet-install.sh" https://dot.net/v1/dotnet-install.sh
        bash "$tmp/dotnet-install.sh" --channel 10.0 --install-dir "$root/dotnet"
        dotnet="$root/dotnet/dotnet"
      fi
      "$dotnet" tool update ilspycmd --tool-path "$root/dotnet-tools"
      ;;
    *) echo "unknown tool $tool (jdk, ghidra, jadx, ilspycmd)" >&2; exit 2 ;;
  esac
  echo "installed $tool into $root"
done
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall