map-project-architecture

map-project-architecture is a skill for Claude Code, Codex from HuginnIndustries/CodeCartographer. It costs 71 tokens per session (835 once invoked), scanned A, original, MIT.

A repository-mapping guide that describes code layers, package boundaries, entry points, dependencies, and shared parts. A monorepo is one repository containing multiple related packages or applications.

In plain words
What is it for?
It helps document package inventories, dependency direction, public interfaces, and the main roles of modules in CLIs, SDKs, and multi-part products.
Why use it?
It gives developers a structural view of an unfamiliar project before they audit, port, split up, or rebuild it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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/architecture
Any agent
npx skills add HuginnIndustries/CodeCartographer --skill architecture
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 map-project-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/huginnindustries/codecartographer/architecture.svg)](https://agentmods.dev/skills/huginnindustries/codecartographer/architecture)
Your own site
<a href="https://agentmods.dev/skills/huginnindustries/codecartographer/architecture"><img src="https://agentmods.dev/badge/skills/huginnindustries/codecartographer/architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 835 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.1 $0.00071 $0.00835
Opus 5 $0.00036 $0.00417
Sonnet 5 $0.00014 $0.00167
Haiku 4.5 $0.00007 $0.00084

Measured 5d ago against content hash 467bc7cf6ddb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

map-project-architecture 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 5d 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/architecture/SKILL.md · 103 lines

What it actually says

Map Project Architecture

Build the map before analyzing implementation details.

Read the structural sources first:

  • Root README and contribution docs.
  • Root package/workspace manifest and top-level scripts.
  • Package or module READMEs.
  • Package manifests, bin entries, exports, and top-level entrypoints.

For a monorepo, create a package inventory with these columns:

  • package or module name
  • purpose
  • public entrypoints
  • key dependencies
  • runtime surface
  • likely ownership category

Classify each package or major module into one primary role:

  • core semantics
  • protocol or normalization layer
  • persistence or state
  • UI or rendering
  • integration adapter
  • product shell

Trace dependency direction instead of reading everything in file order:

  • Identify what depends on what.
  • Find the lowest stable layer that nothing inside the repo depends on.
  • Call out cycles explicitly.
  • Mark packages that are wrappers around shared internals rather than unique systems.

Identify public surfaces early:

  • binaries and CLI commands
  • exported libraries and public types
  • network or RPC interfaces
  • file formats and persistent artifacts
  • user-facing screens or workflows

Record the project's durable state:

  • config files
  • environment variables
  • auth material
  • session files
  • logs
  • caches
  • databases
  • generated artifacts

Treat third-party SDKs as shaping forces, not architecture:

  • Note where vendor APIs, terminal behavior, Slack, browser APIs, or cloud services impose constraints.
  • Do not let those constraints define the port's module boundaries unless the behavior truly depends on them.

Document the build and packaging pipeline:

  • Build tool(s) and scripts (make, npm, cargo, gradle, etc.).
  • Multi-target or multi-stage builds.
  • Output artifacts: binaries, containers, packages, bundles.
  • CI/CD pipeline if visible from repo files (.github/workflows, Jenkinsfile, etc.).
  • Platform-specific packaging or distribution.
  • If the build pipeline is complex, use the secondary output at findings/build-and-deploy/build-and-deploy.md.

Document the concurrency model:

  • Threading model: single-threaded, thread pool, async/await, actor model, goroutines, etc.
  • Event loop or reactor pattern, if present.
  • Shared state and synchronization primitives.
  • Connection pooling and resource management.
  • Rate limiting or backpressure mechanisms.
  • Mark concurrency-related portability hazards explicitly — these rarely translate 1:1 across languages.

Write the output in seven sections:

  1. System intent
  2. Layer map
  3. Public surfaces
  4. Runtime lifecycle
  5. Concurrency model
  6. Build and packaging
  7. Porting priorities

Mark every conclusion with one of these evidence levels:

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

Test for common structural patterns:

  • shared provider or protocol layer
  • shared stateful agent or execution loop
  • multiple delivery surfaces on top
  • product-specific wrappers around a shared core
  • plugin or extension architecture
  • microservice or monorepo with service boundaries

Stop once the map is stable enough to explain where behavior lives. Only then move to contracts, protocols, or deep source reading.

Use the output template at templates/architecture-map.md.

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

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. 5d ago First seen · 103 lines · 71 tokens per session scan A 467bc7cf6ddb

Subscribe to this mod's changes

map-project-architecture is a skill published in the GitHub repository HuginnIndustries/CodeCartographer (4 stars, last pushed 5d ago), licensed MIT. It adds 71 tokens to every session and 835 once invoked, about $0.0004 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

ix

This skill should be used when answering structural questions about a codebase: understanding what a symbol is, tracing flows, measuring change impact, finding callers/callees/imports, or detecting code smells. It drives the Ix CLI (ix map/explain/trace/impact/search/rank/smells) against a persistent code graph stored…

ix-infrastructure/Ix · 103 tokens