lionlaith7

Claude Root Module Builder — Testing skill for Claude Code

Testing community

AI skill that builds Android root modules (Magisk, KernelSU, KernelSU-Next, FinaSU, APatch) for any idea — with mandatory debug logs, bootloop protection, Apple-style live WebUI and honest test status.

How to install Claude Root Module Builder

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lionlaith7/Claude-Root-Module-Builder and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Root Module Builder does

AI skill that builds Android root modules (Magisk, KernelSU, KernelSU-Next, FinaSU, APatch) for any idea — with mandatory debug logs, bootloop protection, Apple-style live WebUI and honest test statuses. Works with Claude Code, Codex, Cursor, Windsurf, Gemini and every skills-compatible agent.

Alternatives in Testing

  • Pua — Use when the user invokes /pua or asks for PUA mode, try-harder/retry help, change-approach coaching, completi 19.5k ★
  • Debug — You are tasked with helping debug issues during manual testing or implementation 10k ★
  • Claude Code Spec Workflow — Automated Kiro-style Spec workflow for Claude Code 3.6k ★

README

build-tools

![build-tools: a phone dashboard, a module package, and its debug log](assets/images/banner.webp)

**Build an Android root module for any idea, and know exactly what it did on your phone.**

An AI skill for Magisk, KernelSU, KernelSU-Next, FinaSU and APatch. Every module it builds writes a debug log to `Documents//` that you send back for fixing, protects itself against bootloops, and reports honest test statuses — never a claim the tools did not print.

Original skill by Laith Harb ([lionlaith7](https://github.com/lionlaith7)), Jordan.

Install

Works with Claude Code, Codex, Cursor, Windsurf, Gemini/Antigravity, Copilot and every agent that supports skills or rules files. Fastest:

npx skills add lionlaith7/Claude-Root-Module-Builder

Per-agent instructions: [INSTALL.md](INSTALL.md). Agents that read `AGENTS.md` find a pointer at the repo root.

Use

Ask your agent: "Build a KernelSU module that ...". Install the zip, reboot, then send `Documents//-debug.log` back.

![The loop: scaffold, lint, build, flash, read the log, fix](assets/images/workflow.webp)

First time on a new phone: ask for the **canary** module and send its log. It documents what your phone actually supports, so nothing is guessed.

What you get

  • Debug log in every module. Spooled in /data/adb/-logs/ early in boot, copied to /sdcard/Documents//-debug.log when storage is ready. Upload it to your agent to improve the module.
  • Bootloop protection. A guard disables the module after 3 unfinished boots or 180 s without boot completing — self-disable only, never reboots, never touches other modules. Full playbook in build-tools/references/bootloop.md.
  • Honest statuses. PASS_STRUCTURAL, PASS_SIMULATED, PASS_PARTIAL, PASS_REAL, NOT_TESTED, FAIL — printed by the tools only. PASS_REAL requires a log from a real phone whose hashes match the built zip.
  • Live WebUI when you want one. Self-contained `webroot/inde