RE

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.zip

Installs 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.
78 charsno explicit “when” trigger
Beginner

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

You give it
C module path
You get back
Source code from master branch

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_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

When not to use it

  • Reading non-C files
  • Modifying code directly in the repository

Prerequisites

git

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.

SkillInstallsUpdatedSafetyDifficulty
read-unmodified-c-module (this skill)16moReviewBeginner
code-coverage-with-gcov154moReviewIntermediate
at-dispatch-v259moNo flagsIntermediate
static-analysis56moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry