read-unmodified-c-module
Retrieves the pristine version of C source files directly from the repository's main branch.
Install
mkdir -p .claude/skills/read-unmodified-c-module && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3444" && unzip -o skill.zip -d .claude/skills/read-unmodified-c-module && rm skill.zipInstalls to .claude/skills/read-unmodified-c-module
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Read the source of the C module we are working on, before we made any changes.Key capabilities
- →Retrieve header files from master branch
- →Extract implementation source from master
- →Perform git-based version comparisons
- →Isolate clean module code
How it works
Executes `git show` commands targeting the master branch to extract the specified file contents without affecting the current working tree.
Inputs & outputs
When to use read-unmodified-c-module
- →Review original C source code
- →Compare modified files with master branch
- →Retrieve clean header files
- →Check implementation before refactoring
About this skill
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_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
When not to use it
- →Reading non-C files
- →Modifying code directly in the repository
Prerequisites
Limitations
- →Requires git master branch context
- →Limited to C module files
How it compares
Retrieves the historical clean version of a file directly from source control instead of searching through modified local files.
Compared to similar skills
read-unmodified-c-module side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| read-unmodified-c-module (this skill) | 1 | 6mo | Review | Beginner |
| code-coverage-with-gcov | 15 | 4mo | Review | Intermediate |
| at-dispatch-v2 | 5 | 9mo | No flags | Intermediate |
| static-analysis | 5 | 6mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by RediSearch
View all by RediSearch →You might also like
code-coverage-with-gcov
gadievron
Add gcov code coverage instrumentation to C/C++ projects
at-dispatch-v2
pytorch
Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code. Use when porting AT_DISPATCH_ALL_TYPES_AND*, AT_DISPATCH_FLOATING_TYPES*, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations.
static-analysis
gmh5225
Expertise in LLVM-based static analysis including dataflow analysis, pointer analysis, taint tracking, and program verification. Use this skill when implementing security scanners, bug finders, code quality tools, or performing program analysis research.
dev
atopile
LLM-focused workflow for working in this repo: compile Zig, run the orchestrated test runner, consume test-report.json/html artifacts, and discover/debug ConfigFlags.
rr-debugger
gadievron
Deterministic debugging with rr record-replay. Use when debugging crashes, ASAN faults, or when reverse execution is needed. Provides reverse-next, reverse-step, reverse-continue commands and crash trace extraction.
rsyslog-module
rsyslog
Encodes technical requirements for rsyslog modules, including concurrency, metadata, and initialization.