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
Align all skills to best practices: ⚠️ stopping points, Output sections, updated templates
- Update CONTRIBUTING.md with skill best practices section covering
required sections, stopping point format, Phase 0 consent pattern,
line budget, and automation pipeline steps
- Rewrite both TEMPLATE/SKILL.md files with best-practices structure
- Add ⚠️ MANDATORY STOPPING POINT markers to all 17 action skills
(replacing informal **STOP** and > **STOP.** variants)
- Add ## Output section to 8 skills that were missing it
- Add ## Stopping Points section to docker-dev-setup, drizzle-orm-setup
- Sync all agent rules (cursor, claude, windsurf, gemini)
Copy file name to clipboardExpand all lines: .claude/rules/cortex-ai-pipeline.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Present the following briefing to the user:
70
70
>
71
71
> Ready to proceed?
72
72
73
-
**STOP** — Wait for user approval before continuing.
73
+
**⚠️ MANDATORY STOPPING POINT**: Wait for user approval before continuing.
74
74
75
75
---
76
76
@@ -87,7 +87,7 @@ Where should I set up the AI pipeline?
87
87
- Use demo data or your own table?
88
88
```
89
89
90
-
**STOP** — Wait for response.
90
+
**⚠️ MANDATORY STOPPING POINT**: Wait for response.
91
91
92
92
If user has their own table, ask which text column(s) to enrich and skip the demo data setup in Step 2.
93
93
@@ -244,6 +244,12 @@ LIMIT 10;
244
244
245
245
The newer `AI_*` functions (AI_CLASSIFY, AI_SENTIMENT, etc.) are the recommended namespace. The legacy `SNOWFLAKE.CORTEX.*` functions (COMPLETE, SENTIMENT, SUMMARIZE, TRANSLATE, EXTRACT_ANSWER) still work but the `AI_*` versions have more features including image and multi-label support.
246
246
247
+
## Output
248
+
249
+
- An `ENRICHED_TICKETS` table (or enriched version of the user's table) with AI-generated columns: category, sentiment score, summary, and extracted fields
250
+
- Cross-row aggregated insights via AI_AGG summarizing themes and recurring patterns
251
+
- Optional custom AI_COMPLETE analysis and translations for multilingual data
252
+
247
253
## Access Control
248
254
249
255
All Cortex AI Functions require the `SNOWFLAKE.CORTEX_USER` database role. Grant it with:
Copy file name to clipboardExpand all lines: .claude/rules/cortex-search-rag.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Present the following briefing to the user:
74
74
>
75
75
> Ready to proceed?
76
76
77
-
**STOP** — Wait for user approval before continuing.
77
+
**⚠️ MANDATORY STOPPING POINT**: Wait for user approval before continuing.
78
78
79
79
---
80
80
@@ -92,7 +92,7 @@ Where should I set up the RAG pipeline?
92
92
- If your own table: which column contains the searchable text?
93
93
```
94
94
95
-
**STOP** — Wait for response.
95
+
**⚠️ MANDATORY STOPPING POINT**: Wait for response.
96
96
97
97
If user has their own table, adapt the search service to use their text column. They must have change tracking enabled on the table (`ALTER TABLE ... SET CHANGE_TRACKING = TRUE`).
98
98
@@ -159,7 +159,7 @@ SELECT PARSE_JSON(
159
159
)['results'] AS search_results;
160
160
```
161
161
162
-
**STOP** — Show search results to user. Ask: "Search looks good? Ready to build the RAG pipeline?"
162
+
**⚠️ MANDATORY STOPPING POINT**: Show search results to user. Ask: "Search looks good? Ready to build the RAG pipeline?"
163
163
164
164
---
165
165
@@ -228,7 +228,7 @@ Test with several questions to check quality:
228
228
-- 3. "What shipping options are available?"
229
229
```
230
230
231
-
**STOP** — Show results. Ask if the user wants to:
231
+
**⚠️ MANDATORY STOPPING POINT**: Show results. Ask if the user wants to:
232
232
1. Adjust the number of retrieved documents (limit)
233
233
2. Add attribute filtering (e.g., only search specific categories)
234
234
3. Try a different LLM model
@@ -314,3 +314,9 @@ SHOW CORTEX SEARCH SERVICES IN SCHEMA {{DATABASE}}.{{SCHEMA}};
314
314
-- Manually refresh (usually not needed — auto-refresh handles it)
315
315
ALTER CORTEX SEARCH SERVICE {{DATABASE}}.{{SCHEMA}}.KB_SEARCH_SERVICE RESUME;
316
316
```
317
+
318
+
## Output
319
+
320
+
- A Cortex Search Service with hybrid keyword + vector search over the user's data
321
+
- A tested RAG query template that retrieves relevant documents and generates grounded answers via AI_COMPLETE
322
+
- Working SQL patterns for filtered search, attribute-based narrowing, and Python API integration
Copy file name to clipboardExpand all lines: .claude/rules/iceberg-tables.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Present the following briefing to the user:
74
74
75
75
Ask the user: **"Shall I proceed with Step 1 (Choose Catalog Type)?"**
76
76
77
-
Do NOT proceed until the user confirms.
77
+
**⚠️ MANDATORY STOPPING POINT**: Do NOT proceed until the user confirms.
78
78
79
79
---
80
80
@@ -92,7 +92,7 @@ Ask the user which approach to use:
92
92
93
93
Default recommendation: **Snowflake-managed** unless the user has a specific external catalog requirement.
94
94
95
-
Confirm the user's choice before proceeding.
95
+
**⚠️ MANDATORY STOPPING POINT**: Confirm the user's choice before proceeding.
96
96
97
97
---
98
98
@@ -114,7 +114,7 @@ The user must update their IAM role trust policy with the values from:
114
114
-`STORAGE_AWS_IAM_USER_ARN`
115
115
-`STORAGE_AWS_EXTERNAL_ID`
116
116
117
-
Do NOT proceed until the user confirms the trust policy is updated.
117
+
**⚠️ MANDATORY STOPPING POINT**: Do NOT proceed until the user confirms the trust policy is updated.
118
118
119
119
**Alternative for demo/testing:** If the user just wants to try Iceberg tables and already has an external volume set at the account or database level, skip this step.
120
120
@@ -163,7 +163,7 @@ Verify:
163
163
SHOW ICEBERG TABLES IN SCHEMA {{DATABASE}}.{{SCHEMA}};
164
164
```
165
165
166
-
Confirm with the user that the table was created.
166
+
**⚠️ MANDATORY STOPPING POINT**: Confirm with the user that the table was created.
0 commit comments