AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Asm Assemble

skill-batteryshark-rekit-asm-assemble · by batteryshark

CONSTRUCT: assemble asm text (a file or --code) into machine-code bytes with the LLVM/clang integrated assembler — x64/x86/arm64/arm — emitted as hex, a C array, a raw blob, or JSON. Backed by clang (no fragile native python binding), so it works cross-arch anywhere clang does. The write-side partner of emulate-code: assemble a snippet, then run it on the virtual CPU. Transforms text→bytes; runs…

No reviews yet
0 installs
7 views
0.0% view→install

Install

$ agentstack add skill-batteryshark-rekit-asm-assemble

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-batteryshark-rekit-asm-assemble)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Asm Assemble? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Assembler (LLVM/clang)

🔨 Construct tier — produces bytes, runs nothing.

Role in the workflow

The write-side partner of emulate-code. Where that skill runs bytes on a virtual CPU, this one makes them: assemble a snippet, then emulate it — a tight write-shellcode → observe-behavior loop with no host execution at any point.

What it does

Assembles asm text (a file or --code "…") with the LLVM/clang integrated assembler for x64 / x86 / arm64 / arm, then extracts the raw .text bytes, emitted as:

  • hex (default) — a hex string
  • c — a ready-to-paste unsigned char shellcode[] = { … }; array (drop into a cc-build stub)
  • raw — the raw bytes (to --out, or stdout)
  • json{ok, arch, triple, length, hex, out?}

x86/x64 default to Intel syntax (--att for AT&T/GAS); ARM uses GAS syntax.

Toolchain choice

The LLVM assembler supports the target architectures anywhere clang runs. keystone-engine has no arm64 macOS wheel, which would make that alternative platform-dependent.

Prerequisites

  • clangxcode-select --install (macOS) or install clang/LLVM (Linux).
  • A section extractorotool (ships with Xcode CLT) on macOS, or

objcopy/llvm-objcopy/objdump on Linux. Checked flexibly; absent → honest hint.

Usage — the shellcode loop

rekit run asm-assemble --code "mov rax, 0x1337; mov [rsp], rax" --out sc.bin
rekit run emulate-code sc.bin            # ← run what you just assembled, contained
rekit run asm-assemble --code "mov x0, #0x1337" --arch arm64 --format hex
rekit run asm-assemble --code "xor eax,eax; ret" --arch x86 --format c   # C array for a stub

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.