Code Review Riscv
Testing & Qualitycode-review-riscvCode Review Riscv is an Agent Skill for testing & quality published in the FastLED/FastLED repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Review RISC-V assembly code for correctness, ABI compliance, and best practices. Use after modifying RISC-V assembly or inline asm code.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/FastLED/FastLED/blob/HEAD/.claude/skills/code-review-riscv/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/code-review-riscv, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Review RISC-V assembly code for correctness, adherence to conventions, and best practices.
The review covers 8 analysis categories:
- Instruction correctness: Valid syntax, proper operands, immediate ranges
- Register conventions: ABI compliance, saved vs temporary registers, stack alignment
- Memory access: Alignment requirements, sign extension, offset limits
- Control flow: Branches, jumps, function calls, returns
- CSR operations: Privilege level access, atomic semantics, field types
- Assembler directives: Sections, alignment, symbol visibility, data placement
- Common issues: Misalignment, stack corruption, clobbered registers, illegal immediates
- Platform-specific: RV32I vs RV64I, extensions (M/A/F/D/C), ABI variants
Search for RISC-V assembly code in git changes (inline asm and .S files) and perform deep analysis.