
Gcloud Cli
Run Google Cloud operations through the gcloud CLI with agent-studio pre/post hooks so deployments and config changes follow a fixed skill playbook.
Install
npx skills add https://github.com/oimiragieo/agent-studio --skill gcloud-cliWhat is this skill?
- Wrapper skill: invoke gcloud-cli and follow the bundled procedure exactly
- Pre-execute hook for input validation before cloud commands
- Post-execute hook for logging and follow-up after skill runs
- disable-model-invocation: true—intended as a direct skill dispatch, not free-form model improvisation
- Node-based hook scripts under agent-studio skill lifecycle
Adoption & trust: 986 installs on skills.sh; 31 GitHub stars; 2/3 security scanners passed (skills.sh audits).
Recommended Skills
Azure Deploymicrosoft/azure-skills
Azure Preparemicrosoft/azure-skills
Azure Storagemicrosoft/azure-skills
Azure Validatemicrosoft/azure-skills
Appinsights Instrumentationmicrosoft/azure-skills
Azure Resource Lookupmicrosoft/azure-skills
Journey fit
Primary fit
Most solo builders first touch gcloud when wiring GCP services into the product during integration and backend setup. The skill is a cloud CLI integration layer—canonical shelf is build/integrations where external providers are connected.
Common Questions / FAQ
Is Gcloud Cli safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Gcloud Cli
Invoke the gcloud-cli skill and follow it exactly as presented to you #!/usr/bin/env node /** * gcloud-cli - Post-Execute Hook * Runs after the skill executes for cleanup, logging, or follow-up actions. */ const fs = require('fs'); const path = require('path'); const { safeParseJSON } = require('../../../lib/utils/safe-json.cjs'); // Parse hook input const result = safeParseJSON(process.argv[2] || '{}'); console.log('📝 [GCLOUD-CLI] Post-execute processing...'); /** * Process execution result */ function processResult(_result) { // TODO: Add your post-processing logic here return { success: true }; } // Run post-processing const outcome = processResult(result); if (outcome.success) { console.log('✅ [GCLOUD-CLI] Post-processing complete'); process.exit(0); } else { console.error('⚠️ [GCLOUD-CLI] Post-processing had issues'); process.exit(0); } #!/usr/bin/env node /** * gcloud-cli - Pre-Execute Hook * Runs before the skill executes to validate input or prepare context. */ const fs = require('fs'); const path = require('path'); const { safeParseJSON } = require('../../../lib/utils/safe-json.cjs'); // Parse hook input const input = safeParseJSON(process.argv[2] || '{}'); console.log('🔍 [GCLOUD-CLI] Pre-execute validation...'); /** * Validate input before execution */ function validateInput(_input) { const errors = []; // TODO: Add your validation logic here return errors; } // Run validation const errors = validateInput(input); if (errors.length > 0) { console.error('❌ Validation failed:'); errors.forEach(e => console.error(' - ' + e)); process.exit(1); } console.log('✅ [GCLOUD-CLI] Validation passed'); process.exit(0); # gcloud-cli Research Requirements Generated: 2026-02-28 ## Skill Description Google Cloud CLI operations and resource management ## Research Areas - Current best practices for gcloud-cli - Industry standards and tooling - Integration patterns ## Source References - To be populated by skill-updater research phase # gcloud-cli Rules ## Purpose Google Cloud CLI operations and resource management ## Best Practices - Never expose service account keys - Resource deletion requires confirmation - Verify project before operations ## Integration Points See SKILL.md for complete documentation. { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "gcloud-cli Input Schema", "description": "Input validation schema for gcloud-cli skill", "type": "object", "required": [], "properties": {}, "additionalProperties": true } { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "gcloud-cli Output Schema", "description": "Output validation schema for gcloud-cli skill", "type": "object", "required": ["success"], "properties": { "success": { "type": "boolean", "description": "Whether the skill executed successfully" }, "result": { "type": "object", "description": "The skill execution result", "additionalProperties": true }, "error": { "type": "string", "description": "Error message if execution failed" } }, "additionalProperties": true } #!/usr/bin/env node /** * Gcloud Cli - Main Script * Google Cloud CLI operations and resource management * * Usage: * node main.cjs [options] * * Options: * --help Show this help message */ const fs = require('fs'); const path = require('path'); // Find project root function findProjectRoot() { let dir = __dirname; while (dir !== path.parse(dir).root) { if (fs.existsSync(path.join(dir, '.claude'))) { return dir; } dir = path.dirname(dir); } return process.cwd(); } const PROJECT_ROOT = findProjectRoot(); // Parse command line arguments const args = process.argv.slice(2); const options = {}; for (let i = 0; i < args.length; i++) { if (args[i].startsWith('--')) { const key = args[i].slice(2); const valu