# Gws Shared

> gws CLI: Shared patterns for authentication, global flags, and output formatting.

- **Type:** Skill
- **Install:** `agentstack add skill-project-nomos-nomos-gws-shared`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [project-nomos](https://agentstack.voostack.com/s/project-nomos)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [project-nomos](https://github.com/project-nomos)
- **Source:** https://github.com/project-nomos/nomos/tree/main/skills/gws-shared
- **Website:** https://projectnomos.dev

## Install

```sh
agentstack add skill-project-nomos-nomos-gws-shared
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# gws — Shared Reference

## Installation

The `gws` binary must be on `$PATH`. See the project README for install options.

## Authentication

```bash
# Browser-based OAuth (interactive)
gws auth login

# Service Account
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
```

## Global Flags

| Flag                    | Description                                             |
| ----------------------- | ------------------------------------------------------- |
| `--format `     | Output format: `json` (default), `table`, `yaml`, `csv` |
| `--dry-run`             | Validate locally without calling the API                |
| `--sanitize ` | Screen responses through Model Armor                    |

## CLI Syntax

```bash
gws   [sub-resource]  [flags]
```

### Method Flags

| Flag                        | Description                                   |
| --------------------------- | --------------------------------------------- |
| `--params '{"key": "val"}'` | URL/query parameters                          |
| `--json '{"key": "val"}'`   | Request body                                  |
| `-o, --output `       | Save binary responses to file                 |
| `--upload `           | Upload file content (multipart)               |
| `--page-all`                | Auto-paginate (NDJSON output)                 |
| `--page-limit `          | Max pages when using --page-all (default: 10) |
| `--page-delay `         | Delay between pages in ms (default: 100)      |

## Security Rules

- **Never** output secrets (API keys, tokens) directly
- **Always** confirm with user before executing write/delete commands
- Prefer `--dry-run` for destructive operations
- Use `--sanitize` for PII/content safety screening

## Shell Tips

- **zsh `!` expansion:** Sheet ranges like `Sheet1!A1` contain `!` which zsh interprets as history expansion. Use double quotes with escaped inner quotes instead of single quotes:

  ```bash
  # WRONG (zsh will mangle the !)
  gws sheets +read --spreadsheet ID --range 'Sheet1!A1:D10'

  # CORRECT
  gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10"
  ```

- **JSON with double quotes:** Wrap `--params` and `--json` values in single quotes so the shell does not interpret the inner double quotes:
  ```bash
  gws drive files list --params '{"pageSize": 5}'
  ```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [project-nomos](https://github.com/project-nomos)
- **Source:** [project-nomos/nomos](https://github.com/project-nomos/nomos)
- **License:** MIT
- **Homepage:** https://projectnomos.dev

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-project-nomos-nomos-gws-shared
- Seller: https://agentstack.voostack.com/s/project-nomos
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
