BumpyClock/agent-templates / skills/programming
programming
UnverifiedImplement, debug, refactor, or review code with scoped changes and evidence.
references/gpui/references/context.md
View on GitHub# Context selection
| Type | Responsibility |
| --- | --- |
| `App` | Application services, globals, and entity access |
| `Context<T>` | Operations associated with entity `T`, plus application access |
| `Window` | Per-window layout, input, focus, and paint operations |
| `AsyncApp` | Foreground async access to application state |
| `AsyncWindowContext` | Foreground async access associated with a window |
These types are capabilities, not a parent-child ownership hierarchy.
Use the narrowest context that provides the required operation.
Preserve a separate `Window` argument when the API requires one.
Use closure-provided contexts for entity updates.
Do not retain borrowed contexts across an await.
Use the async context supplied by the relevant task API.
Treat closed windows and released entities as possible outcomes of delayed work.
For ownership constraints, use [entities](entity.md).
For receiver-specific task APIs, use [async](async.md).
Source: [GPUI context source](https://github.com/zed-industries/zed/blob/main/crates/gpui/src/app/context.rs).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |