context-map

context-map is a skill for Claude Code, Codex from PracticalSwan/agent-skills. It costs 44 tokens per session (1,379 once invoked), scanned A, original, MIT.

A workflow for mapping which parts of a codebase may be affected before making a feature change, bug fix, refactor, or review.

In plain words
What is it for?
It is for finding entry points, dependencies, tests, documentation, configuration, schemas, scripts, likely edit targets, and risks such as public APIs or migrations.
Why use it?
It reduces the chance of editing too little, missing related tests or configuration, or overlooking risks near the changed code.

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/practicalswan/agent-skills/context-map
Any agent
npx skills add PracticalSwan/agent-skills --skill context-map
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

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 context-map

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/context-map.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/context-map)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/context-map"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/context-map.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,379 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.00044 $0.01379
Opus 5 $0.00022 $0.00690
Sonnet 5 $0.00009 $0.00276
Haiku 4.5 $0.00004 $0.00138

Measured today against content hash 6f18c081bc80, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-map 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/build-context-map.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

context-map/SKILL.md · 162 lines

How it starts

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

Context Map

Build a task-focused map of the codebase before changing files.

  • Leverage native parallel subagent dispatch and 200k+ context windows where available.

When to Use

Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.

  • A request spans more than one file and the impact is not obvious yet.
  • You need to identify the minimum safe edit set before implementation.
  • You are debugging a bug or regression and need to trace nearby code paths.
  • You want a review-quality summary of likely code, test, config, and documentation touch points.

Core Workflow

  1. Restate the change in one sentence.
  2. Search for obvious entry points by feature name, route, symbol, command, or error text.
  3. Expand outward into direct dependencies, tests, docs, config, schemas, and scripts.
  4. Separate likely edit targets from read-only reference patterns.
  5. Call out risk multipliers such as public APIs, migrations, auth, secrets, environment variables, or generated artifacts.
  6. Produce a compact context map before implementation.

Search Order

1. Primary Targets

Look for the files most likely to hold the requested behavior:

  • route handlers, commands, services, jobs, or pages
  • components, helpers, validators, and serializers
  • feature-specific configs, manifests, templates, and generated sources

2. Direct Dependencies

Trace the files that import, export, call, or configure the primary targets:

  • imports and exports
  • DI registration and factory wiring
  • schema or model definitions
  • build or deployment hooks

3. Verification Surface

Find the evidence paths that should move with the change:

  • unit, integration, E2E, and snapshot tests
  • fixtures, golden files, and sample payloads
  • README, usage docs, changelogs, and migration notes

4. Reference Patterns

Find nearby examples that show the house style for the same kind of work:

  • similar endpoints or handlers
  • related UI components
  • existing test patterns
  • prior migrations or config changes

Read the full file on GitHub · 162 lines

Files

What ships with it

3 files 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. today Changed 6f18c081bc80
  2. 3d ago First seen · 162 lines · 44 tokens per session scan A 217be339a2a7

Subscribe to this mod's changes

context-map is a skill published in the GitHub repository PracticalSwan/agent-skills (13 stars, last pushed 3d ago), licensed MIT. It adds 44 tokens to every session and 1,379 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-30.

Related

Other skills, from other repositories

planning-with-files

File-based planning for complex tasks. Use persistent markdown files as working memory to survive context resets. Creates taskplan.md, findings.md, and progress.md. Use for any task requiring >5 tool calls, research projects, or multi-step implementations.

wpank/ai · 53 tokens

changelog

Update per-package CHANGELOG.md files for a Ratel release. Drafts entries with git-cliff (scoped per package), lets you curate, then writes the CHANGELOGs. Handles both RC entries and GA-graduation collapse (merging X.Y.Z-rc. sections into a single X.Y.Z section). Invoke before tagging a release.

ratel-ai/ratel · 74 tokens

ops-publish-to-ametyst

Publish local .claude skills/loops to Ametyst — verbatim, flattened, no brain rewrite; optional retire-local (MOVE originals to deprecated-skills/, never delete) makes Ametyst the source of truth.

ratel-ai/ratel · 53 tokens

forgetful-context-gather

Gather deep context before planning or implementing — one pass that turns a task description into a cited context pack: relevant decisions, patterns, constraints, code pointers, procedures, and explicit gaps. Runs recall from several angles, explores the graph around the strongest hits, and opens the linked material.

ScottRBK/forgetful · 63 tokens

foblex-flow

Authoritative guide for working with Foblex Flow (@foblex/flow) in the skill-map UI. Use whenever editing Angular code in ui/ that touches graph rendering — templates with f-flow / f-canvas / f-connection / fNode / fConnector / fDraggable / fZoom / fMarker directives; TypeScript importing from @foblex/flow…

crystian/skill-map · 203 tokens

graflow-workflow

Create Python workflow pipelines using Graflow with a structured plan-implement-review process. Use when building task graphs, parallel pipelines, LLM workflows, or any Graflow-based automation. Triggers on requests for "workflow", "pipeline", "task graph", "Graflow", or when user wants to build an automated data/AI…

GraflowAI/graflow · 73 tokens