stitchflow GEMINI.md

stitchflow GEMINI.md is an instructions file for Gemini CLI from yshishenya/stitchflow. It costs 497 tokens per session, scanned A, original, Apache-2.0.

Instructions for using StitchFlow, a UI design tool that turns product briefs or mockups into local HTML screens, visual alternatives, and screenshots.

In plain words
What is it for?
Use it to create web-screen concepts, compare visual variants, edit an existing screen, and save screenshots locally.
Why use it?
It gives an AI coding agent a defined process for exploring and refining a design before implementation.

Instructions file for Gemini CLI

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/yshishenya/stitchflow/gemini-md
Clone the repo
git clone --depth 1 https://github.com/yshishenya/stitchflow

Made for: Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stitchflow GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yshishenya/stitchflow/gemini-md.svg)](https://agentmods.dev/instructions/yshishenya/stitchflow/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/yshishenya/stitchflow/gemini-md"><img src="https://agentmods.dev/badge/instructions/yshishenya/stitchflow/gemini-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 497 This file is loaded in full into every session.
When invoked 497 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00497 $0.00497
Opus 5 $0.00249 $0.00249
Sonnet 5 $0.00099 $0.00099
Haiku 4.5 $0.00050 $0.00050

Measured 5d ago against content hash 7569191d35d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stitchflow GEMINI.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

GEMINI.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

StitchFlow for Gemini CLI

Use this extension when the user wants to turn a product brief, mockup, or UI idea into a generated screen, a refined screen edit, or a set of visual variants with local HTML and screenshots.

The repository ships a canonical agent skill at skills/stitchflow/, keeps skills/stitch-design-local/ as a legacy alias, and includes a local toolkit at stitch-starter/.

When to use StitchFlow

  • The user wants UI exploration before implementation
  • The user wants prompt-to-HTML output
  • The user wants multiple visual directions for the same screen
  • The user wants local screenshots and artifacts saved on disk

Local setup

  1. Clone the repository.
  2. Run bash install.sh --target all for the canonical local install.
  3. Add STITCH_API_KEY to ${STITCH_STARTER_ROOT:-$HOME/.agents/stitch-starter}/.env.
  4. Restart Gemini CLI if needed.

Working rules

  1. Rewrite vague UI requests into a stronger design prompt before running Stitch.
  2. Prefer desktop web unless the user clearly asks for mobile or tablet.
  3. For first-pass exploration, prefer one generated screen and then three variants.
  4. If the user already has a close screen, prefer targeted edits over regeneration.
  5. Always report where HTML, screenshots, and run metadata were saved.
  6. Never print or expose STITCH_API_KEY or .env contents.

Toolkit commands

Run commands inside ${STITCH_STARTER_ROOT:-$HOME/.agents/stitch-starter}.

Generate a new screen:

npm run generate -- --prompt "A premium desktop analytics dashboard for a product team"

Edit the latest screen:

npm run edit -- --prompt "Make it more premium and improve typography hierarchy"

Create variants:

npm run variants -- --prompt "Explore three stronger visual directions" --variant-count 3

List projects and screens:

npm run list

Output paths

  • Runs are saved under ${STITCH_STARTER_ROOT:-$HOME/.agents/stitch-starter}/runs/
  • Latest single-screen pointer: ${STITCH_STARTER_ROOT:-$HOME/.agents/stitch-starter}/runs/latest-screen.json

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 64 lines · 497 tokens per session scan A 7569191d35d7

Subscribe to this mod's changes

stitchflow GEMINI.md is an instructions file published in the GitHub repository yshishenya/stitchflow (12 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 497 tokens to every session, about $0.0025 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.