Przejdź do treści
Biblioteka skilli
Programowanie · Research

code-search

/code-search

Dobiera narzędzie wyszukiwania (Grep, Glob, codebase-retrieval) do znajdowania istniejącego kodu, symboli i plików w monorepo.

Repozytorium
swarmery ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Dobiera narzędzie wyszukiwania (Grep, Glob, codebase-retrieval) do znajdowania istniejącego kodu, symboli i plików w monorepo.

Wyzwalacze z opisu

s monorepo. Don
Oryginalny opis (EN)

Select the right search tool (Grep, Glob, codebase-retrieval) to locate existing code, symbols, or files across the project's monorepo. Don't use it for creating new files, implementing features, or reviewing code quality.

Jak działa

  1. What it does
  2. When to use it
  3. How to invoke
  4. Worked example
  5. Related
Sekcje z nagłówków SKILL.md, w oryginale · 54 linii, 442 słów
Podgląd SKILL.md
---
name: code-search
description: "Select the right search tool (Grep, Glob, codebase-retrieval) to locate existing code, symbols, or files across the project's monorepo. Don't use it for creating new files, implementing features, or reviewing code quality."
version: "1.0.0"
owner: "swarmery-core"
allowed-tools: Grep, Glob, Read
disable-model-invocation: true
docs:
  status: reviewed
  source_sha: ccc8c6baa5c1
  updated: 2026-08-06
---

# Purpose

Selects the most efficient search tool — Grep for exact symbol lookup, Glob for file-name patterns, codebase-retrieval for semantic/architectural questions — to locate code across the project's repositories (`.claude/project.json` → `repos`). Produces matching file paths with line numbers and context. Read-only, tool-selection skill. Placeholders: `<mainApp>`, `<device>`, `<infrastructure-repo>` come from project.json.

# Rules (never violate)

- Grep for exact symbols, Glob for name patterns, codebase-retrieval for "how does X work?" — never swap them.
- Every result carries a `file:line` citation, never a bare file path; max 50 results per search.
- Verify the top 2 codebase-retrieval results with Read; anything mismatched is marked `[POTENTIALLY-STALE]`, never presented as authoritative.
- No hardcoded absolute paths, never search the filesystem root — scope to the workspace; repo names come from `.claude/project.json` → `repos`.
- Zero-result searches report the alternatives attempted before saying "not found".
- Refuse searches outside the project workspace; stop and ask on >50 results or an ambiguous query.

# Resources

- Read `resources/search-procedure.md` when running a search — tool selection table, procedure, scope defaults, self-check, mistakes, escalation, failure modes.
- Read `resources/query-patterns.md` when composing queries — per-repo Grep/Glob patterns and two worked examples.

# How to use

## What it does

Picks the right search tool for a lookup and runs it, so you stop guessing between exact match, file-name pattern, and "how does this work?". It classifies your query, scopes it to the most likely repository, runs Grep, Glob, or semantic retrieval, and returns matches with `file:line` citations and surrounding context. It never edits anything.

## When to use it

- You need every occurrence of a function, type, or variable across the workspace.
- You need files following a naming convention: route handlers, test files, values files.
- You are starting a task cold, or have a natural-language question about a cross-repo data flow.

Not for writing code (`api-integration`), judging code (`code-quality`/`code-standards`), files you already know, or conceptual questions answered by documentation.

## How to invoke

```
Skill(skill: "core:code-search")
```

State your `query` in plain words; optionally add `search_type` (`exact`, `pattern`, `semantic` — inferred when omitted) and a `scope` path restriction.

## Worked example

```
Skill(skill: "core:code-search")
query: "telemetryEmitter", search_type: "exact", scope: "apps/<mainApp>/src/"
```

Classified as an exact symbol lookup, Grep runs over `*.ts` under that path. Five matches across two files come back: the emitter declared at `ws-client.ts:5`, emitted at line 12, then imported and subscribed in `stream/route.ts` at lines 2, 11, and 14 — the definition and every consumer in one pass.

## Related

- `code-quality`, `api-contract`, `code-standards` — compose downstream: search first, then hand them the `file:line:snippet` tuples for audit, contract verification, or convention review.
Pliki w paczce (3)
  • SKILL.md 4 KB
  • resources/query-patterns.md 3 KB
  • resources/search-procedure.md 7 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · atretyak1985/swarmery100Apache-2.0
langwatch/langwatch100Apache-2.0
edmundmiller/dotfiles100MIT
athola/claude-night-market100MIT
elastic/sourcerer100Apache-2.0
brettatoms/agent-skills100MIT
agentscope-ai/agentscope-java90Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki e2d946a29053 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100ace-tool
    Prowadzi semantyczne wyszukiwanie i indeksowanie kodu oraz wzbogacanie promptów o kontekst repozytorium przez samodzielne CLI, dla lepszej dokładności niż grep czy find.
  • 91semble
    Przeszukuje kod bieżącego repozytorium, by znaleźć implementację, definicje symboli lub dokumentację, zanim sięgnie po grep, glob albo find.
  • 100ripgrep
    Przeszukuje pliki rekurencyjnie wyrażeniami regularnymi z obsługą ignorowania plików i filtrów glob, na przykład do znajdowania definicji funkcji.
  • 100code-discovery
    Pomaga odkrywać bazę kodu przed planowaniem, implementacją, debugowaniem lub refaktoryzacją, preferując zapytania do grafu kodu Graphify zamiast szerokiego Glob, Grep i Read, z fallbackiem do grep.
  • 100file-search
    Wyszukuje szybko pliki po nazwie i treści za pomocą ripgrep (rg), po globie lub wyrażeniu regularnym, zastępując typowe przepływy find i grep.
  • 100search-code
    Wyszukuje wzorce w kodzie Syncpack, używając ast-grep dla Rust oraz grep i rg w pozostałych przypadkach.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.