본문으로 건너뛰기
cccskills
무료GitHub에 공개

code-context-finder

Automatically find relevant context from knowledge graph and code relationships while coding. Detects when context would be helpful (new files, unfamiliar code, architectural decisions) and surfaces related entities, prior decisions, and code dependencies.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(5)

  • SKILL.md4.7 KB
  • references/detection-triggers.md3.0 KB
  • references/search-patterns.md4.0 KB
  • scripts/find-code-relationships.py6.7 KB
  • skill-report.json48.7 KB

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 importersgrep -r "from X import|import X"
Find callersgrep -r "function("
Find implementationsgrep -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

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Trigger for: explaining current FAR, DFARS, or agency-supplement text; determining documented acquisition-policy status for an agency and FAR part; comparing codified text, RFO model text, and agency deviations; tracing acquisition rulemaking; finding procurement comment periods; analyzing public comments; refreshing prior policy analysis; or producing an Acquisition Policy Impact Brief. Use published federal sources and supplied policy documents without making legal or procurement-specific applicability determinations. Do not use for clause selection, market research execution, opportunities, pricing, grants, or cooperative agreements.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4392026년 10월 18일 업데이트

Systematic framework for extracting actionable items from documents and organizing them into prioritized, trackable checklists. Use when converting reports, meeting notes, audits, or any document with embedded action items into structured TODO lists.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4392026년 10월 18일 업데이트

Browser automation for AI agents via inference.sh. Navigate web pages, interact with elements using @e refs, take screenshots, record video. Capabilities: web scraping, form filling, clicking, typing, drag-drop, file upload, JavaScript execution. Use for: web automation, data extraction, testing, agent browsing, research. Triggers: browser, web automation, scrape, navigate, click, fill form, screenshot, browse web, playwright, headless browser, web agent, surf internet, record video

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4392026년 10월 18일 업데이트

This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4392026년 10월 18일 업데이트

Run AI apps via inference.sh CLI - image generation, video creation, LLMs, search, 3D, Twitter automation. Models: FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa, OpenRouter, and many more. Use when running AI apps, generating images/videos, calling LLMs, web search, or automating Twitter. Triggers: inference.sh, infsh, ai model, run ai, serverless ai, ai api, flux, veo, claude api, image generation, video generation, openrouter, tavily, exa search, twitter api, grok

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4392026년 10월 18일 업데이트

Agile ceremonies and sprint management specialist. Use when running standups, retrospectives, sprint planning, or tracking sprint progress.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4392026년 10월 18일 업데이트

aiskillstore의 스킬 모두 보기

이 스킬의 문제 신고