Skip to content

Commit ed6549f

Browse files
BenBtgCopilot
andcommitted
fix(integrations): use get_invocation_prefix in post_process_skill_content
Replaces the binary is_dollar_skills_agent ternary with get_invocation_prefix so that Kimi's hook-command note is injected as /skill:speckit-git-commit from the start. This keeps _inject_hook_command_note idempotent for Kimi: the previous note with its native prefix now matches on repeated passes, preventing duplicate note injection. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 65ef91d9-4c31-4f31-a009-ed2093fe7f28 Assisted-by: GitHub Copilot (model: claude-sonnet-4.6, autonomous)
1 parent b19a8a8 commit ed6549f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/specify_cli/integrations

src/specify_cli/integrations/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import yaml
2929

30-
from .._invocation_style import is_dollar_skills_agent
30+
from .._invocation_style import get_invocation_prefix, is_dollar_skills_agent
3131
from .._toml_string import escape_toml_basic as _escape_toml_basic
3232
from .._toml_string import has_illegal_toml_control as _has_illegal_toml_control
3333

@@ -1602,7 +1602,7 @@ def post_process_skill_content(self, content: str) -> str:
16021602
``$speckit-git-commit``). Subclasses may override -- see
16031603
``ClaudeIntegration``.
16041604
"""
1605-
invocation_prefix = "$" if is_dollar_skills_agent(self.key, True) else "/"
1605+
invocation_prefix = get_invocation_prefix(self.key, True)
16061606
return self._inject_hook_command_note(content, invocation_prefix)
16071607

16081608
def setup(

0 commit comments

Comments
 (0)