Skip to content
gas-clasp-ops logo

GAS clasp 操作スキル

gas-clasp-ops

Google Apps Script (GAS) プロジェクトを clasp 経由で操作するスキル。 push(コード反映)、deploy(デプロイ)、run(関数実行/テスト)を一括または個別に実行。 .clasp.json を持つプロジェクトを自動検出し、複数プロジェクトの管理を効率化する。 トリガー: GAS, clasp, デプロイ, push, テスト実行, Apps Script, スクリプト反映 使用例: 「GASをデプロイして」「claspでpush」「GAS関数をテスト」「全プロジェクトをpush」

SKILL.md

Full skill instructions

GAS clasp 操作スキル

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

前提条件

# clasp のインストール(未インストールの場合)
npm install -g @google/​clasp

# Google アカウントでログイン(初回のみ)
clasp login

クイックスタート

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

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

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

# dry-run で確認
python .claude/​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 .claude/​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 .claude/​skills/​gas-clasp-ops/​scripts/​clasp_ops.py push deploy

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

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

トラブルシューティング

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

注意事項

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

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View