gpui-scaffold

gpui-scaffold is a command for coding agents from geoffjay/claude-plugins. It costs 25 tokens per session (2,009 once invoked), scanned A, original, MIT.

A project-generation command for GPUI, a Rust framework for graphical user interfaces. It creates a starter application or library with Cargo files, source folders, example code, and tests.

In plain words
What is it for?
Use it to create a new GPUI app or library with a predefined Rust project structure and basic UI components.
Why use it?
It removes the repetitive setup work required before starting a new GPUI project.

Command

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 commands/geoffjay/claude-plugins/gpui-scaffold
Clone the repo
git clone --depth 1 https://github.com/geoffjay/claude-plugins

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 gpui-scaffold

README.md
[![agentmods](https://agentmods.dev/badge/commands/geoffjay/claude-plugins/gpui-scaffold.svg)](https://agentmods.dev/commands/geoffjay/claude-plugins/gpui-scaffold)
Your own site
<a href="https://agentmods.dev/commands/geoffjay/claude-plugins/gpui-scaffold"><img src="https://agentmods.dev/badge/commands/geoffjay/claude-plugins/gpui-scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,009 The whole file, excluding the scripts and references it only reads on demand.
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.00025 $0.02009
Opus 5 $0.00013 $0.01005
Sonnet 5 $0.00005 $0.00402
Haiku 4.5 $0.00003 $0.00201

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

Security

Grade A, and why

gpui-scaffold 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 3d 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.

plugins/rust-gpui-developer/commands/gpui-scaffold.md · 377 lines

How it starts

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

GPUI Project Scaffolding

Scaffold a new GPUI application with modern project structure, best practices, and example components.

Arguments

  • $1: Project name (required) - Name for the new GPUI project (hyphen-case recommended)
  • $2: Template type (optional) - Either "app" (default) or "library"

Workflow

1. Validate Project Name

  • Check that project name is provided
  • Validate naming convention (lowercase, hyphens, no spaces)
  • Check that directory doesn't already exist
  • Confirm project creation with user if needed

2. Create Directory Structure

Create the following structure:

project-name/
├── Cargo.toml
├── .gitignore
├── README.md
├── src/
│   ├── main.rs (for app) or lib.rs (for library)
│   ├── app.rs
│   ├── ui/
│   │   ├── mod.rs
│   │   ├── views/
│   │   │   ├── mod.rs
│   │   │   └── main_view.rs
│   │   ├── components/
│   │   │   ├── mod.rs
│   │   │   ├── button.rs
│   │   │   └── input.rs
│   │   └── theme.rs
│   ├── models/
│   │   ├── mod.rs
│   │   └── app_state.rs
│   └── utils/
│       └── mod.rs
├── examples/
│   └── basic.rs
└── tests/
    └── integration_test.rs

3. Generate Cargo.toml

Create Cargo.toml with:

[package]
name = "project-name"
version = "0.1.0"
edition = "2021"

[dependencies]
gpui = { git = "https://github.com/zed-industries/zed" }
anyhow = "1.0"
log = "0.4"
env_logger = "0.11"

[dev-dependencies]
criterion = "0.5"

[[bench]]
name = "rendering"
harness = false

4. Create Main Entry Point

For applications (main.rs):

use gpui::*;
mod app;
mod ui;
mod models;
mod utils;

use app::App;

fn main() {
    env_logger::init();

    App::new("com.example.project-name", |cx| {
        let app = cx.new_model(|cx| app::AppModel::new(cx));
        let window = cx.open_window(
            WindowOptions {
                bounds: WindowBounds::Fixed(Bounds {
                    origin: point(px(100.0), px(100.0)),
                    size: size(px(1200.0), px(800.0)),
                }),
                ..Default::default()
            },
            |cx| cx.new_view(|cx| ui::views::MainView::new(app.clone(), cx)),
        );

        window.unwrap()
    })
    .run();
}

Read the full file on GitHub · 377 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. 3d ago First seen · 377 lines · 25 tokens per session scan A e5be5e992995

Subscribe to this mod's changes

gpui-scaffold is a command published in the GitHub repository geoffjay/claude-plugins (8 stars, last pushed 10mo ago), licensed MIT. It adds 25 tokens to every session and 2,009 once invoked, about $0.0001 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-31.