Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计通过

code-context-finder代码 context 查找器

Agent Skill

code-context-finder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

674

周安装

27

GitHub Stars

4

下载量

218
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code-context-finder(代码 context 查找器)
来源仓库:https://github.com/89jobrien/steve
仓库路径:skills/code-context-finder
安装命令:
npx skills add https://github.com/89jobrien/steve --skill code-context-finder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/89jobrien/steve --skill code-context-finder

简介

智能查找相关上下文,结合知识图谱与代码关系分析。

  • 自动识别打开陌生文件或工作时需要补充的信息。
  • 检索模块依赖、函数调用链与概念关联。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 适用于大型项目中快速定位相关代码与决策背景。
  • code-context-finder 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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\import X"`
Find callersgrep -r "function("
Find implementations`grep -r "def function\class Class"`
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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.63%
按下载量换算67

OpenCode

20.82%
按下载量换算45

Gemini CLI

15.76%
按下载量换算34

Antigravity

12.62%
按下载量换算28

windsurf

8.29%
按下载量换算18

Codex

3.72%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills