autorag-setup
できること
AutoRAGのコマンドラインツールを導入し、検索モデルとフォルダーを設定して、古くなったインデックスや失敗した確認を修復します。ローカルの文書のために、自分専用のAutoRAGの司書を持ちたい人が対象です。
使う場面
- ✓AutoRAGまたはそのコマンドラインツールがまだ入っていないとき。
- ✓AutoRAGの設定や健全性チェックが失敗し、修復が必要なとき。
- ✓AutoRAGに新しいフォルダーやデータソースを追加したいとき。
スキルのリンク
https://github.com/Marker-Inc-Korea/AutoRAG/blob/main/skills/autorag-setup/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“AutoRAGを導入し、PDFを検索できるように、ドキュメントフォルダーを指定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、秘密の値を表示せずに現在の設定を確認し、必要ならツールを導入して、設定、インデックス作成、健全性チェックを実行します。保存するのは認証情報の名前だけです。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
AutoRAG setup
Use this skill when AutoRAG is unconfigured, the autorag CLI is missing, model
resolution fails, indexes are missing or stale, or the user wants to change the
document collection or datasources.
For model-free external-agent search, use autorag-lite-setup to configure
and register autorag-mcp; do not configure a search model or install a search
skill for Lite. This skill's model setup and CLI search apply to the full
librarian, not the Lite MCP server.
Safety
- Inspect only non-secret provider/model metadata and credential availability.
- Never print, copy, migrate, compare, or persist credential values. Store only
environment-variable names such as
apiKeyEnv. - Do not scan the whole filesystem or home directory without explicit approval.
- Setup, indexing, and refresh never move, rename, edit, or delete source documents. The librarian itself may organize files when the user asks it to.
- Do not index system trees, app bundles, caches, credential stores,
node_modules,.git,dist,build,target,.cache,.autorag, or.jikji.
Install the CLI if needed
The CLI is @autorag/librarian (autorag). Runtime is Node.js ≥ 24 or Bun.
command -v autorag >/dev/null || bun install -g @autorag/librarian
autorag --help
If Bun is unavailable, npm install -g @autorag/librarian is acceptable.
Inspect existing configuration
Check --config, AUTORAG_CONFIG, $AUTORAG_HOME/config.json, or
~/.autorag/config.json. Relevant fields are:
searchPaths,workspacePath, andmemoryPathmodel.provider,model.id,model.api,model.baseUrl,model.apiKeyEnvbm25,minSync, andjikjilimits(retrieval, baseline-prefetch, and model-facing candidate caps)datasourcesandui
Preserve explicit user choices and a working config unless the user asks to replace them or health checks fail.
Configure one search model
AutoRAG is the specialized librarian agent. One configured model plans the search, calls retrieval and filesystem tools, reads sources, judges evidence, and curates the answer in one loop. There are no orchestrator/explorer roles.
Prefer a model with reliable tool calling and structured output, enough context for source excerpts, high output TPS, and low first-token latency. Use a larger reasoning model only when difficult synthesis or domain judgment matters more than latency.
Start from a provider/model the current runtime can actually call. A Pi-usable ChatGPT, Claude, Gemini, or other authenticated subscription is valid; an installed CLI or subscription that Pi cannot invoke is not. For custom OpenAI-compatible endpoints, record the real wire API, base URL, and credential environment-variable name.
Allowed api values:
openai-completionsopenai-responsesanthropic-messagesopenai-codex-responsesazure-openai-responses
If no callable setup can be established, ask the user for the provider, model id, API protocol, base URL when custom, and credential environment-variable name. Do not invent provider identities or model ids.
Propose and approve document roots
Explicit user paths win. Otherwise inspect only these likely document-dense candidates for existence and approximate supported-file counts, then ask for approval before indexing:
| OS | Recommended | Optional |
|---|---|---|
| macOS | ~/Documents, ~/Downloads, ~/Desktop |
~/Notes, ~/Obsidian, user-named project docs |
| Linux | XDG Documents/Downloads/Desktop or their ~/ defaults |
~/Notes, ~/Sync, Nextcloud/Syncthing roots |
| Windows | Documents, Downloads, Desktop shell folders | OneDrive document roots, user-named project docs |
Supported parsed formats are md, markdown, txt, text, pdf, docx,
pptx, xlsx, xlsm, xlsb, xls, ods, csv, tsv, hwp, hwpx, and eml. OCR for jpg, jpeg, png, bmp,
and tiff is optional (parserOptions.ocr.enabled). Do not present legacy
.doc as a supported parsed format.
Keep the first-run set small, usually one to three roots. Present a concrete
proposal and require yes, a narrowed keep-list, a custom list, or skip
before running refresh.
Initialize
autorag init \
--search-paths "/path/to/documents,/path/to/notes" \
--workspace "/path/to/workspace" \
--model-provider PROVIDER \
--model-id MODEL
Model resolution runs through the pi runtime. A configured provider/id is
resolved against the pi runtime catalog — the
よくある質問
設定で文書が移動または削除されますか?
いいえ。設定とインデックス作成は文書を読むだけで、移動、名前変更、編集、削除は一切しません。
APIキーは設定に保存されますか?
いいえ。保存されるのは、そのキーを保持する環境変数の名前だけです。
パソコン全体をスキャンしますか?
いいえ。あなたの承認なしに、ファイルシステム全体やホームフォルダーをスキャンすることはありません。
詳細
作者による元の説明
Install and configure AutoRAG, register its Lite MCP server for external agents, or repair its single search model, approved roots, indexes, datasources, and health checks without exposing credentials. Use when AutoRAG or MCP is missing, init/refresh/health fails, indexes are stale, or the user wants to add folders or datasources.
repo: Marker-Inc-Korea/AutoRAG
人気
- GitHubのスター
- 5.3k
- ランキング
- #15015
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
organize
5.3kエージェントが、コンピューター上のファイルやフォルダーを、計画と変更の一覧を示しながら安全に並べ替え、移動、名前変更、変換できるよう支援します。
autorag-doctor
5.3kエージェントが、壊れたAutoRAGの設定の問題を見つけて修正し、接続された各ソースがインデックス化されて、検索結果を返すようにします。
autorag-lite-setup
5.3kエージェントが、検索モデルを必要としない文書検索ツールAutoRAG Liteを導入して接続し、動作を確認できるよう支援します。
autorag
5.3kエージェントが、設定済みのAutoRAGライブラリにあるローカルのPDF、ノート、データソースを検索し、要約し、回答を比較できるよう支援します。
似ているスキル
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
clickhouse-io
280kエージェントがClickHouseデータベースのクエリとスキーマを最適化できるようにします。高性能な分析処理向けのベストプラクティスを適用します。分析クエリが遅すぎるときに使います。
scientific-db-pubmed-database
280kエージェントが生物医学分野の科学論文を検索するのに役立ちます。特定の医療情報が必要な研究に便利です。