Skip to content
Back to skills

Workspace Automation Cli

ASecurity

Enforce standards for programmatic management of Google Workspace assets (Docs, Sheets, Drive). This skill focuses on the CLI-driven automation of reports, document generation, and secure file-sharing orchestration using the Google CLI (`clasp`) and Workspace APIs.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
toolstypescriptgogitapisecurityperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill workspace_automation_cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Workspace Automation Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Workspace Automation Cli
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-workspace-automation-cli/badge)](https://www.skillsdirectory.com/skills/idorgham-workspace-automation-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---



# πŸ“Š Google Workspace Automation (CLI)

## Purpose
Enforce standards for programmatic management of Google Workspace assets (Docs, Sheets, Drive). This skill focuses on the CLI-driven automation of reports, document generation, and secure file-sharing orchestration using the Google CLI (`clasp`) and Workspace APIs.

---

## Technique 1 β€” clasp-driven Deployment (Apps Script)
- **Rule**: Never edit Apps Script in the browser for production projects; use the `clasp` CLI for version control.
- **Protocol**: 
    1. Clone the Apps Script project locally.
    2. Use TypeScript for all script logic.
    3. Deploy versions to specific "environments" (e.g., prod vs dev).

---

## Technique 2 β€” Programmatic Report Generation (Sheets)
- **Rule**: Use the "Template & Populate" pattern to ensure consistent formatting.
- **Protocol**: 
    1. Define a Master Sheet with specific styles and data validation.
    2. Copy the template via Drive API.
    3. Inject data into specific A1 notation ranges using the Sheets API.

---

## πŸ›‘οΈ Critical Failure Modes (Anti-Patterns)

| Anti-Pattern | Result | Correction |
| :--- | :--- | :--- |
| **Broad OAuth Scopes** | Security risk | Use the "Least Privilege" principle; only request `drive.file` instead of `drive.readonly` if possible. |
| **Hard-coded File IDs** | Broken workflows | Use naming conventions or metadata tags to discover files dynamically instead of static IDs. |
| **Ignoring Batch Update Limits** | Performance throttling | Use `batchUpdate` for multiple Sheet edits to stay within API rate limits. |

---

## Success Criteria (Workspace QA)
- [ ] Apps Script code is 100% version-controlled via Git.
- [ ] 0 Broad Scopes used in Service Accounts.
- [ ] Automated reports are generated and shared within < 5s.
- [ ] Sheets data is validated before injection to prevent formula corruption.
- [ ] Arabic RTL alignment is correctly set for all generated MENA reports.

Files in this skill

  • SKILL.md2.1 KB
  • core.py452 B
  • manifest.yaml203 B
  • tests/test_core.py332 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.