exa-code-context
Skill by mahidalhan
Finds real code examples from GitHub repositories, documentation and Stack Overflow through the Exa Context API. Built for developers who need working syntax and usage patterns for libraries and frameworks.
Install exa-code-context
Built from the published package, never by AI.
git clone --depth 1 https://github.com/mahidalhan/claude-hacks /tmp/claude-hacks && mkdir -p ~/.claude/skills && cp -r /tmp/claude-hacks/skills/exa-code-context/skills/exa-code-context ~/.claude/skills/exa-code-contextRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mahidalhan/claude-hacks /tmp/claude-hacks && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-hacks/skills/exa-code-context/skills/exa-code-context ~/.gemini/antigravity-cli/skills/exa-code-contextAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Exa Code Context is an agent skill that searches open source material for code examples. It queries the Exa Context API across GitHub repositories, documentation pages, Stack Overflow posts and more, then returns code snippets with source URLs. The skill includes a Python script, scripts/get_code_context.py, that can be imported as a module or run from the command line.
A caller passes a natural language query and an optional token count, which can be "dynamic" (the default), 5000, 10000 or a custom value from 50 to 100000. The script reads the EXA_API_KEY value from /backend/.env. The skill is aimed at developers who want working code examples for APIs, frameworks and setup instead of invented patterns. The source says it should not be used for proprietary code or questions about the current codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Framework usage examplesFinds practical examples of how frameworks are used in real projects.
- API syntax lookupReturns current syntax and working code for APIs and SDKs.
- Development setupFinds configuration files and setup instructions with code.
- Library implementationShows multiple examples and approaches for how libraries are used.
- Best practice patternsFinds authentication, security and architectural patterns with code.
What you need
- Exa API key
- Python
- Exa API key set as EXA_API_KEY in /backend/.env
Try asking
- 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?
Good to know
- Not intended for proprietary code or questions about the current codebase
- Requires an Exa API key configured in the environment
- Token count must be between 50 and 100000 or set to dynamic
- Each call returns a costDollars value for tracking API usage
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/exa-code-context/skills/exa-code-context/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to exa-code-context
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
exa-code-context: common questions
What sources does Exa Code Context search?
The source says it searches GitHub repositories, documentation pages, Stack Overflow posts and more. Results include source URLs for further reading.
Can I use it on my private code?
No. The skill's own usage notes say not to use it for proprietary code or questions about the current codebase.
How do I control the amount of returned context?
Pass a token count such as 5000 or 10000, or leave it as dynamic to let the API choose the length. The source gives a custom range of 50 to 100000.
How do I install exa-code-context?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is exa-code-context free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is exa-code-context safe to use?
It scores 56 of 100. Grades: maintenance D, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to exa-code-context?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
