Skip to main content
skill CX Codex

reference-hunt — Claude Code skill: what it does, how to install

Treats existing source code as a specification and ports its semantics to a target stack when requirements are hard to state in words.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Neeeophytee/finding-unknowns-skills --skill reference-hunt -a claude-code
Open on GitHub

What reference-hunt does

This skill guides the agent to inspect a repository, vendored folder, or library instead of waiting for written specs. The agent first clarifies what to extract, whether that is runtime behavior, structure, or API conventions. It then drafts a semantics summary covering execution guarantees, edge cases, and differences between language ecosystems.

No target code gets written until the user confirms the semantics summary. Implementation follows idiomatic patterns of the new stack rather than line-by-line transliteration. If the original reference has bugs or inconsistencies, the skill instructs the agent to surface them immediately rather than copying flawed logic.

Before wrapping up, the agent links each expected behavior to the new code and documents any conscious divergence. This structured flow also keeps license constraints in view so unvetted code never lands verbatim in your repository.

What it helps with

  • port module behavior from a different programming language
  • extract implicit guarantees and edge cases from reference code
  • reimplement library functionality without copying its existing bugs
  • align on runtime semantics before generating implementation files

Example prompts for the agent

  • Port the session logic from src/auth.py to our Rust service using native idioms
  • Read the state machine in this folder and write a semantics summary before generating any code
  • Recreate the API layer of this service in Go, and flag any license issues first

How to install reference-hunt

1Skills CLI (Vercel)

npx skills add Neeeophytee/finding-unknowns-skills --skill reference-hunt -a claude-code

2Manually: put the files in place

~/.claude/skills/reference-hunt/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/reference-hunt/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about reference-hunt

How do I install reference-hunt in Claude Code?

Run npx skills add Neeeophytee/finding-unknowns-skills --skill reference-hunt -a claude-code. The skill file will be placed in ~/.claude/skills/reference-hunt/SKILL.md.

What does reference-hunt do?

It instructs the agent to read working source code like a functional specification. The agent analyzes behaviors, error handling, and timing, gets your approval on a summary, and reimplements the logic natively in your stack.

How does the skill handle bugs in the reference code?

It explicitly forbids copying flaws into the new codebase. If the source code contains inconsistencies or errors, the agent must report them to you instead of reproducing them.

Source text

SKILL.md · MIT
---
name: reference-hunt
description: Use existing source code as the specification when the user can't describe what they want in words. Use when the user points at a library, module, folder, or site and says "like this," even if it's in a different language or stack.
---

# Reference hunt

Some requirements are too intricate or too tacit to write down, but working code somewhere already embodies them. The best reference is not a screenshot or a description — it's source. Read it like a spec, then reimplement the semantics, not the syntax.

## Steps

1. Get the reference: a repo path, a vendored folder, a library name, or a site whose underlying code can be read. Ask what specifically to extract from it — behavior, structure, visual system, API shape — so you don't imitate the wrong dimension.
2. Read the reference and produce a **semantics summary** before writing any code:
   - the behaviors and guarantees it implements (timing, ordering, error handling, edge cases),
   - the decisions that look deliberate versus incidental,
   - anything that won't translate to the target language or stack, with a proposed equivalent.
3. Have the user confirm the semantics summary. This is the moment misreadings get caught cheaply.
4. Reimplement in the target stack: same semantics, native idioms. Do not transliterate line by line, and do not copy code verbatim from references whose license doesn't allow it — note the license if it's unclear.
5. Close the loop: list each behavior from the summary and where the new implementation honors it, plus any place you consciously diverged and why.

## Guardrails

- The reference defines *what*; the target codebase's conventions define *how*.
- If the reference itself turns out to be buggy or inconsistent, surface that instead of faithfully reproducing the bug.
- Respect licenses: extracting semantics is fine; copying incompatible code is not.

© Neeeophytee · MIT · Neeeophytee/finding-unknowns-skills

Similar skills

All skills for Code review and refactoring →

From the same set14

test-blindspots Finds consequential behavior that passing tests leave unproven, then checks it with small exploratory probes. Use it to assess coverage of a specific change. CX Codex +1 ★ 355repo stars regression-proof This skill walks the agent through a bug fix: write a test that fails on the old behavior, apply the fix, then watch the same test pass. CX Codex +1 ★ 355repo stars progressive-disclosure This skill breaks a large instruction file into an entry file and conditional branches. Use it for skills, CLAUDE.md, or specs that carry too much context. CX Codex +1 ★ 355repo stars pitch-packager Turns a finished piece of work — spec, prototype, implementation notes — into one document a reviewer can read and approve in a single pass. CX Codex +1 ★ 355repo stars interview-me Interviews you one question at a time to clarify requirements before coding starts. It helps when brainstorming is finished but the technical spec still has open gaps. CX Codex +1 ★ 355repo stars implementation-plan This skill puts changeable decisions ahead of implementation chores in a build plan. Use it before development, especially after a brainstorm or requirements interview. CX Codex +1 ★ 355repo stars implementation-notes Keeps an implementation-notes.md file while you build, recording every departure from the plan and every edge case that turns up. CX Codex +1 ★ 355repo stars context-audit Scans agent instructions across CLAUDE.md, skills, and tools for conflicts and duplicates. Prepares a cut list as a diff to trim context size. CX Codex +1 ★ 355repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor