What problem does it solve?
This Skill provides canonical patterns and guardrails for writing, reviewing, and generating assembly language code for x86-64 and ARM64 architectures, ensuring correctness and adherence to best practices.
Core Features & Use Cases
- Architecture-Specific Patterns: Detailed examples for x86-64 (NASM/GAS) and ARM64 (AAPCS).
- Calling Conventions: Clear tables for register usage, argument passing, and return values.
- Core Patterns: Demonstrations of non-leaf/leaf functions, SIMD loops (SSE2/NEON), syscalls, and PIC.
- Code Style & Tooling: Rules for code structure, comments, naming, and a quick reference for common toolchain commands.
- Use Case: When implementing performance-critical routines in assembly, ensuring correct function prologues/epilogues, managing the stack, or interfacing with C code.
Quick Start
Use the asm-patterns skill to generate a non-leaf function prologue for x86-64 using NASM syntax.