Agent skill

Gpui Test

by StudentWeis in StudentWeis/ropy

Writing tests for GPUI applications. An agent skill from StudentWeis/ropy.

MITAuto-check passed

Install Gpui Test

skills CLI
$ npx skills add StudentWeis/ropy --skill gpui-test -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install StudentWeis/ropy gpui-test --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/StudentWeis/ropy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/gpui-test .claude/skills/gpui-test && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gpui-test
GitHub stars
194
Token cost
~607 tokens
SKILL.md length
126 words
Files
3
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Writing tests for GPUI applications. An agent skill from StudentWeis/ropy.

  • Testing components
  • SKILL.md covers Overview, Core Testing Infrastructure and Additional Resources
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Async operations

What it does

Gpui Test is an agent skill from StudentWeis/ropy. Writing tests for GPUI applications. Use when testing components, async operations, or UI behavior.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `examples.md` and `reference.md`).

The repository describes itself as: Cross-platform, lightweight clipboard manager written in Rust and GPUI. The licence is MIT.

When your agent uses it

  • Testing components
  • Async operations

Example prompts

  • “/gpui-test”

What it can do on your machine

Read from SKILL.md and the folder at commit 4e784df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are rust).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gpui Test loads about 607 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 126 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~607

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from StudentWeis/ropy at commit 4e784df, republished under its MIT licence (© StudentWeis). 126 words, ~607 tokens.

Download SKILL.mdSave it as .claude/skills/gpui-test/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
gpui-test
description
Writing tests for GPUI applications. Use when testing components, async operations, or UI behavior.

Overview

GPUI provides a comprehensive testing framework that allows you to test UI components, async operations, and distributed systems. Tests run on a single-threaded executor that provides deterministic execution and the ability to test complex async scenarios. GPUI tests use the #[gpui::test] attribute and work with TestAppContext for basic testing and VisualTestContext for window-dependent tests.

Rules
  • If test does not require windows or rendering, we can avoid use [gpui::test] and TestAppContext, just write simple rust test.

Core Testing Infrastructure

Test Attributes
Basic Test
rust
#[gpui::test]
fn my_test(cx: &mut TestAppContext) {
    // Test implementation
}
Async Test
rust
#[gpui::test]
async fn my_async_test(cx: &mut TestAppContext) {
    // Async test implementation
}
Property Test with Iterations
rust
#[gpui::test(iterations = 10)]
fn my_property_test(cx: &mut TestAppContext, mut rng: StdRng) {
    // Property testing with random data
}
Test Contexts
TestAppContext

TestAppContext provides access to GPUI's core functionality without windows:

rust
#[gpui::test]
fn test_entity_operations(cx: &mut TestAppContext) {
    // Create entities
    let entity = cx.new(|cx| MyComponent::new(cx));

    // Update entities
    entity.update(cx, |component, cx| {
        component.value = 42;
        cx.notify();
    });

    // Read entities
    let value = entity.read_with(cx, |component, _| component.value);
    assert_eq!(value, 42);
}
VisualTestContext

VisualTestContext extends TestAppContext with window support:

rust
#[gpui::test]
fn test_with_window(cx: &mut TestAppContext) {
    // Create window with component
    let window = cx.update(|cx| {
        cx.open_window(Default::default(), |_, cx| {
            cx.new(|cx| MyComponent::new(cx))
        }).unwrap()
    });

    // Convert to visual context
    let mut cx = VisualTestContext::from_window(window.into(), cx);

    // Access window and component
    let component = window.root(&mut cx).unwrap();
}

Additional Resources

  • For detailed testing patterns and examples, see reference.md
  • For best practices and running tests, see examples.md

© StudentWeis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in .agents/skills/gpui-test of StudentWeis/ropy.

  • SKILL.md
  • examples.md
  • reference.md

Open the folder on GitHubat commit 4e784df

Compare with similar skills

