Install
$ agentstack add skill-batteryshark-rekit-asm-assemble ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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 stringc— a ready-to-pasteunsigned char shellcode[] = { … };array (drop into acc-buildstub)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
- clang —
xcode-select --install(macOS) or install clang/LLVM (Linux). - A section extractor —
otool(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.
- Author: batteryshark
- Source: batteryshark/rekit
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.