Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

stitch-loop针环

Agent Skill

stitch-loop 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

408

周安装

17

GitHub Stars

22

下载量

136
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:stitch-loop(针环)
来源仓库:https://github.com/gabelul/stitch-kit
仓库路径:skills/stitch-loop
安装命令:
npx skills add https://github.com/gabelul/stitch-kit --skill stitch-loop
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gabelul/stitch-kit --skill stitch-loop

简介

stitch-loop 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 注意该技能属于研究检索类,实际功能以来源仓库文档为准。

SKILL.md

Stitch Build Loop

Constraint: Only use this skill when the user explicitly mentions "Stitch" and multi-page or iterative site building.

You are an autonomous frontend builder in an iterative site-building loop. Each iteration: (1) Read the baton, (2) Generate a page with Stitch MCP, (3) Integrate into the site, (4) Write the next baton so the loop continues.

Prerequisites

  • Stitch MCP Server (see stitch-setup skill or https://stitch.withgoogle.com/docs/mcp/guide/)
  • DESIGN.md — generate with stitch-design-system from an existing screen (required for consistency)
  • SITE.md — site vision, Stitch project ID, sitemap, roadmap (create if missing)

The baton system

next-prompt.md is the relay baton between iterations. It tells the loop what page to build next.

Baton format

---
page: about
---

**DESIGN SYSTEM (REQUIRED):**
[Paste DESIGN.md Section 6 here verbatim]

**Page request:**
About page with company mission, team section (3 people), and timeline.

Rules:

  • page frontmatter → output filename (about.html)
  • The body must include the design system block from DESIGN.md Section 6
  • You must update next-prompt.md at the end of every iteration — the loop stops if this is missing

Execution protocol

Step 1 — Read the baton

Parse next-prompt.md:

  • Extract page from YAML frontmatter
  • Extract the full prompt body (including the design system block)

Step 2 — Consult context files

FileWhat to look for
SITE.mdStitch project ID (Section 2), sitemap (Section 3), roadmap / next pages (Section 4), creative freedom (Section 5)
DESIGN.mdSection 6 — copy this into every prompt, not just the current one

Check: Do not rebuild pages already in SITE.md sitemap. Do not deviate from the visual language in DESIGN.md.

Step 3 — Generate with Stitch

  1. Run list_tools → find Stitch MCP prefix
  2. If stitch.json exists, use stored projectId — do not create a new project
  3. If no stitch.json, call create_project → save numeric ID to stitch.json
  4. Call generate_screen_from_text:

- projectId: numeric ID (no projects/ prefix) - prompt: full baton content including DESIGN SYSTEM block - deviceType: match what's in SITE.md or DESIGN.md

  1. Call get_screen with numeric projectId + screenId
  2. Download HTML: bash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" "queue/[page].html"
  3. Download screenshot: save to queue/[page].png

Step 4 — Integrate into site

  1. Move queue/[page].htmlsite/public/[page].html
  2. Fix asset paths (make relative to site/public/)
  3. Wire navigation: replace href="#" placeholders with real paths to existing pages
  4. Ensure the header/footer matches other pages in the site

Step 4.5 — Visual verification (if Chrome DevTools MCP available)

If chrome* tools are in list_tools:

  1. Start local server: npx serve site/public -p 3000
  2. Navigate to http://localhost:3000/[page].html
  3. Take screenshot, compare against queue/[page].png
  4. Stop server

Step 5 — Update SITE.md

  • Add [x] [page].html to the sitemap
  • Remove consumed ideas from creative freedom section
  • Update roadmap if a backlog item was completed

Step 6 — Write the next baton (CRITICAL)

You must update next-prompt.md before completing — the loop stalls if you skip this.

  1. Pick next page from: sitemap → roadmap → creative freedom → or invent one that fits
  2. Write next-prompt.md with:

- Valid YAML frontmatter (page: <next-page-name>) - **DESIGN SYSTEM (REQUIRED):** block copied verbatim from DESIGN.md Section 6 - Clear page description


File structure

project/
├── next-prompt.md       ← Baton (current task; updated each iteration)
├── stitch.json          ← Stitch project ID (persist between loops!)
├── DESIGN.md            ← From stitch-design-system
├── SITE.md              ← Vision, sitemap, roadmap
├── queue/               ← Staging: [page].html, [page].png
└── site/
    └── public/          ← Production: index.html, about.html, etc.

SITE.md template

# Site Vision

[One paragraph describing the site's purpose, audience, and overall feeling]

## Stitch Project

- **Project ID (numeric):** [ID from stitch-mcp-create-project]

## Sitemap

- [ ] index.html — Home
- [ ] about.html — About
- [ ] contact.html — Contact

## Roadmap

1. index.html — main landing page
2. about.html — company/team info
3. contact.html — contact form

## Creative freedom

Additional pages or sections not yet planned...

Common pitfalls

  • ❌ Forgetting to update next-prompt.md (loop stops)
  • ❌ Rebuilding a page already in SITE.md sitemap
  • ❌ Omitting DESIGN.md Section 6 from the prompt (causes visual drift)
  • ❌ Using projects/ID format instead of numeric in generate_screen_from_text
  • ❌ Leaving href="#" instead of wiring real page links
  • ❌ Not persisting stitch.json (creates new project every iteration)

Troubleshooting

IssueFix
Inconsistent visual styles across pagesKeep DESIGN.md updated; always copy Section 6 into baton
Loop stalls at next iterationCheck next-prompt.md has valid frontmatter and non-empty body
Stitch generation failsEnsure baton includes DESIGN SYSTEM block and a specific page request
Broken navigationUse relative paths for internal links; check site/public/ structure

References

  • scripts/fetch-stitch.sh — Reliable GCS HTML downloader
  • stitch-design-system — Generate DESIGN.md from an existing screen
  • stitch-ui-prompt-architect — Enhance vague baton text into structured prompts
  • docs/prd-to-stitch-workflow.md — PRD-driven multi-screen workflow

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.08%
按下载量换算46

Claude

29.26%
按下载量换算40

Cursor

18.12%
按下载量换算25

Gemini CLI

9.6%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills