gws-script
できること
このコマンドは、Google Apps Scriptプロジェクトの管理に役立ちます。新しいプロジェクトの作成、プロジェクトに関する情報の表示、コードの取得や更新、利用状況の確認ができます。
使う場面
- ✓ゼロから新しいスクリプトを作成したいとき。
- ✓既存のスクリプトのコードを確認する必要があるとき。
- ✓スクリプトを何人が使っているか確認したいとき。
スキルのリンク
https://github.com/googleworkspace/cli/blob/main/skills/gws-script/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“「My First Script」という名前の新しいスクリプトプロジェクトを作成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
実行したい操作(「create project」や「view code」など)と、対象のプロジェクトを指定します。ツールはGoogleと通信して、作業を実行します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
script (v1)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws script <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+push |
Upload local files to an Apps Script project |
API Resources
processes
list— List information about processes made by or on behalf of a user, such as process type and current status.listScriptProcesses— List information about a script's executed processes, such as process type and current status.
projects
create— Creates a new, empty script project with no script files and a base manifest file.get— Gets a script project's metadata.getContent— Gets the content of the script project, including the code source and metadata for each script file.getMetrics— Get metrics data for scripts, such as number of executions and active users.updateContent— Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.deployments— Operations on the 'deployments' resourceversions— Operations on the 'versions' resource
scripts
run—
Discovering Commands
Before calling any API method, inspect it:
# Browse resources and methods
gws script --help
# Inspect a method's required params, types, and defaults
gws schema script.<resource>.<method>
Use gws schema output to build your --params and --json flags.
よくある質問
Google Apps Scriptとは何ですか?
Google Workspace(Gmail、Sheets、Driveなど)の中で作業を自動化する、小さなプログラム(スクリプト)を作成するための仕組みです。
「resource」と「method」とはどういう意味ですか?
「resource」は、管理できるものの種類を指します(例:「projects」)。「method」は、そのものに対して行う操作を指します(例:「create」や「get」)。
`gws schema` とは何ですか?
特定の機能を使うために必要な詳細、たとえばどんな情報を指定する必要があるかを表示するコマンドです。
詳細
人気
- GitHubのスター
- 32k
- ランキング
- #9183
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/6
コメント
- …
このリポジトリの他のスキル
gws-admin-reports
32kエージェントがGoogle Workspaceのアクティビティレポートを取得できるようにします。監査データや利用データを収集します。
gws-calendar-agenda
32kエージェントがすべてのカレンダーの今後の予定を確認できるようにします。スケジュールを整理し、これからの予定を把握するのに役立ちます。
gws-calendar-insert
32kエージェントがGoogle Calendarに新しい予定を作成できるようにします。打ち合わせや予約の登録に役立ちます。
gws-calendar
32kエージェントがカレンダーと予定を管理できるようにします。仕事やプライベートの予定を整理するのに役立ちます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。