Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

cloud-resources云资源

Agent Skill

cloud-resources 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

96

周安装

4

GitHub Stars

公开资料未说明

下载量

32
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cloud-resources(云资源)
来源仓库:https://github.com/serendipityoneinc/srp-claude-code-marketplace
仓库路径:skills/cloud-resources
安装命令:
npx skills add serendipityoneinc/srp-claude-code-marketplace --skill "cloud-resources"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add serendipityoneinc/srp-claude-code-marketplace --skill "cloud-resources"

简介

云资源技能聚合多个开源技能库,便于批量发现与部署相关工具。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中快速搭建云原生工作流。
  • 通过统一入口管理各类云服务适配器与插件。
  • 安装命令:npx skills add serendipityoneinc/srp-claude-code-marketplace --skill "cloud-resources"。
  • 部分子技能可能需要独立认证,请按需启用并单独配置凭据。

SKILL.md

name
cloud-resources
description
Cloud resource management and monitoring for GCP (云资源管理与监控 - GCP)

Cloud Resources Management (云资源管理)

为运维人员提供 GCP 云资源的管理和监控功能,包括查看和管理 Compute Engine、Cloud Storage、网络资源等。

Provides GCP cloud resource management and monitoring for DevOps engineers, including Compute Engine, Cloud Storage, networking, and more.

Quick Start

List Compute Instances (列出计算实例)

显示所有 GCE 实例
List all Compute Engine instances

Check Cloud Storage (检查云存储)

列出所有 GCS buckets
List all Cloud Storage buckets

View Project Resources (查看项目资源)

显示项目 srpproduct-dc37e 的资源概况
Show resource overview for project srpproduct-dc37e

Key Features

1. Compute Engine Management (计算引擎管理)

View and monitor GCE instances:

Common Operations:

# List instances
gcloud compute instances list

# Get instance details
gcloud compute instances describe <instance-name>

# Check instance status
gcloud compute instances get-serial-port-output <instance-name>

2. Cloud Storage (云存储)

Monitor and manage GCS buckets and objects:

Common Operations:

# List buckets
gcloud storage buckets list

# List objects in bucket
gcloud storage ls gs://<bucket-name>/

# Get object metadata
gcloud storage objects describe gs://<bucket-name>/<object-name>

3. Network Resources (网络资源)

View network configuration and health:

Common Operations:

# List networks
gcloud compute networks list

# List firewalls
gcloud compute firewall-rules list

# List load balancers
gcloud compute forwarding-rules list

4. Resource Monitoring (资源监控)

Monitor resource usage and costs:

Common Operations:

# Project info
gcloud projects describe <project-id>

# List services
gcloud services list --enabled

# Check quotas
gcloud compute project-info describe --project=<project-id>

Common Workflows

Workflow 1: Instance Health Check

1. User: "检查所有 production 实例的健康状态"
2. List instances: gcloud compute instances list --filter="labels.env=production"
3. Check each instance status
4. Review recent logs if needed
5. Report health summary

Workflow 2: Storage Audit

1. User: "审计 GCS buckets 的访问权限"
2. List all buckets
3. Get IAM policy for each bucket
4. Check public access
5. Identify potential security issues
6. Generate audit report

Workflow 3: Network Troubleshooting

1. User: "为什么服务 A 无法连接到服务 B?"
2. Check firewall rules
3. Verify network connectivity
4. Review load balancer config
5. Check DNS settings
6. Diagnose issue and suggest fixes

Examples (示例)

Example 1: List Compute Instances (列出计算实例)

User (Chinese):

显示项目中所有正在运行的 GCE 实例

Assistant Response:

我会列出所有正在运行的 GCE 实例。

<executes: gcloud compute instances list --filter="status=RUNNING">

**Running Compute Engine Instances:**

| Name | Zone | Machine Type | Internal IP | External IP | Status |
|------|------|--------------|-------------|-------------|--------|
| api-server-prod-1 | us-east1-b | n2-standard-4 | 10.0.1.10 | 34.xxx.xxx.1 | RUNNING |
| api-server-prod-2 | us-east1-c | n2-standard-4 | 10.0.1.11 | 34.xxx.xxx.2 | RUNNING |
| worker-prod-1 | us-east1-b | n2-standard-8 | 10.0.2.10 | - | RUNNING |
| db-primary | us-east1-b | n2-highmem-8 | 10.0.3.10 | - | RUNNING |

**Summary:**
- Total running instances: 4
- Machine types: n2-standard-4 (2), n2-standard-8 (1), n2-highmem-8 (1)
- 2 instances with external IPs
- All instances in us-east1 region

Example 2: Storage Bucket Overview (存储桶概览)

User (English):

List all Cloud Storage buckets and their sizes

Assistant Response:

I'll list all GCS buckets with size information.

<executes: gcloud storage buckets list>
<executes: gcloud storage du -s gs://<bucket>/* for each bucket>

**Cloud Storage Buckets:**

| Bucket Name | Location | Storage Class | Size | Objects |
|-------------|----------|---------------|------|---------|
| srp-prod-data | us-east1 | STANDARD | 2.3 TB | 450,230 |
| srp-prod-logs | us-east1 | NEARLINE | 890 GB | 1,250,000 |
| srp-prod-backups | us-east1 | COLDLINE | 5.1 TB | 125 |
| srp-dev-data | us-east1 | STANDARD | 120 GB | 15,430 |

