Skip to content

gracefullight/pkgs / .agents/skills/oma-search

oma-search

Verified

Find external documentation, web sources, or remote code with citations. Local code navigation uses the configured code tools.

FileKindSize
SKILL.mdskill md4.8 KB
resources/checklist.mdmarkdown1.7 KB
resources/error-playbook.mdmarkdown5.1 KB
resources/examples.mdmarkdown4.2 KB
resources/execution-protocol.mdmarkdown3.0 KB
resources/intent-rules.mdmarkdown2.7 KB
resources/trust-registry.mdmarkdown5.0 KB

resources/execution-protocol.md

View on GitHub
# Search Route Details

The parent SKILL.md owns classification and execution order. Load only the selected route below.

### docs route
1. Call Context7 `resolve-library-id` with the library/framework name
2. If resolved: call `query-docs` with the library ID and query topic
3. If NOT resolved: fall back to `web` route with notice to user

### web route
1. Use runtime native search tool (WebSearch, Google Search, Bing, etc.)
2. If native search fails or returns blocked/empty:
   - Enter the bypass fallback (see below)
3. Collect top results with URLs

#### Bypass Fallback (on native search failure)
Delegate to the native CLI: `oma search fetch <url>`. The pipeline
auto-escalates through four strategies and stops on the first success:

- **api**: platform-specific handlers (Twitter syndication, Reddit JSON,
  HN Firebase, arXiv Atom, SE v2.3, Bluesky AT Protocol, Mastodon, Wikipedia,
  CrossRef, OpenLibrary, Lobste.rs, dev.to, V2EX, npm, PyPI, Naver blog/finance).
- **probe**: parallel Jina Reader + WebFetch + curl UA variants (first-wins).
- **impersonate**: Python `curl_cffi` subprocess (safari→chrome→firefox;
  Korean hosts prefer safari). Auto-skips remaining TLS targets on
  JS-essential markers.
- **browser**: `puppeteer-core` + system Chrome via CDP. No MCP runtime
  dependency. Install Chrome or set `OMA_CHROME_PATH`.

Sidecar: add `--include-archive` to try AMP → archive.today → Wayback
Machine when all primary strategies fail. Archive hits tag `provenance`
so consumers can deprioritize cached content.

Flags: `--only <list>`, `--skip <list>`, `--timeout <sec>`, `--locale <v>`,
`--pretty`. Exit codes: 0=ok, 2=blocked, 3=not-found, 4=invalid-input,
5=auth-required, 6=timeout, 1=error.

### code route
1. Use the CLI wrapper: `oma search code "<query>"` (wraps `gh search code` / `glab api`)
   - URL contains `gitlab.com` or `--gitlab` flag -> add `--host gitlab`
   - Optional filters: `--language <lang>`, `--repo <owner/repo>`, `--limit <n>`
   - No URL (keyword only) -> default host is github (largest OSS coverage)
2. Parse the JSON output into structured results
3. Include repo name, file path, and match context

### local route
Follow `../../_shared/core/code-intelligence.md`. Discover configured tools for named symbols, patterns, and structure. If unavailable or timed out, use native search only for paths outside this project or ignored paths; record limitations. Do not install a provider, track a repository, or silently switch providers.

## Result normalization

1. Gather results from all dispatched routes
2. Normalize into uniform format:
   ```
   { source: "docs|web|code|local", title, url, domain, snippet }
   ```
3. Deduplicate by URL

## Trust and result presentation

Use `trust-registry.md` for score resolution, exceptions, and caching. Return the query's selected sources with route, source reference, trust label/score, relevance, and material limitations. Adapt the presentation to the request; no fixed report layout is required.

## On Error
See `error-playbook.md` for recovery steps.
rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).Stars: 198kUpdated Claude CodeCodexUnverifiedInstall
doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Stars: 198kUpdated Claude CodeCodexVerifiedInstall