Agent Skills › win4r/MuseAI-Skills › google_forms

google_forms

GitHub

通过 hatch_gws_cli 管理 Google Forms,支持读取、创建、更新表单及获取响应。涵盖连接管理、认证处理及操作规范,确保安全合规地执行表单相关任务。

opt/hatch/skills/google-forms/SKILL.md win4r/MuseAI-Skills

Trigger Scenarios

用户需要创建或修改 Google 表单 用户希望查看或分析表单提交数据 用户请求集成 Google Workspace 表单功能

Install

npx skills add win4r/MuseAI-Skills --skill google_forms -g -y
More Options

Non-standard path

npx skills add https://github.com/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/google-forms -g -y

Use without installing

npx skills use win4r/MuseAI-Skills@google_forms

指定 Agent (Claude Code)

npx skills add win4r/MuseAI-Skills --skill google_forms -a claude-code -g -y

安装 repo 全部 skill

npx skills add win4r/MuseAI-Skills --all -g -y

预览 repo 内 skill

npx skills add win4r/MuseAI-Skills --list

SKILL.md

Frontmatter
{
    "icon": "google_forms",
    "name": "google_forms",
    "metadata": {
        "includeInPrompt": false
    },
    "description": "Read, create, and update the user's Google Forms, and read responses."
}

Google Forms

Purpose

Manage Google Forms through hatch_gws_cli; the vendored Google Workspace CLI is the only implementation path.

Tooling

Use exec to run:

hatch_gws_cli forms <resource> <method> [flags]

Connection management

hatch_gws_cli forms status
hatch_gws_cli forms disconnect

Forms operations

Core patterns:

  • hatch_gws_cli forms status
  • hatch_gws_cli forms disconnect
  • hatch_gws_cli schema forms.forms.get
  • hatch_gws_cli schema forms.forms.create
  • hatch_gws_cli schema forms.forms.batchUpdate
  • hatch_gws_cli schema forms.forms.responses.list
  • hatch_gws_cli schema forms.forms.responses.get

Common raw API calls:

  • hatch_gws_cli forms forms get --params '{"formId":"<form_id>"}'
  • hatch_gws_cli forms forms create --json '{"info":{"title":"Feedback Survey","documentTitle":"Feedback Survey"}}'
  • hatch_gws_cli forms forms batchUpdate --params '{"formId":"<form_id>"}' --json '{"requests":[{"updateFormInfo":{"info":{"description":"Quarterly survey"},"updateMask":"description"}}]}'
  • hatch_gws_cli forms forms responses list --params '{"formId":"<form_id>","pageSize":20}'
  • hatch_gws_cli forms forms responses get --params '{"formId":"<form_id>","responseId":"<response_id>"}'

JSON output contract:

  • status: parse status, connect_url, and disconnect_url
  • disconnect: parse ok, action, status, and disconnect_url

Auth

Authentication is handled by the wrapper's status and disconnect subcommands. Do not hand-write credential files or run raw gws auth ....

First-use setup flow

  1. Run hatch_gws_cli forms status.
  2. If status is unavailable, tell the user that Google Forms is not available on this device. Do not offer alternative integration approaches or ask the user for credentials.
  3. If status is not_connected and connect_url is present, replace <connect_url> with the returned URL and share exactly this Markdown link: [Connect Google Forms](<connect_url>); do not paste the raw URL separately. Wait for the user to reconnect.
  4. Once status is connected, proceed with Forms operations.

Operating Rules

  1. Use schema before unfamiliar Forms methods so --params and --json match the current vendored CLI contract.
  2. Creating a form and editing an unpublished form owned only by the user may proceed from a clear request. Confirm before editing a shared or published form, or publishing one, because its contents can reach other people.
  3. Run forms.get before presenting response data so you can map question IDs to human-readable form structure.
  4. Treat form IDs and response IDs as opaque strings and only use IDs returned by prior commands or explicit user input.
  5. Run hatch_gws_cli forms disconnect. After running it, when disconnect_url is present, replace <disconnect_url> with the returned URL and share exactly this Markdown link: [Disconnect Google Forms](<disconnect_url>); do not paste the raw URL separately.
  6. Paginate through responses when the user asks for all responses; stop when nextPageToken is absent.
  7. After a read or write action, confirm the user-visible result only. Do not surface raw API identifiers (form, response, and question IDs) or other internal response fields (page tokens/cursors, raw JSON) in text shown to the user unless the user asks for them or you need them to troubleshoot a failure; keep using them internally to chain follow-up commands.
  8. Response reads retain Google's raw timestamps and add semantic UTC and user-local forms for response creation/submission times.

Version History

  • 38bbb45 Current 2026-10-18 15:47

Same Skill Collection

opt/hatch/skills/apple-healthkit/SKILL.md
opt/hatch/skills/artifacts/markdown/SKILL.md
opt/hatch/skills/artifacts/pdf/SKILL.md
opt/hatch/skills/artifacts/presentation/SKILL.md
opt/hatch/skills/artifacts/spreadsheet/SKILL.md
opt/hatch/skills/artifacts/testing/SKILL.md
opt/hatch/skills/booking/SKILL.md
opt/hatch/skills/calendly/SKILL.md
opt/hatch/skills/device-data/SKILL.md
opt/hatch/skills/duffel/SKILL.md
opt/hatch/skills/facebook-cli/SKILL.md
opt/hatch/skills/facebook/SKILL.md
opt/hatch/skills/flightaware/SKILL.md
opt/hatch/skills/forget/SKILL.md
opt/hatch/skills/function-health/SKILL.md
opt/hatch/skills/generate_podcast/SKILL.md
opt/hatch/skills/gmail/SKILL.md
opt/hatch/skills/goals/SKILL.md
opt/hatch/skills/google-calendar/SKILL.md
opt/hatch/skills/google-contacts/SKILL.md
opt/hatch/skills/google-drive/SKILL.md
opt/hatch/skills/google-health-connect/SKILL.md
opt/hatch/skills/google-slides/SKILL.md
opt/hatch/skills/google-tasks/SKILL.md
opt/hatch/skills/granola/SKILL.md
opt/hatch/skills/healthex/SKILL.md
opt/hatch/skills/image-search/SKILL.md
opt/hatch/skills/instagram-messages/SKILL.md
opt/hatch/skills/instagram/SKILL.md
opt/hatch/skills/media-library/SKILL.md
opt/hatch/skills/messenger/SKILL.md
opt/hatch/skills/meta-threads/SKILL.md
opt/hatch/skills/muse_db/SKILL.md
opt/hatch/skills/muse-early-access/SKILL.md
opt/hatch/skills/muse-feedback/SKILL.md
opt/hatch/skills/muse-mail/SKILL.md
opt/hatch/skills/notion/SKILL.md
opt/hatch/skills/opentable/SKILL.md
opt/hatch/skills/outlook-calendar/SKILL.md
opt/hatch/skills/outlook-contacts/SKILL.md
opt/hatch/skills/outlook-mail/SKILL.md
opt/hatch/skills/peloton/SKILL.md
opt/hatch/skills/philips-hue/SKILL.md
opt/hatch/skills/places-search/SKILL.md
opt/hatch/skills/plaid/SKILL.md
opt/hatch/skills/podcast/SKILL.md
opt/hatch/skills/printify/SKILL.md
opt/hatch/skills/self-awareness/SKILL.md
opt/hatch/skills/share-ideas/SKILL.md

Metadata

Files
0
Version
38bbb45
Hash
a08858d4
Indexed
2026-10-18 15:47

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 00:03
浙ICP备14020137号-1