fix(CreateSkill): improve trigger patterns for natural language matching #448
+12
−6
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.
PR: Fix CreateSkill Trigger Patterns for Natural Language Matching
Summary
The CreateSkill skill fails to trigger on common natural language patterns like "create a new copywriting skill" because the existing keyword-based triggers don't match how users actually phrase requests.
Problem
Current triggers:
create skill, new skill, skill structure, canonicalizeUser request: "Let's create a new copywriting skill"
What happens: The phrase "copywriting skill" is parsed as the focal noun, so Claude interprets this as a request to help with copywriting rather than invoking the CreateSkill workflow.
Root cause: The triggers are bare keywords that don't account for natural language grammatical patterns where the skill domain (e.g., "copywriting") appears between "create" and "skill".
Solution
Updated triggers to match grammatical patterns users actually use:
create skillcreate a skillnew skillcreate a new skillnew skill forbuild a skillmake a skillskill for managingskill for handlingskill structureskill structurecanonicalizecanonicalize skillvalidate skillChanges
Packs/pai-createskill-skill/src/skills/CreateSkill/SKILL.md- Pack sourceReleases/v2.3/.claude/skills/CreateSkill/SKILL.md- Current releaseTesting
Before fix:
After fix:
Additional test cases that now work:
Risk Assessment
Future Considerations
This is a minimum viable fix to address the immediate triggering failure. The triggers may benefit from further refinement to be more intent-based per Anthropic's guidance on skill descriptions.
Anthropic recommends descriptions that capture user intent rather than specific phrases. A future iteration might explore:
This PR solves the immediate problem while leaving room for a more principled approach if the community wants to explore it.
Checklist