reverse-engineer-for-porting

reverse-engineer-for-porting is a skill for Claude Code, Codex from HuginnIndustries/CodeCartographer. It costs 32 tokens per session (867 once invoked), scanned A, original, MIT.

A reverse-engineering summary that combines findings about a project's architecture, interfaces, and communication rules into a bundle for rebuilding it elsewhere.

In plain words
What is it for?
Use it before writing a reimplementation plan, especially when porting a system to another language or runtime.
Why use it?
It provides one focused reference instead of requiring every earlier investigation report to be loaded at once. It keeps important rules, compatibility risks, defects, and evidence links together.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/huginnindustries/codecartographer/porting
Any agent
npx skills add HuginnIndustries/CodeCartographer --skill porting
Clone the repo
git clone --depth 1 https://github.com/HuginnIndustries/CodeCartographer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reverse-engineer-for-porting

README.md
[![agentmods](https://agentmods.dev/badge/skills/huginnindustries/codecartographer/porting.svg)](https://agentmods.dev/skills/huginnindustries/codecartographer/porting)
Your own site
<a href="https://agentmods.dev/skills/huginnindustries/codecartographer/porting"><img src="https://agentmods.dev/badge/skills/huginnindustries/codecartographer/porting.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00032 $0.00867
Opus 5 $0.00016 $0.00434
Sonnet 5 $0.00006 $0.00173
Haiku 4.5 $0.00003 $0.00087

Measured 3d ago against content hash a540b5e2e434, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reverse-engineer-for-porting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codecarto/findings/porting/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reverse Engineer For Porting

This phase synthesizes the outputs of architecture, contracts, and protocols. If defect reports exist, also read and integrate them: findings/defect-scan/defect-report.md (full-with-audit pipeline) or both findings/defect-scan-mechanical/mechanical-defects.md and findings/defect-scan-semantic/semantic-defects.md (full-with-deep-audit pipeline). The pipeline ensures all required phases are complete before this one runs. Read the prior phase artifacts before starting.

Treat the reverse-engineering bundle as the pipeline's intentional compression boundary. It must be self-sufficient enough for reimplementation-spec to start from this one artifact rather than loading every upstream report. Preserve compact source pointers instead of copying upstream prose:

  • Add a Source Index covering architecture, contracts, protocols/state, and defects when present.
  • Carry forward every load-bearing invariant, acceptance obligation, compatibility hazard, and defect disposition.
  • For omitted detail, name the canonical upstream section and the exact condition that should trigger a targeted deep read.
  • Surface conflicts and incomplete coverage explicitly; never hide them behind synthesis.

The source code to analyze is in the parent directory (../ relative to .codecarto/). This is the repository root.

Keep four classes of findings separate throughout:

  • observed fact: direct statements from docs, tests, schemas, types, and code.
  • strong inference: architectural conclusions drawn from multiple facts.
  • portability hazard: assumptions tied to the source language, runtime, terminal, OS, or third-party SDKs.
  • open question: missing or conflicting behavior that still needs evidence.

Prefer concept names over source names:

  • Translate file- or class-level details into concepts such as provider adapter, message normalizer, agent loop, tool executor, session store, render loop, UI surface, or product shell.
  • Do not assume the target implementation should mirror the source folder layout.

Treat layered repositories as a composition problem:

  • Identify the lowest reusable core first.
  • Separate shared middle layers from delivery surfaces.
  • Treat UI, CLI, bot, web, or deployment wrappers as adapters around shared behavior unless evidence says otherwise.
  • Look for reusable layers such as provider normalization, agent runtime, UI surfaces, and product wrappers.

Sort features by porting importance:

  • core: required for the system to function.
  • important: required for parity on major workflows.
  • optional: valuable, but not required for a first viable port.
  • incidental: source-specific ergonomics or implementation accidents.

If the defect report is available, integrate defect findings into the porting bundle:

  • Reference relevant defects in the feature contract table.
  • Tag each referenced defect with a porting recommendation: fix before porting (the defect would carry into a new implementation), port differently (the new implementation should handle this case differently by design), or leave behind (the defect is specific to the source implementation and won't survive porting).
  • Consolidate defect-related portability hazards alongside hazards from other phases.

Use the output template at templates/reverse-engineering-bundle.md. Produce:

  • A system summary in plain language.
  • A layer map with package or module ownership.
  • A feature contract table with porting priority (include defect references if the defect report exists).
  • A protocol and state note set.
  • Portability hazards consolidated from all prior phases.
  • Observed facts separated from inferred structure.
  • A compact Source Index and explicit coverage gaps that let downstream synthesis deep-read selectively.

Bias toward evidence over cleverness:

  • Prefer tests over assumptions.
  • Prefer behavior over implementation detail.
  • Mark uncertainty explicitly instead of flattening it away.

When fixing defects before or during porting, use the tracker template at templates/defect-fix-tracker.md to log each fix, deferral, or acceptance decision. The tracker uses defect IDs from the report (D{pass}.{number}) so progress maps directly back to findings.

Read the full file on GitHub · 60 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 60 lines · 32 tokens per session scan A a540b5e2e434

Subscribe to this mod's changes

reverse-engineer-for-porting is a skill published in the GitHub repository HuginnIndustries/CodeCartographer (4 stars, last pushed 3d ago), licensed MIT. It adds 32 tokens to every session and 867 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

repomix

Pack and analyze codebases into AI-friendly single files using Repomix. Use when the user wants to explore repositories, analyze code structure, find patterns, check token counts, or prepare codebase context for AI analysis. Supports both local directories and remote GitHub repositories.

yamadashy/repomix · 58 tokens

ctf-pwn

Solve CTF binary exploitation challenges by discovering and exploiting memory corruption vulnerabilities to read flags. Use for buffer overflows, format strings, heap exploits, ROP challenges, or any pwn/exploitation task.

cyberkaida/reverse-engineering-assistant · 46 tokens

deep-analysis

Performs focused, depth-first investigation of specific reverse engineering questions through iterative analysis and database improvement. Answers questions like "What does this function do?", "Does this use crypto?", "What's the C2 address?", "Fix types in this function". Makes incremental improvements (renaming…

cyberkaida/reverse-engineering-assistant · 98 tokens

ctf-rev

Solve CTF reverse engineering challenges using systematic analysis to find flags, keys, or passwords. Use for crackmes, binary bombs, key validators, obfuscated code, algorithm recovery, or any challenge requiring program comprehension to extract hidden information.

cyberkaida/reverse-engineering-assistant · 52 tokens

pyghidra-scripting

Write and run Python (PyGhidra) code inside the Ghidra session that ReVa's MCP server is already attached to, using the five ReVa scripting tools — run-script, list-scripts, read-script, write-script, edit-script. Use this whenever the user asks to execute Python against the current program, reach for the Ghidra Flat…

cyberkaida/reverse-engineering-assistant · 209 tokens

ctf-crypto

Solve CTF cryptography challenges by identifying, analyzing, and exploiting weak crypto implementations in binaries to extract keys or decrypt data. Use for custom ciphers, weak crypto, key extraction, or algorithm identification.

cyberkaida/reverse-engineering-assistant · 46 tokens