Token导航 LogoToken导航

Agent Skill · 前端设计

make-mips-interpreter(制作 mips 解释器)

make-mips-interpreter 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

make-mips-interpreter 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 4,485。

总安装 874周安装 35GitHub Stars 93下载 283核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:make-mips-interpreter(制作 mips 解释器)
来源仓库:https://github.com/letta-ai/skills
仓库路径:skills/make-mips-interpreter
安装命令:
npx skills add https://github.com/letta-ai/skills --skill make-mips-interpreter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/letta-ai/skills --skill make-mips-interpreter

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库与代码协作信息。适合整理 Issue、PR 和仓库状态变更。支持 Codex、Claude 等宿主环境。通过 npx 命令从 GitHub 仓库安装。需确认操作权限与文件访问边界。make-mips-interpreter 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/make-mips-interpreter

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/letta-ai/skills --skill make-mips-interpreter;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

make-mips-interpreter 怎么安装?

在终端执行 npx skills add https://github.com/letta-ai/skills --skill make-mips-interpreter。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

make-mips-interpreter 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

make-mips-interpreter 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

make-mips-interpreter 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

make-mips-interpreter 用的人多吗?

公开数据是累计安装 874 次,近一周安装 35 次,下载 283 次,GitHub 93 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

make-mips-interpreter 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
make-mips-interpreter

制作 mips 解释器 · 本页

87493只读MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

MIPS Interpreter Implementation

Overview

This skill provides guidance for implementing MIPS interpreters/emulators that can load and execute MIPS ELF binaries. The core challenge involves parsing ELF files, decoding MIPS instructions, managing virtual memory, and handling system calls.

Critical Approach: Incremental Development

The most important principle for this task is incremental development over comprehensive analysis. Avoid spending excessive time analyzing before writing code. Instead:

  1. Start with a minimal working skeleton early
  2. Expand functionality iteratively
  3. Test frequently with partial implementations
  4. Debug and refine based on actual execution

Implementation Phases

Phase 1: Minimal ELF Loader

Start with the bare minimum to load an executable:

  1. Parse ELF header to extract:

- Magic number verification (0x7f, 'E', 'L', 'F') - Architecture (MIPS32) - Endianness (typically little-endian) - Entry point address

  1. Parse program headers to identify loadable segments
  2. Load segments into virtual memory at specified addresses
  3. Set program counter to entry point

Key data structures needed:

  • Memory array/map for virtual address space
  • Registers array (32 general-purpose + PC + HI/LO)

Phase 2: Core Instruction Decoding

Implement instruction decoding for the three MIPS instruction formats:

R-type format (register operations):

  • Bits 31-26: opcode (0x00 for R-type)
  • Bits 25-21: rs (source register 1)
  • Bits 20-16: rt (source register 2)
  • Bits 15-11: rd (destination register)
  • Bits 10-6: shamt (shift amount)
  • Bits 5-0: funct (function code)

I-type format (immediate operations):

  • Bits 31-26: opcode
  • Bits 25-21: rs
  • Bits 20-16: rt
  • Bits 15-0: immediate value

J-type format (jump operations):

  • Bits 31-26: opcode
  • Bits 25-0: target address

Phase 3: Essential Instructions First

Implement instructions in priority order based on typical program needs:

High Priority (implement first):

  • Arithmetic: ADD, ADDU, ADDI, ADDIU, SUB, SUBU
  • Logical: AND, ANDI, OR, ORI, XOR, NOR
  • Shifts: SLL, SRL, SRA, SLLV, SRLV, SRAV
  • Comparison: SLT, SLTI, SLTU, SLTIU
  • Memory: LW, SW, LB, LBU, SB, LH, LHU, SH
  • Branches: BEQ, BNE, BGTZ, BLEZ, BLTZ, BGEZ
  • Jumps: J, JAL, JR, JALR
  • Load: LUI

Medium Priority:

  • Multiply/Divide: MULT, MULTU, DIV, DIVU, MFHI, MFLO, MTHI, MTLO

Lower Priority:

  • Coprocessor instructions (if needed)
  • Floating point (if needed)

Phase 4: Syscall Handler

Implement system call interface based on the target environment:

  1. Detect SYSCALL instruction
  2. Read syscall number from register (typically $v0 or $2)
  3. Read arguments from registers ($a0-$a3 or $4-$7)
  4. Execute syscall and set return value in $v0

Common syscalls to implement:

  • read (file descriptor, buffer, count)
  • write (file descriptor, buffer, count)
  • open (path, flags, mode)
  • close (file descriptor)
  • lseek (file descriptor, offset, whence)
  • exit (status code)

Phase 5: I/O and File System

For programs requiring file access:

  • Implement file descriptor table
  • Handle standard streams (stdin=0, stdout=1, stderr=2)
  • Support opening/reading external files (e.g., data files)
  • Handle output file creation (e.g., frame buffers, results)

Verification Strategies

Incremental Testing

Test after each implementation phase:

  1. ELF loader test: Verify entry point and memory layout match expected values
  2. Instruction test: Create simple test sequences for each instruction group
  3. Syscall test: Test each syscall with known inputs/outputs
  4. Integration test: Run actual target binary

Debugging Techniques

  • Add instruction tracing (PC, instruction, register changes)
  • Log syscall invocations with arguments
  • Verify memory reads/writes at expected addresses
  • Compare register state against expected values at checkpoints

Common Validation Points

  • Entry point address matches ELF header
  • Stack pointer initialized correctly
  • Memory segments loaded at correct addresses
  • Register $0 always reads as zero
  • Signed vs unsigned operations handled correctly
  • Branch delay slots handled (if applicable to target)

Common Pitfalls

Analysis Paralysis

Problem: Spending too much time understanding every detail before writing code. Solution: Start implementation after understanding ELF basics, entry point, and syscall numbers. Iterate and learn through building.

Missing Endianness Handling

Problem: Incorrect byte ordering when loading instructions or data. Solution: Check ELF header for endianness flag and apply consistently when reading multi-byte values.

Register Zero Hardwiring

Problem: Allowing writes to register $0 to persist. Solution: Always return 0 when reading $0, or ignore writes to $0.

Sign Extension Errors

Problem: Incorrect sign extension for immediate values or load operations. Solution: Carefully distinguish signed vs unsigned operations. LB sign-extends, LBU zero-extends.

Branch/Jump Address Calculation

Problem: Incorrect target address computation. Solution:

  • Branches: PC + 4 + (sign-extended offset << 2)
  • Jumps: (PC & 0xF0000000) | (target << 2)

Memory Alignment

Problem: Unaligned memory access causing errors. Solution: Either enforce alignment or handle unaligned access appropriately for the target.

Syscall Return Values

Problem: Not setting error codes or return values correctly. Solution: Set $v0 for return value, handle error cases consistently.

Incomplete Instruction Coverage

Problem: Missing instructions causing silent failures. Solution: Log unimplemented instructions with their encodings for debugging.

Time Management Strategy

For complex interpreter tasks:

  1. First 25% of time: ELF loading + basic instruction loop skeleton
  2. Next 25% of time: Core arithmetic/logic/memory instructions
  3. Next 25% of time: Branches, jumps, and syscalls
  4. Final 25% of time: Testing, debugging, edge cases

Prioritize a running (even incomplete) interpreter over comprehensive analysis. A partial implementation that executes provides more debugging information than complete analysis without code.

平台分布

Claude Code

29.15%
按下载量换算82

Gemini CLI

24.56%
按下载量换算70

Antigravity

16.44%
按下载量换算47

windsurf

13.29%
按下载量换算38

OpenCode

6.79%
按下载量换算19

Codex

3.26%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills