Arama ustasi
Skill trugurpala/divan/plugins/core-pack/skills/arama-ustasi
Divan — vibe coder vezirler kurulu. Claude Code / Cursor / Codex skill paketleri: Sadrazam (uctan uca orkestrator), planlama, TDD, debugging, UI/UX, React.
npx -y skills add trugurpala/divan --skill arama-ustasiAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 19 days oldThe repository was created 19 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Evidence-first codebase search using ripgrep for bounded text discovery and optional ast-grep for syntax-aware structural search. Use when exploring an unfamiliar repository, locating definitions or call sites, estimating refactor impact, finding repeated code shapes, auditing risky patterns, or when the user says kodda ara, nerede kullanılıyor, bütün çağrıları bul, repo keşfet, search the codebase, find usages, structural search, or ast-grep. Starts narrow, caps output, and never pretends a regex result is AST-precise.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.0 KB, as published. Nobody here has run it
Arama Ustası
Amaç çok sonuç üretmek değil, soruyu kanıtlayan en küçük sonuç kümesini
bulmaktır. Metin için rg; sözdizimi önemliyse ve mevcutsa ast-grep kullan.
Arama nizamı
- Arama sorusunu tek cümleye indir: tanım mı, çağrı mı, dosya mı, kod şekli mi?
- Önce kapsamı gör:
rg --files <hedef> | head -80. Tüm depoyu körlemesine okuma. - Metin aramasını dosya türü ve dizinle daralt. Önce dosya sayısını veya ilk 20–50 eşleşmeyi gör; sonra gerekirse genişlet.
- Regex semantiği ayıramıyorsa AST aramasına geç. Araç yoksa kurma; regex sonucunun yaklaşık olduğunu açıkça söyle.
- Sonucu
dosya:satır → neden ilgilibiçiminde özetle. Ham binlerce satırı bağlama taşıma. - Değişiklik öncesi etki haritası çıkar: tanım, çağrılar, testler, yapılandırma.
Araç seçimi
command -v rg
command -v ast-grep || true
Bazı sistemlerde sg başka bir programa aittir. Yalnızca sg --version
çıktısı gerçekten ast-grep diyorsa onu kullan. Kullanıcı istemeden paket kurma.
Metin araması
rg -n -F "exactSymbol" src/ --type ts --type tsx
rg -l "old_method\(" src/ --type py | head -50
rg -n "TODO|FIXME" . --glob '!{node_modules,dist,build,.git}/**' | head -50
- Kesin sembolde
-F, kelimede-w, çevre gerekiyorsa küçük-Ckullan. .gitignoredavranışını varsayılan olarak koru; gizli/ignore edilmiş alanları yalnızca görev gerektiriyorsa bilinçli aç.rgvarkengrep -Rveyafindile geniş tarama yapma.
Yapısal arama
Ast-grep deseninin hedef dilde geçerli, parse edilebilir kod olması gerekir.
Metadeğişkenleri $NAME, $ARG ve $$$BODY biçiminde kullan.
ast-grep run --lang ts --pattern 'fetch($URL, $$$REST)' src/
ast-grep run --lang py --pattern 'def $NAME($$$ARGS): $$$BODY' app/
Önce tek dosya veya dar dizinde deseni doğrula. Dönüşüm yapmadan önce yalnızca arama çalıştır; otomatik rewrite ayrı kullanıcı kararıdır.
Emniyet ve takdim
- Sır veya kimlik bilgisi araması gerekiyorsa değeri çıktıda gösterme; yalnızca konumu ve bulgu türünü bildir.
- Aktif hata ayıklamada son hata mesajını ve ilgili satırları kesme.
- Teslimde kullanılan komutu, kapsamı, eşleşme sayısını ve önemli dosyaları ver.
- “Hiç eşleşme yok” sonucunda kapsam, ignore kuralları ve dil filtresini kontrol et.