Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
89jobrien avatar

Code Context Finder

  • 36 installs
  • 4 repo stars
  • Updated April 11, 2026
  • 89jobrien/steve

code-context-finder is a Claude Code skill that surfaces relevant context while coding by combining knowledge-graph (MCP memory) search with code-relationship analysis of imports, callers, and tests.

About

code-context-finder is a Claude Code skill that surfaces relevant context while coding by combining knowledge-graph search with code-relationship analysis. It detects when context would help (unfamiliar files, new features, debugging, refactoring) and retrieves prior decisions from an MCP memory graph plus imports, callers, and tests via grep. A developer uses it to understand a codebase before making changes and to record decisions afterward. It ships a script to analyze code relationships.

  • Surfaces relevant context by combining knowledge-graph search with code-relationship analysis
  • Uses MCP memory tools plus grep to find imports, callers, and prior decisions
  • Smart detection triggers on unfamiliar files, new features, debugging, and refactoring

Code Context Finder by the numbers

  • 36 all-time installs (skills.sh)
  • Ranked #8,608 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

code-context-finder capabilities & compatibility

Capabilities
context retrieval · knowledge graph search · code relationship analysis · dependency mapping
Use cases
research · refactoring · debugging · documentation
Pricing
Free
From the docs

What code-context-finder says it does

Find and surface relevant context while coding by combining knowledge graph search with code relationship analysis.
SKILL.md
Use MCP memory tools to find relevant entities:
SKILL.md
npx skills add https://github.com/89jobrien/steve --skill code-context-finder

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs36
repo stars4
Last updatedApril 11, 2026
Repository89jobrien/steve

What it does

Surface prior decisions and code dependencies from a knowledge graph and grep while coding, before making changes.

Who is it for?

Pulling prior decisions and code dependencies from a knowledge graph and grep before editing code

Skip if: Codebases without an MCP memory/knowledge-graph server to query

When should I use this skill?

Opening an unfamiliar file, starting a new feature, debugging, refactoring, or making architectural decisions

What you get

A synthesized context report of knowledge-graph entities, code relationships, and suggested actions before a change.

  • synthesized context report (knowledge graph entities, code relationships, suggested actions)

By the numbers

  • 6 documented context triggers (unfamiliar file, new feature, debugging, refactoring, architectural decisions, config/inf

Files

SKILL.mdMarkdownGitHub ↗

Code Context Finder

Overview

Find and surface relevant context while coding by combining knowledge graph search with code relationship analysis. Uses smart detection to identify when additional context would be helpful, then retrieves:

  • Knowledge graph entities: Prior decisions, project context, related concepts
  • Code relationships: Dependencies, imports, function calls, class hierarchies

When to Use (Smart Detection)

This skill activates automatically when detecting:

TriggerWhat to Search
Opening unfamiliar fileKnowledge graph for file/module context, code for imports/dependencies
Working on new featurePrior decisions, related concepts, similar implementations
Debugging errorsRelated issues, error patterns, affected components
Refactoring codeDependent files, callers/callees, test coverage
Making architectural decisionsPast ADRs, related design docs, established patterns
Touching config/infra filesRelated deployments, environment notes, past issues

For detection triggers reference, load references/detection_triggers.md.

Core Workflow

1. Detect Context Need

Identify triggers that suggest context would help:

Signals to watch:
- New/unfamiliar file opened
- Error messages mentioning unknown components
- Questions about "why" or "how" something works
- Changes to shared/core modules
- Architectural or design discussions

2. Search Knowledge Graph

Use MCP memory tools to find relevant entities:

# Search for related context
mcp__memory__search_nodes(query="<topic>")

# Open specific entities if known
mcp__memory__open_nodes(names=["entity1", "entity2"])

# View relationships
mcp__memory__read_graph()

Search strategies:

  • Module/file names → project context
  • Error types → past issues, solutions
  • Feature names → prior decisions, rationale
  • People names → ownership, expertise

3. Analyze Code Relationships

Find code-level context:

# Find what imports this module
grep -r "from module import" --include="*.py"
grep -r "import module" --include="*.py"

# Find function callers
grep -r "function_name(" --include="*.py"

# Find class usages
grep -r "ClassName" --include="*.py"

# Find test coverage
find . -name "*test*.py" -exec grep -l "module_name" {} \;

For common search patterns, load references/search_patterns.md.

4. Synthesize Context

Present findings concisely:

## Context Found

**Knowledge Graph:**
- [Entity]: Relevant observation
- [Decision]: Prior architectural choice

**Code Relationships:**
- Imported by: file1.py, file2.py
- Depends on: module_a, module_b
- Tests: test_module.py (5 tests)

**Suggested Actions:**
- Review [entity] before modifying
- Consider impact on [dependent files]

Quick Reference

Knowledge Graph Queries

IntentQuery Pattern
Find project contextsearch_nodes("project-name")
Find prior decisionssearch_nodes("decision") or search_nodes("<feature>")
Find related conceptssearch_nodes("<concept>")
Find people/ownerssearch_nodes("<person-name>")
Browse allread_graph()

Code Relationship Queries

IntentCommand
Find importers`grep -r "from X import\
Find callersgrep -r "function("
Find implementations`grep -r "def function\
Find testsfind -name "*test*" -exec grep -l "X"
Find configsgrep -r "X" *.json *.yaml *.toml

Integration with Coding Workflow

Before Making Changes

1. Check knowledge graph for context on module/feature 2. Find all files that import/depend on target 3. Locate relevant tests 4. Review prior decisions if architectural

After Making Changes

1. Update knowledge graph if significant decision made 2. Note new patterns or learnings 3. Add observations to existing entities

When Debugging

1. Search knowledge graph for similar errors 2. Find all code paths to affected component 3. Check for related issues/decisions 4. Document solution if novel

Resources

references/

  • detection_triggers.md - Detailed trigger patterns for smart detection
  • search_patterns.md - Common search patterns for code relationships

scripts/

  • find_code_relationships.py - Analyze imports, dependencies, and call graphs

Related skills

FAQ

How does it find context?

It searches a knowledge graph via MCP memory tools for prior decisions and entities, then uses grep to find imports, callers, class usages, and tests.

When does it activate?

On triggers like opening an unfamiliar file, working on a new feature, debugging errors, refactoring, or making architectural decisions.

AI & Agent Buildingagentsresearch

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.