feat(plugins): add trigger-oriented skill activation system#5
Merged
Conversation
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
USE THIS SKILL WHEN...) per Anthropic's skill-creator guidance, solving Claude's tendency to under-trigger skillsgit-pilot-workflowmodel-invocable skill (160 lines, 7 sections) as the behavioral contract entry point that activates on any coding task — even when users don't mention gitopaq/CLAUDE.mdwith 5 persistent behavioral rules for credential management, plussession-start.sh(availability check + directive message) andpost-bash-auth-check.sh(401/403 detection + credential suggestion)You MUST,STOP and use AskUserQuestion NOW,Before continuing)user-invocable: trueto all 7 git-pilot sub-skills and cross-reference header toCLAUDE.mdestablishing skill precedenceopaq/hooks/hooks.jsonto use script-based SessionStart and add PostToolUse Bash hook for auth-failure detectionTest plan
shellcheck plugins/opaq/scripts/*.shpasses with no errorsshellcheck plugins/git-pilot/scripts/*.shpasses with no errors (warnings acceptable for existing code).github/scripts/validate-plugins.shpassesUSE THIS SKILL WHEN(no capability verbs)user-invocable: trueand nodisable-model-invocationgit-pilot-workflowskill body is 150-250 lines with 7 sectionsopaq/CLAUDE.mdhas 5 rules and skill referenceopaq/hooks/hooks.jsonreferencessession-start.shand includes PostToolUse Bash hook