c99-code-review

Review C source files for C99 compliance and licensing violations.

1|Updated Aug 12, 2025
One-click install
npx skills add https://github.com/thetanil/hbf --skill c99-code-review
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: c99-code-review
Source: https://github.com/thetanil/hbf/tree/main/.claude/skills/c99-code-review
Command: npx skills add https://github.com/thetanil/hbf --skill c99-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps ensure C99 code complies with HBF's strict standards, including compiler warnings, style, and licensing.

Core Features & Use Cases

  • Enforce Strict C99 Compliance: Checks for GNU extensions, inline assembly, VLAs, and other non-C99 patterns.
  • Flag Compiler Warnings: Verifies code would compile with -Werror and recommended flags.
  • Licensing & Style: Ensures proper licensing headers and Linux kernel style conventions.

Quick Start

Run the skill against a C source file to identify violations and suggested fixes.

Frequently Asked Questions about c99-code-review

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

FAQPage Schema
How do I review C99 code for strict compliance and compiler warnings?▼

C99 code review checks source files against strict standards including pure C99 usage, avoidance of GNU extensions, and compliance with mandatory compiler flags like -Werror, -Wpedantic, -Wconversion, and -Wshadow. The review identifies violations and provides remediation guidance to ensure code meets HBF standards.

What are HBF standards for C code, and how do I enforce them?▼

HBF standards enforce C99-only compliance, prohibit inline assembly unless necessary, forbid variable-length arrays, require specific compiler warnings, apply Linux kernel style conventions, and mandate proper licensing headers. This Skill audits repositories against these requirements and flags violations with concrete fixes.

Can I use inline assembly and VLAs in C99 code?▼

HBF standards prohibit variable-length arrays and inline assembly except in absolute necessity. This Skill flags both as violations during code review and recommends alternatives to meet strict C99 compliance requirements.

How do I verify C code compiles with strict compiler flags?▼

This Skill verifies code would compile cleanly with mandatory flags including -Werror, -Wpedantic, -Wconversion, -Wshadow, -Wformat=2, -Wmissing-prototypes, -Wmissing-declarations, -Wcast-qual, -Wcast-align, and related warnings, ensuring no GNU extensions or style violations exist.

What licensing requirements apply to C projects in HBF?▼

HBF licensing constraints require proper license headers and compliance documented in LICENSES.md. This Skill audits all C files in a repository to verify licensing requirements are met and flags missing or incorrect headers.

Does this work with existing C projects in my repository?▼

Yes, this Skill applies to all C projects in a repository by scanning source files for C99 compliance, GNU extensions, style violations, compiler warning readiness, and licensing adherence across the entire codebase.