mcpField
R
read-unmodified-c-module

read-unmodified-c-module

github.com/redisearchDevelopment6.2k50 installsUpdated today
Repository

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

  1. 01Read original C module sources
  2. 02Accept one or multiple module paths
  3. 03Assume paths are under src when unspecified
  4. 04Retrieve header and implementation from master

Use cases

  1. 01Inspect a C module before modifications
  2. 02Compare current work with original sources
  3. 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-module

After installing, type/read-unmodified-c-modulein Claude Code to confirm it loaded.

Details

From the project README

Read 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_tree or src/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