Skip to content

chore:updated onboarding skill#25

Merged
mstrivens merged 1 commit intoStackOneHQ:mainfrom
mstrivens:updated-on-boarding-skill
Mar 27, 2026
Merged

chore:updated onboarding skill#25
mstrivens merged 1 commit intoStackOneHQ:mainfrom
mstrivens:updated-on-boarding-skill

Conversation

@mstrivens
Copy link
Copy Markdown
Contributor

@mstrivens mstrivens commented Mar 27, 2026

Summary by cubic

Standardized connector onboarding to always pull existing configs with stackone pull -c <provider> and extend via partials + $ref without duplicating connectors or auth. Also bumped @stackone/connect-sdk to 2.41.0.

  • Refactors

    • Updated onboarding docs to require -c flag when pulling connectors.
    • Added clear DO/DO NOT rules: create new partials, add $ref, never duplicate auth or keys.
    • Clarified that auth setup is only for brand-new connectors; skip when extending.
    • Included example folder structures for extending and unified actions.
  • Dependencies

    • Upgraded @stackone/connect-sdk from 2.34.4 to 2.41.0.

Written for commit f9c9382. Summary will update on new commits.

Copilot AI review requested due to automatic review settings March 27, 2026 15:18
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files

@mstrivens mstrivens merged commit 3f2f5b5 into StackOneHQ:main Mar 27, 2026
5 checks passed
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

Updates connector onboarding guidance and bumps a StackOne SDK dependency version as part of the repo’s onboarding/agent workflow documentation.

Changes:

  • Bump @stackone/connect-sdk dependency version in package.json / package-lock.json
  • Update onboarding docs to recommend pulling an existing connector with a new CLI flag and to extend via partials + $ref
  • Add stronger guidance to avoid duplicating auth when extending a pulled connector

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 6 comments.

File Description
package.json Bumps @stackone/connect-sdk version
package-lock.json Updates lockfile entries for the bumped SDK version
CLAUDE.md Updates schema-based onboarding workflow and CLI pull command example
.claude/skills/connector-onboarding.md Updates onboarding skill steps for pulling/extension guidance and partial conventions

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

```bash
# Pull existing connector from StackOne registry
npx @stackone/cli pull <provider>
npx @stackone/cli pull -c <provider>
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

pull -c <provider> is introduced here, but the repo’s existing CLI reference docs still show npx @stackone/cli pull <provider-name> (no -c), and the official CLI reference documents pull --connector <provider> instead. Please align on the correct syntax/flag and update this command (and any other references) to avoid broken onboarding instructions.

Suggested change
npx @stackone/cli pull -c <provider>
npx @stackone/cli pull --connector <provider>

Copilot uses AI. Check for mistakes.
│ 1. FORK CONNECTOR │
│ └─ Run `npx @stackone/cli pull <provider>` to get existing │
│ └─ Fork existing or create new from template │
│ └─ Run `npx @stackone/cli pull -c <provider>` to get existing │
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

This workflow diagram uses npx @stackone/cli pull -c <provider>, but other repo docs/reference materials use pull <provider> and the official CLI reference documents pull --connector <provider>. Please confirm the correct CLI syntax and update the diagram to match, otherwise the onboarding flow may start with a command that fails.

Suggested change
│ └─ Run `npx @stackone/cli pull -c <provider>` to get existing │
│ └─ Run `npx @stackone/cli pull --connector <provider>` to get existing │

Copilot uses AI. Check for mistakes.
If pull succeeds:
- **DO NOT** create a new connector file with a different key
- **DO NOT** duplicate the authentication config
- **DO** create a new partial file for your unified actions (e.g., `<provider>.unified-<resource>.s1.partial.yaml`)
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

The example partial filename pattern here (<provider>.unified-<resource>.s1.partial.yaml) is inconsistent with other guidance in this repo (e.g., connectors/ashby/ashby.candidates.s1.partial.yaml and other sections that use <provider>.<resource>.s1.partial.yaml). Please pick one convention and use it consistently to avoid confusing contributors.

Suggested change
- **DO** create a new partial file for your unified actions (e.g., `<provider>.unified-<resource>.s1.partial.yaml`)
- **DO** create a new partial file for your unified actions (e.g., `<provider>.<resource>.s1.partial.yaml`)

Copilot uses AI. Check for mistakes.

```bash
stackone pull <provider>
stackone pull -c <provider>
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

stackone pull -c <provider> is introduced here, but other repo docs/reference materials still show stackone pull <provider>/npx @stackone/cli pull <provider> without -c, and the official CLI reference documents pull --connector <provider>. Please confirm the correct CLI syntax and keep onboarding docs consistent so new users don’t hit a command error.

Suggested change
stackone pull -c <provider>
stackone pull --connector <provider>

Copilot uses AI. Check for mistakes.
Comment on lines +239 to +249
- **DO** create a new partial file for your new actions (e.g., `<provider>.<resource>.s1.partial.yaml`)
- **DO** add a `$ref` to the existing connector file to include your new partial
- **DO** leverage the existing auth config as-is

Example structure after extending:
```
connectors/bamboohr/
bamboohr_v1-0-0.s1.yaml # Existing pulled connector (may need $ref added)
bamboohr.new-actions.s1.partial.yaml # Your NEW partial with new actions
```

Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

The newly added examples mix partial naming conventions (e.g., <provider>.<resource>.s1.partial.yaml vs <provider>.unified-<resource>.s1.partial.yaml). Please standardize the partial filename pattern and corresponding $ref guidance so contributors create files that match the repo’s established structure.

Suggested change
- **DO** create a new partial file for your new actions (e.g., `<provider>.<resource>.s1.partial.yaml`)
- **DO** add a `$ref` to the existing connector file to include your new partial
- **DO** leverage the existing auth config as-is
Example structure after extending:
```
connectors/bamboohr/
bamboohr_v1-0-0.s1.yaml # Existing pulled connector (may need $ref added)
bamboohr.new-actions.s1.partial.yaml # Your NEW partial with new actions
```
- **DO** create a new partial file for your new actions (e.g., `<provider>.unified-<resource>.s1.partial.yaml`)
- **DO** add a `$ref` to the existing connector file to include your new partial (see example below)
- **DO** leverage the existing auth config as-is
Example structure after extending:

connectors/bamboohr/
bamboohr.unified-hris.s1.yaml # Existing pulled connector (add $ref to partial)
bamboohr.unified-hris.s1.partial.yaml # Your NEW partial with additional actions


Example `$ref` inside `bamboohr.unified-hris.s1.yaml`:
```yaml
actions:
  $ref:
    - ./bamboohr.unified-hris.s1.partial.yaml

Copilot uses AI. Check for mistakes.
**⚠️ CRITICAL: When adding unified actions to a forked connector:**
- **DO NOT** create a new connector file with a different key
- **DO NOT** duplicate the authentication config
- **DO** create a new partial file for your unified actions (e.g., `<provider>.unified-<resource>.s1.partial.yaml`)
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

This section uses the <provider>.unified-<resource>.s1.partial.yaml naming, but earlier sections/examples use <provider>.<resource>.s1.partial.yaml. Please make this consistent across the onboarding skill (and ideally match the repo’s existing connector partial naming) to reduce confusion.

Suggested change
- **DO** create a new partial file for your unified actions (e.g., `<provider>.unified-<resource>.s1.partial.yaml`)
- **DO** create a new partial file for your unified actions (e.g., `<provider>.<resource>.s1.partial.yaml`)

Copilot uses AI. Check for mistakes.
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.

2 participants