@clipboard-health/ai-rules 1.7.4 → 1.7.6
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/backend/AGENTS.md +7 -5
- package/common/AGENTS.md +7 -5
- package/datamodeling/AGENTS.md +4 -4
- package/frontend/AGENTS.md +7 -5
- package/fullstack/AGENTS.md +7 -5
- package/package.json +2 -3
package/backend/AGENTS.md
CHANGED
|
@@ -557,11 +557,13 @@ Use when: error handling hard to trigger black-box, concurrency scenarios, >5 va
|
|
|
557
557
|
|
|
558
558
|
## Naming Conventions
|
|
559
559
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
|
563
|
-
|
|
|
564
|
-
|
|
|
560
|
+
- Avoid acronyms and abbreviations unless widely known
|
|
561
|
+
|
|
562
|
+
| Element | Convention | Example |
|
|
563
|
+
| ---------------------------------- | --------------------- | ---------------------------- |
|
|
564
|
+
| File-scope constants | UPPER_SNAKE_CASE | `MAX_RETRY_COUNT` |
|
|
565
|
+
| Widely known acronyms in camelCase | Lowercase after first | `httpRequest`, `gpsPosition` |
|
|
566
|
+
| Files | Singular, dotted | `user.service.ts` |
|
|
565
567
|
|
|
566
568
|
## Core Rules
|
|
567
569
|
|
package/common/AGENTS.md
CHANGED
|
@@ -148,11 +148,13 @@ Use when: error handling hard to trigger black-box, concurrency scenarios, >5 va
|
|
|
148
148
|
|
|
149
149
|
## Naming Conventions
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
151
|
+
- Avoid acronyms and abbreviations unless widely known
|
|
152
|
+
|
|
153
|
+
| Element | Convention | Example |
|
|
154
|
+
| ---------------------------------- | --------------------- | ---------------------------- |
|
|
155
|
+
| File-scope constants | UPPER_SNAKE_CASE | `MAX_RETRY_COUNT` |
|
|
156
|
+
| Widely known acronyms in camelCase | Lowercase after first | `httpRequest`, `gpsPosition` |
|
|
157
|
+
| Files | Singular, dotted | `user.service.ts` |
|
|
156
158
|
|
|
157
159
|
## Core Rules
|
|
158
160
|
|
package/datamodeling/AGENTS.md
CHANGED
|
@@ -20,11 +20,11 @@ Use the dbt-mcp server to:
|
|
|
20
20
|
- When using the Snowflake MCP to run queries, you must set the database context properly in your queries. Use fully qualified table names or set the database context to avoid connection errors.
|
|
21
21
|
- The `describe_object` tool in the Snowflake MCP has a bug where it misinterprets the target_object structure, treating the table name as a database name and causing 404 "database does not exist" errors. Use `run_snowflake_query` with "DESCRIBE TABLE" instead to get table schema information successfully.
|
|
22
22
|
|
|
23
|
-
## Guidelines when using this knowledge
|
|
23
|
+
## Guidelines when using this knowledge
|
|
24
24
|
|
|
25
25
|
- Read all of the docs.yml files to learn about the analytics schema.
|
|
26
26
|
- When in doubt, read the code in the data-modeling repo to learn how each column is calculated and where the data is coming from
|
|
27
|
-
- Strongly prefer to use mart models (defined inside the mart folder, those that don't have an int
|
|
27
|
+
- Strongly prefer to use mart models (defined inside the mart folder, those that don't have an int- or stg- prefix) before int- and stg- models
|
|
28
28
|
- Strongly prefer to query tables under the analytics schema, before querying any other schemas like airbyte_db/hevo_database
|
|
29
29
|
- If unsure, confirm with the user. Providing suggestions of tables to use
|
|
30
30
|
- If required, you might do some data analysis using python instead of pure SQL. Connect to snowflake using a python script and then use libraries like pandas, numpy, seaborn for visualization
|
|
@@ -32,8 +32,8 @@ Use the dbt-mcp server to:
|
|
|
32
32
|
## Output format
|
|
33
33
|
|
|
34
34
|
- When running queries against snowflake and providing the user with a final answer, always show the final query that produced the result along with the result itself, so that the user is able to validate the query makes sense.
|
|
35
|
-
- Once you've reached a final query that you need to show to the user, use get_metabase_playground_link to generate a playground link where the user can run the query themselves. Format it as a link with the 'metabase playground link' label as the link text, using slack's
|
|
36
|
-
- Include charts or tables formatted as
|
|
35
|
+
- Once you've reached a final query that you need to show to the user, use get_metabase_playground_link to generate a playground link where the user can run the query themselves. Format it as a link with the 'metabase playground link' label as the link text, using slack's Markdown format. This is A MUST
|
|
36
|
+
- Include charts or tables formatted as Markdown if needed
|
|
37
37
|
- If the final result is a single number, make sure to show this prominently to the user so it's very easy to see
|
|
38
38
|
|
|
39
39
|
## Identifying the right columns to use and how to filter data
|
package/frontend/AGENTS.md
CHANGED
|
@@ -148,11 +148,13 @@ Use when: error handling hard to trigger black-box, concurrency scenarios, >5 va
|
|
|
148
148
|
|
|
149
149
|
## Naming Conventions
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
151
|
+
- Avoid acronyms and abbreviations unless widely known
|
|
152
|
+
|
|
153
|
+
| Element | Convention | Example |
|
|
154
|
+
| ---------------------------------- | --------------------- | ---------------------------- |
|
|
155
|
+
| File-scope constants | UPPER_SNAKE_CASE | `MAX_RETRY_COUNT` |
|
|
156
|
+
| Widely known acronyms in camelCase | Lowercase after first | `httpRequest`, `gpsPosition` |
|
|
157
|
+
| Files | Singular, dotted | `user.service.ts` |
|
|
156
158
|
|
|
157
159
|
## Core Rules
|
|
158
160
|
|
package/fullstack/AGENTS.md
CHANGED
|
@@ -557,11 +557,13 @@ Use when: error handling hard to trigger black-box, concurrency scenarios, >5 va
|
|
|
557
557
|
|
|
558
558
|
## Naming Conventions
|
|
559
559
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
|
563
|
-
|
|
|
564
|
-
|
|
|
560
|
+
- Avoid acronyms and abbreviations unless widely known
|
|
561
|
+
|
|
562
|
+
| Element | Convention | Example |
|
|
563
|
+
| ---------------------------------- | --------------------- | ---------------------------- |
|
|
564
|
+
| File-scope constants | UPPER_SNAKE_CASE | `MAX_RETRY_COUNT` |
|
|
565
|
+
| Widely known acronyms in camelCase | Lowercase after first | `httpRequest`, `gpsPosition` |
|
|
566
|
+
| Files | Singular, dotted | `user.service.ts` |
|
|
565
567
|
|
|
566
568
|
## Core Rules
|
|
567
569
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/ai-rules",
|
|
3
3
|
"description": "Pre-built AI agent rules for consistent coding standards.",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.6",
|
|
5
5
|
"bugs": "https://github.com/ClipboardHealth/core-utils/issues",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@intellectronica/ruler": "0.3.24"
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"url": "git+https://github.com/ClipboardHealth/core-utils.git"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"format": "prettier --write '.ruler/**/*.md'"
|
|
32
|
-
"lint:md": "markdownlint-cli2 '.ruler/**/*.md' 'README.md'"
|
|
31
|
+
"format": "prettier --write '.ruler/**/*.md'"
|
|
33
32
|
}
|
|
34
33
|
}
|