Localize Skill Triggers
Adds trigger phrasings in the user's language to this plugin's skills so they auto-trigger on those phrasings. Skill bodies and descriptions stay in English; only the when_to_use frontmatter field changes.
Scope — which skills this affects
Only skills WITHOUT disable-model-invocation: true benefit: for those, description + when_to_use sit in the model's context and drive auto-triggering. For user-invoked commands (disable-model-invocation: true) the description is never in context, so localization has no effect on triggering — skip them and tell the user why.
On Invocation
If $ARGUMENTS is provided, treat it as the target language. Otherwise ask the user which language to localize into.
Workflow
- List this plugin's skills: read every SKILL.md under
${CLAUDE_SKILL_DIR}/../(the parent of this skill's directory is the plugin'sskills/directory). Skip this skill itself - Partition them: skills with
disable-model-invocation: trueare out of scope — list them as skipped in the final report, with the reason from the Scope section - For each in-scope skill, build its
when_to_usevalue:- Keep
descriptionuntouched — it is the canonical English definition - Write natural trigger phrasings in the target language, quoted — the phrases a native speaker would actually type when asking for this (e.g. for Japanese on agent-teams: 「エージェントチームで手分けして」「サブエージェントで並列に」)
- If
when_to_usealready exists, REPLACE the entry for the target language and keep other languages' entries — never append duplicates. Re-running with the same language must produce the same result (idempotent)
- Keep
- Show the user a before/after comparison of each
when_to_useand get approval - Apply the edits
- Tell the user to run
/reload-plugins(or restart Claude Code) so the changes take effect — plugin skills are not live-reloaded
Constraints
- Edit only the
when_to_usefield. Never changename,description, other frontmatter fields, or the body - Phrasings must be realistic user requests in that language, not literal translations of the English description
- Keep
description+when_to_usecombined under 1,536 characters per skill (the skill listing truncates beyond that)
After a Plugin Update
Plugin updates overwrite these local edits (the plugin install directory is ephemeral by design). Re-run /core-nexus:localize-triggers [language] after updating the plugin to restore the localization.