← スキル一覧に戻る

docs-search
by toss
⭐ 0🍴 1📅 2025年12月23日
SKILL.md
name: docs-search description: Lightweight search utility for Toss / Apps-in-Toss llms-full.txt docs, caching sources and ranking snippets with keyword + similarity (Korean-aware) scoring.
Docs Search
Lightweight search utility and usage guide for the Toss / Apps-in-Toss llms-full.txt documents. It retrieves snippets from three sources with simple keyword + similarity scoring.
Sources
- Apps-in-Toss Developer Center: https://developers-apps-in-toss.toss.im/llms-full.txt
- Toss Mini TDS Mobile: https://tossmini-docs.toss.im/tds-mobile/llms-full.txt
- Toss Mini TDS React Native: https://tossmini-docs.toss.im/tds-react-native/llms-full.txt
Files
requirements.txt: Python dependency (requests).skills/docs-search/core/docs_search.py: CLI searcher that downloads and caches llms-full.txt files, then ranks paragraphs.skills/docs-search/core/korean_similarity.py: Korean-aware similarity utilities.
Installation
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Usage
python -m core.docs_search -q "Unity WebGL optimization" -k 5
-q / --query: search query (required)-k / --topk: number of results to show (default 5)--refresh-cache: bypass cache and re-download all sources- Output:
[index] <source URL> - <heading>/score: <score>/snippet
How it works
- Downloads each llms-full.txt and caches under
<temp>/apps-in-toss/skills/.cache/(cross-platform:/tmpon Linux/macOS,%TEMP%on Windows). - Splits by blank lines into paragraphs and attaches the most recent heading (
#,##, etc.) as context. - Ranks by keyword overlap plus
SequenceMatchersimilarity; returns top results.
Examples
- Quickly find where an API or guide is described.
- Search optimization/porting/auth/payment references with queries like “Unity WebGL performance”.
- Open the returned source URL in a browser for full context.
Notes
- Searches only the text contained in llms-full.txt; it does not crawl linked pages.
- Requires network access; deleting the cache triggers re-downloads.
Core workflow
- Fetch & cache: download each
llms-full.txtand store under<temp>/apps-in-toss/skills/.cache/(reuse cache when present). - Chunk: split by blank lines, tagging each paragraph with the most recent heading.
- Score: keyword overlap (weight 2) + similarity; Korean text uses
korean_similarity, otherwiseSequenceMatcher. - Rank & output: sort by score, return top‑k snippets (source URL, heading, score, snippet).
from core.docs_search import search
results = search("Unity WebGL optimization", topk=5, refresh=False)
for item in results:
print(item["source"], item["heading"], item["score"])
print(item["snippet"])
Requirements
- Python 3.9+
requests>=2.31.0— HTTP 요청 및 llms-full.txt 다운로드
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です