jaws
Reference for org.tomitribe.jaws.s3 typed S3 proxy library. TRIGGER when: code imports from org.tomitribe.jaws, uses S3.Dir/S3.File interfaces, or user needs strongly-typed Java proxy interfaces for Amazon S3 bucket operations. DO NOT TRIGGER when: working directly with the AWS SDK S3 client.
What this skill does
# JAWS - Java AWS S3 Typed Proxy Library
Strongly-typed, proxy-based Java abstraction for Amazon S3. Define plain Java interfaces that mirror your bucket structure; JAWS uses dynamic proxies to translate method calls into S3 API operations. No manual key construction, no pagination handling, no S3 SDK boilerplate.
**Package:** `org.tomitribe.jaws.s3`
## Maven Coordinates
```xml
<groupId>org.tomitribe</groupId>
<artifactId>jaws-s3</artifactId>
<version>2.1.2-SNAPSHOT</version>
```
Test utilities:
```xml
<groupId>org.tomitribe</groupId>
<artifactId>jaws-s3-test</artifactId>
<version>2.1.2-SNAPSHOT</version>
<scope>test</scope>
```
## Core Concepts
1. Define interfaces extending `S3.Dir` (directories) or `S3.File` (files)
2. Create a typed proxy via `bucket.as(MyInterface.class)` or `s3File.as(MyInterface.class)`
3. Call methods on the proxy — JAWS dispatches to S3 based on return type and annotations
## Base Interfaces
All user interfaces should extend one of these from `org.tomitribe.jaws.s3.S3`:
```java
interface S3 {
S3File file(); // underlying S3File
S3File parent(); // parent directory (null at bucket root)
}
interface Dir extends S3 {
S3File file(String name); // get child by name
Stream<S3File> files(); // all objects recursively
Stream<S3File> list(); // immediate children (files + dirs)
Upload upload(File file); // upload file
Upload upload(File file, TransferListener listener); // upload with progress
}
interface File extends S3 {
InputStream getValueAsStream();
String getValueAsString();
void setValueAsStream(InputStream is);
void setValueAsString(String value);
void setValueAsFile(java.io.File file);
String getETag();
long getSize();
Instant getLastModified();
ObjectMetadata getObjectMetadata();
}
```
## Method Dispatch Rules
JAWS determines S3 behavior from the method's return type:
| Method Signature | Behavior |
|---|---|
| `T method()` where T is an interface | Proxy for child using method name as key segment |
| `T method(String)` where T is an interface | Proxy for named child, validated by any `@Match`/`@Suffix`/`@Filter` on T |
| `S3File method()` | S3File for child using method name as key |
| `Stream<X>` where X extends `S3.Dir` | Delimiter listing, directories only (commonPrefixes) |
| `Stream<X>` where X extends `S3.File` | Delimiter listing, files only (contents) |
| `Stream<S3File>` | Recursive flat listing of all descendant objects |
| `List<X>`, `Set<X>`, `Collection<X>`, `X[]` | Collection variants of above |
| Default methods | Invoked normally |
## Annotations
All annotations are in `org.tomitribe.jaws.s3`.
### @Name — Override Key Segment
Override the S3 key segment derived from the method name. Use when keys contain characters invalid in Java method names.
```java
public interface Version extends S3.Dir {
@Name("pom.xml")
S3File pom();
@Name("maven-metadata.xml")
S3File metadata();
}
```
Target: METHOD
### @Parent — Navigate Upward
Navigate up the key hierarchy. Default depth is 1. Throws `NoParentException` if bucket root is reached.
```java
public interface Version extends S3.Dir {
@Parent
Artifact artifact(); // one level up
@Parent(2)
Group group(); // two levels up
}
```
Target: METHOD
### @Recursive — Recursive Listing
Mark a listing method as recursive (all descendants, not just immediate children).
```java
public interface Repository extends S3.Dir {
// All descendant objects (single flat ListObjects request)
@Recursive
Stream<S3File> allFiles();
// All descendant directories (tree walk, one request per prefix)
@Recursive
Stream<Group> allGroups();
}
```
- `Stream<S3File>` with `@Recursive`: single flat listing (efficient)
- `Stream<S3.Dir>` with `@Recursive`: tree walk (one request per prefix level)
Target: METHOD
### @Prefix — Server-Side Prefix Filter
Applied server-side in the `ListObjects` request. Reduces data transferred from AWS. Also validates single-arg method inputs.
```java
public interface Logs extends S3.Dir {
@Prefix("error-")
Stream<S3File> errorLogs();
@Prefix("2024-")
Stream<S3File> logs2024();
}
```
Target: METHOD
### @Suffix — Client-Side Suffix Filter
Client-side filtering by file suffix. Multiple values are OR'd. Repeatable. Use `exclude=true` to invert.
```java
public interface Assets extends S3.Dir {
@Suffix(".jar")
Stream<S3File> jars();
@Suffix({".jpg", ".png", ".gif"})
Stream<S3File> images();
// Include .jar but exclude -sources.jar and -javadoc.jar
@Suffix(".jar")
@Suffix(value = {"-sources.jar", "-javadoc.jar"}, exclude = true)
Stream<S3File> binaryJars();
}
```
Target: METHOD, TYPE
### @Match — Client-Side Regex Filter
Client-side regex filtering. Uses full match (not find). Repeatable. Use `exclude=true` to invert.
```java
public interface Reports extends S3.Dir {
@Match("daily-\\d{4}-\\d{2}-\\d{2}\\.csv")
Stream<S3File> dailyReports();
@Match(value = ".*\\.tmp", exclude = true)
Stream<S3File> permanentFiles();
}
```
Target: METHOD, TYPE
### @Filter — Custom Predicate Filter
Arbitrary client-side filtering via a `Predicate<S3File>`. The predicate class must have a no-arg constructor. Repeatable; multiple filters are AND'd.
```java
public interface Artifacts extends S3.Dir {
@Filter(IsSnapshot.class)
Stream<S3File> snapshots();
}
public class IsSnapshot implements Predicate<S3File> {
@Override
public boolean test(final S3File file) {
return file.getName().contains("SNAPSHOT");
}
}
```
Target: METHOD, TYPE
### @Delimiter — Override ListObjects Delimiter
Override the default `/` delimiter. Useful for alternative key hierarchies.
```java
public interface DateIndex extends S3.Dir {
@Delimiter("-")
Stream<S3File> segments();
}
```
Target: METHOD
### @Marker — Set Listing Start Position
Set the ListObjects starting position. Keys before the marker are skipped. Rarely needed as JAWS handles pagination automatically.
Target: METHOD
### Filter Evaluation Order
Filters apply in this order (cheapest first):
1. **@Prefix** — server-side (never fetches non-matching keys)
2. **@Suffix includes** — client-side string comparison
3. **@Suffix excludes**
4. **@Match includes** — client-side compiled regex
5. **@Match excludes**
6. **@Filter** — arbitrary predicate (runs last)
### Input Validation
Filter annotations on a return type or method also validate single-argument method inputs:
```java
public interface Dir extends S3.Dir {
// @Suffix on JsonFile's type validates input
JsonFile file(String name); // throws IllegalArgumentException if name doesn't end with .json
}
@Suffix(".json")
public interface JsonFile extends S3.File {}
```
## S3Client API
Entry point for all S3 interaction. Wraps `S3AsyncClient`.
```java
// Create
S3Client s3 = new S3Client(S3AsyncClient.builder().build());
// Bucket operations
S3Bucket createBucket(String name) // create new bucket
S3Bucket getBucket(String name) // get existing (throws NoSuchBucketException)
Stream<S3Bucket> buckets() // list all accessible buckets
```
## S3Bucket API
Represents a single S3 bucket.
```java
// Typed proxy creation
<T> T as(Class<T> type) // create typed proxy at bucket root
// Navigation
S3File root() // S3File for bucket root
S3File getFile(String key) // S3File for specific key (fetches metadata)
// Content operations (fluent)
S3Bucket put(String key, String content) // upload string content
S3Bucket put(String key, File file) // upload file
S3Bucket put(String key, InputStream is, long length) // upload stream
// Listing
Stream<S3File> objects(Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.