@@ -2549,6 +2549,11 @@ def process_skill(
25492549
25502550 # Destination preserves relative path structure (e.g., scripts/fill_form.py)
25512551 destination = skill_dir / file_path
2552+
2553+ # Check if destination already exists (consistent with handle_resource)
2554+ if destination .exists ():
2555+ info (f' File already exists: { file_path } (overwriting)' )
2556+
25522557 destination .parent .mkdir (parents = True , exist_ok = True )
25532558
25542559 # Build source path
@@ -3083,6 +3088,7 @@ def create_additional_settings(
30833088 permissions : dict [str , Any ] | None = None ,
30843089 env : dict [str , str ] | None = None ,
30853090 include_co_authored_by : bool | None = None ,
3091+ always_thinking_enabled : bool | None = None ,
30863092) -> bool :
30873093 """Create {command_name}-additional-settings.json with environment-specific settings.
30883094
@@ -3097,6 +3103,7 @@ def create_additional_settings(
30973103 permissions: Optional permissions configuration dict
30983104 env: Optional environment variables dict
30993105 include_co_authored_by: Optional flag to include co-authored-by in commits
3106+ always_thinking_enabled: Optional flag to enable always-on thinking mode
31003107
31013108 Returns:
31023109 bool: True if successful, False otherwise.
@@ -3135,6 +3142,11 @@ def create_additional_settings(
31353142 settings ['includeCoAuthoredBy' ] = include_co_authored_by
31363143 info (f'Setting includeCoAuthoredBy: { include_co_authored_by } ' )
31373144
3145+ # Add alwaysThinkingEnabled if explicitly set (None means not configured, leave as default)
3146+ if always_thinking_enabled is not None :
3147+ settings ['alwaysThinkingEnabled' ] = always_thinking_enabled
3148+ info (f'Setting alwaysThinkingEnabled: { always_thinking_enabled } ' )
3149+
31383150 # Handle hooks if present
31393151 hook_events : list [dict [str , Any ]] = []
31403152
@@ -3231,7 +3243,7 @@ def create_additional_settings(
32313243 try :
32323244 with open (additional_settings_path , 'w' ) as f :
32333245 json .dump (settings , f , indent = 2 )
3234- success (f'Created { command_name } -additional-settings.json with environment hooks ' )
3246+ success (f'Created { command_name } -additional-settings.json' )
32353247 return True
32363248 except Exception as e :
32373249 error (f'Failed to save { command_name } -additional-settings.json: { e } ' )
@@ -3942,6 +3954,9 @@ def main() -> None:
39423954 # Extract include_co_authored_by configuration
39433955 include_co_authored_by = config .get ('include-co-authored-by' )
39443956
3957+ # Extract always_thinking_enabled configuration
3958+ always_thinking_enabled = config .get ('always-thinking-enabled' )
3959+
39453960 # Extract claude-code-version configuration
39463961 claude_code_version = config .get ('claude-code-version' )
39473962 claude_code_version_normalized = None # Default to latest
@@ -4113,6 +4128,7 @@ def main() -> None:
41134128 permissions ,
41144129 env_variables ,
41154130 include_co_authored_by ,
4131+ always_thinking_enabled ,
41164132 )
41174133
41184134 # Step 13: Create launcher script
0 commit comments