Skip to content
cccskills
FreePublished on GitHub

gas-clasp-ops

Google Apps Script (GAS) プロジェクトを clasp 経由で操作するスキル。「GASをデプロイして」「claspでpush」「GAS関数をテスト」等のリクエストで発動。push / deploy / run を一括または個別に実行。

複数プロジェクト管理に対応。

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (5)

  • SKILL.md4.6 KB
  • agents/openai.yaml153 B
  • scripts/clasp_ops.py7.3 KB
  • SKILL.en.md4.1 KB
  • SKILL.es.md4.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

GAS clasp 操作スキル

Google Apps Script プロジェクトを clasp CLI で一括操作するためのスキル。

前提条件

# clasp は npx 経由で実行(インストール不要)
# Google アカウントでログイン(初回のみ)
npx -y @google/clasp login

クイックスタート

# 全プロジェクトを push
python skills/gas-clasp-ops/scripts/clasp_ops.py push

# 特定プロジェクトを push → deploy
python skills/gas-clasp-ops/scripts/clasp_ops.py push deploy --project work/10.X-Calendar-GAS

# 関数を実行(テスト)
python skills/gas-clasp-ops/scripts/clasp_ops.py run --project work/10.X-Calendar-GAS --function myFunction

# dry-run で確認
python skills/gas-clasp-ops/scripts/clasp_ops.py push --dry-run

コマンド

コマンド説明
pushローカルコードを GAS に反映
deploy新しいバージョンをデプロイ
run指定した関数を実行(--function 必須)
statusデプロイ一覧を表示
openGAS エディタをブラウザで開く

オプション

オプション説明デフォルト
--project PATH対象プロジェクト(複数指定可)全プロジェクト
--function NAME実行する関数名(run 時必須)-
--dry-run実行せず確認のみfalse
--base-dir PATH検索ベースディレクトリワークスペースルート

検出対象

.clasp.json を含むディレクトリを自動検出:

  • work/10.X-Calendar-GAS/
  • work/03.AiTutor/session_workshop/03.gas/samples/clasp-slides-generator/
  • work/03.AiTutor/session_workshop/03.gas/samples/clasp-weather-recorder/

実行例

プロジェクト一覧を確認

python skills/gas-clasp-ops/scripts/clasp_ops.py --list

出力例:

📂 検出されたプロジェクト (3 件):
  - work/03.AiTutor/.../clasp-slides-generator (scriptId: 1uIfFp1vuV...)
  - work/03.AiTutor/.../clasp-weather-recorder (scriptId: 1O6SBnHgY-...)
  - work/10.X-Calendar-GAS (scriptId: 1qLnnrFfzX...)

全プロジェクトを push → deploy

python skills/gas-clasp-ops/scripts/clasp_ops.py push deploy

特定プロジェクトで関数実行(テスト)

python skills/gas-clasp-ops/scripts/clasp_ops.py run \
  --project work/10.X-Calendar-GAS \
  --function processUnreadTweets

トラブルシューティング

エラー原因対処法
Not logged inclasp 未ログインnpx -y @google/clasp login を実行
Script API disabledGAS API 無効GAS API で有効化
Permission deniedOAuth スコープ不足appsscript.json に必要なスコープを追加
Function not found関数名が不正GAS エディタで関数名を確認

注意事項

  • clasp run は GAS API を有効化し、OAuth スコープの設定が必要
  • デプロイ前に必ず push でコードを反映すること
  • エラー発生時は対象ごとにログを出力し、処理は継続
  • タイムアウトは 120 秒に設定(長時間処理は GAS エディタから実行推奨)

Overview

Google Apps Script (GAS) プロジェクトを clasp CLI 経由で一括操作するスキルです。.clasp.json を持つプロジェクトを自動検出し、push・deploy・run を効率的に実行します。

Success Criteria

  • 対象プロジェクトへの push/deploy がエラーなく完了している
  • --function 指定時に関数が正常に実行されている
  • 複数プロジェクト一括操作時に全プロジェクトの結果がログ出力されている

Usage

上記「クイックスタート」セクションを参照。基本例:

# 全プロジェクトを push
python skills/gas-clasp-ops/scripts/clasp_ops.py push

# 特定プロジェクトで関数実行
python skills/gas-clasp-ops/scripts/clasp_ops.py run --project work/10.X-Calendar-GAS --function myFunction

Troubleshooting

上記「トラブルシューティング」セクションを参照。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

A/Bテストや実験の設計・実装を支援するスキル。 「A/Bテストを設計して」「スプリットテストしたい」「仮説を立ててテストしたい」「バリアントを比較」等のリクエストで発動。 トラッキング実装は analytics-tracking を参照。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

マルチエージェントシステムのアーキテクチャ設計ツールキット。 「エージェントを設計して」「マルチエージェント構成」「エージェントのアーキテクチャ」「オーケストレーション設計」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campのローカル環境セットアップを確認するスキル。 「セットアップ確認」「環境チェック」「初期設定できてる?」「インストール確認」「依存関係チェック」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campのスラッシュコマンドをCodexでルーティングするスキル。 「/start-0-1を実行」「スラッシュコマンドを使いたい」「コマンドルーティング」「Cursorのコマンドを使いたい」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campの環境変数・認証情報を安全に管理するスキル。 「APIキーを設定」「.envを管理」「環境変数の設定」「credential managerを使いたい」「秘密情報の管理」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campリポジトリの案内・オリエンテーションスキル。 「リポジトリ案内」「次のレッスンは?」「どこから始める」「ツールの違い」「aiagent概要」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

See all skills by minicoohei

Report a problem with this skill