read-unmodified-c-module

Read unmodified C module headers and implementations via git show master.

6.2k|590|Updated May 5, 2016
One-click install
npx skills add https://github.com/RediSearch/RediSearch --skill read-unmodified-c-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: read-unmodified-c-module
Source: https://github.com/RediSearch/RediSearch/tree/main/.skills/read-unmodified-c-module
Command: npx skills add https://github.com/RediSearch/RediSearch --skill read-unmodified-c-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Read the unmodified source of C modules to establish a baseline before making changes, enabling accurate audits and comparisons.

Core Features & Use Cases

  • Read both header (.h) and implementation (.c) files for a given module path to verify original behavior.
  • Resolve module paths automatically (e.g., treating a path without src/ as in the src directory).
  • Use case: audit a module prior to patching, or compare current code against the original unmodified sources.

Quick Start

Read the unmodified source of the module at src/numeric_range_tree.

Frequently Asked Questions about read-unmodified-c-module

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

FAQPage Schema
How do I read the original C module source code before making changes?

Read unmodified C module sources using git show to fetch the baseline header and implementation files directly from the repository. This captures the original state of both .h and .c files before any modifications, enabling accurate audits and comparisons.

Can I inspect C module headers and implementations to verify baseline behavior?

Yes. Fetch both header and implementation files for any module path to verify original behavior during debugging or auditing. The skill automatically resolves module paths and applies src/ prefix handling for consistent access to unmodified sources.

What's the best way to audit a C module before applying patches?

Establish a baseline by reading the unmodified source of headers and implementations via git show master:<module path>. Comparing current code against original sources ensures patches target only intended changes and preserves baseline behavior.

How do I compare current C code against the original unmodified sources?

Read unmodified module sources from the repository master branch to establish baseline state, then compare side-by-side with current implementations. This workflow identifies exactly what has changed and validates intended modifications.

Does this work with nested module paths in the src directory?

Yes. The skill automatically handles module path resolution, treating paths without explicit src/ prefixes as located in the src directory. Both header and implementation files are fetched consistently across nested paths.

Why should I read unmodified sources instead of using current module files?

Reading unmodified sources from git show establishes a trusted baseline before changes, essential for auditing patch accuracy, debugging against known-good state, and ensuring modifications don't introduce unintended side effects.