gslideslisted
Install: claude install-skill nogunix/janus
# Google Slides via gws CLI
Create Google Slides presentations through the Slides API using `gws slides
presentations`. Primary workflow: **declarative YAML spec** (reproducible,
iterable). Escape hatch: **direct batchUpdate** (for one-off or programmatic
use).
## When to use
- "スライドを作成して", "提案資料を作って"
- "Google Slides で○○のプレゼンを生成して"
- "この内容でスライドを更新して"
- Any slide/deck/presentation request — this is the default slide skill.
## Prerequisites
1. `gws` CLI installed (`pip install gws-cli` or `brew install gws`)
2. OAuth scopes must include `presentations`:
```bash
gws auth login --services drive,docs,sheets,slides,calendar,gmail
```
3. GCP project must have **Slides API** enabled:
```bash
gcloud services enable slides.googleapis.com --project=<PROJECT>
```
4. Verify: `gws slides presentations create --json '{"title":"test"}' && echo OK`
5. (Optional) `pyyaml` for YAML specs: `pip install pyyaml`
6. (Optional) `rsvg-convert` or `inkscape` for SVG diagram rendering
If you get `403 insufficient authentication scopes`, delete the token cache
and re-login:
```bash
rm ~/.config/gws/token_cache.json
gws auth login --services drive,docs,sheets,slides,calendar,gmail
```
## Workflow
### 1. テンプレート確認 (Inspect)
Ask the user:
> テンプレートとして使う Google Slides はありますか?
> URL があれば貼ってください(なければデフォルトテーマで作成します)
If the user provides a URL like
`https://docs.google.com/presentation/d/XXXXX/edit...`, extract the
presentation ID (`XXXXX`) and set `template_id` in the spec.
**Templ