**Summary:**
- Total storage: 8.4 TB
- Monthly estimated cost: ~$180 (based on storage class)
- Largest bucket: srp-prod-backups (5.1 TB)
- Most objects: srp-prod-logs (1.25M objects)

**Recommendations:**
- Consider lifecycle policies for old logs
- Review backup retention policy
- Monitor storage costs

Example 3: Network Firewall Audit (网络防火墙审计)

User (Chinese):

检查是否有过于宽松的防火墙规则

Assistant Response:

我会检查防火墙规则,识别潜在的安全风险。

<executes: gcloud compute firewall-rules list>

**Firewall Rules Audit:**

**✅ Secure Rules (10):**
- allow-internal-prod: 10.0.0.0/8 → All (Internal only)
- allow-ssh-bastion: Specific IPs → tcp:22
- allow-https-lb: Load balancer → tcp:443
- ... (7 more)

**⚠️ Potentially Risky Rules (2):**
1. **allow-all-dev** ⚠️
   - Source: 0.0.0.0/0 (All internet)
   - Ports: tcp:8080, tcp:3000
   - Target: dev-instances
   - **Risk**: Development ports exposed to internet
   - **Recommendation**: Restrict to office IPs or VPN

2. **allow-ssh-temp** ⚠️ HIGH PRIORITY
   - Source: 0.0.0.0/0 (All internet)
   - Port: tcp:22
   - Target: All instances
   - **Risk**: SSH open to entire internet
   - **Recommendation**: DELETE immediately and use bastion host

**Summary:**
- Total rules: 12
- Secure: 10
- Needs review: 2

**Action Items:**
1. 🔴 URGENT: Review and restrict allow-ssh-temp rule
2. 🟡 Review allow-all-dev and limit to VPN/office IPs
3. 🟢 Document all firewall rule purposes

Important Notes

Access Control (访问控制)

  • Requires GCP authentication (gcloud)
  • Operations limited by IAM permissions
  • Read access to most resources
  • Some management operations available with proper roles

Safety Guidelines (安全指南)

  • Caution with management operations: Always verify before executing
  • Prefer read-only commands for investigation
  • Use appropriate environments (dev/staging/prod)
  • Follow change management processes
  • Document all changes

Best Practices (最佳实践)

  • Use labels for resource organization
  • Enable audit logging
  • Regular security reviews
  • Monitor costs and quotas
  • Use least privilege access

Prerequisites

GCP CLI (gcloud)

Ensure gcloud is installed and configured:

# Check gcloud installation
gcloud version

# Authenticate
gcloud auth login

# Set default project
gcloud config set project srpproduct-dc37e

# Verify access
gcloud projects describe srpproduct-dc37e

Environment Variables

export GCP_PROJECT_ID="srpproduct-dc37e"
export GCP_REGION="us-east1"
export GCP_ZONE="us-east1-b"

Required IAM Roles

Minimum roles needed:

  • roles/compute.viewer - View compute resources
  • roles/storage.objectViewer - View storage objects
  • roles/viewer - Basic project viewing

For management operations:

  • roles/compute.instanceAdmin - Manage instances
  • roles/storage.admin - Manage storage
  • roles/iam.securityReviewer - Security audits

Limitations

Current Limitations

  • Uses gcloud CLI (not direct API integration)
  • No real-time dashboards
  • Limited cost analytics
  • No automated remediation
  • Manual execution of commands

Future Enhancements

  • Direct GCP API integration via MCP
  • Real-time resource monitoring
  • Cost analytics and optimization
  • Automated compliance checks
  • Integration with Terraform/IaC
  • Alert and notification system

Troubleshooting

Issue 1: "gcloud: command not found"

Solutions:

  1. Install gcloud SDK: https://cloud.google.com/sdk/docs/install
  2. Add to PATH
  3. Restart terminal

Issue 2: "Permission denied"

Solutions:

  1. Check current account: gcloud auth list
  2. Verify IAM permissions
  3. Switch account if needed: gcloud config set account <email>
  4. Contact GCP admin

Issue 3: "Project not found"

Solutions:

  1. List available projects: gcloud projects list
  2. Set correct project: gcloud config set project <project-id>
  3. Verify project ID spelling

Security & Compliance

Resource Access Audit

  • All operations are logged in Cloud Audit Logs
  • Review logs regularly
  • Follow principle of least privilege
  • Use service accounts for automation

Sensitive Data

  • Do not expose credentials
  • Use Secret Manager for secrets
  • Enable data encryption
  • Regular access reviews

Compliance

  • Follow company security policies
  • Document all infrastructure changes
  • Regular compliance audits
  • Incident response procedures

Related Skills

  • k8s-management: Kubernetes cluster management
  • Future: monitoring-alerts, cost-optimization, incident-response

Operations Reference

Safe Read Operations (安全的只读操作)

✅ List resources ✅ Describe resources ✅ Get logs ✅ Check status ✅ View metrics

Management Operations (需谨慎执行)

⚠️ Start/stop instances ⚠️ Modify configurations ⚠️ Create/delete resources ⚠️ Change IAM policies ⚠️ Network changes

Always verify management operations before executing and follow change management processes.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

75.46%
按下载量换算24

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills