# Find Code Context Faster

Developers often lose time tracing why code exists and what depends on it. This skill prompts Claude, Codex, or Claude Code to gather related graph knowledge, callers, imports, and tests before changes.

## Install

```bash
npx skillstore add joseph obrien/89jobrien-code-context-finder
```

## Metadata

- Status: approved
- Slug: 89jobrien-code-context-finder
- Version: 1.0.1
- Author version: 1.0.1
- Skillstore revision: r1
- Version status: valid
- Tree hash: f5d3da7b311fe2d124334ceb752451aba8bbbac6018046511445088023d74319
- Author: Joseph OBrien
- GitHub username: 89jobrien
- License: MIT
- Repository: https://github.com/89jobrien/steve/tree/main/steve/skills/code-context-finder
- Ref: c4037264bbd363c572662d6154a3ab28f5ca4f53
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: scripts, external\_commands, network
- Quality score: 83
- Quality tier: gold
- Public page: https://skillstore.pages.dev/skills/89jobrien-code-context-finder
- Manifest: https://skillstore.pages.dev/api/skills/89jobrien-code-context-finder/manifest

## Capabilities

- Detects moments when extra context is useful, such as refactors, errors, new files, and architecture decisions.
- Guides knowledge graph searches for prior decisions, project context, owners, and related concepts.
- Provides grep and find patterns for imports, callers, tests, routes, APIs, database queries, and configuration references.
- Includes a Python script that reports imports, dependents, callers, and tests for Python targets.
- Suggests concise context summaries that combine graph notes with code relationship results.

## Use Cases

- Refactor Shared Python Modules: Map imports, callers, and tests before changing a shared module.
- Understand Unfamiliar Repositories: Combine graph notes and code searches to learn module purpose and dependencies.
- Review Architecture Decisions: Find prior decisions and related implementations before choosing a design path.

## Prompt Templates

### Find File Context

```
Use code-context-finder for src/auth/service.py. Summarize the module purpose, imports, dependents, related tests, and relevant graph notes.
```

### Trace A Bug Path

```
Use code-context-finder for this error area: payment retries. Search memory for prior issues, then identify likely callers, config references, and tests.
```

### Prepare A Refactor

```
Use code-context-finder before refactoring UserService. Build an impact summary with direct callers, indirect dependents, tests, and related architecture decisions.
```

### Assess A Cross-System Change

```
Use code-context-finder for the authentication migration. Compare graph decisions, route handlers, API calls, database queries, configs, and test coverage before recommending edits.
```

## Limitations

- It depends on available memory graph data and repository files.
- Search results may miss dynamic imports, generated code, or language patterns outside the references.
- The helper script focuses on Python relationships.
- It can surface sensitive file names, so review commands before scanning private repositories.

## Best Practices

- Review the suggested search scope before running repository-wide commands.
- Use both memory graph results and code searches before changing shared modules.
- Summarize only relevant context so the coding task stays focused.

## Anti Patterns

- Running broad searches across private repositories without checking scope.
- Treating grep results as complete impact analysis without reading key files.
- Ignoring prior decisions when changing architecture or shared interfaces.

## Security Audit

- Audited at: 2026-07-05T11:25:13.245\+00:00
- Summary: All static findings were assessed as false positives. The flagged lines are Markdown examples, grep search patterns, or Python strings that format Markdown output. No prompt injection, network call, secret access, shell backtick execution, or dynamic code loading was found in the reviewed files.

## Stats

- Views: 194
- Downloads: 76
- Favorites: 4
- Popularity score: 0
