About read-unmodified-c-module
A skill for reading the original versions of C modules from the master branch before changes were made. It accepts one or more module paths and reads their header and implementation files.
Key features
- 01Read original C module sources
- 02Accept one or multiple module paths
- 03Assume paths are under src when unspecified
- 04Retrieve header and implementation from master
Use cases
- 01Inspect a C module before modifications
- 02Compare current work with original sources
- 03Read several modules' original C files
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ redisearch/ redisearch --skill read-unmodified-c-moduleAfter installing, type/read-unmodified-c-modulein Claude Code to confirm it loaded.
Details
From the project READMERead Unmodified C Module
Read the source of the C module(s) we are working on, as they were before we made any changes.
Arguments
<module path>: Module name to read (e.g.,src/numeric_range_treeorsrc/aggregate/aggregate_debug), without extension<module path 1> <module path 2>: Multiple module names to read
If the path doesn't include src/, assume it to be in the src directory. E.g. numeric_range_tree becomes src/numeric_range_tree.
Instructions
For each module path:
# Read header file
git show master:<module path>.h
# Read implementation file
git show master:<module path>.c
Comments
Markdown supported