Skip to content
Agentmart
Submit a tool

list-objects-for-s3-bucket

List contents of a specific S3 bucket at a given path with pagination support.

Skill by chaddm

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/chaddm-list-objects-for-s3-bucket

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

List contents of a specific S3 bucket at a given path with pagination support. Results are returned in TOON format for efficient token usage.

Use cases: cloud

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/list-objects-for-s3-bucket

What's inside

Skill name
list-objects-for-s3-bucket
Description
List contents of a specific S3 bucket at a given path with pagination support. Results are returned in TOON format for efficient token usage.
License
MIT
Compatibility
opencode
Instructions
93 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • metadata: must be a key/value mapping

Files (2)

  • SKILL.md
  • list_objects_for_bucket.sh

SKILL.md (first lines)

# List Objects for S3 Bucket

## What I Do

This skill provides a script to list contents of a specific S3 bucket at a given path with pagination support. Results are returned in TOON format for efficient token usage.

### Configuration

AWS requires SSO authentication to access S3 buckets. If the `aws` command returns an error that no matching credentials were found or no access to resources, return the following:

```
Authentication Failure: AWS SSO has not been authenticated.
Please follow your AWS SSO login procedure and then try again.
```

### Workflow

**List Bucket Contents**:

Use the `list_objects_for_bucket.sh` script to list contents of a specific S3 bucket at a given path with pagination support.

**Syntax:**

```bash
./.opencode/skill/list-objects-for-s3-bucket/list_objects_for_bucket.sh <bucket-name> [path] [--page N] [--per N]
```

**Parameters:**

- `bucket-name`: Required. Name of the S3 bucket
- `path`: Optional. Path prefix within the bucket. If omitted, lists only root-level objects (non-recursive). If provided, lists all objects under that path recursively.
- `--page`: Optional. Page number (default: 1)
- `--per`: Optional. Items per page (default: 50)

**Output Format:**

Results are returned in TOON format:

```toon
pagination:
  page: 1
  per: 50
  showing: 1-6
objects[6]{key,size,date,time}:
  files/,0,2019-01-25,11:09:34
  files/data.tgz,673361221,2019-01-25,11:09:58
  files/history/,0,2019-02-24,20:26:00
  ...
```

**Error Format:**

Errors are returned in TOON format:

```toon
Error:
  status: 254
  message: An error occurred (NoSuchBucket) when calling the ListObjectsV2 operation: The specified bucket does not exist
```

**Examples:**

```bash
# List root-level objects in a bucket (first 50, non-recursive)
./.opencode/skill/list-objects-for-s3-bucket/list_objects_for_bucket.sh nexus-import

# List objects at a specific path (recursive)
./.opencode/skill/list-objects-for-s3-bucket/list_objects_for_bucket.sh nexus-import projects/2024/

# List with custom pagination (page 2, 25 items per page)
./.opencode/skill/list-objects-for-s3-bucket/list_objects_for_bucket.sh nexus-import --page 2 --per 25

# List specific path with pagination (recursive)
./.opencode/skill/list-objects-for-s3-bucket/list_objects_for_bucket.sh nexus-import projects/2024/ --page 1 --per 100
```

**Notes:**

- When no path is provided, the script lists only root-level objects (non-recursive). When a path is provided, it fetches ALL objects recursively from that path, then paginates locally
- For buckets with millions of objects, the initial fetch may take time when using a path prefix
- The `showing` field indicates the range of results displayed (e.g., "1-50" means items 1 through 50)
- When requesting pages beyond available results, `objects[0]` will be returned

## When to Use Me

Use this skill when you need to:

- Browse the contents of a specific S3 bucket
- Find files at a specific path within a bucket
- List objects with pagination for large buckets
- Get object metadata including size and timestamps

From chaddm/ad-astra-per-aspera, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jan 15, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from chaddm

Cite this page

list-objects-for-s3-bucket skill. Agent Mart. https://agentmart.dev/skills/chaddm-list-objects-for-s3-bucket (last updated 2026-10-24)