# Map

> Map is an open-source agent skill for developer tools. Maps an unfamiliar repo into a lean AGENTS.md so the agent knows where to start. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/duthaho/skillhub/tree/main/.claude/skills/map
- **Repository:** https://github.com/duthaho/skillhub
- **GitHub stars:** 9
- **License:** MIT
- **Skill name:** map
- **Collection:** https://github.com/duthaho/skillhub
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill orients an AI coding agent to a codebase it has not seen before. It dispatches read-only exploration passes along a fixed order: entry points and layout, build, test and lint commands, architecture and key abstractions, conventions and pitfalls, and test structure. Each finding is tied to a file path, and the results are condensed into a short AGENTS.md at the repository root, a file that many agents load automatically.

The workflow is human-gated. The skill first checks for existing agent instruction files and, when a previous map exists, runs a refresh that re-verifies commands and updates only the sections whose cited files have changed. The draft is shown for review, and nothing is written or committed to the repository until the user approves it. Stamps with the date and commit let later runs detect drift.

It works with plain file search and reading rather than a vector index, so it needs no external services or API keys. It is intended to run before feature or bugfix work in a repo the agent does not know.

## When your agent uses it

> Codebase orientation for an unfamiliar or large repo — "map this before I work in it." Fans out read-only Explore sub-agents that navigate the code (keyless — grep/glob/read, no embeddings to go stale) along the order that matters: entry points, build/test/lint commands, architecture and key abstractions, conventions and gotchas, test layout. Distills the findings into a lean AGENTS.md at the repo root — the cross-tool standard file many agents auto-load — where every claim points to a real file and nothing survives that isn't load-bearing. Human-in-the-loop: it drafts, you approve, and it never writes or commits into your repo without an explicit yes. Stamps the map with date + commit so /map refresh regenerates only what went stale. Use before working in a repo you or the agent don't know — e.g. "/map", "/map the auth subsystem", "generate an AGENTS.md", "/map refresh". Run it upstream of feature or bugfix; for the end-of-session shipping gate use done.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/duthaho/skillhub/tree/HEAD/.claude/skills/map)
- [License: MIT](https://github.com/duthaho/skillhub/tree/HEAD/.claude/skills/map)

## Features

- **Entry point discovery:** Finds how execution starts, such as main functions, routes, CLI commands or handlers, and describes the top-level layout.
- **Build and test commands:** Collects the exact build, test and lint commands from package manifests, Makefiles and CI configuration.
- **Architecture summary:** Identifies key abstractions, layers and data flow, citing the handful of files that matter most.
- **Conventions and gotchas:** Records repository patterns that differ from language defaults and invariants a newcomer could break.
- **Reviewed AGENTS.md output:** Drafts a lean AGENTS.md that the user approves before it is written into the repo.
- **Drift-aware refresh:** Re-checks an existing map against the current tree and updates only the sections that went stale.

## Good for

- Map this repo before I start working in it
- Generate an AGENTS.md for this project
- Map the auth subsystem before I change it
- Refresh the existing codebase map after recent changes
- Find where the tests live and how to run a single test

## Install

### Claude Code

This skill ships in the `coding-loop` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add duthaho/skillhub
/plugin install coding-loop@skillhub
```

Or copy only this skill to `~/.claude/skills/map`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/map &&
cp -R "$tmp/.claude/skills/map" ~/.claude/skills/map &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/map` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/map` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/map &&
cp -R "$tmp/.claude/skills/map" ~/.agents/skills/map &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/map` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/map` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/map &&
cp -R "$tmp/.claude/skills/map" ~/.cursor/skills/map &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/map` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/duthaho/skillhub.git --path .claude/skills/map
```

Or copy the folder to `~/.gemini/skills/map` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/map`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/map &&
cp -R "$tmp/.claude/skills/map" ~/.copilot/skills/map &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/map` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/duthaho/skillhub.git
```

Then copy `skillhub/.claude/skills/map` into your agent's skills folder as `map`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Map write to my repository automatically?

No. It shows the drafted AGENTS.md for approval and only writes the file after an explicit yes. Committing is offered separately and also needs approval.

### When should I run Map?

The skill says to run it before feature or bugfix work in an unfamiliar or large repo, and to use a separate skill for the end-of-session shipping check.

### Does Map need API keys or an index?

It navigates the code with grep, glob and file reads, without embeddings or a pre-built index, so it does not depend on external keys.

### What happens if my map is out of date?

Stamps record the date and commit. On refresh the skill re-runs commands to confirm they still work and regenerates only the sections whose cited files changed.

### How do I install Map in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/map to use it in all your projects, or to .claude/skills/map in one project. Or install the coding-loop plugin, which includes it: /plugin marketplace add duthaho/skillhub, then /plugin install coding-loop@skillhub.

### Does Map run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Map?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Map?

The closest alternatives to Map are Agents md, Wiki agents md, Agents md authoring, Agentsmd scaffold and Create agentsmd.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agents md](https://ai-powered.com/skills/agents-md-scaledockhq): Agents md is an open-source agent skill for developer tools.
- [Wiki agents md](https://ai-powered.com/skills/wiki-agents-md): Wiki agents md is an open-source agent skill for knowledge and memory.
- [Agents md authoring](https://ai-powered.com/skills/agents-md-authoring): Agents md authoring is an open-source agent skill for developer tools.
- [Agentsmd scaffold](https://ai-powered.com/skills/agentsmd-scaffold): Agentsmd scaffold is an open-source agent skill for developer tools.
- [Create agentsmd](https://ai-powered.com/skills/create-agentsmd): Create agentsmd is an open-source agent skill for developer tools.
- [Agents md](https://ai-powered.com/skills/agents-md): Agents md is an open-source agent skill for files and documents.
- [Codebase onboarding](https://ai-powered.com/skills/codebase-onboarding): Codebase onboarding is an open-source agent skill for developer tools.
- [Setup matt pocock skills](https://ai-powered.com/skills/setup-matt-pocock-skills): Setup matt pocock skills is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/map-duthaho
