smoke: hard-gate that skills are usable as slash commands#3
Merged
Conversation
The harness asserted skill *files* were present but only softly checked that they registered as Claude slash commands, and only when host creds were mounted — so a skill could install yet be invisible in Claude (the "I don't see the commands" failure) and the test would still pass. Capture the `claude -p` system/init event unconditionally (it lists loaded plugins[], plugin_errors, and skills as slash_commands, and is emitted before authentication) and make "skill usable as /command" a hard, always-on assertion. No credentials needed, so CI enforces it too. Co-Authored-By: Claude Opus 4.8 <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.
Why
The smoke test asserted skill files were present, but the user-visible outcome — a skill showing up as a usable
/commandin Claude — was only a soft check, and only ran when host credentials were mounted. So a skill could install on disk yet never register as a command (the "I installed it but I do not see the commands" failure) and the test would still pass.What
claude -psystem/initevent unconditionally. It lists loadedplugins[],plugin_errors, and every skill as aslash_commandsentry (<plugin>:<skill>), and Claude emits it before authentication — so it works with no credentials.plugin loadedand emptyplugin_errors). A skill present on disk but absent from the command list now FAILs.Verified locally in the exact CI config (local source, no creds): every skill passes both
skill file presentandskill usable as /command.🤖 Generated with Claude Code