davila7--claude-code-templates
1 行
3.5 KiB
JSON
1 行
3.5 KiB
JSON
{"content": "---\nallowed-tools: Bash, Read, Write, Edit\nargument-hint: [resource] [method] [flags]\ndescription: Google Apps Script: Manage and execute Apps Script projects.\n---\n\n# Google Workspace Apps Script\n\nExecute Google Workspace Apps Script operations: $ARGUMENTS\n\n## Prerequisites\n\n- Google Workspace CLI (`gws`) must be installed\n- Authentication configured: Run `gws auth status` to verify\n- Review `gws apps-script --help` for all available commands\n\n## Available Resources and Methods\n\n# apps-script (v1)\n\n> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.\n\n```bash\ngws apps-script <resource> <method> [flags]\n```\n\n## Helper Commands\n\n| Command | Description |\n|---------|-------------|\n| [`+push`](../gws-apps-script-push/SKILL.md) | Upload local files to an Apps Script project |\n\n## API Resources\n\n### processes\n\n - `list` — List information about processes made by or on behalf of a user, such as process type and current status.\n - `listScriptProcesses` — List information about a script's executed processes, such as process type and current status.\n\n### projects\n\n - `create` — Creates a new, empty script project with no script files and a base manifest file.\n - `get` — Gets a script project's metadata.\n - `getContent` — Gets the content of the script project, including the code source and metadata for each script file.\n - `getMetrics` — Get metrics data for scripts, such as number of executions and active users.\n - `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.\n - `deployments` — Operations on the 'deployments' resource\n - `versions` — Operations on the 'versions' resource\n\n### scripts\n\n - `run` — \n\n## Discovering Commands\n\nBefore calling any API method, inspect it:\n\n```bash\n# Browse resources and methods\ngws apps-script --help\n\n# Inspect a method's required params, types, and defaults\ngws schema apps-script.<resource>.<method>\n```\n\nUse `gws schema` output to build your `--params` and `--json` flags.\n\n## Usage\n\n```bash\n# List available resources and methods\ngws apps-script --help\n\n# Inspect method schema before calling\ngws schema apps-script.<resource>.<method>\n\n# Execute command with arguments\ngws apps-script $ARGUMENTS\n```\n\n## Task\n\nExecute the requested Apps Script operation: $ARGUMENTS\n\n1. **Verify Prerequisites**\n - Check `gws` is installed: `gws --version`\n - Verify authentication: `gws auth status`\n - Review available commands: `gws apps-script --help`\n\n2. **Inspect Method Schema**\n - Before calling any method, inspect its parameters\n - Use `gws schema` to understand required fields\n - Review parameter types and constraints\n\n3. **Execute Operation**\n - Build command with appropriate flags\n - Use `--params` for query/path parameters\n - Use `--json` for request body\n - Handle pagination with `--max-results` or `--page-token`\n\n4. **Error Handling**\n - Check command output for errors\n - Review API quotas and rate limits\n - Handle authentication issues\n - Retry transient failures\n\n---\n\n**License**: Apache License 2.0\n**Source**: [Google Workspace CLI](https://github.com/googleworkspace/cli)\n**Original Skill**: `gws-apps-script`\n"} |