feat: add onboard command for AI-agent SDK integration workflow#674
Draft
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Draft
feat: add onboard command for AI-agent SDK integration workflow#674devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
Co-Authored-By: Ari Salem <asalem@launchdarkly.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
Author
|
/label devin-pr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
Related issues
AI-Assisted Onboarding — MCP-driven "Onboard me" wizard via agent-skills.
Describe the solution you've provided
Adds a new
ldcli onboardcommand that generates a structured onboarding plan for AI agents (Cursor, Copilot, Claude) to follow when integrating the LaunchDarkly SDK into a user's project.The command outputs a deterministic workflow of 7 agent-skill steps:
sdk-activesignalOutput modes:
--json/--output json: Full structured plan with step instructions, SDK recipes (17 SDKs), and recovery options--jsonNew files:
cmd/onboard.go— Cobra command entry point with--projectand--environmentflagsinternal/onboarding/onboarding.go— Core types (OnboardingPlan,Step,RecoveryOption) and serializationinternal/onboarding/steps.go— Detailed agent-skill instructions for each stepinternal/onboarding/sdk_recipes.go— SDK detection mappings (file patterns → SDK) with install/import/init snippetsModified files:
cmd/root.go— Register theonboardcommandcmd/templates.go— Addonboardto the CLI usage template🔍 Key areas for reviewer attention:
Toolsfield values (readFile,writeFile,runCommand, etc.) are conceptual tool names for the AI agent — they are not tied to actual MCP tool definitions. Verify these match the expected contract.internal/sdks/sdk_instructions/*.mdfiles are not consumed by this new code. Worth considering whether they should be.fmt.SprintfinbuildValidateStepandbuildFirstFlagStep— these use multiple positional%sargs for project/environment/baseURI repeated across the template. Verify argument ordering is correct.initOnboardFlagsbindsProjectFlagandEnvironmentFlagglobally, which other commands also bind. This is a known pattern in the codebase but could cause test flakiness if test ordering changes.Describe alternatives you've considered
internal/quickstart): Rejected because the quickstart flow is interactive (bubbletea) and designed for human terminal use, not AI agent consumption.Additional context
All existing tests pass (
make test). The command follows established patterns fromcmd/quickstart.goandcmd/sdk_active/sdk_active.go.Link to Devin session: https://app.devin.ai/sessions/07a0cc633efc47c3b2e8dec7b61d2252