feat: add Skill.from_s3 for dynamic loading skills from S3#2253
Open
jeromevdl wants to merge 1 commit intostrands-agents:mainfrom
Open
feat: add Skill.from_s3 for dynamic loading skills from S3#2253jeromevdl wants to merge 1 commit intostrands-agents:mainfrom
jeromevdl wants to merge 1 commit intostrands-agents:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Teams managing multiple agents often centralize skill definitions in S3 rather than bundling them in application code. This enables shared skill libraries, versioning via S3 prefixes, and decoupling skill authoring from agent deployment (dynamic loading).
This adds a
Skill.from_s3classmethod that discovers skill directories in an S3 bucket, mirrors them locally (with parallel downloads and per-process caching), then delegates to the existingfrom_directoryfor parsing.Public API Changes
Parameters:
bucket,prefix,s3_client,local_dir,strictRelated Issues
None
Documentation PR
Not yet available, will document if the feature is accepted.
Type of Change
New feature
Testing
15 new unit tests using moto to mock S3
Covers: single/multiple skills, resource file mirroring, caching, prefix normalization, empty buckets, strict mode, lowercase skill.md discovery
All 154 skill tests pass
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.