|
| 1 | +--- |
| 2 | +description: Commands for installing AI agent skills for Claude Code, Cursor, Windsurf, and other agentic IDEs. |
| 3 | +--- |
| 4 | + |
| 5 | +# Setup Commands |
| 6 | + |
| 7 | +Commands for setting up the development environment with AI agent skills. |
| 8 | + |
| 9 | +## b2c setup skills |
| 10 | + |
| 11 | +Install agent skills from the B2C Developer Tooling project to AI-powered IDEs. |
| 12 | + |
| 13 | +This command downloads skills from GitHub releases and installs them to the configuration directories of supported IDEs. Skills teach AI assistants about B2C Commerce development, CLI commands, and best practices. |
| 14 | + |
| 15 | +### Usage |
| 16 | + |
| 17 | +```bash |
| 18 | +b2c setup skills [SKILLSET] |
| 19 | +``` |
| 20 | + |
| 21 | +### Arguments |
| 22 | + |
| 23 | +| Argument | Description | Default | |
| 24 | +|----------|-------------|---------| |
| 25 | +| `SKILLSET` | Skill set to install: `b2c` or `b2c-cli` | Prompted interactively | |
| 26 | + |
| 27 | +### Flags |
| 28 | + |
| 29 | +| Flag | Description | Default | |
| 30 | +|------|-------------|---------| |
| 31 | +| `--list`, `-l` | List available skills without installing | `false` | |
| 32 | +| `--skill` | Install specific skill(s) (can be repeated) | | |
| 33 | +| `--ide` | Target IDE(s): claude-code, cursor, windsurf, vscode, codex, opencode, manual | Auto-detect | |
| 34 | +| `--global`, `-g` | Install to user home directory (global scope) | `false` | |
| 35 | +| `--update`, `-u` | Update existing skills (overwrite) | `false` | |
| 36 | +| `--version` | Specific release version | `latest` | |
| 37 | +| `--force` | Skip confirmation prompts (non-interactive) | `false` | |
| 38 | +| `--json` | Output results as JSON | `false` | |
| 39 | + |
| 40 | +### Supported IDEs |
| 41 | + |
| 42 | +| IDE Value | IDE Name | Project Path | Global Path | |
| 43 | +|-----------|----------|--------------|-------------| |
| 44 | +| `claude-code` | Claude Code | `.claude/skills/` | `~/.claude/skills/` | |
| 45 | +| `cursor` | Cursor | `.cursor/skills/` | `~/.cursor/skills/` | |
| 46 | +| `windsurf` | Windsurf | `.windsurf/skills/` | `~/.codeium/windsurf/skills/` | |
| 47 | +| `vscode` | VS Code / GitHub Copilot | `.github/skills/` | `~/.copilot/skills/` | |
| 48 | +| `codex` | OpenAI Codex CLI | `.codex/skills/` | `~/.codex/skills/` | |
| 49 | +| `opencode` | OpenCode | `.opencode/skills/` | `~/.config/opencode/skills/` | |
| 50 | +| `manual` | Manual | `.claude/skills/` | `~/.claude/skills/` | |
| 51 | + |
| 52 | +Use `manual` when you want to install to the Claude Code paths without marketplace recommendations. |
| 53 | + |
| 54 | +### Examples |
| 55 | + |
| 56 | +```bash |
| 57 | +# Interactive mode (prompts for skillset and IDEs) |
| 58 | +b2c setup skills |
| 59 | + |
| 60 | +# List available skills in a skillset |
| 61 | +b2c setup skills b2c --list |
| 62 | +b2c setup skills b2c-cli --list |
| 63 | + |
| 64 | +# Install b2c skills to Cursor (project scope) |
| 65 | +b2c setup skills b2c --ide cursor |
| 66 | + |
| 67 | +# Install b2c-cli skills to Cursor (global/user scope) |
| 68 | +b2c setup skills b2c-cli --ide cursor --global |
| 69 | + |
| 70 | +# Install to multiple IDEs |
| 71 | +b2c setup skills b2c --ide cursor --ide windsurf |
| 72 | + |
| 73 | +# Install specific skills only |
| 74 | +b2c setup skills b2c-cli --skill b2c-code --skill b2c-webdav --ide cursor |
| 75 | + |
| 76 | +# Update existing skills |
| 77 | +b2c setup skills b2c --ide cursor --update |
| 78 | + |
| 79 | +# Non-interactive mode (for CI/CD) - skillset required |
| 80 | +b2c setup skills b2c-cli --ide cursor --global --force |
| 81 | + |
| 82 | +# Install a specific version |
| 83 | +b2c setup skills b2c --version v0.1.0 --ide cursor |
| 84 | + |
| 85 | +# Output as JSON |
| 86 | +b2c setup skills b2c --list --json |
| 87 | +``` |
| 88 | + |
| 89 | +### Interactive Mode |
| 90 | + |
| 91 | +When run without `--force`, the command provides an interactive experience: |
| 92 | + |
| 93 | +1. Prompts you to select skill set(s) (if not provided as argument) - you can select both `b2c` and `b2c-cli` |
| 94 | +2. Downloads skills from the latest release (or specified version) |
| 95 | +3. Auto-detects installed IDEs |
| 96 | +4. Prompts you to select target IDEs |
| 97 | +5. Shows installation preview |
| 98 | +6. Confirms before installing |
| 99 | +7. Reports results |
| 100 | + |
| 101 | +In non-interactive mode (`--force`), the skillset argument is required. |
| 102 | + |
| 103 | +### Claude Code Recommendation |
| 104 | + |
| 105 | +For Claude Code users, we recommend using the plugin marketplace for automatic updates: |
| 106 | + |
| 107 | +```bash |
| 108 | +claude plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling |
| 109 | +claude plugin install b2c-cli |
| 110 | +claude plugin install b2c |
| 111 | +``` |
| 112 | + |
| 113 | +The marketplace provides: |
| 114 | +- Automatic updates when new versions are released |
| 115 | +- Centralized plugin management |
| 116 | +- Version tracking |
| 117 | + |
| 118 | +Use `--ide manual` if you prefer manual installation to the same paths. |
| 119 | + |
| 120 | +### Skill Sets |
| 121 | + |
| 122 | +| Skill Set | Description | |
| 123 | +|-----------|-------------| |
| 124 | +| `b2c` | B2C Commerce development patterns and practices | |
| 125 | +| `b2c-cli` | B2C CLI commands and operations | |
| 126 | + |
| 127 | +### Output |
| 128 | + |
| 129 | +When installing, the command reports: |
| 130 | +- Successfully installed skills with paths |
| 131 | +- Skipped skills (already exist, use `--update` to overwrite) |
| 132 | +- Errors encountered during installation |
| 133 | + |
| 134 | +Example output: |
| 135 | + |
| 136 | +``` |
| 137 | +Downloading skills from release latest... |
| 138 | +Detecting installed IDEs... |
| 139 | +Installing 12 skills to Cursor (project) |
| 140 | +
|
| 141 | +Successfully installed 12 skill(s): |
| 142 | + - b2c-code → .cursor/skills/b2c-code/ |
| 143 | + - b2c-webdav → .cursor/skills/b2c-webdav/ |
| 144 | + ... |
| 145 | +``` |
| 146 | + |
| 147 | +### Environment |
| 148 | + |
| 149 | +Skills are downloaded from the GitHub releases of the [b2c-developer-tooling](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling) repository: |
| 150 | + |
| 151 | +| Artifact | Contents | |
| 152 | +|----------|----------| |
| 153 | +| `b2c-cli-skills.zip` | Skills for B2C CLI commands and operations | |
| 154 | +| `b2c-skills.zip` | Skills for B2C Commerce development patterns | |
| 155 | + |
| 156 | +Downloaded artifacts are cached locally at: `~/.cache/b2c-cli/skills/{version}/{skillset}/` |
| 157 | + |
| 158 | +### See Also |
| 159 | + |
| 160 | +- [Agent Skills & Plugins Guide](/guide/agent-skills) - Overview of available skills |
| 161 | +- [Claude Code Skills Documentation](https://claude.ai/code) - Claude Code skill format |
| 162 | +- [Cursor Skills Documentation](https://cursor.com/docs/context/skills) - Cursor skill format |
0 commit comments