alizainx/intelligence-systems-skills/boot-architecture-uefi-limine-multiboot

Claude Code and agent skill by alizainx/intelligence-systems-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Engineer and verify OS bootloaders and early kernel initialization across BIOS, UEFI, GRUB Multiboot2, and Limine protocols, enforcing E820/EFI memory-map overlap sanitization, `ExitBootServices` map-key retry loops, and higher-half page-table bootstrap.

Install

npx vskill@latest install alizainx/intelligence-systems-skills/boot-architecture-uefi-limine-multiboot

SKILL.md

Boot Architecture: BIOS, UEFI, Multiboot2, Limine & Early Kernel Init

Engineer and verify OS bootloaders and early kernel initialization across BIOS, UEFI, GRUB Multiboot2, and Limine protocols, enforcing E820/EFI memory-map overlap sanitization, ExitBootServices map-key retry loops, and higher-half page-table bootstrap.

A. Identity

  • Skill Name: boot-architecture-uefi-limine-multiboot
  • Domain: operating-systems
  • Specialization: UEFI ExitBootServices, Limine/Multiboot2 Tags, E820 Memory-Map Sanitization & Higher-Half Entry
  • Version: 1.0.0
  • Purpose: Enforce production-grade language semantics, type soundness, memory/resource safety, ABI interoperability, and automated verification.
  • Supported Tasks: Architecture design, implementation, memory/concurrency auditing, build/toolchain integration, debugging, and verification.
  • Required Knowledge: UEFI Specification 2.10, Multiboot2 Spec, Limine Boot Protocol
  • Dependencies: Host compilers/interpreters (gcc, g++, as, ld, python3, node, bash, perl, sqlite3) and target CI toolchains.
  • Compatibility Requirements: Model-agnostic Markdown + progressive disclosure.

B. Activation Criteria

When to Use
  • Activate when writing, refactoring, debugging, optimizing, or auditing code in UEFI ExitBootServices, Limine/Multiboot2 Tags, E820 Memory-Map Sanitization & Higher-Half Entry.
  • Activate when verifying memory safety, concurrency invariants, build reproducibility, or FFI/ABI boundaries.
Technical Triggers
  • UEFI (efi_main, GetMemoryMap, ExitBootServices), Multiboot2, Limine protocol, E820 memory map, early boot .bss zeroing.
Prerequisites
  • Target OS, CPU architecture (x86_64, AArch64, RISC-V, wasm32), and runtime mode (hosted vs. freestanding).
When NOT to Use
  • Do not conflate full programming languages with hardware description languages (HDLs), query languages, or compiler IRs; route each to its exact specialization.

C. Problem Understanding

Execute this 8-step intake protocol before generating code:

  1. Identify the Engineering Problem: Define the exact functional, latency, and resource requirements.
  2. Extract Explicit Requirements: Record language version, API signatures, and error-handling contracts.
  3. Identify Hidden Technical Constraints: Surface integer overflow, aliasing, lifetime/GC pressure, nullability, and concurrency hazards.
  4. Determine Environmental Limitations: Probe whether the native compiler/runtime is installed in the sandbox or requires target-toolchain verification.
  5. Identify Applicable Standards: Enforce UEFI Specification 2.10, Multiboot2 Spec, Limine Boot Protocol.
  6. Separate Known Facts from Assumptions: Partition verified target platform facts from disclosed assumptions.
  7. Identify Missing Critical Information: Apply safe, deterministic defaults when non-blocking.
  8. Establish Measurable Acceptance Criteria: Zero compiler/linter warnings, zero sanitizer/memory traps, and 100% pass across nominal, boundary, and adversarial tests.

D. Technical Reasoning Protocol

Follow UNDERSTAND -> PLAN -> IMPLEMENT -> COMPILE -> TEST -> VERIFY -> REVIEW across the 12 mandatory language dimensions:

  1. Syntax & Semantics: Always sort and sanitize firmware memory maps so overlapping RESERVED/ACPI_RECLAIM regions take precedence over USABLE RAM; never allocate from page 0 (0x0).
  2. Type System: Enforce strict static typing, exhaustive pattern/union matching, or runtime schema guards.
  3. Memory & Resource Management: Guarantee deterministic cleanup (RAII, defer/errdefer, ownership borrow checking, or context managers).
  4. Standard Library Discipline: Prefer bounds-checked, allocation-explicit standard containers.
  5. Build & Package Management: Lock dependency hashes and enforce reproducible compiler flags.
  6. Compiler / Interpreter Invocation: Enable maximum warning and static-analysis gates (-Wall -Wextra -Werror -Wpedantic -fanalyzer).
  7. Debugging: Preserve frame pointers (-fno-omit-frame-pointer) and symbol tables (-g) for deterministic stack traces.
  8. Testing: Exercise positive, zero/empty boundary, overflow, and malformed input paths.
  9. Performance Optimization: Optimize data layout (contiguous arrays/slices) and algorithmic complexity before micro-tuning.
  10. Security Hardening: Prevent buffer overflows, injection (SQL/shell), and timing side-channels.
  11. Interoperability (FFI / ABI): Enforce C ABI layout (#[repr(C)] / extern "C"), alignment, and panic/exception containment across FFI boundaries.
  12. Production Engineering Practices: Document operational invariants, complexity bounds, and verification status (VERIFIED vs. PARTIALLY VERIFIED).

E. Verification Protocol

Verification Methods and Test Requirements

Build and run the nominal, boundary, and negative cases with the target toolchain listed under Dependencies (strict warnings, sanitizers/analyzers where available), and record the exact toolchain status.

Failure Conditions, Boundary Cases, and Tolerances
  • Failure Conditions: Any compiler error, warning under -Werror, sanitizer fault, memory leak, or failed unit assertion.
  • Boundary Cases: Empty/zero-size inputs, maximum type limits (SIZE_MAX, INT64_MAX, NaN), and resource exhaustion.
  • Numerical & Semantic Tolerances: Exact integer/state equivalence (0 tolerance) and IEEE 754 relative bounds where applicable.
  • Safety and Performance Criteria: Deterministic time and space complexity.
  • Reproducibility Requirements: Log exact tool versions and distinguish native host execution from target-toolchain CI checks in validation.md.

Multi-Stage Quality Assurance Workflow

  1. Stage 1 (Requirement Verification): Confirm language version, ABI, and API contracts.
  2. Stage 2 (Technical Verification): Audit type soundness, memory lifetimes, and concurrency ordering.
  3. Stage 3 (Implementation Verification): Compile/execute nominal tests.
  4. Stage 4 (Edge-Case Verification): Stress-test boundary, overflow, and malformed inputs.
  5. Stage 5 (Independent Review): Run orthogonal static analysis (-fanalyzer / AST audit) or sanitizer checks (ASan/UBSan).
  6. Stage 6 (Final Validation): Classify as VERIFIED (when native compiler/runtime executed) or PARTIALLY VERIFIED (when target compiler is absent in VM and verified via AST/behavioral model).

Gotchas and Error Detection

Report all language defects using the 6-field schema (Description, Severity, Root Cause, Potential Consequences, Proposed Correction, Verification Procedure):

  • Silent Integer Overflow & Truncation: Always guard size multiplications (count > SIZE_MAX / sizeof(T)) and narrowing casts.
  • Unchecked FFI Boundary Unwinding: Never allow exceptions or panics to unwind across an extern "C" ABI boundary.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alizainx/intelligence-systems-skills/boot-architecture-uefi-limine-multiboot/badge)](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/boot-architecture-uefi-limine-multiboot)

Something wrong with this skill or its page? Tell us.