gemini-cli
Gemini CLIを使った任意のタスクを実行するスキル。長文翻訳、PDF翻訳、Q&A、コード生成など、gemini_wrapperを活用して様々なタスクを自動化できる。
npx skills add majiayu000/claude-skill-registry --skill gemini-cli-dup-d5e65ef5-tmp-d4f7a020-tmp-637369a6 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Gemini CLI Skill ## 使用タイミング ユーザーが以下のような指示をした時に使用します。 - 「Gemini CLIを使って〜」 - 「PDFを翻訳して」 - 「長文を翻訳して」 - 「Geminiで〜を実行して」 ## スキルの概要 このスキルは、Gemini CLIをPythonから簡単に呼び出すための汎用ラッパー(`gemini_wrapper.py`)を提供します。 **主な特徴:** - ✅ 完全汎用的なCLI呼び出し - ✅ エラーハンドリング完備 - ✅ subprocess処理の自動化 - ✅ 様々なタスクに対応可能 - ✅ **Windows環境対応** ## ファイル構成 ``` gemini-cli/ ├── gemini_wrapper.py # 汎用Gemini CLIラッパー ├── example_pdf_translator.py # PDF翻訳のサンプルスクリプト ├── SKILL.md # このファイル ├── README.md # GitHub公開用README └── requirements.txt # 依存パッケージ ``` ## gemini_wrapper.pyの使い方 ### 基本的な使い方 ```python from gemini_wrapper import gemini_execute # プロンプトを実行 success, result, error = gemini_execute("Pythonとは何ですか?", timeout=60) if success: print(result) else: print(f"エラー: {error}") ``` ### 戻り値 すべての関数は`(成功フラグ, 結果, エラーメッセージ)`のタプルを返します。 - **成功時**: `(True, "レスポンステキスト", "")` - **失敗時**: `(False, "", "エラーメッセージ")` ### クラスベースの使い方 ```python from gemini_wrapper import GeminiCLI gemini = GeminiCLI() success, result, error = gemini.execute("質問内容", timeout=60) ``` ## 実装例 ### 例1: テキスト翻訳 ```python from gemini_wrapper import gemini_execute def translate_text(text, source_lang="英語", target_lang="日本語"): """テキストを翻訳""" prompt = f"以下の{source_lang}を{target_lang}に翻訳してく
- 使用タイミング
- スキルの概要
- ファイル構成
- geminiwrapper.pyの使い方
- 基本的な使い方
- 戻り値
- クラスベースの使い方
- 実装例
- 例1: テキスト翻訳
- 例2: Q&Aボット
- 例3: コード生成
- 例4: PDF翻訳(サンプルスクリプト参照)
- 使用方法
- ステップ1: スクリプトを作成
What does the gemini-cli skill do?
Gemini CLIを使った任意のタスクを実行するスキル。長文翻訳、PDF翻訳、Q&A、コード生成など、gemini_wrapperを活用して様々なタスクを自動化できる。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-cli-dup-d5e65ef5-tmp-d4f7a020-tmp-637369a6 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
