File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,14 +30,10 @@ jobs:
3030 sparse-checkout-cone-mode : false
3131
3232 - name : Validate and package
33- # The packager imports `quick_validate` as a sibling module, so we
34- # invoke the script with its full path. First arg = skill folder,
35- # second = output directory. Folder name must match the skill's
36- # `name` frontmatter field, so the artefact is named correctly.
33+ env :
34+ PYTHONPATH : _anthropic_skills/skills/skill-creator
3735 run : |
38- python "_anthropic_skills/skills/skill-creator/scripts/package_skill.py" \
39- "$GITHUB_WORKSPACE/spruce-sql-advisor" \
40- "$GITHUB_WORKSPACE"
36+ python -m scripts.package_skill ./spruce-sql-advisor .
4137
4238 - name : Upload artefact
4339 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -15,3 +15,5 @@ Thumbs.db
1515.idea /
1616.vscode /
1717* .swp
18+
19+ _anthropic_skills /
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ git clone --depth 1 --filter=blob:none --sparse \
5353 https://github.com/anthropics/skills _anthropic_skills
5454git -C _anthropic_skills sparse-checkout set skills/skill-creator/scripts
5555
56- python _anthropic_skills/skills/skill-creator/scripts/package_skill.py \
57- ./spruce-sql-advisor .
56+ PYTHONPATH= _anthropic_skills/skills/skill-creator \
57+ python3 -m scripts.package_skill ./spruce-sql-advisor .
5858```
5959
6060## Licence
You can’t perform that action at this time.
0 commit comments