Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/ricardoquesada/regenerator2000/r2000-analyze-basicnpx skills add ricardoquesada/regenerator2000 --skill r2000-analyze-basicgit clone --depth 1 https://github.com/ricardoquesada/regenerator2000Wrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ricardoquesada/regenerator2000/r2000-analyze-basic)<a href="https://agentmods.dev/skills/ricardoquesada/regenerator2000/r2000-analyze-basic"><img src="https://agentmods.dev/badge/skills/ricardoquesada/regenerator2000/r2000-analyze-basic.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00036 | $0.01521 |
| Opus 5 | $0.00018 | $0.00760 |
| Sonnet 5 | $0.00007 | $0.00304 |
| Haiku 4.5 | $0.00004 | $0.00152 |
Grade A, and why
r2000-analyze-basic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Analyze BASIC Tokens Workflow
Use this skill when the user asks to:
- "analyze this BASIC code"
- "decode basic commands from memory"
- "create side comments for BASIC lines"
- "parse basic pointer address and line number"
1. Determine Memory Range
Identify the starting and ending addresses of the Commodore BASIC sequence from the user's request or cross-references. If unspecified, prompt the user for clarification.
2. Read Memory Buffer
Invoke the r2000_read_region tool to read the requested sequence:
start_address: The sequence start address (decimal).end_address: The sequence end address (decimal).view:"hexdump"
3. Process BASIC Lines
Commodore BASIC programs follow a strict structured sequence in memory. Iterate through the lines starting from the initial address, following the "Next Line Pointer" until you reach the end of the program.
Line Anatomy
- Bytes 0–1 (Next Line Pointer): Pointer to the memory address where the next BASIC line begins, stored in Little Endian format (e.g.,
24 04$\rightarrow$ `$0424$). - Bytes 2–3 (Line Number): The BASIC line number as a 16-bit integer in Little Endian format (e.g.,
0A 00$\rightarrow$10). - Bytes 4–N (Tokens): The tokenized BASIC command. This sequence of bytes continues until a
$00(null) terminator is encountered. - Termination: The program ends when the "Next Line Pointer" (Bytes 0–1) of a line is
$00 $00.
Keyword Token Table (V2)
Bytes in step 3 with the high-bit set ($80 to $CB) are keyword tokens. Decode them against this table:
| Hex | Keyword | Hex | Keyword | Hex | Keyword | Hex | Keyword |
|---|---|---|---|---|---|---|---|
$80 |
END |
$93 |
LOAD |
$A6 |
SPC( |
$B9 |
POS |
$81 |
FOR |
$94 |
SAVE |
$A7 |
THEN |
$BA |
SQR |
$82 |
NEXT |
$95 |
VERIFY |
$A8 |
NOT |
$BB |
RND |
$83 |
DATA |
$96 |
DEF |
$A9 |
STEP |
$BC |
LOG |
$84 |
INPUT# |
$97 |
POKE |
$AA |
+ |
$BD |
EXP |
$85 |
INPUT |
$98 |
PRINT# |
$AB |
- |
$BE |
COS |
$86 |
DIM |
$99 |
PRINT |
$AC |
* |
$BF |
SIN |
$87 |
READ |
$9A |
CONT |
$AD |
/ |
$C0 |
TAN |
$88 |
LET |
$9B |
LIST |
$AE |
^ |
$C1 |
ATN |
$89 |
GOTO |
$9C |
CLR |
$AF |
AND |
$C2 |
PEEK |
$8A |
RUN |
$9D |
CMD |
$B0 |
OR |
$C3 |
LEN |
$8B |
IF |
$9E |
SYS |
$B1 |
> |
$C4 |
STR$ |
$8C |
RESTORE |
$9F |
OPEN |
$B2 |
= |
$C5 |
VAL |
$8D |
GOSUB |
$A0 |
CLOSE |
$B3 |
< |
$C6 |
ASC |
$8E |
RETURN |
$A1 |
GET |
$B4 |
SGN |
$C7 |
CHR$ |
$8F |
REM |
$A2 |
NEW |
$B5 |
INT |
$C8 |
LEFT$ |
$90 |
STOP |
$A3 |
TAB( |
$B6 |
ABS |
$C9 |
RIGHT$ |
$91 |
ON |
$A4 |
TO |
$B7 |
USR |
$CA |
MID$ |
$92 |
WAIT |
$A5 |
FN |
$B8 |
FRE |
$CB |
GO |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 82 lines · 36 tokens per session scan A 8fc662ce52a1
r2000-analyze-basic is a skill published in the GitHub repository ricardoquesada/regenerator2000 (164 stars, last pushed 10d ago), licensed Apache-2.0. It adds 36 tokens to every session and 1,521 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
c64-development
Use when developing, running, or debugging Commodore 64 software (Commodore BASIC or 6510/6502 assembly) on the VICE emulator with the c64 CLI or the c64-tools MCP server. Covers the build/run/observe/debug loop, the stopped-state discipline, C64 text encodings, graphics and sprites, and the memory map.
6502-assembly
Use when writing or debugging 6502 assembly for the Commodore 64 with ca65/ld65 via c64 build or c64 run. Covers the C64 program skeleton, the BASIC SYS stub, calling ROM routines, and 6502 gotchas.
cartridge-programming
Use when writing, building, or debugging a Commodore 64 cartridge — plain 8K/16K/Ultimax or bank-switched EasyFlash — with the c64 CLI or the c64-tools MCP server. Covers the two boot mechanisms (CBM80 vs the $FFFC reset vector), the memory modes, cart-native code in ROM, the EasyFlash banking discipline from…
disk-io-programming
Use when a Commodore 64 program has to touch a disk while it runs — loading levels, music or graphics on demand, saving a high-score file, or streaming a data file byte by byte. Covers the KERNAL LOAD/SAVE and channel calls, device and secondary-address conventions, reading the DOS error channel, and the…
6502-debugging
Use when a C64 program misbehaves at runtime — crashes, corruption, wrong values, dead input, visual glitches — and you need a procedure, not a guess. Symptom-indexed playbook of runtime debugging procedures using c64-tools.
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…