mit einem Klick
docs-search
// Search and retrieve Toss / Apps-in-Toss documentation using the ax CLI via run-ax.sh. Supports docs, TDS React Native, and TDS Web sources. Use bash to execute run-ax.sh in this skill's directory.
// Search and retrieve Toss / Apps-in-Toss documentation using the ax CLI via run-ax.sh. Supports docs, TDS React Native, and TDS Web sources. Use bash to execute run-ax.sh in this skill's directory.
| name | docs-search |
| description | Search and retrieve Toss / Apps-in-Toss documentation using the ax CLI via run-ax.sh. Supports docs, TDS React Native, and TDS Web sources. Use bash to execute run-ax.sh in this skill's directory. |
Apps-in-Toss ๋ฌธ์๋ฅผ ๊ฒ์ํ๊ณ ์กฐํํ๋ ์คํฌ์
๋๋ค.
์ด ์คํฌ์ ax CLI ๋ฐ์ด๋๋ฆฌ๋ฅผ run-ax.sh ์
ธ ์คํฌ๋ฆฝํธ๋ฅผ ํตํด ์คํํฉ๋๋ค.
์ด ์คํฌ ๋๋ ํ ๋ฆฌ ์์ run-ax.sh๋ฅผ bash๋ก ์คํํฉ๋๋ค.
์คํฌ๋ฆฝํธ๊ฐ ax ๋ฐ์ด๋๋ฆฌ๋ฅผ ์๋์ผ๋ก ๋ค์ด๋ก๋ยท์บ์ฑํ๋ฏ๋ก ๋ณ๋ ์ค์น๋ ํ์ ์์ต๋๋ค.
# macOS / Linux
bash skills/docs-search/run-ax.sh <command> [flags]
# Windows (PowerShell)
pwsh skills/docs-search/run-ax.ps1 <command> [flags]
์ธ ๊ฐ์ง ๋ฌธ์ ์์ค๋ฅผ ๊ฒ์ํ ์ ์์ต๋๋ค:
| ์๋ธ์ปค๋งจ๋ | ์์ค |
|---|---|
search docs | Apps-in-Toss Developer Center |
search tds-rn | TDS React Native |
search tds-web | TDS Web |
ํ๋๊ทธ:
--query "๊ฒ์์ด" (ํ์) โ ๊ฒ์ ํค์๋--limit N (์ ํ, ๊ธฐ๋ณธ๊ฐ 10) โ ์ต๋ ๊ฒฐ๊ณผ ์์์:
# ์ฑ์ธํ ์ค ๊ฐ๋ฐ ๋ฌธ์์์ "๋ฏธ๋์ฑ ๊ฐ๋ฐ" ๊ฒ์ (์ต๋ 5๊ฑด)
bash skills/docs-search/run-ax.sh search docs --query "๋ฏธ๋์ฑ ๊ฐ๋ฐ" --limit 5
# TDS React Native์์ Button ์ปดํฌ๋ํธ ๊ฒ์
bash skills/docs-search/run-ax.sh search tds-rn --query "Button component" --limit 3
# TDS Web์์ Toast ์ฌ์ฉ๋ฒ ๊ฒ์
bash skills/docs-search/run-ax.sh search tds-web --query "Toast usage" --limit 3
์ถ๋ ฅ ํ์ (JSON ๋ฐฐ์ด):
[
{
"id": "134c4bc8dc67f01e",
"title": "๋ฏธ๋์ฑ ์ถ์",
"content": "๋ฌธ์ ๋ด์ฉ ์ค๋ํซ...",
"description": "",
"url": "https://developers-apps-in-toss.toss.im/development/deploy.md",
"category": "Table of Contents > ์ถ์ > ์ถ์ํ๊ธฐ",
"score": 0.4259
}
]
๊ฐ ๊ฒฐ๊ณผ์ id๋ฅผ ์ฌ์ฉํ์ฌ ๋ฌธ์ ์ ์ฒด๋ฅผ ์กฐํํ ์ ์์ต๋๋ค.
๊ฒ์ ๊ฒฐ๊ณผ์ id๋ก ๋ฌธ์ ๋๋ ์์ ์ ์ ์ฒด ๋ด์ฉ์ ์กฐํํฉ๋๋ค.
| ์๋ธ์ปค๋งจ๋ | ์ค๋ช |
|---|---|
get doc --id "ID" | Apps-in-Toss ๋ฌธ์ ์กฐํ |
get tds-rn --id "ID" | TDS React Native ๋ฌธ์ ์กฐํ |
get tds-web --id "ID" | TDS Web ๋ฌธ์ ์กฐํ |
get example --id "ID" | ์์ ์ฝ๋ ์กฐํ |
์์:
# ๊ฒ์ ๊ฒฐ๊ณผ์์ ์ป์ id๋ก ๋ฌธ์ ์ ์ฒด ์กฐํ
bash skills/docs-search/run-ax.sh get doc --id "134c4bc8dc67f01e"
# TDS React Native ๋ฌธ์ ์กฐํ
bash skills/docs-search/run-ax.sh get tds-rn --id "<id>"
# ์์ ์ฝ๋ ์กฐํ
bash skills/docs-search/run-ax.sh get example --id "7a4d6538fecee2f4"
์ถ๋ ฅ ํ์ (JSON ๊ฐ์ฒด):
{
"id": "134c4bc8dc67f01e",
"title": "๋ฏธ๋์ฑ ์ถ์",
"content": "๋ฌธ์ ์ ์ฒด ๋ด์ฉ (๋งํฌ๋ค์ด)...",
"url": "https://developers-apps-in-toss.toss.im/development/deploy.md",
"category": "Table of Contents > ์ถ์ > ์ถ์ํ๊ธฐ"
}
# ์์ ๋ชฉ๋ก ์กฐํ
bash skills/docs-search/run-ax.sh list examples
์ฌ์ฉ์๊ฐ ์ฑ์ธํ ์ค ๊ด๋ จ ์ง๋ฌธ์ ํ๋ฉด ์๋ ์์๋ก ์งํํฉ๋๋ค:
search docs/tds-rn/tds-web๋ก ๊ด๋ จ ๋ฌธ์๋ฅผ ์ฐพ๊ณ id๋ฅผ ํ๋get doc/tds-rn/tds-web --id๋ก ๋ฌธ์ ์ ์ฒด ๋ด์ฉ์ ํ์ธ์์ ์ํฌํ๋ก์ฐ:
# Step 1: ๊ฒ์
bash skills/docs-search/run-ax.sh search docs --query "์ธ์ฑ ๊ฒฐ์ " --limit 3
# Step 2: ๊ฒฐ๊ณผ์์ id ํ์ธ ํ ์ ์ฒด ๋ฌธ์ ์กฐํ
bash skills/docs-search/run-ax.sh get doc --id "<๊ฒ์๊ฒฐ๊ณผ์-id>"
run-ax.sh๋ GitHub Releases API๋ฅผ ํตํด ์ต์ ax CLI ๋ฒ์ ์ ์๋์ผ๋ก ๊ฐ์งํฉ๋๋ค.
๋ฒ์ ์ ๋ณด๋ 24์๊ฐ ๋์ ์บ์๋๋ฉฐ, API ํธ์ถ ์คํจ ์ ์บ์๋ ๋ฒ์ ๋๋ fallback ๋ฒ์ ์ ์ฌ์ฉํฉ๋๋ค.