exa-code-context
USE WHEN: needing real code examples from GitHub, finding API usage patterns, looking up framework setup, verifying library implementations, eliminating…
Skill by mahidalhan
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mahidalhan-exa-code-context
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/exa-code-context
What's inside
- Skill name
exa-code-context- Description
- USE WHEN: needing real code examples from GitHub, finding API usage patterns, looking up framework setup, verifying library implementations, eliminating hallucinations with working code. DO NOT USE WHEN: working on proprietary code, questions about the current codebase, or when local context is sufficient. Requires Exa API key configured in environment.
- License
- MIT
- Instructions
- 267 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- api_reference.md · references/
- get_code_context.py · scripts/
SKILL.md (first lines)
# Exa Code Context
## Overview
Exa Code Context is a powerful tool for finding relevant code snippets and examples from the open source community. It searches over billions of GitHub repos, documentation pages, Stack Overflow posts, and more to find perfect, token-efficient context that helps write correct code.
This skill eliminates hallucinations in coding tasks by providing real, working code examples instead of made-up patterns.
## When to Use This Skill
Use this skill when:
- Looking for real-world usage examples of a library or framework
- Need correct API syntax for a specific SDK or service
- Setting up development environments or project configurations
- Finding authentication, middleware, or architectural patterns
- Understanding how to use specific programming language features
- Searching for best practices and common implementations
**Example triggers**:
- "How do I use React hooks for state management?"
- "Show me FastAPI async endpoint examples with dependencies"
- "What's the correct syntax for pandas dataframe filtering?"
- "How to set up Next.js 14 app router with TypeScript?"
- "Express.js middleware patterns for authentication"
## Quick Start
The skill provides a Python script that interfaces with the Exa Context API:
```python
from scripts.get_code_context import get_code_context
# Simple usage - automatic token optimization
result = get_code_context("React hooks for state management")
print(result["response"])
# Specify token count for more/less context
result = get_code_context("pandas dataframe filtering", tokens_num=5000)
print(result["response"])
```
**Command-line usage**:
```bash
python scripts/get_code_context.py "React hooks for state management"
python scripts/get_code_context.py "FastAPI async endpoints" 5000
```
## Common Use Cases
### 1. Framework Usage
Find practical examples of how frameworks are used in real projects:
**Query**: "use Exa search in python and make sure content is always livecrawled"
Returns actual code showing:
- Import statements
- Configuration setup
- Real usage patterns from open source projects
### 2. API Syntax
Get correct syntax for APIs and SDKs:
**Query**: "use correct syntax for vercel ai sdk to call gpt-5 nano asking it how are you"
Returns:
- Current API syntax (not outdated)
- Working code examples
- Parameter configurations
### 3. Development Setup
Configure development environments correctly:
**Query**: "how to set up a reproducible Nix Rust development environment"
Returns:
- Configuration files
- Setup instructions with code
- Working examples from real projects
### 4. Library Implementation
See how libraries are implemented in practice:
**Query**: "pandas dataframe filtering and groupby operations"
Returns:
- Multiple code examples
- Different approaches
- Real-world usage patterns
### 5. Best Practices
Find authentication, security, and architectural patterns:
**Query**: "authentication patterns in NextJS applications"
Returns:
- Current best practices
- Complete implementations
- Security considerations with code
## Usage Examples
### Example 1: React State Management
```python
result = get_code_context("React hooks for state management examples")
# Returns formatted code snippets like:
# - useState examples with event handlers
# - Custom hooks for state management
# - Context API patterns
# - Real component implementations
```
### Example 2: FastAPI Patterns
```python
result = get_code_context("FastAPI async endpoints with dependencies", tokens_num=5000)
# Returns:
# - Async route handlers
# - Dependency injection patternsFrom mahidalhan/claude-hacks, MIT.
More from mahidalhan/claude-hacks
- 0.502score
swift-concurrency-expert
mahidalhan
Swift Concurrency review and remediation for Swift 6.2+.
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
skill-creator
mahidalhan
USE WHEN: user asks to create a skill, scaffold a new capability, codify expertise into reusable instructions, or says "create skill", "new skill", "make a…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
threaded-explainer
mahidalhan
USE WHEN: teaching complex topics requiring chunked delivery, handling mid-explanation questions, preserving context across interrupts, deep-dive explanations…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
architecture-introspector
mahidalhan
USE WHEN: analyzing existing architectures, evaluating architectural decisions, identifying technical debt, planning refactoring, assessing whether patterns…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
algorithmic-art
mahidalhan
USE WHEN: user requests generative art, algorithmic art, procedural visuals, flow fields, particle systems, creative coding, or says "create art"…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
explainer
mahidalhan
USE WHEN: user asks "explain", "teach me", "how does X work", "help me understand", or wants to learn concepts from first principles with interactive…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
communication-coach
mahidalhan
PROACTIVE skill - Claude invokes automatically when user messages exhibit anti-patterns.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
frontend-design
mahidalhan
USE WHEN: building web components, pages, or applications requiring distinctive visual design, user says "design", "UI", "frontend", "interface", or wants…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
ascii-art-explainer
mahidalhan
USE WHEN: visualizing algorithms, data structures, architecture, control flow with ASCII art, or when terminal-friendly diagrams are needed.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
mermaid-diagrams
mahidalhan
USE WHEN: user needs diagrams, flowcharts, ERDs, sequence diagrams, state machines, architecture visualizations, or says "visualize", "diagram", "chart"…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
publish-skill
mahidalhan
USE WHEN: user wants to publish, port, or share a skill to a marketplace repo.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
task-orchestrator
mahidalhan
USE WHEN: planning complex multi-step tasks, organizing work with dependencies, identifying parallelization opportunities, breaking down large features into…
SkillDFreshness: D★ 33Claude Code +9
Signals
- Stars
- 33
- Forks
- 5
- Open issues
- 1
- Last commit (this folder)
- Jan 8, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mahidalhan/claude-hacks
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mahidalhan
- 0.502score
threaded-explainer
mahidalhan
USE WHEN: teaching complex topics requiring chunked delivery, handling mid-explanation questions, preserving context across interrupts, deep-dive explanations…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
swift-concurrency-expert
mahidalhan
Swift Concurrency review and remediation for Swift 6.2+.
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
architecture-introspector
mahidalhan
USE WHEN: analyzing existing architectures, evaluating architectural decisions, identifying technical debt, planning refactoring, assessing whether patterns…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
skill-creator
mahidalhan
USE WHEN: user asks to create a skill, scaffold a new capability, codify expertise into reusable instructions, or says "create skill", "new skill", "make a…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
task-orchestrator
mahidalhan
USE WHEN: planning complex multi-step tasks, organizing work with dependencies, identifying parallelization opportunities, breaking down large features into…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
algorithmic-art
mahidalhan
USE WHEN: user requests generative art, algorithmic art, procedural visuals, flow fields, particle systems, creative coding, or says "create art"…
SkillDFreshness: D★ 33Claude Code +9
Cite this page
exa-code-context skill. Agent Mart. https://agentmart.dev/skills/mahidalhan-exa-code-context (last updated 2026-10-24)