@@ -77,6 +77,10 @@ class _BobSkillsHelper(SkillsIntegration):
7777 "extension" : "/SKILL.md" ,
7878 }
7979
80+ def post_process_skill_content (self , content : str ) -> str :
81+ """Bob skills are intent-activated; no slash-command note is needed."""
82+ return content
83+
8084
8185class BobIntegration (IntegrationBase ):
8286 """Integration for IBM Bob IDE.
@@ -121,17 +125,16 @@ def effective_invoke_separator(
121125 "extension" : "/SKILL.md" ,
122126 }
123127
124- @property
125- def _skills_mode (self ) -> bool :
128+ def _skills_mode (self , parsed_options : dict [str , Any ] | None = None ) -> bool :
126129 """True when the instance is configured in skills (default) mode.
127130
128- Derived from the current ``registrar_config`` so that the value
129- reflects whichever mode ``setup()`` last activated, without relying
130- on mutable instance state that is unavailable in a fresh process
131- (e.g. ``specify integration use bob`` or ``_set_default_integration``).
131+ Derived from *parsed_options* so that the value is correct both
132+ during ``setup()`` and in fresh-process contexts where ``setup()``
133+ has not been called (e.g. ``specify integration use bob``).
132134 """
133- rc = self .registrar_config or {}
134- return rc .get ("extension" ) == "/SKILL.md"
135+ if parsed_options is None :
136+ parsed_options = {}
137+ return not parsed_options .get ("legacy_commands" , False )
135138
136139 @classmethod
137140 def options (cls ) -> list [IntegrationOption ]:
@@ -163,13 +166,9 @@ def setup(
163166 """
164167 parsed_options = parsed_options or {}
165168 if parsed_options .get ("legacy_commands" ):
166- self .registrar_config = dict (_BobMarkdownHelper .registrar_config )
167169 _warn_legacy_commands_deprecated ()
168170 return self ._setup_legacy (project_root , manifest , parsed_options , ** opts )
169- self .registrar_config = dict (_BobSkillsHelper .registrar_config )
170- return SkillsIntegration .setup (
171- _BobSkillsHelper (), project_root , manifest , parsed_options , ** opts
172- )
171+ return _BobSkillsHelper ().setup (project_root , manifest , parsed_options , ** opts )
173172
174173 def _setup_legacy (
175174 self ,
0 commit comments