feat: auto-update agent skills on npm package update#76
Merged
scottlovegrove merged 2 commits intomainfrom Feb 17, 2026
Merged
Conversation
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>
There was a problem hiding this comment.
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.
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>
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.
Summary
td skill update allcommand to update every installed agent skill in one goupdateAllInstalledSkills()function used by both the CLI command and the postinstall hookpostinstallhook that silently auto-updates global agent skills when the package is installed/updatedTest plan
npm run type-check— no type errorsnpx biome check— lint passes on all new/modified filesnpm test— all 873 tests pass (6 new postinstall tests + 2 new skill update all tests)td skill install claude-code→ edit SKILL.md →td skill update all→ confirm content restorednode dist/postinstall.js→ confirm silent execution with no errors🤖 Generated with Claude Code