install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/generate-vanilla-source" ~/.claude/skills/majiayu000-claude-skill-registry-generate-vanilla-source && rm -rf "$T"
manifest:
skills/data/generate-vanilla-source/SKILL.mdsource content
-
Run genSources
./gradlew genSources -
Source jars will be generated under following paths:
./.gradle/loom-cache/minecraftMaven/net/minecraft/minecraft-common-<hash>/<version>/minecraft-common-<hash>-<version>-sources.jar./.gradle/loom-cache/remapped_mods/<mapping_version>/net/fabricmc/fabric-api/<module>/<version>/<module>-<version>-sources.jar
-
Inspect JAR contents in memory (no extraction to disk)
# Example: Read LivingEntity.java from minecraft-common sources JAR $jarPath = ".gradle\loom-cache\minecraftMaven\net\minecraft\minecraft-common-<hash>\<version>\minecraft-common-<hash>-<version>-sources.jar" Add-Type -AssemblyName System.IO.Compression.FileSystem $zip = [System.IO.Compression.ZipFile]::OpenRead($jarPath) $entry = $zip.Entries | Where-Object { $_.FullName -eq "net/minecraft/entity/LivingEntity.java" } $stream = $entry.Open() $reader = New-Object System.IO.StreamReader($stream) $content = $reader.ReadToEnd() $reader.Close() $stream.Close() $zip.Dispose() # Search for specific methods or patterns $content | Select-String -Pattern "methodName" -Context 5,10 # Extract specific line ranges $lines = $content -split "`n" $startIndex = ($lines | Select-String -Pattern "public void methodName" | Select-Object -First 1).LineNumber - 1 $lines[$startIndex..($startIndex + 20)] -join "`n"