Riscv Privileged
RISC-V privileged architecture skill for M/S/U modes and traps. Use when handling CSRs, trap handlers, PLIC/CLINT interrupts, OpenSBI integration, page tables Sv39/Sv48, or QEMU virt testing. Activates on queries about RISC-V privileged, mstatus, mtvec, satp, OpenSBI, PLIC, or Sv39.
Install
npx skills add mohitmishra786/low-level-dev-skills --skill riscv-privilegedgit clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git /tmp/low-level-dev-skills
mkdir -p ~/.claude/skills
cp -r /tmp/low-level-dev-skills/skills/platform/riscv-privileged ~/.claude/skills/riscv-privilegedPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# RISC-V Privileged Architecture ## Purpose Guide agents through the RISC-V privileged specification: M/S/U privilege modes, CSR registers, trap handling, PLIC and CLINT interrupt controllers, OpenSBI firmware integration, Sv39/Sv48 page tables, and QEMU `virt` machine testing. ## When to Use - Writing an OS kernel or hypervisor for RISC-V - Implementing trap handlers and context switch - Integrating OpenSBI for S-mode firmware services - Configuring interrupt controllers on QEMU virt or hardware - Setting up virtual memory with Sv39 or Sv48 - Porting xv6-RISC-V or bare-metal firmware ## Workflow ### 1. Privilege levels ``` RISC-V privilege stack ├── M-mode (Machine) — firmware, OpenSBI, most privileged ├── S-mode (Supervisor) — OS kernel └── U-mode (User) — applications Embedded (no S-mode): M + U only ``` ### 2. Key CSRs | CSR | Mode | Purpose | |-----|------|---------| | `mstatus` / `sstatus` | M/S | Interrupt enable, privilege state | | `mtvec` / `stvec` | M/S | Trap vector base address | | `mepc` / `sepc` | M/S | Exception PC | | `mcause` / `scause` | M/S | Trap cause code | | `mtval` / `stval` | M/S | Faulting address/instruction | | `satp` | S | Page table root (mode + PPN) | | ` mie` / `sie` | M/S | Interrupt enable bits | | `mip` / `sip` | M/S | Interrupt pending bits |
Details
- Skill name
riscv-privileged- Repository
- mohitmishra786/low-level-dev-skills
- Path
skills/platform/riscv-privileged/SKILL.md- License
- MIT
- Repo updated
- 14 November 2026
FAQ
What does the Riscv Privileged skill do?
RISC-V privileged architecture skill for M/S/U modes and traps. Use when handling CSRs, trap handlers, PLIC/CLINT interrupts, OpenSBI integration, page tables Sv39/Sv48, or QEMU virt testing. Activates on queries about RISC-V privileged, mstatus, mtvec, satp, OpenSBI, PLIC, or Sv39.
How do I install the Riscv Privileged skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add mohitmishra786/low-level-dev-skills --skill riscv-privileged. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Riscv Privileged popular?
It lives in mohitmishra786/low-level-dev-skills, which has 293 GitHub stars and 36 forks.
Related skills
Abi and Calling Conventions
293mohitmishra786/low-level-dev-skills
ABI and calling conventions skill for cross-language boundaries. Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Activates on queries about calling convention, ABI, System V AMD64, AAPCS, stack frame, variadic function, or FFI registers.
Adc Dac Baremetal
293mohitmishra786/low-level-dev-skills
Bare-metal ADC and DAC skill. Use when configuring analog sampling, DMA-driven ADC, calibration, or DAC output on MCUs. Activates on queries about ADC bare-metal, sampling time, DMA ADC, or DAC channel setup.
Af Xdp
293mohitmishra786/low-level-dev-skills
AF_XDP skill for high-performance XDP sockets. Use when creating AF_XDP sockets, configuring UMEM and XSK rings, XDP_REDIRECT programs, copy vs zero-copy mode, or comparing with DPDK. Activates on queries about AF_XDP, xsk_umem, XDP_REDIRECT, libbpf xsk, or zero-copy XDP.
Triton Lang
293mohitmishra786/low-level-dev-skills
Triton language skill for Python GPU kernel authoring. Use when writing Triton kernels with @triton.jit, tl.load/store, masking, atomics, benchmarking with triton.testing, or integrating kernels into PyTorch. Activates on queries about Triton, tl.constexpr, block pointers, Triton benchmarking, or PyTorch custom ops.
Qemu Embedded Simulation
293mohitmishra786/low-level-dev-skills
QEMU embedded simulation skill for bare-metal MCU testing. Use when running ARM/RISC-V firmware in QEMU, selecting machine models, loading -kernel ELF, or GDB debugging without hardware. Activates on queries about QEMU bare metal, qemu-system-arm -kernel, STM32 QEMU machine, RISC-V virt, or firmware simulation.
Zig Build System
293mohitmishra786/low-level-dev-skills
Zig build system skill for multi-file Zig projects. Use when writing or debugging build.zig files, adding executables or libraries, integrating C source files, configuring build-time options, running tests with zig build test, or managing build.zig.zon package manifests. Activates on queries about build.zig, b.addExecutable, addCSourceFiles, b.option, zig build, build.zig.zon, or Zig package management.
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.