Rust-based development guide for building 6502 disassembly tools and TUI interfaces.

Install

mkdir -p .claude/skills/coding && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9601" && unzip -o skill.zip -d .claude/skills/coding && rm skill.zip

Installs to .claude/skills/coding

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

coding — an agent skill by ricardoquesada.
42 chars · catalog descriptionno explicit “when” trigger
Advanced

Key capabilities

  • Disassemble 6502 code
  • Implement addressing modes
  • Build TUI with Ratatui

How it works

It uses bit-manipulation and Rust to disassemble 6502 opcodes and render them in a TUI.

Inputs & outputs

You give it
binary file
You get back
disassembled code

When to use coding

  • Implement 6502 addressing modes
  • Optimize disassembly loop
  • Build a TUI with Ratatui

About this skill

6502 Disassembler Expert Skills

Core Context

  • Project Goal: A 6502 disassembler in Rust with a Ratatui-based TUI, inspired by Borland Turbo Disassembler.
  • Architecture: MOS 6502 (including support for undocumented opcodes and C64-specific memory mapping).
  • Primary Stack: Rust, Ratatui (TUI), and bit-manipulation crates.

Technical Requirements

1. 6502 Logic

  • Always account for variable instruction lengths (1, 2, or 3 bytes).
  • Handle all 13 standard addressing modes (Absolute, Indexed, Indirect, etc.).
  • When requested, include support for "Illegal" opcodes (e.g., NOPs, LAX, SAX).

2. Rust Performance & Safety

  • Use nom or manual bit-shifting for high-performance opcode parsing.
  • Prioritize zero-copy disassembly where possible (using &[u8] slices).
  • Ensure the TUI rendering loop is decoupled from the disassembly engine to prevent UI lag.

3. TUI (Ratatui) Specifics

  • Implement a "Virtual List" approach for the disassembly view to handle large binaries without memory bloat.
  • Mimic the classic Turbo Disassembler layout: Disassembly Window, Register View, and Hex Dump.

Forbidden Patterns

  • Do not use unwrap() on binary parsing; use proper Result handling for corrupted binaries.
  • Avoid heavy standard library abstractions that introduce unnecessary overhead for an embedded-focused tool.

When not to use it

  • High-level application logic
  • Non-6502 architectures

Prerequisites

Rust

Limitations

  • Limited to 6502 architecture

How it compares

It focuses on performance and embedded-style disassembly rather than high-level abstractions.

Compared to similar skills

coding side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
coding (this skill)06moNo flagsAdvanced
kernel-development03moReviewAdvanced
cellar04moReviewIntermediate
deepwiki-rs259moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

kernel-development

nanvix

Guide for modifying and debugging the Nanvix kernel architecture and kernel-call paths. Use this when asked about kernel internals or kernel implementation changes.

00

cellar

Quafadas

Look up the public API of any JVM dependency (Scala 3, Scala 2, Java) from the terminal. Returns type signatures, members, docstrings, and source code as Markdown.

00

deepwiki-rs

sopaco

AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.

25170

arm-cortex-expert

sickn33

Senior embedded software engineer specializing in firmware and driver development for ARM Cortex-M microcontrollers (Teensy, STM32, nRF52, SAMD). Decades of experience writing reliable, optimized, and maintainable embedded code with deep expertise in memory barriers, DMA/cache coherency, interrupt-driven I/O, and peripheral drivers.

2975

memory-safety-patterns

sickn33

Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.

415

debug-cli

antinomyhq

Use when users need to debug, modify, or extend the code-forge application's CLI commands, argument parsing, or CLI behavior. This includes adding new commands, fixing CLI bugs, updating command options, or troubleshooting CLI-related issues.

117

Search skills

Search the agent skills registry