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.zipInstalls 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.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
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
nomor 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 properResulthandling 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| coding (this skill) | 0 | 6mo | No flags | Advanced |
| kernel-development | 0 | 3mo | Review | Advanced |
| cellar | 0 | 4mo | Review | Intermediate |
| deepwiki-rs | 25 | 9mo | Review | Intermediate |
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.
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.
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.
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.
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.
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.