assembly-guide

Provide assembly language guardrails, patterns, and best practices for AI-assisted development.

7|1|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/ar4mirez/samuel --skill assembly-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assembly-guide
Source: https://github.com/ar4mirez/samuel/tree/main/template/.claude/skills/assembly-guide
Command: npx skills add https://github.com/ar4mirez/samuel --skill assembly-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides AI-assisted guardrails, patterns, and best practices for writing and debugging assembly language code, ensuring adherence to project standards and common architectures.

Core Features & Use Cases

  • ABI Compliance: Offers detailed guidelines for x86-64 System V ABI and ARM64 AAPCS.
  • Register Usage & Stack Management: Provides best practices for efficient register allocation and stack manipulation.
  • Debugging & Tooling: Includes GDB commands, objdump usage, and assembler/linker examples.
  • Use Case: When working on performance-critical routines or low-level system interactions, this Skill helps ensure your assembly code is correct, efficient, and maintainable.

Quick Start

Consult the assembly-guide skill for x86-64 calling convention details.

Frequently Asked Questions about assembly-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the x86-64 calling convention guidelines for assembly programming?

x86-64 calling convention guidelines define register usage and stack management for the System V ABI. Following these patterns ensures your assembly code correctly handles function arguments, return values, and maintains stack alignment during low-level interactions.

How do I debug assembly code with GDB and objdump?

Debugging assembly code with GDB and objdump allows you to inspect register states and disassemble binaries. These tools help identify low-level execution errors and verify instruction logic in performance-critical routines.

Does this assembly guide support ARM64 AAPCS standards?

Yes, the guide supports ARM64 AAPCS standards alongside x86-64 System V ABI. It provides detailed ABI compliance rules for both architectures to ensure correct register allocation and stack manipulation across different assembly file types.

What is the best way to manage registers and the stack in assembly?

The best way to manage registers and the stack is by following established calling conventions and allocation patterns. This ensures efficient register usage, prevents stack corruption, and maintains maintainability in performance-critical code.

When do I need to write assembly code for low-level system interactions?

You need to write assembly code for low-level system interactions when working on performance-critical routines or direct hardware control. It provides the precise memory and register manipulation required when high-level languages lack sufficient control.

Can I use AI guardrails to enforce coding standards in .asm and .s files?

Yes, AI guardrails can enforce coding standards in assembly files like .asm, .s, and .S. They provide best practices and pattern checks to ensure your code remains correct, efficient, and maintainable across different assembler and linker configurations.