clasp

clasp is a skill for Claude Code, Codex from tnisizawa/clasp-skill. It costs 67 tokens per session (2,155 once invoked), scanned A, original, MIT.

A command-line workflow for managing Google Apps Script projects with clasp, Google’s tool for syncing script files with local code. It covers pushing code, deployments, project setup, rollback and logs.

In plain words
What is it for?
Use it to connect local files to a Google Apps Script project, push changes, deploy web apps or libraries, pull editor changes, roll back releases and retrieve logs.
Why use it?
It lets developers manage Apps Script changes from their terminal instead of relying only on the web editor. It also provides documented steps for connecting projects, deploying versions and investigating execution logs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to connect local files to a Google Apps Script project, push changes, deploy web apps or libraries, pull editor changes, roll back releases and retrieve logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tnisizawa/clasp-skill/clasp-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tnisizawa/clasp-skill --skill clasp-skill
Clone the repo
git clone --depth 1 https://github.com/tnisizawa/clasp-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clasp

README.md
[![agentmods](https://agentmods.dev/badge/skills/tnisizawa/clasp-skill/clasp-skill/github.svg)](https://agentmods.dev/skills/tnisizawa/clasp-skill/clasp-skill)
Your own site
<a href="https://agentmods.dev/skills/tnisizawa/clasp-skill/clasp-skill"><img src="https://agentmods.dev/badge/skills/tnisizawa/clasp-skill/clasp-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clasp

Your own site · 80×15
<a href="https://agentmods.dev/skills/tnisizawa/clasp-skill/clasp-skill"><img src="https://agentmods.dev/badge/skills/tnisizawa/clasp-skill/clasp-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.02155
Opus 5 $0.00034 $0.01077
Sonnet 5 $0.00013 $0.00431
Haiku 4.5 $0.00007 $0.00215

Measured 12d ago against content hash 2bf12f57438a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

clasp scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

node -e "const{execSync}=require('child_process');try{execSync('clasp push --force',{stdio:'inherit'})}catch(e){process.exit(e.status||1)}" || push_status=$?
SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Clasp(GAS プロジェクト管理)

Google Apps Script を CLI から操作するスキル。

リファレンス索引

用途に応じて該当ファイルを Read する。

やりたいこと 参照先
コードをプッシュしたい このファイル「push フロー」節(下)
初めて使う・インストール・clasp login references/setup.md
GASプロジェクトと接続する(初回接続・ケースA/B 判定) references/init.md
Web エディタの変更を取り込む(clasp pull・日常同期) references/pull.md
マルチ環境(開発/リリース)の配布版 push references/deploy-dist.md
デプロイ・ロールバック・バージョン戻し(ライブラリ・ウェブアプリ) references/deploy.md
GAS ウェブアプリの iframe 問題・画像表示 references/webapp.md
clasp logs で実行ログを取得 references/logs.md

push フロー(最頻出)

前提

  • .clasp.json が存在すること
  • clasp がインストールされていること

1. appsscript.json の確認・作成

なければ作成。既存ならスコープの過不足をチェック。

{
  "timeZone": "Asia/Tokyo",
  "dependencies": {},
  "exceptionLogging": "STACKDRIVER",
  "runtimeVersion": "V8",
  "oauthScopes": [
    "https://www.googleapis.com/auth/spreadsheets"
  ]
}

プロジェクトに必要なスコープのみ追加する。 実際には https://www.googleapis.com/auth/ プレフィックスを付ける。

よく使う権限一覧:

権限 用途
gmail.readonly Gmail の読み取り
gmail.send メール送信
drive Google Drive 操作
documents Google Docs 操作
spreadsheets スプレッドシート操作
forms Google Forms の作成・編集
calendar Google Calendar 操作
script.scriptapp トリガー設定
script.external_request UrlFetchApp(外部 API 呼び出し)
script.container.ui UI ダイアログ・サイドバー表示

2. .clasp.json の確認

ls .clasp*.json

複数ファイルがある場合(例: .clasp.dev.json, .clasp.prod.json):

  • ユーザーにどの環境へ push するか確認する
  • 一時的に選択された設定ファイルを .clasp.json にコピーし、push 後に元へ戻す
  • .clasp.json を永続的に切り替える場合は、その意図をユーザーに確認してから行う
CLASP_BAK=".clasp.json.bak.$(date +%Y%m%d%H%M%S)"
node -e "const fs=require('fs');fs.existsSync('.clasp.json')&&fs.copyFileSync('.clasp.json',process.argv[1])" "$CLASP_BAK"
printf '%s\n' "$CLASP_BAK" > .clasp.json.bak-path
node -e "const fs=require('fs');fs.copyFileSync(process.argv[1],'.clasp.json')" ".clasp.<env>.json"

2.5. .claspignore の確認(push 対象の除外)

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 161 lines · 67 tokens per session scan A 2bf12f57438a

Subscribe to this mod's changes

clasp is a skill published in the GitHub repository tnisizawa/clasp-skill (4 stars, last pushed 3mo ago), licensed MIT. It adds 67 tokens to every session and 2,155 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

deploy-site

Deploys an existing Power Pages code site to a Power Pages environment using PAC CLI. Handles tooling verification, authentication, environment confirmation, building, and uploading. Use when the user wants to deploy, upload, or publish their code site.

microsoft/power-platform-skills · 50 tokens

activate-site

Activates and provisions a Power Pages website in a Power Platform environment via the Power Platform REST API. Use when the user wants to activate, provision, turn on, or enable a Power Pages website or portal.

microsoft/power-platform-skills · 45 tokens

deploy

Builds and deploys a Power Apps code app to Power Platform. Use when deploying changes, redeploying an existing app, or pushing updates.

microsoft/power-platform-skills · 32 tokens

domain-monitoring

AI-powered domain and SSL certificate monitoring skill. Designs domain health checks, SSL expiry alerts, DNS anomaly detection, and security rating assessments for e-commerce websites.

nexscope-ai/eCommerce-Skills · 0 tokens

public-status-page

AI-powered public status page design skill for e-commerce businesses. Creates status page architecture, incident communication templates, subscriber notification systems, and uptime reporting frameworks.

nexscope-ai/eCommerce-Skills · 0 tokens

deploy

Render Quarto .qmd slides to HTML and sync to docs/ for GitHub Pages. Use when user says "deploy", "publish the slides", "ship to pages", "push the lecture live", "render and publish", or after Quarto edits that need to go public. NOT for local Quarto render only — use quarto render directly for that.

pedrohcgs/claude-code-my-workflow · 81 tokens