项目简介
遵循 Agent Skills 开放标准的技能与插件集合,用于与 Antigravity、Gemini CLI、Claude Code、Cursor 等编码代理协同,支持 Google Stitch 的设计、构建与实用工作流。
README 预览
# Stitch Design Skills\n\nA collection of agent skills and plugins for [Google Stitch](https://stitch.withgoogle.com), following the [Agent Skills](https://agentskills.io) open standard. Compatible with coding agents such as Codex, Antigravity, Gemini CLI, Claude Code, and Cursor.\n\n## Quick Start\n\n### 1. Install Plugins (Recommended)\nThe fastest way to set up the full Stitch plugin suite globally.\n\n#### Codex\n\nAdd the Stitch Skills marketplace, then install the plugins you need.\n\n\nVia CLI (recommended)\n\n```bash\ncodex plugin marketplace add google-labs-code/stitch-skills --ref main \\n --sparse .agents/plugins \\n --sparse plugins/stitch-design \\n --sparse plugins/stitch-build \\n --sparse plugins/stitch-utilities\n```\n\n> [!TIP]\n> The `--sparse` flags are optional — they limit the checkout to only the\n> listed paths for a faster clone. Omit them to pull the entire repository.\n\n\n\n\nVia the Codex UI\n\nNavigate to **Settings → Plugin Marketplaces → Add** and fill in:\n\n| Field | Value |\n|---|---|\n| **Source** | `https://github.com/google-labs-code/stitch-skills` |\n| **Git ref** | `main` |\n| **Sparse paths** | *(optional)* `.agents/plugins`, `plugins/stitch-design`, `plugins/stitch-build`, `plugins/stitch-utilities` |\n\n\n\nOnce the marketplace is registered, install any combination of:\n\n- **`stitch-design`** — design-focused skills\n- **`stitch-build`** — build and component skills\n- **`stitch-utilities`** — utility and helper skills\n\n#### Claude Code & Cursor\n\n```bash\n# Claude Code — installs into the current project\nnpx plugins add google-labs-code/stitch-skills --scope project --target claude-code\n```\n\n```bash\n# Cursor — installs into the current workspace\nnpx plugins add google-labs-code/stitch-skills --scope workspace --target cursor\n```\n\n### 2. Install Skills Selectively\nChoose only the specific skills you need.\n\n> [!IMPORTANT]\n> Stitch Design Skills often have inter-dependencies. If you choose to install ski
常见问题 (5)
故障排除如何修复使用 npx plugins 安装 Stitch skills 时出现的 "Unknown target: antigravity" 错误?
@vercel-labs/plugins CLI 不支持 antigravity;它仅支持 claude-code、cursor 和 codex。对于 Antigravity,请使用以下任一方式安装 Stitch skills:
1. Antigravity 原生 CLI(推荐):
agy plugin install https://github.com/google-labs-code/stitch-skills
2. Skills CLI,它会自动检测 Antigravity:
npx skills add google-labs-code/stitch-skills
第二条命令会将 skills 复制到你项目中的 .agents/skills/ 目录。请将文档中的 npx plugins add ... --target antigravity 命令替换为上述可行方案之一。
故障排除如何修复 Allstar 的 "Security policy not enabled" SECURITY.md 违规问题?
向仓库中添加一个 SECURITY.md 文件,说明受支持的版本以及如何私下报告漏洞,例如通过 GitHub 私有漏洞报告功能或加密电子邮件。你可以直接在 https://github.com/<owner>/<repo>/security/policy 创建该文件,或者将文件放置在仓库根目录、docs/ 或 .github/ 目录中。示例内容:
# 安全策略
## 受支持的版本
| 版本 | 是否受支持 |
| ------- | --------- |
| latest | 是 |
## 报告漏洞
请使用 GitHub 的私有漏洞报告功能私下报告漏洞。请勿创建公开的 issue。
将该文件提交到默认分支。一旦仓库符合要求,Allstar 将自动解决该 issue。
故障排除如何修复 "'add-skill' has been renamed to 'skills'" 弃用警告?
将已弃用的 npx add-skill 命令替换为 npx skills add。所有现有的标志和选项保持不变。
替换前:
npx add-skill google-labs-code/stitch-skills --skill react:components --global
替换后:
npx skills add google-labs-code/stitch-skills --skill react:components --global
更新所有仍在使用 npx add-skill 的安装脚本或文档。例如,使用 npx skills add vercel-labs/agent-skills 来添加技能包。
故障排除如何修复安装 Stitch skills 时 Antigravity 不显示的问题?
请勿使用 npx plugins add google-labs-code/stitch-skills --scope project --target antigravity;该命令不支持 antigravity 目标。请改为运行:
npx skills add google-labs-code/stitch-skills
在出现提示时选择相关技能。在 Universal .agents/skills 安装中,Antigravity 默认已包含在内,一同包含的还有 Amp、Cline、Cursor、Gemini CLI、GitHub Copilot 等。
故障排除如何修复使用 npx skills 从 stitch-skills 添加 skill 时出现的 'No matching skills found' 错误?
这是由最近的一项更改引起的,该更改添加了一个额外的顶级技能,因此默认分支只能发现 stitch::react-native。在修复合并之前,请改为从 refactor 分支安装:
npx skills add google-labs-code/stitch-skills#refactor
如有需要,可以显式指定技能:
npx skills add google-labs-code/stitch-skills#refactor --skill taste-design
v1.0 标签也可以作为临时解决方案:https://github.com/google-labs-code/stitch-skills/tree/v1.0。