crushdataai 1.2.0 ā 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/antigravity/data-analyst.md +6 -4
- package/assets/claude/SKILL.md +7 -15
- package/assets/copilot/data-analyst.prompt.md +8 -6
- package/assets/cursor/data-analyst.md +6 -4
- package/assets/kiro/data-analyst.md +8 -6
- package/assets/windsurf/data-analyst.md +8 -6
- package/dist/commands.js +4 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -25,10 +25,12 @@ Before writing any code, ask the user:
|
|
|
25
25
|
2. **Data Context**: Which tables contain the data? What time range?
|
|
26
26
|
3. **Metric Definitions**: How does YOUR company define the key metrics? Any filters?
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
- Check
|
|
30
|
-
-
|
|
31
|
-
|
|
28
|
+
### 2. Secure Data Access
|
|
29
|
+
- **Check Connections**: Run `npx crushdataai connections` first.
|
|
30
|
+
- **Missing Data?**: If the data source is not listed (e.g. on Desktop/Database), **INSTRUCT** the user to run:
|
|
31
|
+
`npx crushdataai connect`
|
|
32
|
+
- **Get Code**: Use `npx crushdataai snippet <name>` to access data.
|
|
33
|
+
- **Security**: **DO NOT** ask for credentials or manual file moves.
|
|
32
34
|
|
|
33
35
|
---
|
|
34
36
|
|
package/assets/claude/SKILL.md
CHANGED
|
@@ -30,22 +30,14 @@ When user requests data analysis work (analyze, query, dashboard, metrics, EDA,
|
|
|
30
30
|
- Any filters to apply? (exclude test users, internal accounts?)
|
|
31
31
|
- What timezone should I use for dates?
|
|
32
32
|
- What timezone should I use for dates?
|
|
33
|
+
```
|
|
33
34
|
|
|
34
|
-
###
|
|
35
|
-
|
|
36
|
-
**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
npx crushdataai connections
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
2. Get the connection code snippet:
|
|
44
|
-
```bash
|
|
45
|
-
npx crushdataai snippet <connection_name> --lang python
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
3. Paste the snippet into your analysis script to load the data.
|
|
35
|
+
### 1b. Secure Data Access
|
|
36
|
+
- **Check Connections**: Run `npx crushdataai connections` first.
|
|
37
|
+
- **Missing Data?**: If the data source is not listed (e.g. on Desktop/Database), **INSTRUCT** the user to run:
|
|
38
|
+
`npx crushdataai connect`
|
|
39
|
+
- **Get Code**: Use `npx crushdataai snippet <name>` to access data.
|
|
40
|
+
- **Security**: **DO NOT** ask for credentials or manual file moves.
|
|
49
41
|
|
|
50
42
|
### Step 2: Search Relevant Domains
|
|
51
43
|
|
|
@@ -19,12 +19,14 @@ Before coding, ask:
|
|
|
19
19
|
- Which tables contain the data?
|
|
20
20
|
- How does YOUR company define key metrics?
|
|
21
21
|
|
|
22
|
-
###
|
|
23
|
-
- Check
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
### 2. Secure Data Access
|
|
23
|
+
- **Check Connections**: Run `npx crushdataai connections` first.
|
|
24
|
+
- **Missing Data?**: If the data source is not listed (e.g. on Desktop/Database), **INSTRUCT** the user to run:
|
|
25
|
+
`npx crushdataai connect`
|
|
26
|
+
- **Get Code**: Use `npx crushdataai snippet <name>` to access data.
|
|
27
|
+
- **Security**: **DO NOT** ask for credentials or manual file moves.
|
|
28
|
+
|
|
29
|
+
### 3. Search Knowledge Base
|
|
28
30
|
```bash
|
|
29
31
|
python3 .github/prompts/../.shared/data-analyst/scripts/search.py "<query>" --domain <domain>
|
|
30
32
|
```
|
|
@@ -16,10 +16,12 @@ Before coding, ask:
|
|
|
16
16
|
- Which tables contain the data?
|
|
17
17
|
- How does YOUR company define the key metrics?
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
### 2. Secure Data Access
|
|
20
|
+
- **Check Connections**: Run `npx crushdataai connections` first.
|
|
21
|
+
- **Missing Data?**: If the data source is not listed (e.g. on Desktop/Database), **INSTRUCT** the user to run:
|
|
22
|
+
`npx crushdataai connect`
|
|
23
|
+
- **Get Code**: Use `npx crushdataai snippet <name>` to access data.
|
|
24
|
+
- **Security**: **DO NOT** ask for credentials or manual file moves.
|
|
23
25
|
|
|
24
26
|
### 2. Search Knowledge Base
|
|
25
27
|
```bash
|
|
@@ -15,12 +15,14 @@ Before writing code, gather:
|
|
|
15
15
|
- Company-specific metric definitions
|
|
16
16
|
- Time range and filters
|
|
17
17
|
|
|
18
|
-
###
|
|
19
|
-
- Check
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
### 2. Secure Data Access
|
|
19
|
+
- **Check Connections**: Run `npx crushdataai connections` first.
|
|
20
|
+
- **Missing Data?**: If the data source is not listed (e.g. on Desktop/Database), **INSTRUCT** the user to run:
|
|
21
|
+
`npx crushdataai connect`
|
|
22
|
+
- **Get Code**: Use `npx crushdataai snippet <name>` to access data.
|
|
23
|
+
- **Security**: **DO NOT** ask for credentials or manual file moves.
|
|
24
|
+
|
|
25
|
+
### 3. Search Before Implementing
|
|
24
26
|
```bash
|
|
25
27
|
python3 .kiro/steering/../.shared/data-analyst/scripts/search.py "<query>" --domain <domain>
|
|
26
28
|
```
|
|
@@ -13,12 +13,14 @@ Ask before coding:
|
|
|
13
13
|
- Which tables/databases contain the data
|
|
14
14
|
- Company-specific metric definitions
|
|
15
15
|
|
|
16
|
-
###
|
|
17
|
-
- Check
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
### 2. Secure Data Access
|
|
17
|
+
- **Check Connections**: Run `npx crushdataai connections` first.
|
|
18
|
+
- **Missing Data?**: If the data source is not listed (e.g. on Desktop/Database), **INSTRUCT** the user to run:
|
|
19
|
+
`npx crushdataai connect`
|
|
20
|
+
- **Get Code**: Use `npx crushdataai snippet <name>` to access data.
|
|
21
|
+
- **Security**: **DO NOT** ask for credentials or manual file moves.
|
|
22
|
+
|
|
23
|
+
### 3. Search Knowledge
|
|
22
24
|
```bash
|
|
23
25
|
python3 .windsurf/workflows/../.shared/data-analyst/scripts/search.py "<query>" --domain <domain>
|
|
24
26
|
```
|
package/dist/commands.js
CHANGED
|
@@ -148,12 +148,12 @@ function init(aiType, force) {
|
|
|
148
148
|
console.log(` - Search: python3 .shared/data-analyst/scripts/search.py "<query>" --domain <domain>\n`);
|
|
149
149
|
}
|
|
150
150
|
function update() {
|
|
151
|
-
console.log('\nš
|
|
152
|
-
console.log(' Run: npm
|
|
153
|
-
console.log('
|
|
151
|
+
console.log('\nš To update CrushData AI:');
|
|
152
|
+
console.log(' 1. Run: npm install -g crushdataai@latest');
|
|
153
|
+
console.log(' 2. Run: crushdataai init --force (to update project files)\n');
|
|
154
154
|
}
|
|
155
155
|
function versions() {
|
|
156
156
|
console.log('\nš¦ CrushData AI Versions');
|
|
157
|
-
console.log(' Installed: 1.
|
|
157
|
+
console.log(' Installed: 1.2.1');
|
|
158
158
|
console.log(' Latest: Check npm: npm show crushdataai version\n');
|
|
159
159
|
}
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ const program = new commander_1.Command();
|
|
|
42
42
|
program
|
|
43
43
|
.name('crushdataai')
|
|
44
44
|
.description('CLI to install CrushData AI data analyst skill for AI coding assistants')
|
|
45
|
-
.version('2.
|
|
45
|
+
.version('1.2.1');
|
|
46
46
|
program
|
|
47
47
|
.command('init')
|
|
48
48
|
.description('Initialize CrushData AI skill in current project')
|