Configures Amazon S3 media storage in Orchard Core, covering bucket setup, AWS credentials, tenant templating, local S3 emulators, resized image caching, and TUS resumable upload staging with multipart uploads.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The OrchardCore.Media.AmazonS3 module stores media in S3 buckets instead of
App_Data:
OrchardCore.Media.AmazonS3 — replaces the media store with S3. Depends on (and enables) OrchardCore.Media.Cache.OrchardCore.Media.AmazonS3.ImageCache — stores resized images in S3 instead of wwwroot/{tenant}/media-cache.Media is still served by the Orchard Core site: the Media Cache fetches objects on demand, which keeps on-the-fly resizing working. Only one storage provider is active at a time. Invalid configuration logs an error and falls back to local file storage.
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Media.AmazonS3",
"OrchardCore.Media.AmazonS3.ImageCache"
],
"disable": []
}
]
}
OrchardCore:Media:AmazonS3)| Property | Description | Default |
|---|---|---|
BucketName | Bucket name (required). Templatable. | |
Region | Region endpoint, e.g. eu-central-1. Region or ServiceURL is required. | |
ServiceURL | Custom endpoint (emulators, S3-compatible stores). Use instead of Region. | |
ForcePathStyle | Path-style addressing (http://host/bucket), required by emulators. | false |
Profile, ProfilesLocation | AWS CLI profile and custom profiles file. | |
Credentials:AccessKey, Credentials:SecretKey | Explicit keys when hosted outside AWS. | |
BasePath | Sub-path inside the bucket, e.g. /media. Templatable. | "" |
CreateBucket | Create the bucket on startup (without ACLs). | false |
RemoveBucket | Delete the bucket when the tenant is removed. | false |
Hosted in AWS (EC2, ECS, EKS), BucketName is enough; credentials come from the
IAM role:
{
"OrchardCore": {
"Media": {
"AmazonS3": {
"BucketName": "my-orchard-media",
"Region": "eu-central-1",
"BasePath": "/media"
}
}
}
}
Hosted outside AWS, prefer a profile or environment variables over keys in
appsettings.json:
{
"OrchardCore": {
"Media": {
"AmazonS3": {
"BucketName": "my-orchard-media",
"Region": "eu-central-1",
"Profile": "default",
"BasePath": "/media",
"CreateBucket": true
}
}
}
}
Environment variables: OrchardCore__Media__AmazonS3__BucketName,
OrchardCore__Media__AmazonS3__Credentials__AccessKey,
OrchardCore__Media__AmazonS3__Credentials__SecretKey.
OrchardCore:Media:AmazonS3 is a subset of AWSOptions and resolves credentials
in this order:
Credentials section.ProfilesLocation (profile and location set).CredentialsProfileStoreChain (SDK Store, then default shared file).AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.CreateBucket: true have ACLs disabled.{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/YOUR-BASE-PATH/*"
}
]
}
BucketName and BasePath accept Liquid with ShellSettings in scope.
{{ ShellSettings.Name }} is lowercased; the full name must follow S3 bucket
naming rules. Only default Liquid filters and tags are available.
{
"OrchardCore": {
"Media": {
"AmazonS3": {
"BucketName": "{{ ShellSettings.Name }}-media",
"Region": "eu-central-1",
"BasePath": "/media"
}
}
}
}
Single bucket with a folder per tenant:
{
"OrchardCore": {
"Media": {
"AmazonS3": {
"BucketName": "shared-media",
"Region": "eu-central-1",
"BasePath": "{{ ShellSettings.Name }}/Media"
}
}
}
}
Use ServiceURL (no Region), ForcePathStyle: true, and dummy credentials:
{
"OrchardCore": {
"Media": {
"AmazonS3": {
"ServiceURL": "http://localhost:9444/",
"Profile": "default",
"Credentials": {
"SecretKey": "dummy",
"AccessKey": "dummy"
},
"BasePath": "/media",
"CreateBucket": true,
"RemoveBucket": true,
"BucketName": "media",
"ForcePathStyle": true
}
}
}
}
# S3Mock (Adobe)
docker run -p 9444:9090 -t adobe/s3mock:latest
# LocalS3 (Robothy)
docker run -d -e MODE=IN_MEMORY -p 9444:80 luofuxiang/local-s3:latest
wwwroot/{tenant}/ms-cache.MediaPermissions.ManageAssetCache) offers a Purge action.OrchardCore:Media:AmazonS3:ImageCache)Stores resized images in S3 (AWSS3ResizedImageCache, options
AwsMediaImageCacheOptions). Depends on OrchardCore.Media.AmazonS3.
BucketName and BasePath can be templated like the storage section.
{
"OrchardCore": {
"Media": {
"AmazonS3": {
"ImageCache": {
"BucketName": "media-image-cache",
"BasePath": "/cache",
"CreateBucket": true,
"RemoveBucket": false
}
}
}
}
}
OrchardCore__Media__AmazonS3__ImageCache__BucketName.BucketName, BasePath, CreateBucket and RemoveBucket come from the ImageCache section; Credentials too, falling back to the Media:AmazonS3 credentials when the ImageCache section doesn't define them. The SDK settings (Region, ServiceURL, Profile, ForcePathStyle) are bound from Media:AmazonS3, so keep the cache bucket in the same region/endpoint as the media bucket. The image cache can be active without the media store, which only becomes active once its own BucketName is set.When OrchardCore.Media.Tus is also enabled, TUS partial uploads are buffered
with S3 multipart uploads (S3TusTempStore) under a _tus-uploads prefix, so
any instance can continue an upload. Without a valid S3 configuration, TUS keeps
using the local temp directory. See orchardcore-media-gallery for TUS,
SignalR and multi-instance guidance.
OrchardCore_Media_AmazonS3 to Media:AmazonS3 and OrchardCore_Media_AmazonS3_ImageSharp_Cache to Media:AmazonS3:ImageCache, including env vars (OrchardCore__OrchardCore_Media_AmazonS3__BucketName → OrchardCore__Media__AmazonS3__BucketName). The old names are deprecated but still read; the new name wins when both exist.OrchardCore.Media.AmazonS3.ImageCache in recipes. The obsolete OrchardCore.Media.AmazonS3.ImageSharpImageCache ID only enables the new feature.AwsImageSharpImageCacheOptions is now AwsMediaImageCacheOptions, and resizing uses the built-in NetVips pipeline (no ImageSharp.Web).Media:AmazonS3 no longer prevents the tenant from starting: a critical error is logged and the tenant keeps using local file storage. If files stored on S3 aren't served after upgrading, check the logs.AwsStorageOptionsExtension is now internal: its BindConfiguration and Validate methods (now TryBindConfiguration) can't be called outside the Amazon S3 module. Configure the module through the Media:AmazonS3 and Media:AmazonS3:ImageCache sections: the module's startups bind and validate them, and only replace the local storage when they are valid. The Redis (RedisOptionsExtension) and Azure SignalR option binders are internal too.What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-amazon-s3-mediafrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job