Gpui Test next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gpui Test compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gpui Test this skillStudentWeis/ropy194—~607Automated safety check: PassMIT
Csharp Asyncgithub/awesome-copilot40k2 repos~466Automated safety check: PassMIT
GpuifeigeCode/navop1.8k—~768Automated safety check: PassCustom licence
Asynconsi/gomega2.4k—~2.2kAutomated safety check: PassMIT
Defer Asyncthedaviddias/Front-End-Checklist74k—~494Automated safety check: PassMIT
Fp Asyncsickn33/agentic-awesome-skills47k2 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • Csharp Async

    github/awesome-copilot

    Official

    Get best practices for C async programming. An agent skill from github/awesome-copilot.

    40k GitHub starsUsed in 2 repos~466 tokens
    DevelopmentAuto-check passed
  • Gpui

    feigeCode/navop

    GPUI framework knowledge covering actions/keybindings, async/background tasks, context management (App/Window/Context<T/AsyncApp), custom elements (low-level Element trait), entity state management…

    1.8k GitHub stars~768 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Async

    onsi/gomega

    Polling assertions in Gomega — Eventually (poll until it passes) and Consistently (must keep passing), the func(g Gomega) callback idiom, WithTimeout/WithPolling/Within/ProbeEvery, WithContext and…

    2.4k GitHub stars~2.2k tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Defer Async

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing templates, rendered HTML, or shared components related to Load scripts with defer, async, or type=module.

    74k GitHub stars~494 tokensUpdated yesterday
    Auto-check passed
  • Fp Async

    sickn33/agentic-awesome-skills

    Practical async patterns using TaskEither - clean pipelines instead of try/catch hell, with real API examples

    47k GitHub starsUsed in 2 repos~1.9k tokens
    DatabasesAuto-check passed
  • Async Interview Automation

    ComposioHQ/awesome-claude-skills

    Automate Async Interview tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~760 tokens
    Productivity & AutomationAuto-check passed

More from StudentWeis/ropy

All 17 skills in this repo
  • Gpui Element

    StudentWeis/ropy

    Implementing custom elements using GPUI's low-level Element API (vs.

    194 GitHub stars~1.1k tokensUpdated 29 days ago
    Auto-check passed
  • Gpui Entity

    StudentWeis/ropy

    Entity management and state handling in GPUI. An agent skill from StudentWeis/ropy.

    194 GitHub stars~1.1k tokensUpdated 29 days ago
    Auto-check passed
  • Code Quality Review

    StudentWeis/ropy

    Review a code change, diff, pull request, module, or test suite for code quality, comment and documentation quality, and test quality.

    194 GitHub stars~2.2k tokensUpdated 29 days ago
    Auto-check passed
  • Contribution Flow

    StudentWeis/ropy

    Repository contribution workflow. An agent skill from StudentWeis/ropy.

    194 GitHub stars~705 tokensUpdated 29 days ago
    Auto-check passed
  • Gpui Action

    StudentWeis/ropy

    Action definitions and keyboard shortcuts in GPUI. An agent skill from StudentWeis/ropy.

    194 GitHub stars~916 tokensUpdated 29 days ago
    Auto-check passed
  • Gpui Async

    StudentWeis/ropy

    Async operations and background tasks in GPUI. An agent skill from StudentWeis/ropy.

    194 GitHub stars~934 tokensUpdated 29 days ago
    Auto-check passed

Questions about Gpui Test

What does Gpui Test do?

Writing tests for GPUI applications. An agent skill from StudentWeis/ropy. Gpui Test is an agent skill from StudentWeis/ropy. Writing tests for GPUI applications.

When should I use Gpui Test?

Gpui Test fits situations like: testing components; async operations.

How do I install Gpui Test in Claude Code?

Run `npx skills add StudentWeis/ropy --skill gpui-test -a claude-code`. Or copy the skill folder (.agents/skills/gpui-test in StudentWeis/ropy) into .claude/skills/gpui-test in your project. Claude Code loads it when a task matches its description.

How do I install Gpui Test in Codex?

Run `npx skills add StudentWeis/ropy --skill gpui-test -a codex`. Or copy the skill folder (.agents/skills/gpui-test in StudentWeis/ropy) into .agents/skills/gpui-test in your project. Codex loads it when a task matches its description.

Can I use Gpui Test in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add StudentWeis/ropy --skill gpui-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gpui-test, .gemini/skills/gpui-test, .github/skills/gpui-test and .opencode/skills/gpui-test in your project.

What does Gpui Test need to run?

SKILL.md names no scripts, command-line tools or credentials: Gpui Test is instructions for the agent only.

Does Gpui Test access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Gpui Test safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gpui Test use?

Gpui Test is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gpui Test use?

About 607 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gpui Test?

Skills that share tags, products or a category with Gpui Test: Csharp Async (github/awesome-copilot, 40k stars), Gpui (feigeCode/navop, 1.8k stars), Async (onsi/gomega, 2.4k stars) and Defer Async (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gpui Test?

StudentWeis (a GitHub user) maintains it in StudentWeis/ropy, which has 194 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on September 9, 2026.

Source: StudentWeis/ropy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.