mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-12-02 23:37:17 +00:00
Two description rewrites left 21 skills that the model never loads on its own. Every one is already a slash command (/<plugin>:<skill>), so new commands would only duplicate them; what was missing is automatic invocation, which only a hook provides. Eight plugins now ship a UserPromptSubmit hook, hooks/skill_router.py, that matches the prompt against hand-written patterns in hooks/skill_routes.json and adds one line naming the skill on a match. Silent otherwise, one hint per plugin per prompt, once per session, skips /commands, no model or network calls, fails open, ~30 ms. SKILL_ROUTER=0 turns it off. Measured live on held-out prompts (Claude Code 2.1.322, Sonnet): the skills loaded in 24/84 runs with the hook vs 2/84 without, 0/21 near-miss loads either way. Per-skill decisions in audit/silent-skill-triggers-2026-11/. scripts/check_skill_router.py (new CI step) keeps the copies identical, the plugin names right and the routes pointing at shipped skills; it caught the si namespace on the first run. derive_counters counts the shared router once. Plugin versions bumped (engineering-advanced-skills 2.14.18, the other seven 2.14.11). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L8KYFL29bT12FJxEPDSBxi
65 lines
2.2 KiB
JSON
65 lines
2.2 KiB
JSON
{
|
|
"plugin": "marketing-skills",
|
|
"note": "Patterns for hooks/skill_router.py. High precision first: a missed prompt costs nothing, a wrong hint costs attention.",
|
|
"routes": [
|
|
{
|
|
"skill": "content-humanizer",
|
|
"why": "make AI-sounding copy sound human and on-brand",
|
|
"any": [
|
|
"\\b(sounds?|reads?|feels?)\\b.{0,15}\\b(like (ai|chatgpt|gpt|a robot|a bot)|robotic|ai[- ]generated|ai[- ]written)\\b",
|
|
"\\bhumani[sz]e\\b",
|
|
"\\b(doesn'?t|does not) sound like (me|us|our brand|a human)\\b",
|
|
"\\bai (tells|slop)\\b"
|
|
],
|
|
"pairs": [
|
|
[
|
|
[
|
|
"\\b(delve|in today'?s fast-paced world|tapestry|game[- ]changer)\\b"
|
|
],
|
|
[
|
|
"\\b(rewrite|edit|fix|voice)\\b"
|
|
]
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"skill": "copy-editing",
|
|
"why": "focused editing passes on existing marketing copy",
|
|
"any": [
|
|
"\\b(proofread\\w*|copy[- ]?edit\\w*)\\b",
|
|
"\\b(go through|edit)\\b.{0,60}\\bin passes\\b"
|
|
],
|
|
"pairs": [
|
|
[
|
|
[
|
|
"\\b(polish|tighten|clean up|edit|shorten|punch up|fix the wording)\\b"
|
|
],
|
|
[
|
|
"\\b(copy|landing page|pricing page|headline|email|ad|tagline|wording|blurb|cta|product description|homepage)\\b"
|
|
]
|
|
]
|
|
],
|
|
"not": [
|
|
"\\b(code|function|script|sql)\\b"
|
|
]
|
|
},
|
|
{
|
|
"skill": "marketing-psychology",
|
|
"why": "ethical persuasion and behavioral science for pages, offers and campaigns",
|
|
"any": [
|
|
"\\bwhy (do |don'?t )?(people|customers|users|buyers|visitors)\\b.{0,25}\\b(buy|convert|churn|sign up|purchase|hesitate|abandon|bounce)\\b",
|
|
"\\b(pricing|marketing|buyer|consumer|conversion|persuasion) psychology\\b"
|
|
],
|
|
"pairs": [
|
|
[
|
|
[
|
|
"\\b(persuasi\\w*|behavio(u)?ral (science|economics)|cognitive bias\\w*|social proof|loss aversion|anchoring|scarcity|urgency|decoy|nudg\\w*|mental models?)\\b"
|
|
],
|
|
[
|
|
"\\b(page|offer|pricing|campaign|landing|checkout|sign ?up|conversion|customers|buyers|marketing|copy|funnel)\\b"
|
|
]
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|