Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

osgrep

/osgrep

Wyszukuje kod po znaczeniu zapytania w języku naturalnym i zwraca ścieżki plików, numery linii oraz fragmenty.

Repozytorium
prpm ↗
Licencja
MIT
Ostatnia zmiana repozytorium
14.10.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format20 / 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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Wyszukuje kod po znaczeniu zapytania w języku naturalnym i zwraca ścieżki plików, numery linii oraz fragmenty.

Wyzwalacze z opisu

where is X implementedhow does Y workfind the logic for Z
Oryginalny opis (EN)

Semantic code search using natural language queries. Use when users ask "where is X implemented", "how does Y work", "find the logic for Z", or need to locate code by concept rather than exact text. Returns file paths with line numbers and code snippets.

Jak działa

  1. When to Use
  2. Strategy for Different Query Types
  3. Output Format
  4. Tips
Sekcje z nagłówków SKILL.md, w oryginale · 48 linii, 370 słów
Podgląd SKILL.md
---
name: osgrep
description: Semantic code search using natural language queries. Use when users ask "where is X implemented", "how does Y work", "find the logic for Z", or need to locate code by concept rather than exact text. Returns file paths with line numbers and code snippets.
allowed-tools: "Bash(osgrep:*), Read"
license: Apache-2.0
---
## When to Use
Use this to find code by **concept** or **behavior** (e.g., "where is auth validated", "how are plugins loaded").
*Note: This tool prioritizes finding the right files and locations in the code. Snippets are truncated (max 16 lines) and are often just previews.*

Example:
```bash
osgrep "how are plugins loaded"
osgrep "how are plugins loaded" packages/transformers.js/src
```

## Strategy for Different Query Types

### For **Architectural/System-Level Questions** (auth, LSP integration, file watching)
1. **Search Broadly First:** Use a conceptual query to map the landscape.
   * `osgrep "authentication authorization checks"`
2. **Survey the Results:** Look for patterns across multiple files:
   * Are checks in middleware? Decorators? Multiple services?
   * Do file paths suggest different layers (gateway, handlers, utils)?
3. **Read Strategically:** Pick 2-4 files that represent different aspects:
   * Read the main entry point
   * Read representative middleware/util files
   * Follow imports if architecture is unclear
4. **Refine with Specific Searches:** If one aspect is unclear:
   * `osgrep "session validation logic"`
   * `osgrep "API authentication middleware"`

### For **Targeted Implementation Details** (specific function, algorithm)
1. **Search Specifically:** Ask about the precise logic.
   * `osgrep "logic for merging user and default configuration"`
2. **Evaluate the Semantic Match:**
   * Does the snippet look relevant?
   * **Crucial:** If it ends in `...` or cuts off mid-logic, **read the file**.
3. **One Search, One Read:** Use osgrep to pinpoint the best file, then read it fully.

## Output Format

Returns: `path/to/file:line [Tags] Code Snippet`

- `[Definition]`: Semantic search detected a class/function here. High relevance.
- `...`: **Truncation Marker**. Snippet is incomplete—use `read_file` for full context.

## Tips

- **Trust the Semantics:** You don't need exact names. `osgrep "how does the server start"` works better than guessing `osgrep "server.init"`.
- **Watch for Distributed Patterns:** If results span 5+ files in different directories, the feature is likely architectural—survey before diving deep.
- **Scope When Possible:** Use path constraints to focus: `osgrep "auth" src/server/`
- **Don't Over-Rely on Snippets:** For architectural questions, snippets are signposts, not answers. Read the key files.
- **"Still Indexing...":** If you see this, please stop, alert the user that the index is ongoing and ask them if they wish to proceed. Results will be partial until the index is complete.

Wersje

RepozytoriumWynikLicencja
Ta strona · pr-pm/prpm95MIT
zach-source/claude-plugins100MIT

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

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

Podobne skille

  • 90search
    Wyszukuje kod w projekcie na podstawie zapytań w języku naturalnym, nazw identyfikatorów i ścieżek plików, zwracając wyniki posortowane według trafności.
  • 100search
    Wyszukuje w zaindeksowanych wideo fragmenty i sceny na podstawie zapytania w języku naturalnym.
  • 100using-devql
    Pomaga odpowiadać na pytania o repozytorium Bitloops przez DevQL: lokalizuje kod po ścieżce, zakresie linii lub symbolu przed czytaniem plików.
  • 100code-locate
    Lokalizuje ścieżki kodu i zakresy linii dla opisanego zachowania: do 10 kandydatów z pewnością HIGH, MEDIUM lub LOW, ślad wyszukiwania i propozycja aktualizacji SOURCE_OF_TRUTH.md.
  • 96iq
    Wyszukuje w kodzie projektu definicje, odwołania i historię gita, zwracając wyniki z numerami linii.
  • 100understand-chat
    Odpowiada na pytania o bazę kodu z grafu wiedzy wtyczki Understand-Anything, podając ścieżki plików i numery linii, oraz opisuje instalację wtyczki i budowę grafu.

Uwagi i zgłoszenia

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