Cloudflare GraphQL Analytics for zone traffic, firewall events, Workers metrics, and schema exploration. Use when querying Cloudflare analytics data or exploring the GraphQL API.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Aws S3 — aWS S3 bucket analysis, storage class distribution, lifecycle policies, access patterns, and cost optimization. Covers bucket inventory, object metrics, versioning status, encryption audit, public access analysis, and intelligent tiering evaluation.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Analyze AWS S3 buckets with parallel execution and anti-hallucination guardrails.
Relationship to other AWS skills:
aws-s3/ → S3-specific analysis (buckets, storage classes, lifecycle, access)aws/ → "How to execute" (parallel patterns, throttling, output format)ALL independent operations MUST run in parallel using background jobs (&) and wait.
#!/bin/bash
export AWS_PAGER=""
for bucket in $buckets; do
get_bucket_info "$bucket" &
done
wait
#!/bin/bash
export AWS_PAGER=""
# List all buckets
list_buckets() {
aws s3api list-buckets --output text --query 'Buckets[].[Name,CreationDate]'
}
# Get bucket region
get_bucket_region() {
local bucket=$1
aws s3api get-bucket-location --bucket "$bucket" \
--output text --query 'LocationConstraint' 2>/dev/null || echo "us-east-1"
}
# Get bucket size from CloudWatch (S3 metrics have 1-day delay)
get_bucket_size() {
local bucket=$1
local end_time start_time
end_time=$(date -u +"%Y-%m-%dT%H:%M:%S")
start_time=$(date -u -d "3 days ago" +"%Y-%m-%dT%H:%M:%S" 2>/dev/null || date -u -v-3d +"%Y-%m-%dT%H:%M:%S")
aws cloudwatch get-metric-statistics \
--namespace AWS/S3 --metric-name BucketSizeBytes \
--dimensions Name=BucketName,Value="$bucket" Name=StorageType,Value=StandardStorage \
--start-time "$start_time" --end-time "$end_time" \
--period 86400 --statistics Average \
--output text --query 'Datapoints[-1].[Average]'
}
# Get bucket object count from CloudWatch
get_object_count() {
local bucket=$1
local end_time start_time
end_time=$(date -u +"%Y-%m-%dT%H:%M:%S")
start_time=$(date -u -d "3 days ago" +"%Y-%m-%dT%H:%M:%S" 2>/dev/null || date -u -v-3d +"%Y-%m-%dT%H:%M:%S")
aws cloudwatch get-metric-statistics \
--namespace AWS/S3 --metric-name NumberOfObjects \
--dimensions Name=BucketName,Value="$bucket" Name=StorageType,Value=AllStorageTypes \
--start-time "$start_time" --end-time "$end_time" \
--period 86400 --statistics Average \
--output text --query 'Datapoints[-1].[Average]'
}
# Get bucket encryption status
get_encryption() {
local bucket=$1
aws s3api get-bucket-encryption --bucket "$bucket" \
--output text \
--query 'ServerSideEncryptionConfiguration.Rules[0].ApplyServerSideEncryptionByDefault.[SSEAlgorithm,KMSMasterKeyID]' 2>/dev/null || echo "NONE"
}
# Get public access block
get_public_access() {
local bucket=$1
aws s3api get-public-access-block --bucket "$bucket" \
--output text \
--query 'PublicAccessBlockConfiguration.[BlockPublicAcls,IgnorePublicAcls,BlockPublicPolicy,RestrictPublicBuckets]' 2>/dev/null || echo "NOT_SET"
}
#!/bin/bash
export AWS_PAGER=""
BUCKETS=$(aws s3api list-buckets --output text --query 'Buckets[].Name')
for bucket in $BUCKETS; do
{
enc=$(aws s3api get-bucket-encryption --bucket "$bucket" \
--output text --query 'ServerSideEncryptionConfiguration.Rules[0].ApplyServerSideEncryptionByDefault.SSEAlgorithm' 2>/dev/null || echo "NONE")
pub=$(aws s3api get-public-access-block --bucket "$bucket" \
--output text --query 'PublicAccessBlockConfiguration.BlockPublicAcls' 2>/dev/null || echo "NOT_SET")
ver=$(aws s3api get-bucket-versioning --bucket "$bucket" \
--output text --query 'Status' 2>/dev/null || echo "Disabled")
printf "%s\tEnc:%s\tPubBlock:%s\tVersioning:%s\n" "$bucket" "$enc" "$pub" "${ver:-Disabled}"
} &
done
wait
#!/bin/bash
export AWS_PAGER=""
BUCKET=$1
aws s3api list-objects-v2 --bucket "$BUCKET" --max-items 1000 \
--output text --query 'Contents[].[StorageClass]' \
| sort | uniq -c | sort -rn
#!/bin/bash
export AWS_PAGER=""
BUCKETS=$(aws s3api list-buckets --output text --query 'Buckets[].Name')
for bucket in $BUCKETS; do
{
rules=$(aws s3api get-bucket-lifecycle-configuration --bucket "$bucket" \
--output text \
--query 'Rules[].[ID,Status,Transitions[0].Days,Transitions[0].StorageClass,Expiration.Days]' 2>/dev/null || echo "NO_LIFECYCLE")
printf "%s\t%s\n" "$bucket" "$rules"
} &
done
wait
#!/bin/bash
export AWS_PAGER=""
BUCKETS=$(aws s3api list-buckets --output text --query 'Buckets[].Name')
for bucket in $BUCKETS; do
{
logging=$(aws s3api get-bucket-logging --bucket "$bucket" \
--output text --query 'LoggingEnabled.TargetBucket' 2>/dev/null || echo "DISABLED")
printf "%s\tLogging:%s\n" "$bucket" "${logging:-DISABLED}"
} &
done
wait
#!/bin/bash
export AWS_PAGER=""
BUCKET=$1
aws s3api list-objects-v2 --bucket "$BUCKET" --max-items 5000 \
--output text --query 'Contents[?Size>`1073741824`].[Key,Size,StorageClass,LastModified]' \
| sort -k2 -rn | head -20
--prefix for key filtering, then post-process.get-bucket-location returns null/None for us-east-1 buckets. Handle this case explicitly.Present results as a structured report:
Aws S3 Report
═════════════
Resources discovered: [count]
Resource Status Key Metric Issues
──────────────────────────────────────────────
[name] [ok/warn] [value] [findings]
Summary: [total] resources | [ok] healthy | [warn] warnings | [crit] critical
Action Items: [list of prioritized findings]
Target ≤50 lines of output. Use tables for multi-resource comparisons.
| Shortcut | Counter | Why |
|---|---|---|
| "I'll skip discovery and check known resources" | Always run Phase 1 discovery first | Resource names change, new resources appear — assumed names cause errors |
| "The user only asked for a quick check" | Follow the full discovery → analysis flow | Quick checks miss critical issues; structured analysis catches silent failures |
| "Default configuration is probably fine" | Audit configuration explicitly | Defaults often leave logging, security, and optimization features disabled |
| "Metrics aren't needed for this" | Always check relevant metrics when available | API/CLI responses show current state; metrics reveal trends and intermittent issues |
| "I don't have access to that" | Try the command and report the actual error | Assumed permission failures prevent useful investigation; actual errors are informative |
--page-size and --max-items for large buckets. Never attempt to list all objects in buckets with millions of keys.--region if the bucket is in a different region than your default.--request-payer requester.--statistics Average Maximum.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Cloudflare GraphQL Analytics for zone traffic, firewall events, Workers metrics, and schema exploration. Use when querying Cloudflare analytics data or exploring the GraphQL API.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Alloydb — google AlloyDB instance analysis, query insights, columnar engine optimization, maintenance windows, and cluster health.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Aqua — aqua Security platform analysis. Covers container runtime protection, image assurance policies, compliance frameworks, vulnerability management, workload protection, and registry scanning. Use when analyzing container security posture, reviewing image compliance, investigating runtime alerts, or auditing security policies.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Bigquery — google BigQuery job analysis, slot utilization, cost analysis, dataset management, and query optimization.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Cassandra — apache Cassandra keyspace analysis, compaction strategies, repair status, nodetool operations, and cluster health monitoring.
日本語の概要は準備中です。原文の説明を表示しています。
Use when working with Checkov — checkov infrastructure-as-code security scanning. Covers Terraform, CloudFormation, Kubernetes, and Dockerfile scanning, policy management, custom checks, compliance frameworks, and suppression management. Use when scanning IaC for security misconfigurations, evaluating compliance, managing custom policies, or reviewing scan results.
日本語の概要は準備中です。原文の説明を表示しています。