使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/vercel/shop --skill init-vercel-shop开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Initialize Vercel Shop
Ask for the target directory if the user did not provide one. Always pass it explicitly.
- Inspect the target. If it already contains a Vercel Shop project, stop and use the relevant storefront skill instead. If it is a non-empty directory, ask for a different target rather than overwriting files.
- Run:
pnpm create next-app@latest <target-directory> --example https://github.com/vercel/shopThe template pins pnpm 12 and Node.js 24.
- Confirm the generated project contains
AGENTS.md,.agents/skills/,app/,components/,lib/shopify/, andpackage.json. - Read the generated
AGENTS.mdbefore making further changes. - If dependency installation fails, keep the generated project and show the retry command to run from its root:
pnpm install- Ask one optional follow-up: Connect an existing Shopify store now?
If yes, ask only for the store's admin URL or .myshopify.com domain, then read references/storefront-token.md and follow its automated Shopify CLI flow. Try to reuse or create a public Storefront token before asking the user to visit the Headless channel.
If no, finish with the normal environment setup as the next step.
Return the generated project path, whether a Shopify store was connected, and whether dependency installation needs a retry.



