You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/cortex-code/skills/cortex-setup/SKILL.md
+20-23Lines changed: 20 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,21 +8,10 @@ license: Proprietary. See LICENSE-SKILLS.md for complete terms
8
8
9
9
Install Snowflake CLI (`snow`) and Cortex Code CLI (`cortex`) using the appropriate installer for the current OS.
10
10
11
-
## When to use
12
-
13
-
- Cortex Code CLI is not found on PATH
14
-
- User asks to set up or install Cortex Code
15
-
- Routing failed because `cortex` binary is missing
11
+
## Prerequisite — ALWAYS run this FIRST, unconditionally
16
12
17
-
## Steps
13
+
Before doing ANYTHING else in this skill, you MUST run this check. This is not optional. Do not skip it even if the CLIs are already installed.
18
14
19
-
**MANDATORY: Step 1 MUST be completed before ANY other steps. Do not skip.**
20
-
21
-
### 1. Check for Snowflake MCP Server conflict (REQUIRED FIRST)
22
-
23
-
The Snowflake MCP Server and this plugin both handle Snowflake operations. If both are active, they will conflict. Check if the MCP server is configured:
if 'snowflake' in name.lower() or 'snowflake' in cmd.lower():
35
-
print(f'FOUND: {name}')
24
+
print(f'CONFLICT: {name}')
36
25
sys.exit(1)
37
26
except: pass
38
27
print('OK: No Snowflake MCP server found')
39
28
"
40
29
```
41
30
42
-
**If a Snowflake MCP server is found**, tell the user:
31
+
**If exit code is 1 (conflict found)**, STOP IMMEDIATELY and tell the user:
43
32
44
33
> ⚠️ **Snowflake MCP Server detected.** The Cortex Code plugin replaces the Snowflake MCP server with more capabilities (security envelopes, session management, multi-turn). Please disable the MCP server before continuing:
45
34
>
@@ -49,17 +38,25 @@ print('OK: No Snowflake MCP server found')
49
38
>
50
39
> Then re-run this setup.
51
40
52
-
**Do NOT proceed with installation until the MCP server is removed.**
41
+
**Do NOT proceed. Do NOT check CLI versions. Do NOT install anything. STOP HERE.**
53
42
54
-
### 2. Detect operating system
43
+
---
44
+
45
+
## When to use
46
+
47
+
- Cortex Code CLI is not found on PATH
48
+
- User asks to set up or install Cortex Code
49
+
- Routing failed because `cortex` binary is missing
50
+
51
+
## Steps
52
+
53
+
### 1. Detect OS and check current state
55
54
56
55
```python
57
56
import platform
58
57
print(platform.system()) # "Windows", "Darwin", or "Linux"
59
58
```
60
59
61
-
### 3. Check current state
62
-
63
60
**Windows (Command Prompt or PowerShell):**
64
61
```cmd
65
62
where cortex 2>nul && cortex --version || echo "cortex not installed"
@@ -72,7 +69,7 @@ which cortex 2>/dev/null && cortex --version || echo "cortex not installed"
72
69
which snow 2>/dev/null && snow --version ||echo"snow not installed"
73
70
```
74
71
75
-
### 4. Install Cortex Code CLI
72
+
### 2. Install Cortex Code CLI
76
73
77
74
The installer is bundled with the snowflake-ai-kit repo. Find and run it:
0 commit comments