Agent skill
s3
Uploads generated static sites or files (like slides) to AWS S3 or S3-compatible services (MinIO, Aliyun OSS, etc.) for public access. Use this skill when the user wants to publish or deploy their content to the cloud.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/s3-neversight-skills-feed
Metadata
Additional technical details for this skill
- author
- Yuga Sun
- moltbot
-
{ "emoji": "\u2601\ufe0f", "install": [ { "id": "uv-brew", "bins": [ "uv" ], "kind": "brew", "label": "Install uv (brew)", "formula": "uv" } ], "requires": { "env": [ "S3_ACCESS_KEY_ID", "S3_SECRET_ACCESS_KEY", "S3_BUCKET", "S3_CUSTOM_DOMAIN" ], "bins": [ "uv" ] }, "settings": { "bucket": { "type": "string", "label": "Default Bucket", "description": "Default Target Bucket" }, "region": { "type": "string", "label": "Region", "description": "S3 Region" }, "endpointUrl": { "type": "string", "label": "Endpoint URL", "description": "S3 Compatible Endpoint URL" }, "customDomain": { "type": "string", "label": "Custom Domain", "description": "Custom domain for generated link (e.g., https://cdn.example.com)" }, "addressingStyle": { "type": "string", "label": "Addressing Style", "description": "auto, virtual, or path (use virtual for Aliyun)" }, "signatureVersion": { "type": "string", "label": "Signature Version", "description": "e.g. s3 or s3v4 (use s3 for Aliyun)" } }, "primaryEnv": "S3_ACCESS_KEY_ID" } - version
- 2026.01.29
SKILL.md
S3 Deployment Skill
Instructions
This skill handles uploading a local directory (e.g., generated slides) to an AWS S3 bucket or any S3-compatible object storage (e.g., MinIO, Aliyun OSS, Tencent COS) for static website hosting.
-
Prerequisites:
- Ensure the user has valid credentials in their environment:
S3_ACCESS_KEY_IDS3_SECRET_ACCESS_KEYS3_BUCKET(Optional if provided as an argument)S3_REGION(Optional)S3_ENDPOINT_URL(Required for non-AWS services like MinIO or Aliyun OSS)S3_CUSTOM_DOMAIN(Optional, overrides the generated URL)
- Ensure
boto3is installed in the environment. If not, install it. - Identify the source directory (e.g.,
slides/<ppt-name>/dist/) and the target S3 bucket name.
- Ensure the user has valid credentials in their environment:
-
Implementation:
- Create a Python script using
boto3to walk through the source directory. - Configure the S3 client with
endpoint_urlif provided, to support S3-compatible providers. - Upload each file, maintaining the relative path structure.
- Crucial: specific
ContentTypemust be set for each file based on its extension (e.g.,text/htmlfor.html,text/cssfor.css,image/pngfor.png) so that the browser renders it correctly. - Make the objects public if the bucket policy allows or requires ACL (optional, based on bucket configuration).
- Print the final website URL.
- Create a Python script using
Usage
Use the bundled script to upload files:
# Explicit bucket name
uv run {baseDir}/scripts/upload_to_s3.py "slides/my-presentation/dist" "my-bucket" --prefix "presentations/my-presentation"
# Using S3_BUCKET from environment
uv run {baseDir}/scripts/upload_to_s3.py "slides/my-presentation/dist" --prefix "presentations/my-presentation"
Usage Guidelines
- Bucket Name: Check if
S3_BUCKETis set in environment. If not, ask the user for the S3 Bucket name. - Endpoint URL: Check if the user is using a non-AWS provider (like MinIO or Aliyun). If so, request or verify the
endpoint_url. - Source Path: Default to looking for
distfolders inslides/if not specified.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?