Skip to content
Agentmart
Submit a tool

gcli

Use Google Cloud CLI (gcloud) for project/account checks and Google API operations.

Skill by camplight

IndexedApache-2.0★ 6
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/camplight-gcli

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use Google Cloud CLI (gcloud) for project/account checks and Google API operations. Use when users ask for gcloud commands, Google Cloud auth, project configuration, IAM, or cloud resource inspection and updates.

Use cases: backend, cloud, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 2

  • cloud.google.com · found in code
  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/gcli

What's inside

Skill name
gcli
Description
Use Google Cloud CLI (gcloud) for project/account checks and Google API operations. Use when users ask for gcloud commands, Google Cloud auth, project configuration, IAM, or cloud resource inspection and updates.
License
Apache-2.0
Instructions
75 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • ensure.ts · assets/

SKILL.md (first lines)

# Google CLI (gcloud) wrapper

Use this skill as a lightweight wrapper around the local Google Cloud CLI.

## Scope

- Use `gcloud` directly for command execution.
- Keep commands explicit and non-interactive where possible.
- Prefer read-only checks first, then apply mutations only when requested.

## Auth and configuration

Preferred auth order:

1. Existing local login/ADC context
2. Service account key file via `GOOGLE_APPLICATION_CREDENTIALS`
3. Explicit `gcloud auth` flows only when necessary

Check active context before doing real work:

```bash
node --import tsx skills/gcli/assets/ensure.ts
```

The ensure script validates:

- `gcloud` binary is installed and reachable in `PATH`
- current active account (if configured)
- current active project (if configured)
- current default compute region/zone (if configured)

If you need to authenticate manually:

```bash
gcloud auth list --format="value(account,status)"
gcloud config list --format="yaml(core.account,core.project,compute.region,compute.zone)"
```

## Command patterns

Project and config:

```bash
gcloud projects list --limit=20
gcloud config set project <PROJECT_ID>
```

IAM and principals:

```bash
gcloud projects get-iam-policy <PROJECT_ID> --format=json
gcloud iam service-accounts list --project <PROJECT_ID>
```

GKE/Compute examples:

```bash
gcloud container clusters list --project <PROJECT_ID>
gcloud compute instances list --project <PROJECT_ID>
```

## Execution rules

- Always run a context check first (`skills/gcli/assets/ensure.ts`).
- Use `--project` explicitly for commands touching resources.
- Use structured output (`--format=json`) when results feed downstream tools.
- Avoid long interactive commands unless user explicitly asks.
- Never print or echo sensitive credentials.

## Failure handling

- If `gcloud` is missing, stop and ask user to install Google Cloud CLI.
- If account/project is missing, return exact setup commands and pause.
- If permissions fail, report the required role/permission from the error and stop.

From camplight/orgops, Apache-2.0.

Signals

Stars
6
Forks
1
Open issues
0
Last commit (this folder)
Apr 29, 2026 (6 months ago)
Last release
Oct 22, 2026 (7 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from camplight

Cite this page

gcli skill. Agent Mart. https://agentmart.dev/skills/camplight-gcli (last updated 2026-10-24)