tpn/perfecthash/rawdog-jit-asm
Claude Code and agent skill by tpn/perfecthash
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Author and wire RawDog JIT NASM blobs for PerfectHash online (x64), including sentinel patching, CMake header generation, and validation against LLVM/offline outputs. Use when adding or modifying RawDog JIT assembly for a hash function or when comparing compiler output for reference.
Install
npx vskill@latest install tpn/perfecthash/rawdog-jit-asmSKILL.md
RawDog JIT Assembly
Overview
Author x64 NASM RawDog JIT Index() blobs, wire them into the RawDog backend, and validate correctness against SlowIndex and offline compiler output.
Workflow
- Identify the exact index algorithm
- Inspect
src/PerfectHash/PerfectHashTableHashEx.cfor the hash math. - Inspect
src/PerfectHash/ChmOnline01.c(BuildChm01Index* switch) for the actual index logic (masking, table loads, index mask).
- Create the NASM blob
- Copy style and conventions from
src/PerfectHash/PerfectHashTableFastIndexEx_x64_01.asmand existing RawDog blobs. - Use the RawDog sentinel values for
Assigned,Seed1,Seed2,Seed3Byte1,Seed3Byte2,HashMask, andIndexMaskas needed. - Ensure each sentinel appears exactly once in the data block; load once into a register and reuse if needed.
- Generate the embedded header
- Add a CMake
add_custom_command()to runnasm->objcopy->scripts/generate_rawdog_jit_header.py. - Append the generated header to
Private_Header_Filesinsrc/PerfectHash/CMakeLists.txt.
- Wire the backend
- Update
src/PerfectHash/ChmOnline01RawDog.cto select the new blob and patch sentinels. - Keep RawDog constrained to supported flags (scalar Index32 only for now).
- Validate
- Add or update a RawDog unit test in
tests/PerfectHashOnlineTests.cpp. - Run the offline compiler path and disassemble the resulting
.sofor reference (seereferences/offline-compile-and-disasm.md).
References
- Offline build + disassembly workflow:
references/offline-compile-and-disasm.md
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rawdog-jit-asm/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tpn/perfecthash/rawdog-jit-asm)