Skip to content

Comments

fix: support structure of anthropic/skills repository#7

Merged
trieloff merged 2 commits intotrieloff:mainfrom
catalan-adobe:fix-anth-skills
Oct 31, 2025
Merged

fix: support structure of anthropic/skills repository#7
trieloff merged 2 commits intotrieloff:mainfrom
catalan-adobe:fix-anth-skills

Conversation

@catalan-adobe
Copy link
Collaborator

@catalan-adobe catalan-adobe commented Oct 31, 2025

Fixes #6.

The Problem

The script uses set -Eeo pipefail for strict error handling. When it encountered lines like:
((count++))

With set -e, this caused the script to exit immediately when count was 0, because ((count++)) post-increments and returns the OLD value (0), which bash interprets as a failure exit code.

The Fix

I replaced all 4 instances of ((var++)) with var=$((var + 1)):

upskill:129 - In the process_skills_directory function (inside generate_discover_skills)
upskill:247 - In the list_skills functionupskill:417 - In the main function (install all skills)
upskill:426 - In the main function (install selected skills)

catalan-adobe and others added 2 commits October 31, 2025 15:54
The agent-skills branch was merged into main and deleted, so the tests
now use the main branch without the -b flag.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: Lars Trieloff <lars@trieloff.net>
@trieloff trieloff merged commit 6cac324 into trieloff:main Oct 31, 2025
1 check passed
@trieloff
Copy link
Owner

thank you David, I've invited you as a contributor, so you can run gh actions in further prs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upskill not working on anthropic/skills

3 participants