Skip to content

Conversation

@clavery
Copy link
Collaborator

@clavery clavery commented Jan 20, 2026

Summary

Adds a new b2c setup skills command that downloads and installs agent skills from GitHub releases to AI-powered IDE configurations.

Features

  • SDK Skills Module (@salesforce/b2c-tooling-sdk/skills)

    • IDE detection and path configuration for Claude Code, Cursor, Windsurf, VS Code/Copilot, Codex, and OpenCode
    • GitHub release download with local caching
    • SKILL.md frontmatter parsing
    • Skill installation with update/overwrite support
  • CLI Command (b2c setup skills)

    • Interactive mode with multi-select for skillsets and IDEs
    • Auto-detection of installed IDEs
    • Support for project-level and global installation scopes
    • Claude Code marketplace recommendation
    • IDE-specific documentation links after installation
    • Non-interactive mode with --force for CI/CD
  • CI/CD Integration

    • Automatic packaging of b2c-skills.zip and b2c-cli-skills.zip on stable releases
    • Upload to GitHub releases

Supported IDEs

IDE Project Path Global Path
Claude Code .claude/skills/ ~/.claude/skills/
Cursor .cursor/skills/ ~/.cursor/skills/
Windsurf .windsurf/skills/ ~/.codeium/windsurf/skills/
VS Code/Copilot .github/skills/ ~/.copilot/skills/
Codex CLI .codex/skills/ ~/.codex/skills/
OpenCode .opencode/skills/ ~/.config/opencode/skills/

Example Usage

# Interactive mode
b2c setup skills

# List available skills
b2c setup skills b2c --list

# Install to specific IDE
b2c setup skills b2c --ide cursor --global

# Non-interactive for CI/CD
b2c setup skills b2c-cli --ide cursor --force

Test plan

  • Test installation to each supported IDE
  • Test --global flag for user-level installation
  • Test --update flag for overwriting existing skills

- Add @inquirer/prompts for interactive multi-select prompts
- Change skillset selection to multi-select (can install both b2c and b2c-cli)
- Rename github-copilot IDE to vscode for clarity
- Add docsUrl to IDE configs and show documentation links after installation
- Use direct GitHub download URLs instead of API to avoid rate limiting
- Update documentation with new IDE names and flag options
@clavery clavery changed the title Add setup skills command for AI-powered IDE skill installation Add setup skills command for IDE skill installation Jan 20, 2026
@clavery clavery changed the title Add setup skills command for IDE skill installation @W-20898700 Add setup skills command for IDE skill installation Jan 20, 2026
export function getCacheDir(): string {
const xdgCache = process.env.XDG_CACHE_HOME;
const baseCache = xdgCache || path.join(os.homedir(), '.cache');
return path.join(baseCache, 'b2c-cli', 'skills');
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we support various OS including Windows?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

os.homedir() should work on windows. We have another ticket for explicit windows compatibility (and testing!) support: W-20937015

@clavery clavery merged commit 8720621 into main Jan 20, 2026
3 checks passed
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.

3 participants