Support .skill file extension for packaged skills #18
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.
✅ COMPLETED: Support both .zip and .skill file extensions
_scan_directorymethod in_server.pyto check for both.zipand.skillextensions (line 314).skillextension filesSummary
Successfully implemented support for
.skillfile extension alongside the existing.zipextension. Both extensions are now recognized and handled identically as zip archives containing skills.Changes Made
Modified
src/skillz/_server.py(1 line changed):entry.suffix.lower() == ".zip"toentry.suffix.lower() in (".zip", ".skill")Added tests in
tests/test_zip_skills.py(3 new tests, 64 lines):test_skill_extension_loads_like_zip- Verifies.skillfiles are loaded as zip archivestest_skill_extension_resources_readable- Verifies resources inside.skillfiles can be read correctlytest_mixed_zip_and_skill_extensions- Verifies both.zipand.skillfiles can coexistUpdated
README.md:.zipand.skillextensions.skillfile examples in directory structure examplesVerification
✅ All 34 tests pass (19 in test_zip_skills.py, 15 in other test files)
✅ Linter passes with no issues
✅ Manual verification confirms both extensions work correctly
✅ Code review: No issues found
✅ Security scan: No vulnerabilities found
✅ No breaking changes to existing functionality
✅ Documentation updated
Security Summary
No security vulnerabilities were introduced by this change. The modification only affects file extension checking and does not alter the zip file handling logic or security mechanisms.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.