Skip to content

Garyson26/Trident-SecOps-Skills / skills/assembly-programming

assembly-programming

Unverified

Assembly programming and low-level debugging skill for reading, writing, explaining, optimizing, and reviewing assembly across x86, x86-64, ARM, AArch64, RISC-V, calling conventions, ABI boundaries, inline assembly, disassembly, stack frames, registers, and binary-level behavior. Use for .s/.asm files, compiler output, reverse-engineering snippets, low-level performance, and crash analysis.

Assembly Programming

Operating Rules

  • Identify architecture, bitness, syntax, ABI, OS, compiler, and optimization level before interpreting code.
  • Track register meaning, stack layout, flags, memory aliases, and call clobbers explicitly.
  • Prefer correctness and ABI compliance before micro-optimization.
  • For security-sensitive code, call out memory safety, control-flow integrity, and undefined behavior risks.

Workflow

  1. Establish target platform and syntax: Intel vs AT&T, GNU as vs NASM/MASM, ARM vs AArch64, etc.
  2. Map inputs, outputs, preserved registers, stack alignment, and external calls.
  3. Translate blocks into pseudocode before proposing edits.
  4. For edits, preserve calling convention, unwind expectations, and toolchain constraints.
  5. Recommend verification with assembler, unit tests, debugger traces, or compiler-generated comparison.

Review Checklist

  • Stack alignment is correct at calls.
  • Caller-saved and callee-saved registers are handled correctly.
  • Memory widths, sign extension, and endian assumptions are explicit.
  • Branch conditions match the intended signed or unsigned comparison.
  • Inline assembly constraints describe all inputs, outputs, clobbers, and memory effects.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 464kUpdated Claude CodeCodexVerifiedInstall
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 464kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 318kUpdated Claude CodeCodexUnverifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 318kUpdated Claude CodeCodexUnverifiedInstall