Logo van Search Context

Search Context

Organisatie
instructa
search-context

Find, clone, inspect, and summarize high-quality GitHub reference repositories for coding agents. Use when a user asks for GitHub reference projects, examples, prior art, inspiration, implementation patterns, or includes "$search-context" in a coding prompt.

Overzicht

Uitgeverinstructa
Repositoryagent-skills
Skillnaamsearch-context
Sterren
141
Forks
16
Meegeleverde bestanden
12
LicentieMIT
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 12 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door instructa op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Search Context in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/instructa/agent-skills/tree/main/skills/engineering/search-context
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/instructa/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/engineering/search-context .claude/skills/search-context
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Search Context in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Search Context automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Search Context niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Search Context

Use this skill when the user wants an agent to find useful GitHub reference projects for a feature, UI pattern, implementation pattern, platform, framework, or library.

Trigger examples:

  • $search-context visual progress indicator ring for ios app latest 2026
  • find GitHub references for a SwiftUI circular progress ring
  • how do good projects implement this pattern?
  • clone a few reference repos and tell me which files to inspect
  • give this agent GitHub context before implementing the feature

The goal is not faster raw code search. The goal is better reference selection, fewer cloned repositories, less context noise, and a clean manifest that tells the coding agent what to inspect.

Default workflow

  1. Convert the user request into concise GitHub search phrases. For broad app/product requests, split the request into stack, domain, and pattern facets instead of running one overloaded query.
  2. If the user asks for local/third-party references, search the local reference library first.
  3. Use GitHub repository discovery for fresh references, not GitHub code search.
  4. Prefer recent, maintained, readable repositories.
  5. Clone only the top candidate pool using blobless shallow clone.
  6. Inspect local and cloned repositories with rg.
  7. Verify candidates with local proof terms and reject generic/noisy references.
  8. Write a compact Markdown reference manifest with rejected/noisy references.
  9. Tell the agent which files are worth reading and why.

Required local tools

This skill expects these tools to be available in the shell:

  • gh, authenticated with GitHub
  • git
  • rg, also known as ripgrep
  • node version 18 or newer

Before running a search, use:

bash
node scripts/search-context.mjs check

Main command

From the skill directory:

bash
node scripts/search-context.mjs run "visual progress indicator ring for ios app latest 2026" \
  --preset ios-swift \
  --max-repos 5

If the package has been linked with npm link, use:

bash
search-context run "visual progress indicator ring for ios app latest 2026" --preset ios-swift

Presets

Use a preset when the platform or stack is clear.

  • ios-swift: iOS, Swift, SwiftUI, UIKit, Apple UI components.
  • web-react: React, Next.js, Vite, Tailwind, component patterns.
  • generic: fallback when the stack is unknown.

The preset controls GitHub language filters, query expansion, local rg terms, file globs, and scoring hints. Presets are hints, not the whole plan: broad requests should still be decomposed into narrower searches such as framework architecture, domain examples, and UI/workflow patterns.

Local reference library

Use the local library for existing third-party folders or previously curated references:

bash
node scripts/search-context.mjs library add ../third-party/some-repo --tags react,ui --presets web-react --project current
node scripts/search-context.mjs library search "ProgressRing"
node scripts/search-context.mjs run "React progress ring" --sources library,github --project current

Library metadata is stored in the OS user cache at <cache>/library/repositories.json. Project-specific clusters are stored in the same registry when --project current or --project <id> is used.

Keep FFF or any future long-lived index as an optional search backend under this library workflow. Do not make FFF a hard requirement and do not split this into a separate skill unless the goal changes from reference selection to general code search.

Clone policy

Use blobless shallow clones for reference repositories:

bash
git clone --depth=1 --filter=blob:none --single-branch --no-tags <repo-url> <user-cache>/search-context/refs/owner__repo

Do not use normal full clones by default. Do not clone more than 5 repositories unless the user explicitly asks. Do not install dependencies from cloned reference repos. Do not execute cloned project code. Do not copy large code blocks into the agent context.

By default, keep cloned repositories and manifests in the OS user cache, not in the current project. Use --project-local only when the user explicitly wants .refs/ and .context/ in the current directory. Inside a Git worktree, those project-local paths must be ignored or the CLI will refuse to write them.

Search policy

Use repository discovery first. Avoid using gh search code as the primary source. Use local rg after cloning to verify that the repository actually contains relevant implementation files. GitHub Code Search can be used as an optional pre-clone proof gate, but do not depend on it by default because the API is rate-limited.

Good reference selection beats raw search speed.

For mixed requests, prefer several narrow repository searches over one broad query. Example: "habit life app with TanStack Start" should produce stack queries like tanstack start, domain queries like habit life, and pattern queries like habit life tanstack start. Do not let a general React preset drown the run in unrelated component libraries.

Proof gates should reject or down-rank candidates that only match generic terms like react, start, or full. For known stacks/domains, require concrete code proof where possible:

  • TanStack Start: @tanstack/react-start, createServerFn, StartServer, StartClient, routeTree.gen, vinxi.
  • Habit apps: habit, streak, completion, calendar, routine.
  • Noise: raw GitHub zip links, default secrets, and README-only bait.

Score repositories by:

  • intent match
  • language and stack match
  • recent pushed_at
  • not archived
  • not a fork unless explicitly useful
  • readable size
  • license presence
  • examples, demos, samples, or preview apps
  • local matches in relevant implementation files

Output contract

Always produce a Markdown manifest. The default output is:

text
<user-cache>/search-context/runs/<timestamp>/reference-context.md

The manifest must include:

  • user goal
  • preset used
  • search plan mode and facets, when generated
  • GitHub search phrases used
  • top reference repositories
  • why each repository is useful
  • local path for each cloned repository
  • relevant files with short snippets only
  • rejected references with short reasons
  • what to study
  • what not to copy
  • any failures or uncertainty

Do not dump full repositories or long file contents into the response.

Recommended agent behavior after the manifest

After the manifest is written, the coding agent should:

  1. Open only the relevant files listed in the manifest.
  2. Study implementation patterns, API choices, animation structure, state handling, and styling.
  3. Adapt the pattern to the current project.
  4. Respect licensing and avoid copying large sections of code.
  5. Implement the requested feature in the user's project.
  6. Run tests or build checks if available.

Useful commands

Run a reference search:

bash
node scripts/search-context.mjs run "SwiftUI progress ring animation" --preset ios-swift

Preview searches without cloning:

bash
node scripts/search-context.mjs run "SwiftUI progress ring animation" --preset ios-swift --dry-run

Use SSH for cloning:

bash
node scripts/search-context.mjs run "SwiftUI progress ring animation" --preset ios-swift --ssh

Search the local reference library:

bash
node scripts/search-context.mjs library search "Circle().trim"

Clean cached reference repos older than 30 days:

bash
node scripts/search-context.mjs clean --older-than 30d

Safety and licensing

Treat cloned repositories as untrusted code. Never run project scripts, package managers, tests, binaries, or install commands inside a reference repository unless the user explicitly asks and the risk is understood. Use reference repos for ideas, structure, and comparison, not for blind copying. Surface license information in the manifest when available.

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Search Context?

Find, clone, inspect, and summarize high-quality GitHub reference repositories for coding agents. Use when a user asks for GitHub reference projects, examples, prior art, inspiration, implementation patterns, or includes "$search-context" in a coding prompt.

Waarom Search Context gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Search Context bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Search Context in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/instructa/agent-skills/tree/main/skills/engineering/search-context. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Search Context gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Search Context gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Search Context ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Search Context gratis?

Ja. Deze skill is door instructa op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