agentleFS
wxxb789wxxb789/hoa/skills/research-writing/ghc-search/SKILL.md

ghc-search

Skill2 starsChanged 12 days agoMITView on GitHub

Find a public announcement, current fact or original X/Twitter posts through ghc-proxy web and social search. When you don't have a URL, choose the web or X engine, filter by domain, handle or date as supported, and return an answer with deduplicated source URLs. Not for official-document-verification.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Only if a script command fails (for example uv is not found), read references/troubleshooting.md.

    line 29
  2. Very specific:

    If a model returns HTTP 400 on /v1/responses, read model/endpoint compatibility.

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ghc-search

Web and X search through a local ghc-proxy Responses API. The script owns request building, parsing, inline-citation stripping, and URL dedup — you get an answer plus a clean source list.

Use it

The engine is a required first argument: gpt searches the web, x searches X/Twitter. They hit different corpora, so there is no default.

The script is scripts/ghc_search.py relative to this skill's directory. Only if a script command fails (for example uv is not found), read references/troubleshooting.md.

S="<skill-dir>/scripts/ghc_search.py"

uv run "$S" gpt "what is the current stable .NET SDK version"
uv run "$S" x --handle SpaceXAI "newest post"
uv run "$S" gpt --domain dotnet.microsoft.com --json "latest .NET SDK version"
uv run "$S" x --handle dotnet --from-date 2026-08-01 "what shipped this month"
FlagEngine
--modelbothdefaults below (env-overridable)
--effort low|medium|highbothdefaults high (gpt), medium (x)
--handle NAMExrestrict to a handle; repeatable
--exclude-handle NAMExrepeatable
--from-date / --to-datexYYYY-MM-DD
--domain HOST / --block-domain HOSTgptrepeatable
--context-size low|medium|highgpthow much page text the tool pulls back
--country CCgpttwo-letter code, for geo-sensitive results
--limit Nbothsources listed, default 10
--json, --max-tokens, --timeout, --endpointboth

A flag from the wrong engine is rejected before any network call.

Configuration

Defaults assume a local ghc-proxy on 127.0.0.1:4141. Set your proxy endpoint and per-engine model IDs via environment variables (or pass --endpoint / --model):

Env varOverridesDefault
GHC_SEARCH_ENDPOINTproxy endpointhttp://127.0.0.1:4141/v1/responses
GHC_SEARCH_MODEL_GPTgpt-engine modelrequired unless --model is passed
GHC_SEARCH_MODEL_Xx-engine modelrequired unless --model is passed

--model and --endpoint flags win over env vars.

What you need to know

  • Latency ~3-20s measured; date-filtered X searches are the slow end.
  • If a model returns HTTP 400 on /v1/responses, read model/endpoint compatibility.
  • --handle restricts results but does not steer the model, so the script appends the handles to the prompt for you. That is why a terse x --handle X "newest post" works; without the appending it draws a clarifying question instead of a search.
  • An empty source list is possible — the model sometimes answers from its own knowledge without searching. No sources means no citation; judge the answer accordingly, and add --domain or ask it to cite if you need provenance.
  • A response cut off by --max-tokens keeps its answer, flagged [truncated], rather than being discarded. Raise --max-tokens and re-run if the tail matters.
  • Exit code is non-zero with a one-line stderr message on any failure; a partial parse is never printed as success.

Prerequisite

A running ghc-proxy is required; the script reports the endpoint it could not reach.

When this is not the right tool

Without a reachable ghc-proxy this skill cannot run; fall back to whatever browser automation your runtime offers (e.g. drive Bing with &setlang=en; Google may serve a block page).

Reach for something else when you already have what you need: fetch the page directly when you have the URL, and prefer a documentation source (context7 MCP) over general search when looking up a named library or API.

Check

uv run "$(dirname "$S")/test_ghc_search.py"   # offline, no network required

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.