From eai-gofer
Deploy and configure the Gofer cloud integration for remote pipeline execution.
How this skill is triggered — by the user, by Claude, or both
Slash command
/eai-gofer:10_gofer_cloudThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
---
Before spawning agents, calling tools, or loading large files:
.specify/memory/gofer-model-policy.yaml as the repo-owned source of truth for simple, medium, hard, and arbiter model routing. If it is missing, run /gofer:bootstrap-workspace before continuing..specify/specs/{feature}/context-bundle.md, then work from summaries.$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
This command only executes READ-ONLY cloud CLI operations.
All commands are safe inspection operations that do not modify any cloud resources. This is critical for agentic coding - agents must never accidentally modify production infrastructure.
Ask the user:
I'm ready to analyze your cloud infrastructure. Please specify:
1. Which cloud platform (Azure/AWS/GCP/other)
2. What aspect to focus on (or "all" for comprehensive analysis):
- Resources and architecture
- Security and compliance
- Cost optimization
- Performance and scaling
- Specific services or resource groups
Wait for user response.
# Check CLI installed
az version
# Verify authentication
az account show
# List subscriptions
az account list --output table
# Check CLI installed
aws --version
# Verify authentication
aws sts get-caller-identity
# List profiles
aws configure list-profiles
# Check CLI installed
gcloud version
# Verify authentication
gcloud auth list
# List projects
gcloud projects list
If not authenticated, guide user through login process.
list, show, describe, get operationscreate, delete, update, set, put, post, patch,
removeAzure:
az vm list --output table
az container list --output table
az functionapp list --output table
az webapp list --output table
AWS:
aws ec2 describe-instances --output table
aws ecs list-clusters
aws lambda list-functions
aws elasticbeanstalk describe-environments
GCP:
gcloud compute instances list
gcloud run services list
gcloud functions list
gcloud app instances list
Azure:
az storage account list --output table
az cosmosdb list --output table
az sql server list --output table
AWS:
aws s3 ls
aws dynamodb list-tables
aws rds describe-db-instances
GCP:
gcloud storage buckets list
gcloud firestore databases list
gcloud sql instances list
Azure:
az network vnet list --output table
az network nsg list --output table
az network lb list --output table
az network application-gateway list --output table
AWS:
aws ec2 describe-vpcs
aws ec2 describe-security-groups
aws elbv2 describe-load-balancers
aws apigateway get-rest-apis
GCP:
gcloud compute networks list
gcloud compute firewall-rules list
gcloud compute forwarding-rules list
Azure:
az role assignment list --output table
az keyvault list --output table
az network nsg rule list --nsg-name [name] --resource-group [rg]
AWS:
aws iam list-users
aws iam list-roles
aws kms list-keys
aws secretsmanager list-secrets
GCP:
gcloud iam roles list
gcloud kms keyrings list --location global
gcloud secrets list
Azure:
az consumption usage list --start-date [date] --end-date [date]
az advisor recommendation list --category Cost
AWS:
aws ce get-cost-and-usage --time-period Start=[date],End=[date] --granularity MONTHLY --metrics BlendedCost
aws ce get-reservation-utilization --time-period Start=[date],End=[date]
GCP:
gcloud billing accounts list
gcloud recommender recommendations list --project=[project] --location=global --recommender=google.compute.instance.MachineTypeRecommender
Write to {FEATURE_DIR}/cloud-analysis.md (or .specify/cloud/[environment].md
for general analysis):
---
date: [ISO timestamp]
researcher: Claude
platform: [Azure/AWS/GCP]
environment: [Production/Staging/Dev]
subscription: [Subscription/Account ID]
status: complete
---
# Cloud Infrastructure Analysis: [Environment Name]
## Executive Summary
[High-level findings, critical issues, and key recommendations]
## Analysis Scope
- **Platform**: [Cloud Provider]
- **Subscription/Project**: [ID]
- **Regions**: [List]
- **Focus Areas**: [What was analyzed]
## Resource Inventory
| Category | Resource Type | Count | Region | Est. Monthly Cost |
| ---------- | ------------- | ----- | ------- | ----------------- |
| Compute | VMs | 12 | East US | $1,200 |
| Compute | Functions | 5 | East US | $50 |
| Storage | Blob Storage | 3 | East US | $200 |
| Database | SQL Server | 2 | East US | $800 |
| Networking | Load Balancer | 1 | East US | $100 |
**Total Estimated Monthly Cost**: $X,XXX
## Architecture Overview
```mermaid
graph TB
Internet --> LB[Load Balancer]
LB --> WebApp[Web App Service]
WebApp --> API[API Functions]
API --> DB[(SQL Database)]
API --> Storage[(Blob Storage)]
API --> Cache[(Redis Cache)]
```
| Resource | Type | Size | State | Notes |
|---|---|---|---|---|
| prod-web-01 | VM | Standard_D4 | Running | Web server |
| prod-api-func | Function | Consumption | Active | API endpoints |
Observations:
| Resource | Type | Size | Tier | Backup Status |
|---|---|---|---|---|
| prod-sql | SQL DB | 50GB | Standard | Daily |
| prod-blob | Storage | 200GB | Hot | GRS enabled |
Observations:
| Resource | Type | Configuration | Security |
|---|---|---|---|
| prod-vnet | VNet | 10.0.0.0/16 | NSG attached |
| prod-lb | LB | Standard, Zone-aware | HTTPS only |
Observations:
| Principal | Role | Scope | Risk Level |
|---|---|---|---|
| dev-team | Contributor | Subscription | Medium |
| ci-cd-sp | Owner | Resource Grp | High |
| Finding | Severity | Resource | Recommendation |
|---|---|---|---|
| Public blob container | High | storage-account | Enable private |
| Open SSH port | Medium | prod-web-01 | Restrict to VPN |
| Missing encryption | Medium | prod-sql | Enable TDE |
| Category | Cost | % of Total |
|---|---|---|
| Compute | $1,250 | 50% |
| Storage | $200 | 8% |
| Database | $800 | 32% |
| Networking | $250 | 10% |
| Opportunity | Current | Recommended | Savings |
|---|---|---|---|
| Right-size VMs | D4 x 2 | D2 x 2 | $400/mo |
| Reserved instances | On-demand | 1-year RI | $300/mo |
| Delete unused storage | 50GB | 0GB | $25/mo |
Potential Monthly Savings: $725
# Key commands used in this analysis
az vm list --output table
az storage account list --output table
# ... other commands run
If analyzing for a specific feature:
---
## Step 6: Report Completion
Platform: [Azure/AWS/GCP] Resources Analyzed: [N] resources across [N] categories
Key Findings:
Cost Summary:
Security Status:
Report: [output file path]
Recommended Actions:
================================================================
---
## Error Handling
### CLI Not Installed
[Platform] CLI not found. Please install:
Azure: https://docs.microsoft.com/cli/azure/install-azure-cli AWS: https://aws.amazon.com/cli/ GCP: https://cloud.google.com/sdk/docs/install
### Not Authenticated
Not authenticated to [Platform]. Please run:
Azure: az login AWS: aws configure GCP: gcloud auth login
### Insufficient Permissions
Warning: Insufficient permissions for some operations. Missing permissions: [list]
Analysis will continue with available access. Results may be incomplete for: [affected areas]
### Rate Limited
If rate limited, implement exponential backoff and continue with available data.
---
## Observability Logging
```bash
.specify/scripts/bash/log-stage.sh 10_cloud --complete --tokens [N] --compactions [N]
npx claudepluginhub eai-tools/eai-gofer --plugin eai-goferProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.