safety-checker

Detect unsafe pointer casts, bounds violations, and null dereferences in Zig code.

1|1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/code0100fun/botfiles --skill safety-checker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safety-checker
Source: https://github.com/code0100fun/botfiles/tree/main/plugins/zig-dev/skills/safety-checker
Command: npx skills add https://github.com/code0100fun/botfiles --skill safety-checker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies unsafe operations and potential undefined behavior in Zig code, helping ensure memory safety and correctness in low-level or safety-critical code.

Core Features & Use Cases

  • Detect unsafe pointer casts, missing bounds checks, null dereferences, and undefined behavior in Zig code.
  • Propose safer patterns and examples to improve safety during code review and debugging.
  • Use during development, code review, and crash debugging to reduce memory-safety risks.

Quick Start

Run the safety-checker on your Zig codebase to identify unsafe casts, missing bounds checks, and potential undefined behavior.

Frequently Asked Questions about safety-checker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify unsafe pointer casts and undefined behavior in Zig code?

To identify unsafe pointer casts and undefined behavior in Zig code, run a safety-checker to detect memory safety issues like null dereferences. It analyzes low-level code and proposes safer patterns to prevent crashes during development.

What is the best way to enforce memory safety during a Zig code review?

The best way to enforce memory safety during a Zig code review is to integrate safety-checker workflows. This detects missing bounds checks and undefined behavior, providing example-driven guidance to apply safer coding patterns.

Can I use a safety-checker to debug Zig crashes caused by null dereferences?

Yes, you can use a safety-checker to debug Zig crashes caused by null dereferences. It identifies unsafe operations and potential undefined behavior in safety-critical sections, helping pinpoint memory violations to resolve runtime faults.

Does the safety-checker support integration into existing code review workflows?

Yes, the safety-checker supports integration into existing code review workflows. It applies analysis directly to low-level Zig development, detecting bounds violations and unsafe casts to ensure memory safety and correctness.

When do I need to check for missing bounds checks in my Zig codebase?

You need to check for missing bounds checks when developing low-level or safety-critical Zig applications. Running a safety-checker identifies these violations alongside unsafe pointer casts, preventing potential undefined behavior and memory safety issues.