Skip to content

chore: add skill to scaffold snowflake connectors [CM-1083]#3993

Merged
mbani01 merged 7 commits intomainfrom
feat/add_skill_to_scaffold_snowflake_connectors
Apr 2, 2026
Merged

chore: add skill to scaffold snowflake connectors [CM-1083]#3993
mbani01 merged 7 commits intomainfrom
feat/add_skill_to_scaffold_snowflake_connectors

Conversation

@mbani01
Copy link
Copy Markdown
Contributor

@mbani01 mbani01 commented Apr 2, 2026

Summary

Add a skill to scaffold Snowflake connectors with a standardized structure.

Motivation

Creating Snowflake data sources involves repetitive steps. This automates the process and ensures consistency.

Changes

  • Introduce a reusable scaffolding skill
  • Generate boilerplate for configuration, extraction, and parsing
  • Align with existing project conventions

Note

Low Risk
Low risk: adds a documentation-style Claude skill file and tweaks .gitignore to ignore Claude runtime artifacts without affecting application code paths.

Overview
Adds a new Claude skill, scaffold-snowflake-connector, which standardizes the step-by-step workflow and file touch points for scaffolding new Snowflake connector sources (schema collection, mapping confirmation, file generation, and testing).

Updates .gitignore to stop ignoring all of .claude and instead ignore only generated/runtime subpaths (e.g., cache/, tmp/, logs/, sessions/) plus settings.local.json, allowing committed skills under .claude/skills/.

Written by Cursor Bugbot for commit f247c02. This will update automatically on new commits. Configure here.

@mbani01 mbani01 requested a review from joanagmaia April 2, 2026 11:10
@mbani01 mbani01 self-assigned this Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 11:10
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

2 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@mbani01 mbani01 changed the title chore: add skill to scaffold snowflake connectors chore: add skill to scaffold snowflake connectors [CM-1083] Apr 2, 2026
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new .claude skill that guides scaffolding Snowflake connector data sources with a standardized structure and workflow, and updates .gitignore so the skill content can be committed while keeping local/ephemeral Claude artifacts ignored.

Changes:

  • Add a new scaffold-snowflake-connector skill document describing the end-to-end scaffolding workflow and required touch points.
  • Refine .gitignore to stop ignoring the entire .claude directory and instead ignore only cache/tmp/log/session/todo artifacts and local settings.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
.gitignore Stops blanket-ignoring .claude/ so skills can be tracked; continues to ignore local/ephemeral Claude files.
.claude/skills/scaffold-snowflake-connector/SKILL.md Adds a detailed scaffold workflow/spec for generating Snowflake connector boilerplate and registrations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| Enum key | SCREAMING_SNAKE_CASE version of the name (e.g., `ENROLLED_CERTIFICATION`) |
| String value | The name the user provided (kebab-case) |
| Label | Human-readable (e.g., `Enrolled in certification`) |
| Description | One sentence describing the event (look at similar types in `backend/src/c/migrations/` for style) |
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reference to backend/src/c/migrations/ is incorrect (that path doesn’t exist in this repo). For activity type description/label style, point to the actual Flyway migrations under backend/src/database/migrations/ (e.g., V1771497876__addCventActivityTypes.sql, V1772556158__addTncActivityTypes.sql).

Suggested change
| Description | One sentence describing the event (look at similar types in `backend/src/c/migrations/` for style) |
| Description | One sentence describing the event (look at similar types in `backend/src/database/migrations/` such as `V1771497876__addCventActivityTypes.sql` and `V1772556158__addTncActivityTypes.sql` for style) |

Copilot uses AI. Check for mistakes.
Comment on lines +415 to +417
File: `backend/src/database/migrations/V{Date.now()}__add{Platform}ActivityTypes.sql`

Template (use epoch timestamp for `V` prefix — run `date +%s%3N` in terminal):
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migration naming here uses millisecond epochs (Date.now() / date +%s%3N), but existing migrations in backend/src/database/migrations use 10-digit second epochs (e.g., V1772556158__addTncActivityTypes.sql). Align the skill’s instruction/template to the repo’s convention (seconds) so generated filenames sort and match existing patterns.

Suggested change
File: `backend/src/database/migrations/V{Date.now()}__add{Platform}ActivityTypes.sql`
Template (use epoch timestamp for `V` prefix — run `date +%s%3N` in terminal):
File: `backend/src/database/migrations/V{epochSeconds}__add{Platform}ActivityTypes.sql`
Template (use 10-digit epoch seconds for the `V` prefix — e.g. run `date +%s` in terminal):

Copilot uses AI. Check for mistakes.
Comment on lines +476 to +478
**Rules (enforced — do not deviate):**
- Use explicit column names only. Never use `table.*`
- If any TIMESTAMP_TZ columns exist in the schema, exclude and re-cast them as TIMESTAMP_NTZ (see CVENT pattern)
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rule forbids table.*, but existing Snowflake connector queries in this repo use e.* (TNC) and er.* EXCLUDE (...) (Cvent) in buildSourceQuery.ts. Since the PR description says the skill should align with existing conventions, either update this rule to match the established pattern (and document when * EXCLUDE is acceptable) or adjust the “align with conventions” claim.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

.claude/logs/
.claude/sessions/
.claude/todos/
.claude/settings.local.json
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLAUDE.md removed from gitignore may cause accidental commits

Low Severity

The previous .gitignore explicitly ignored CLAUDE.md (the Claude Code project configuration file). While the refactor to selectively ignore .claude/ subdirectories is necessary to track the new skill file, the removal of CLAUDE.md from the ignore list appears unintentional since it's a root-level file unrelated to the .claude/ directory restructuring. This could lead to the file being accidentally committed.

Fix in Cursor Fix in Web

@mbani01 mbani01 force-pushed the feat/add_skill_to_scaffold_snowflake_connectors branch from ef3fa5b to f29b55e Compare April 2, 2026 11:45
mbani01 and others added 5 commits April 2, 2026 12:53
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
@mbani01 mbani01 force-pushed the feat/add_skill_to_scaffold_snowflake_connectors branch from f29b55e to 1c45714 Compare April 2, 2026 11:53
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
Copy link
Copy Markdown
Contributor

@joanagmaia joanagmaia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👌 I would say to merge it and:

  • For meeting datasource to test it again and see if it needs improvements anywhere.
  • After both connectors are completed see if we can leverage some mcp to be able to leverage snowflake data. Perhaps we can ask Shane advice for this

@mbani01 mbani01 merged commit b9c487a into main Apr 2, 2026
8 checks passed
@mbani01 mbani01 deleted the feat/add_skill_to_scaffold_snowflake_connectors branch April 2, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants