context-map

Generate a context map of files, dependencies, tests, and risks for a code change.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/BrunoAMSilva/my-config --skill context-map-brunoamsilva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-map
Source: https://github.com/BrunoAMSilva/my-config/tree/main/coding/skills/context-map
Command: npx skills add https://github.com/BrunoAMSilva/my-config --skill context-map-brunoamsilva

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a clear, reviewable map of all files, dependencies, tests, and reference patterns related to a planned code change to avoid blind edits and reduce regressions.

Core Features & Use Cases

  • File discovery: Locate files that must be modified for a task.
  • Dependency identification: Surface direct imports/exports and relationships that may require updates.
  • Test and pattern detection: Find related tests and similar code patterns to follow or update.
  • Risk assessment: Summarize potential breaking changes, migration needs, and configuration impacts before implementation.
  • Use Case: Before refactoring a module, generate a context map to identify all callers, tests, and example implementations to inform a safe update plan.

Quick Start

Generate a context map that lists files to modify, their purpose, direct dependencies, related tests, reference patterns to follow, and a concise risk assessment for the described task.

Frequently Asked Questions about context-map

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map codebase dependencies before refactoring a module?

To map codebase dependencies before refactoring, generate a context map to locate files requiring modification, surface direct imports, and identify related tests. This prevents blind edits and reduces regression risks by providing a clear, reviewable overview of all affected artifacts.

What is the best way to identify related tests for a planned code change?

The best way to identify related tests for a code change is to run a context map analysis. It detects test and reference patterns across your codebase, listing existing tests that need updates and highlighting similar implementation patterns to follow during development.

How do I assess the risk of breaking changes before modifying files?

Assess the risk of breaking changes by generating a context map that summarizes potential migration needs, configuration impacts, and direct dependency relationships. This provides a concise risk assessment of your codebase before you begin implementation.

Can I analyze imports and reference patterns across my codebase without writing new code?

Yes, you can analyze imports and reference patterns without writing new code by generating a context map. It identifies direct dependencies and surfaces similar code patterns to follow, explicitly avoiding implementation until you review the complete file and artifact map.

Does generating a context map modify my existing source files?

Generating a context map does not modify existing source files. It strictly performs file discovery, dependency identification, and risk assessment to map relevant artifacts, avoiding any implementation until you review the generated map.