|
| 1 | +# Agent Skills & Claude Code Plugin |
| 2 | + |
| 3 | +The B2C CLI provides agent skills that enhance the AI-assisted development experience when working with Salesforce B2C Commerce projects. |
| 4 | + |
| 5 | +These skills follow the [Agent Skills](https://agentskills.io/home) standard and can be used with multiple agentic IDEs including [Claude Code](https://claude.ai/code), Cursor, GitHub Copilot, and OpenAI Codex. |
| 6 | + |
| 7 | +## Overview |
| 8 | + |
| 9 | +When installed, the skills teach AI assistants about B2C Commerce CLI commands and best practices, enabling them to help you with: |
| 10 | + |
| 11 | +- Deploying cartridges and managing code versions |
| 12 | +- Running jobs and importing/exporting site archives |
| 13 | +- Managing On-Demand Sandboxes and Managed Runtime environments |
| 14 | +- WebDAV file operations |
| 15 | +- SLAS client configuration |
| 16 | + |
| 17 | +## Installation |
| 18 | + |
| 19 | +### Prerequisites |
| 20 | + |
| 21 | +- [Claude Code](https://claude.ai/code) installed and configured |
| 22 | + |
| 23 | +### Add the Marketplace |
| 24 | + |
| 25 | +First, add the B2C Developer Tooling marketplace: |
| 26 | + |
| 27 | +```bash |
| 28 | +claude plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling |
| 29 | +``` |
| 30 | + |
| 31 | +### Install the Plugin |
| 32 | + |
| 33 | +Install the `b2c-cli` plugin at your preferred scope: |
| 34 | + |
| 35 | +::: code-group |
| 36 | + |
| 37 | +```bash [Project Scope] |
| 38 | +# Available only in the current project |
| 39 | +claude plugin install b2c-cli --scope project |
| 40 | +``` |
| 41 | + |
| 42 | +```bash [User Scope] |
| 43 | +# Available in all your projects |
| 44 | +claude plugin install b2c-cli --scope user |
| 45 | +``` |
| 46 | + |
| 47 | +::: |
| 48 | + |
| 49 | +### Verify Installation |
| 50 | + |
| 51 | +```bash |
| 52 | +claude plugin list |
| 53 | +``` |
| 54 | + |
| 55 | +You should see `b2c-cli@b2c-developer-tooling` in the list. |
| 56 | + |
| 57 | +## Available Skills |
| 58 | + |
| 59 | +The plugin includes skills for each major CLI topic: |
| 60 | + |
| 61 | +| Skill | Description | |
| 62 | +|-------|-------------| |
| 63 | +| `b2c-code` | Code version deployment and management | |
| 64 | +| `b2c-job` | Job execution and site archive import/export (IMPEX) | |
| 65 | +| `b2c-sites` | Storefront sites listing and inspection | |
| 66 | +| `b2c-webdav` | WebDAV file operations (ls, get, put, rm, zip, unzip) | |
| 67 | +| `b2c-ods` | On-Demand Sandbox management | |
| 68 | +| `b2c-mrt` | Managed Runtime project and deployment management | |
| 69 | +| `b2c-slas` | SLAS client management | |
| 70 | + |
| 71 | +## Usage Examples |
| 72 | + |
| 73 | +Once installed, you can ask Claude to help with B2C Commerce tasks: |
| 74 | + |
| 75 | +**Deploy code:** |
| 76 | +> "Deploy the cartridges in ./cartridges to my sandbox" |
| 77 | +
|
| 78 | +**Check code versions:** |
| 79 | +> "List all code versions on my instance and show which one is active" |
| 80 | +
|
| 81 | +**Run a job:** |
| 82 | +> "Run the reindex job on my sandbox" |
| 83 | +
|
| 84 | +**Manage files:** |
| 85 | +> "Download the latest log files from my instance" |
| 86 | +
|
| 87 | +**Create a sandbox:** |
| 88 | +> "Create a new On-Demand Sandbox with TTL of 48 hours" |
| 89 | +
|
| 90 | +Claude will use the appropriate `b2c` CLI commands based on your request and the skills it has learned. |
| 91 | + |
| 92 | +## Updating the Plugin |
| 93 | + |
| 94 | +To get the latest plugin updates: |
| 95 | + |
| 96 | +```bash |
| 97 | +claude plugin marketplace update |
| 98 | +claude plugin update b2c-cli@b2c-developer-tooling |
| 99 | +``` |
| 100 | + |
| 101 | +## Uninstalling |
| 102 | + |
| 103 | +To remove the plugin: |
| 104 | + |
| 105 | +```bash |
| 106 | +claude plugin uninstall b2c-cli@b2c-developer-tooling |
| 107 | +``` |
| 108 | + |
| 109 | +To remove the marketplace: |
| 110 | + |
| 111 | +```bash |
| 112 | +claude plugin marketplace remove b2c-developer-tooling |
| 113 | +``` |
| 114 | + |
| 115 | +## Using Skills with Other IDEs |
| 116 | + |
| 117 | +The B2C CLI skills follow the [Agent Skills](https://agentskills.io/home) standard and can be used with other AI-powered development tools. |
| 118 | + |
| 119 | +### CLI Setup Command |
| 120 | + |
| 121 | +::: warning Coming Soon |
| 122 | +The `b2c setup skills` command is not yet available. Use the manual method below for now. |
| 123 | +::: |
| 124 | + |
| 125 | +```bash |
| 126 | +# Configure skills for your IDE (coming soon) |
| 127 | +b2c setup skills --ide cursor |
| 128 | +b2c setup skills --ide copilot |
| 129 | +``` |
| 130 | + |
| 131 | +### Manual Setup |
| 132 | + |
| 133 | +You can manually copy skill files from the [plugins/b2c-cli/skills/](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/tree/main/plugins/b2c-cli/skills) directory to your IDE's configuration: |
| 134 | + |
| 135 | +#### Cursor |
| 136 | + |
| 137 | +Copy the skill SKILL.md files to `.cursor/rules/` in your project or configure globally in Cursor settings. |
| 138 | + |
| 139 | +#### GitHub Copilot |
| 140 | + |
| 141 | +Append the skill content to `.github/copilot-instructions.md` in your repository. |
| 142 | + |
| 143 | +#### OpenAI Codex |
| 144 | + |
| 145 | +Configure per the OpenAI Codex documentation for custom instructions. |
| 146 | + |
| 147 | +### Skill Files |
| 148 | + |
| 149 | +Each skill is a Markdown file containing instructions and examples: |
| 150 | + |
| 151 | +| Skill | File | |
| 152 | +|-------|------| |
| 153 | +| Code Deployment | `b2c-code/SKILL.md` | |
| 154 | +| Job Execution | `b2c-job/SKILL.md` | |
| 155 | +| Site Management | `b2c-sites/SKILL.md` | |
| 156 | +| WebDAV Operations | `b2c-webdav/SKILL.md` | |
| 157 | +| Sandbox Management | `b2c-ods/SKILL.md` | |
| 158 | +| MRT Management | `b2c-mrt/SKILL.md` | |
| 159 | +| SLAS Configuration | `b2c-slas/SKILL.md` | |
0 commit comments