@solaqua/ghosts 0.4.11 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,6 +53,7 @@ For installation selectors, use the source path, such as `--include skills/code-
53
53
  | Skill | What it helps with |
54
54
  | --- | --- |
55
55
  | [coding](engineering/skills/coding/SKILL.md) | Keep implementation simple and tests focused on meaningful behavior. |
56
+ | [ui-design](engineering/skills/ui-design/SKILL.md) | Explore visual references and image mockups, refine a direction, and deliver design documentation or UI implementation. |
56
57
  | [code-review](engineering/skills/code-review/SKILL.md) | Review correctness, downstream contracts, design, and complexity; verify material safety assumptions without editing the change. |
57
58
  | [test-review](engineering/skills/test-review/SKILL.md) | Find missing test protection and tests that cost more than they protect. |
58
59
  | [deep-module](engineering/skills/deep-module/SKILL.md) | Check whether a module hides complexity behind a simple interface. |
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: ghosts:ui-design
3
+ description: Establish a new UI or redesign's visual direction through references and mockups, record it in DESIGN.md, and optionally implement it. Skip routine UI fixes with a settled design.
4
+ ---
5
+
6
+ Explore visual directions with the user, refine their choice, and record it in `DESIGN.md`. Stop there by default; implement only when requested.
7
+
8
+ Read the request and existing interface, design documentation, tokens, and components. Identify the primary user flow, target screens, and constraints. Ask only for missing decisions that would change the design.
9
+
10
+ ## Choose reference themes
11
+
12
+ Identify the screen pattern and the decisions references should inform: for a dashboard, this may include chart types, metric hierarchy, filters, and drill-downs. Start with supplied references. Search image-led galleries such as Pinterest, Behance, and Dribbble for visual mood, using the screen type plus varied style terms; include comparable interfaces from other industries. Use the available browser skill to inspect the actual images. Search live products when interaction or information structure needs validation. Prefer freely viewable interface screens with enough detail to judge the target task; discard ads and decorative images that hide the interface. Use separate references for screen structure and visual treatment when one image cannot provide both; do not import a mobile layout into a desktop design. Gather many varied, relevant candidates; the four-mockup default does not limit reference collection. Avoid duplicates and unrelated examples collected only for visual variety. Reference assets are not automatically licensed for reuse.
13
+
14
+ Download reference images, using the available browser skill to visit pages and retrieve them when needed. Build a local HTML gallery with images grouped by theme, numbered candidates, and source links. For each candidate, explain the comparable UI pattern, the visual or interaction choice it illustrates, and the decision or tradeoff it helps the user make. Recommend the strongest candidates for the brief. Let users select multiple candidates in the gallery; show the selected numbers and provide a button that copies them as a message to paste into chat. If clipboard access fails, show the text for manual copying. Open the gallery and verify that every image displays and selection works; use accessible previews or screenshots when downloads are unavailable. Give the user a clickable link to the verified HTML gallery or show it in a visible browser page, then ask them to choose one or more numbered candidates. Do not replace the gallery with a list of images in chat. Keep its files in temporary storage and available through the user's choice unless they ask to preserve them. Wait for their choice unless they already supplied it or delegated the decision.
15
+
16
+ ## Explore and refine
17
+
18
+ Use Codex's built-in `imagegen` skill to create four directions by default; increase or decrease the count only when the user requests it. Before generating, give each direction a distinct visual theme and reference anchor from the selected material. Vary the visual language, typography, palette, and composition while keeping the same representative screen, realistic content, and viewport. Do not send the same reference set and visual brief to every call by default. If the selection is too narrow for four distinct directions, ask whether to broaden it. Generate each separately, passing its selected reference images as actual image inputs through the tool's supported mechanism; viewing them beforehand or describing them in text is not sufficient. Identify each image's role and the qualities to draw from it, adapting them to the target content and flow rather than reproducing the source screen. If the tool is unavailable or cannot receive the references, continue with the selected reference images without extra approval or a CLI/API fallback; label them as references and explain their application to the target screen.
19
+
20
+ Judge each direction before presenting it:
21
+
22
+ - Does it support the primary task and preserve required content and behavior? Check any numbers, units, and time spans against the task's rules.
23
+ - Does it reflect the chosen qualities of the references while fitting the target task? Compare the images directly; correct unexplained drift without requiring an exact match.
24
+ - Does it offer a distinct theme through layout, typography, palette, and density, rather than small variations of one design?
25
+ - Can its responsive behavior, interaction states, and accessibility work beyond the image?
26
+
27
+ Show numbered images in an HTML comparison gallery, explain each direction's tradeoff, and recommend one. Let the user choose one direction and enter multiline, bullet-friendly notes on what to keep or change; provide a copyable response for chat. Wait for their choice, then refine until they confirm the direction. Pass the selected mockup as the edit target when refining it and preserve accepted elements; without image generation, refine the references and proposed adaptations. Compare each refinement with its predecessor at the same display size; repeat if the requested change is barely visible or unrelated elements drift. A theme already settled by the user needs no new selection; otherwise skip theme or mockup selection only when the user explicitly delegates that choice or asks to skip it. Even when the user requested an app at the outset, confirm its visual direction and needed flow screens before production UI work.
28
+
29
+ After a direction is chosen, mock up the interaction states needed to judge the primary flow in the starting viewport as well as other target viewports, such as task creation or conflict recovery on desktop and mobile navigation. Use the chosen image as a visual reference and adapt the information hierarchy instead of shrinking the desktop screen. Check that dates, totals, task states, controls, and transitions agree across the screens; correct or flag imagegen errors before recording design rules. Present them as a start → action → result sequence with an error → recovery branch where relevant, and identify behaviors static screens cannot validate. If a specific UX decision remains unresolved, build the smallest local functional prototype needed to test it, then review that flow with the user. Keep the probe in temporary storage unless requested, and label it exploratory; these flow screens and probes do not change the default of four initial directions.
30
+
31
+ ## Document and implement
32
+
33
+ Record the agreed design in `DESIGN.md`. When creating it, use [the template](references/design-template.md); when updating it, preserve the existing structure except source-attribution entries. Keep reference names and website URLs in the HTML gallery; put only the adopted design decisions and selected local preview in `DESIGN.md`. Record any viewport or container breakpoints where layout, navigation, or content changes, including the threshold and change. Fold confirmed feedback into the relevant rules as work continues, keeping the document current rather than appending a feedback log. Distinguish unresolved decisions. Save project-referenced generated images in the workspace under the `imagegen` save policy.
34
+
35
+ After the flow screens and any UX probe are reviewed, write `DESIGN.md` and ask whether to build the interface with its tokens and components. Wait unless implementation was already explicitly requested. Do not turn an exploratory prototype into the production interface by default. Tokens and components support the working interface; they are not a separate default deliverable.
36
+
37
+ Implement from `DESIGN.md`, reusing existing conventions and foundations. Prefer suitable headless components for interactive behavior, styled to the chosen direction; retain suitable existing components and native controls. Build only what the requested screens need. Compute domain values from application data rather than copying labels from generated images. Exercise the primary flow in each target viewport, including the starting viewport; check the rendered result around any recorded breakpoints. At those widths, check that primary actions and decision context remain discoverable and critical labels are readable. Check keyboard access and relevant states. Report delivered paths and checks actually performed; visual approval is not usability validation.
@@ -0,0 +1,34 @@
1
+ # <Project> Design
2
+
3
+ <!-- Replace placeholders with agreed decisions. Omit irrelevant sections and unused rows. Link to existing token and component definitions rather than duplicating them; specify values for new decisions. Keep unresolved choices in Open decisions. -->
4
+
5
+ ## Direction
6
+
7
+ <Audience, primary task, target screens, and chosen visual direction. Explain why it fits this product, the principles that guide further choices, and constraints to preserve.>
8
+
9
+ [Selected preview](<workspace-relative-image-path>)
10
+ <!-- Link approved viewport and interaction-state previews here when they inform implementation. -->
11
+
12
+ ## Visual rules
13
+
14
+ | Area | Roles and values or source | Usage rules |
15
+ | --- | --- | --- |
16
+ | Typography | <Display, heading, body, caption: family, size, weight, line height> | <Where each role applies> |
17
+ | Color | <Background, surface, primary text, muted text, accent, feedback: color values> | <Where each role applies and valid combinations> |
18
+ | Spacing | <Scale and units> | <Gaps and padding> |
19
+ | Layout | <Base widths, grid, alignment, density> | <Default screen structure> |
20
+ | Shape and elevation | <Radii, borders, shadows> | <Grouping and emphasis> |
21
+
22
+ ## Flow and components
23
+
24
+ <Primary user flow, required screens and viewports, transitions between them, and information hierarchy. Describe the components and relevant interaction, loading, empty, and error states. Link to existing component files and token definitions; identify headless components to use where decided.>
25
+
26
+ ## Responsive behavior and accessibility
27
+
28
+ Responsive behavior: <How layout, navigation, and content adapt across target viewports; for each needed viewport or container breakpoint, give its threshold with units, the change, and why.>
29
+
30
+ Accessibility: <Keyboard and focus behavior, contrast requirements, reduced-motion behavior where relevant, and other decisions specific to this interface.>
31
+
32
+ ## Open decisions
33
+
34
+ - <Unresolved choice and what is needed to resolve it.>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solaqua/ghosts",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "Reusable agent skills and reviewers.",
5
5
  "license": "MIT",
6
6
  "repository": {