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.
npx skills add HuginnIndustries/CodeCartographer --skill portinggit clone --depth 1 https://github.com/HuginnIndustries/CodeCartographerWrote 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.
[](https://agentmods.dev/skills/huginnindustries/codecartographer/porting)<a href="https://agentmods.dev/skills/huginnindustries/codecartographer/porting"><img src="https://agentmods.dev/badge/skills/huginnindustries/codecartographer/porting/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/huginnindustries/codecartographer/porting"><img src="https://agentmods.dev/badge/skills/huginnindustries/codecartographer/porting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.01141 |
| Opus 5.5 | $0.00013 | $0.00456 |
| Sonnet 5.5 | $0.00006 | $0.00228 |
| Haiku 4.5 | $0.00003 | $0.00114 |
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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 66 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.external-behavior claim: a claim about what a system outside this source tree does (a server, engine, driver, third-party API, OS) — unverifiable at any read depth here; carry it forward as unsettled, never promote it to a fact.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, orproduct 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:
- Read each scan's
§Runtime probessection (and the probe scripts it points at underscratch/probes/) before the findings tables: a probe-confirmed finding is the strongest evidence the scans produce, its severity is settled, and the bundle's dispositions should lean on it first. - 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),leave behind(the defect is specific to the source implementation and won't survive porting), orverify at runtime(the diagnosis is anexternal-behavior claimoropen question— carry it as a spike for the spec, and do not design around an unverified diagnosis). Preserveverify at runtimeas written: flattening it into one of the settled three is how a hedge stops traveling. - Consolidate defect-related portability hazards alongside hazards from other phases.
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.
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.
- 2mo ago Changed · +1 lines 06acc564c8ec
- 2mo ago Changed · +4 lines 5e7b875ac0fd
- 2mo ago Changed · +1 lines da905600140e
- 3mo ago First seen · 60 lines · 32 tokens per session scan A a540b5e2e434
reverse-engineer-for-porting is a skill published in the GitHub repository HuginnIndustries/CodeCartographer (7 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 1,141 once invoked, about $0.0001 per session on Opus 5.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.
reverse-engineer-for-porting compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| reverse-engineer-for-portingHuginnIndustries/CodeCartographer | Skill | 7 | 1mo ago | MIT | A | 32 | Claude Code, Codex |
| repomixyamadashy/repomix | Skill | 30k | today | MIT | A | 58 | Claude Code, Codex |
| ixix-infrastructure/Ix | Skill | 1.3k | yesterday | Apache-2.0 | A | 44 | Claude Code, Codex |
| ctf-pwncyberkaida/reverse-engineering-assistant | Skill | 997 | 3d ago | Apache-2.0 | A | 46 | Claude Code |
| ctf-revcyberkaida/reverse-engineering-assistant | Skill | 997 | 3d ago | Apache-2.0 | A | 52 | Claude Code |
| pyghidra-scriptingcyberkaida/reverse-engineering-assistant | Skill | 997 | 3d ago | Apache-2.0 | A | 209 | Claude Code |
| ctf-cryptocyberkaida/reverse-engineering-assistant | Skill | 997 | 3d ago | Apache-2.0 | A | 46 | Claude Code |