Welcome to the Shopify theme development environment for Sangam. To ensure a productive workflow, especially when using AI-powered development tools like Cursor or Antigravity, please follow the setup instructions below.
Ensure you have the following installed on your machine:
- Shopify CLI: The command-line tool for developing Shopify themes.
- Node.js: Version 18 or higher (LTS recommended).
- Git: For version control and collaborative development.
We recommend using VS Code or Cursor for the best development experience.
- Shopify Liquid: Provides syntax highlighting, linting, and language support for Liquid.
- ESLint: For JavaScript linting.
- Prettier: For consistent code formatting.
MCP servers expand the capabilities of your AI assistant (Cursor, Antigravity, Claude Desktop) by providing it with real-time documentation, API schemas, and tool access.
Integrates Shopify documentation and API schemas directly into your AI assistant.
- Command:
npx - Arguments:
["-y", "@shopify/dev-mcp@latest"] - Documentation: Shopify Dev MCP Guide
Allows your AI assistant to browse repositories, manage issues, and create pull requests.
- Command:
npx - Arguments:
["-y", "@modelcontextprotocol/server-github"] - Environment Variables:
GITHUB_PERSONAL_ACCESS_TOKEN: A Personal Access Token (PAT) withreposcope.
- Open your Antigravity Settings.
- Navigate to MCP Servers.
- Add the following configuration to your
mcp_config.jsonor via the UI:
{
"mcpServers": {
"shopify-dev": {
"command": "npx",
"args": ["-y", "@shopify/dev-mcp@latest"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_TOKEN"
}
}
}
}Follow the instructions provided by your specific AI extension (e.g., Continue, Roo-Code) on how to add MCP servers to their configuration.
-
Clone the repository:
git clone <repository-url> cd sangam
-
Login to Shopify:
shopify login --store <your-store-name>.myshopify.com
-
Start local development server:
shopify theme dev
To help both humans and AI agents customize complex features like BOPIS (Buy Online, Pick Up In Store), we have provided specialized guides:
- BOPIS Customization Guide: See docs/BOPIS_CUSTOMIZATION.md for a human-friendly overview of how to change the look and feel of the pickup button and modal.
- AI Agent Skills: We have defined localized "Skills" for AI assistants like Antigravity to ensure they follow theme-specific best practices:
- BOPIS Customizer: For modifying the store pickup experience.
- Skill Creator: A meta-skill to help agents create NEW skills following the
agentskills.iospec.