Agent skill
coding
Install this agent skill to your Project
npx add-skill https://github.com/ricardoquesada/regenerator2000/tree/main/.agent/skills/coding
SKILL.md
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
verify-mcp
Verifies the MCP server functionality by running the integration test suite.
update-mcp-docs
Syncs `docs/mcp.md` with the actual tools exposed by `crates/regenerator2000-core/src/mcp/handler.rs`.
r2000-analyze-basic
Analyzes a sequence of memory containing Commodore BASIC tokens, formats address/word data types, and constructs side comments representing the plain BASIC commands.
bump-version
Automates the process of bumping the version and updating the changelog.
code-review
Reviews code changes for bugs, style issues, and best practices. Use when reviewing PRs or checking code quality.
add-mcp-tool
Streamlines the process of adding new tools to the MCP server.
Didn't find tool you were looking for?