Skip to content

feat: auto-update agent skills on npm package update#76

Merged
scottlovegrove merged 2 commits intomainfrom
scottl/auto-update-skills
Feb 17, 2026
Merged

feat: auto-update agent skills on npm package update#76
scottlovegrove merged 2 commits intomainfrom
scottl/auto-update-skills

Conversation

@scottlovegrove
Copy link
Collaborator

Summary

  • Add td skill update all command to update every installed agent skill in one go
  • Add shared updateAllInstalledSkills() function used by both the CLI command and the postinstall hook
  • Add npm postinstall hook that silently auto-updates global agent skills when the package is installed/updated

Test plan

  • npm run type-check — no type errors
  • npx biome check — lint passes on all new/modified files
  • npm test — all 873 tests pass (6 new postinstall tests + 2 new skill update all tests)
  • Manual: td skill install claude-code → edit SKILL.md → td skill update all → confirm content restored
  • Manual: node dist/postinstall.js → confirm silent execution with no errors

🤖 Generated with Claude Code

Add `td skill update all` to update every installed agent skill in one
command, and wire it into an npm postinstall hook so skills stay current
automatically when the package is updated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@scottlovegrove scottlovegrove self-assigned this Feb 17, 2026
@doistbot doistbot requested a review from nats12 February 17, 2026 14:08
Copy link

@doist-bot doist-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR introduces a helpful postinstall hook and a skill update all command, making it much easier to keep agent skills current. The implementation is straightforward, though there's an opportunity to improve the clarity of the log output in an edge case where a skill update attempt fails.

Share FeedbackReview Logs

Addresses PR review feedback — the message was misleading when skill
updates failed but none succeeded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@scottlovegrove scottlovegrove added the 👀 Show PR PR must be reviewed before or after merging label Feb 17, 2026
@scottlovegrove scottlovegrove merged commit cb12178 into main Feb 17, 2026
3 checks passed
@scottlovegrove scottlovegrove deleted the scottl/auto-update-skills branch February 17, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👀 Show PR PR must be reviewed before or after merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments