Commit activity
Last 12 weeks · 21 commits
Community health
5 of 6 standards met
Recent PRs & issues
[!IMPORTANT] Please take a moment to read this. Thank you! I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not merge this PR until I have added it. You may also leave this PR unaddressed (because this means I have not fulfilled my responsibilities as the author). If my explanation is unclear or difficult to follow, please ask me to clarify or provide reproduction steps or supporting evidence. I welcome suggestions and counterarguments, especially questions about anything I may have overlooked. (Your feedback helps me learn and improve. 🙏) I hold myself to this standard for every PR, regardless of its size. After a project stops requesting a managed remote skill, running with keeps its files but drops its ownership entry from . A later default sync then leaves the skill installed because it can no longer distinguish it from a manual installation. Disabling cleanup should defer removal without losing the information needed to resume it. Retain the ownership entries of stale remote skills when cleanup is disabled. Subsequent default syncs can remove them, and newly installed records still take precedence over retained entries for the same name. Verification: Added 7 regression scenarios using the real skills-npm and skills CLIs, with Git redirecting a test URL to a temporary local repository. A local npm skill keeps these scenarios independent of the empty-scan cleanup path. Before the fix, 2 scenarios failed because deferred remote skills remained installed; all 7 pass afterward. Coverage includes resumed cleanup, dry runs, offline mode, manual skills, changed requesters, and new refs. : 136 tests passed. , , and passed, including publint.
[!IMPORTANT] Please take a moment to read this. Thank you! I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not merge this PR until I have added it. You may also leave this PR unaddressed (because this means I have not fulfilled my responsibilities as the author). If my explanation is unclear or difficult to follow, please ask me to clarify or provide reproduction steps or supporting evidence. I welcome suggestions and counterarguments, especially questions about anything I may have overlooked. (Your feedback helps me learn and improve. 🙏) I hold myself to this standard for every PR, regardless of its size. Uninstalling the last dependency that provides skills, or excluding all discovered skills, leaves the old agent links and lock entries behind on the next sync. The CLI exits successfully on an empty scan before reaching cleanup. Excluded skills remain readable, and uninstalling the dependency leaves links pointing to missing files, even with the default cleanup enabled. Run the existing managed-link cleanup before that exit and clear stale local lock entries. This also handles managed links when the lock is missing. Installation and cleanup now share the default agent selection. This includes the fallback to all agents when runs in an interactive terminal and no agents are detected. Empty projects keep their no-op behavior, while , dry runs, and protection for user-owned directories and foreign links remain covered. Verification: Added 9 CLI regression cases covering removal, exclusion, missing locks, stale records, cleanup flags, user content, and the interactive fallback. Local validation on : passed all 138 tests. , , and passed on the same commit, including publint. Compared the base and this fix with two local skill packages using , , and sync. Both revisions clean the first package's links while another skill remains. Only the fix cleans the last package's links and lock entries.
I want to explain which packages introduce a named skill and why the tool selects or skips it. Currently, shows the package that provides a skill and the planned actions. In the example below, it does not show that both A and B request the same skill. A skills pack is an npm package that requests skills. For example, skills packs A and B both request . shows which npm package provides , but it does not show both requests. If users remove A, remains because B still requests it. Users need to read the relevant files to understand why. I suggest adding a command such as . The command can show which package provides the skill. It can list every matching request from the packages that the tool scans. It can also explain why the tool selects or skips the skill. Some skills come from packages listed directly in the project's dependencies. If the scan finds a skill through this source, the command can explain that too. The output needs to distinguish between a request for a skill and the final selection. For example, A and B can both request , but users can exclude it with . The explanation can show both requests and explain why the tool skips . Would love to hear your suggestions!
Recent fixes
Clear and concise description of the problem Summary In a pnpm monorepo, only seems to discover skills from dependencies declared in the workspace root . If a package that ships skills is installed in a workspace package's , running from either the root script or the workspace package's script does not discover/install the skills. Moving the same dependency to the root makes discovery work. Reproduction Given a pnpm workspace like this: : Root : Workspace package : ships a skill under: Then run: or manually: I also tried adding a script inside and running install from there, but the skill was still not discovered. Actual behavior No skill from is discovered or symlinked when the dependency is declared only in the workspace package. If I move to the root , discovers and installs the skill successfully. Expected behavior should be able to discover skills from dependencies declared in workspace package manifests, not only from the root package manifest. Suggested solution NOP Alternative _No response_ Additional context _No response_ Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Repository: antfu/skills-npm. Description: Install agent skills from npm Stars: 582, Forks: 19. Primary language: TypeScript. Languages: TypeScript (99.9%), JavaScript (0.1%). License: MIT. Latest release: v4.1.0 (1mo ago). Open PRs: 2, open issues: 10. Last activity: 1mo ago. Community health: 85%. Top contributors: antfu, antfubot, jinghaihan, privatenumber, EnderRomantice, PinkChampagne17.