# pyqt6-ui-development-rules

This skill guides agents working on PyQt6 desktop interfaces, from UI-to-logic wiring to background work and layout. Use it when building or refactoring a Qt app.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1100 installs · ★ 44
- Author: oimiragieo
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/oimiragieo/agent-studio/tree/HEAD/.claude/skills/pyqt6-ui-development-rules/SKILL.md
- Updated: 2026-07-14
- HTML: https://affpapa.org/en/nevibecode/skills/pyqt6-ui-development-rules

## What it does

The skill gives agents rules for structuring PyQt6 code: keep model, view, and controller separate, and connect UI actions to application logic with signals and slots. It favors Qt layout managers over fixed widget coordinates, and application-level QSS for styling. It guides code changes rather than supplying a ready-made interface.

Long-running work belongs outside the main UI thread. The rules cover `QThread`, `QRunnable`, and `QThreadPool`, and also mention `qasync`. They apply to files under `gui` and names such as `*_ui.py`, `*_dialog.py`, and `*_window.py`. Blocking the main thread freezes the interface, so background execution matters. DPI-aware rendering and platform differences are covered too.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add oimiragieo/agent-studio --skill pyqt6-ui-development-rules -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pyqt6-ui-development-rules/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pyqt6-ui-development-rules/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add oimiragieo/agent-studio --skill pyqt6-ui-development-rules -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pyqt6-ui-development-rules/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add oimiragieo/agent-studio --skill pyqt6-ui-development-rules -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pyqt6-ui-development-rules/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install oimiragieo/agent-studio pyqt6-ui-development-rules
```

2. **Manually: put the files in place**
- File: `.github/skills/pyqt6-ui-development-rules/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add oimiragieo/agent-studio --skill pyqt6-ui-development-rules -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/oimiragieo/agent-studio --path .claude/skills/pyqt6-ui-development-rules
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pyqt6-ui-development-rules/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add oimiragieo/agent-studio --skill pyqt6-ui-development-rules -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/oimiragieo/agent-studio/tree/HEAD/.claude/skills/pyqt6-ui-development-rules/SKILL.md

## When to use it
- separate model, view, and controller in a PyQt6 app
- wire UI actions to application logic with signals and slots
- move long-running work off the main thread
- replace fixed widget coordinates with Qt layout managers
- centralize widget styling with QSS

## Example prompts
- Separate the model, controller, and view in this PyQt6 app, and connect the UI to logic with signals and slots.
- Move this long-running operation off the main thread using a `QThread` worker.
- Replace fixed widget coordinates with layout managers and check the rules for `*_window.py`.

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
