code-search

code-search is a skill for Claude Code from feniix/pi-extensions. It costs 23 tokens per session (604 once invoked), scanned A, original, MIT.

A code-research skill that uses Exa to find external programming documentation, examples, API references, and debugging information. Exa is a search service for finding relevant web pages and code context.

In plain words
What is it for?
It is for looking up official documentation, API syntax, code examples, error explanations, library comparisons, and similar technical references.
Why use it?
It helps when the needed coding information is outside the current project and reduces the need to search manually or rely on memory.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter.

Good fit It is for looking up official documentation, API syntax, code examples, error explanations, library comparisons, and similar technical references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/feniix/pi-extensions/code-search
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add feniix/pi-extensions --skill code-search
Clone the repo
git clone --depth 1 https://github.com/feniix/pi-extensions

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/feniix/pi-extensions/code-search/github.svg)](https://agentmods.dev/skills/feniix/pi-extensions/code-search)
Your own site
<a href="https://agentmods.dev/skills/feniix/pi-extensions/code-search"><img src="https://agentmods.dev/badge/skills/feniix/pi-extensions/code-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/feniix/pi-extensions/code-search"><img src="https://agentmods.dev/badge/skills/feniix/pi-extensions/code-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00604
Opus 5.5 $0.00009 $0.00242
Sonnet 5.5 $0.00005 $0.00121
Haiku 4.5 $0.00002 $0.00060

Measured 1mo ago against content hash f9873371503e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/pi-exa/skills/code-search/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Search (Exa)

Use this skill when the user needs external coding context: official docs, API examples, error explanations, library comparisons, or implementation references that are not already in the repo.

Tool Selection

Intent Primary Tool Notes
Find docs, examples, API syntax, or error reports web_search_exa Start here for most lookups; include language/library/version in the query.
Read official docs or a promising result web_fetch_exa Fetch 1-3 high-signal URLs after discovery.
Need a concise grounded explanation web_answer_exa Best for direct questions; ask for citations and short code snippets.
Compare libraries or approaches across sources web_research_exa Use only when enabled and the answer needs synthesis, not a quick lookup.
Find similar docs or examples from one strong page web_find_similar_exa Use when a seed URL is clearly relevant.

If web_research_exa or web_search_advanced_exa is unavailable, do not pretend it can be used. Fall back to web_search_exa plus selective web_fetch_exa.

Query Writing

  • Include the language, framework/library, and version when known: TypeScript 5.7 TypeBox Object additionalProperties.
  • Include exact identifiers, error strings, function names, or package names when available.
  • Prefer official docs, release notes, issue trackers, and maintainer-authored examples before blogs.
  • For debugging, include the error class/message and runtime context.
  • web_search_exa
    • { "query": "TypeScript 5.7 TypeBox additionalProperties examples", "numResults": 5 }
  • web_fetch_exa
    • { "urls": ["https://example.com/docs/page"], "maxCharacters": 5000 }
  • web_answer_exa
    • { "query": "How does TypeBox validate additionalProperties in TypeScript?", "systemPrompt": "Prefer official docs and concise code snippets." }
  • web_research_exa
    • { "query": "Compare TypeScript runtime validation libraries for backend APIs, focusing on schema reuse, performance, and ergonomics.", "systemPrompt": "Prefer official docs, maintainer posts, and recent benchmarks. Call out uncertainty.", "outputSchema": { "type": "text" } }

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 47 lines · 23 tokens per session scan A f9873371503e

Subscribe to this mod's changes

code-search is a skill published in the GitHub repository feniix/pi-extensions (25 stars, last pushed 3d ago), licensed MIT. It adds 23 tokens to every session and 604 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

using-pi-subagents

Operate pi-subagents jobs safely, including direct-work decisions, least-privilege tools and attachments, thinking levels, delegation, bidirectional messaging, parallel starts, timeouts, waiting, cancellation, result handling, verification, and writer isolation.

narumiruna/pi-extensions · 54 tokens

configure-pi-starship

Configure @narumitw/pi-starship and answer questions about its pi-starship.toml settings. Use when the user asks to create, edit, repair, migrate, or understand pi-starship.toml, or asks which pi-starship module, variable, option, style, palette, preset, or runtime behavior to use. Do not use for generic TOML, shell…

narumiruna/pi-extensions · 97 tokens

codebase-memory

Use the codebase knowledge graph for structural code queries. Triggers on: explore the codebase, understand the architecture, what functions exist, show me the structure, who calls this function, what does X call, trace the call chain, find callers of, show dependencies, impact analysis, dead code, unused functions…

narumiruna/pi-extensions · 98 tokens

typesafe-ai

Build AI-powered software with TypeSafe and Jev, or use pi-typesafe's typesafequestion tool for typed semantic judgments and probabilities. Use when a feature needs programmable common sense, when an LLM prompt-and-parse step could become a structured decision, or when designing, calling, evaluating, or…

narumiruna/pi-extensions · 98 tokens

configure-pi-sync

Explain @narumitw/pi-sync settings and guide safe setup through its existing manager. Use when the user asks how to configure pi-sync.json, choose Git, WebDAV, R2, or S3 storage, select synced content, understand automatic controls, or recover unsupported settings. This skill provides guidance only, not settings edits…

narumiruna/pi-extensions · 93 tokens

pi-observability-local-dev

Use when developing or reviewing packages/pi-observability dashboard/server changes locally, especially rebuilding dist, restarting the 43190 server, validating UI behavior, or keeping the local dashboard in sync with source edits.

spences10/my-pi · 48 tokens