AGENT SKILL

writing-screen-composition

Create or update docs/screen-composition.md, a document that itemizes every page, dialog, notification and shell part from the HTML mocks and lists, for each, the component-library components it shall be composed of plus the UI that must be built locally. Also ensures AGENTS.md has the "Components library is mandatory (CRITICAL)" section. Use when the user mentions screen composition, which components a page uses, mapping mocks to a component library, local vs library UI, or before implementing an application against a component library; and whenever docs/mocks and a component catalogue exist but docs/screen-composition.md does not or is out of date.

License 许可
MIT
最近更新
2026-10-19
Stars
★ 1
Forks
0

01 前言 Front Matter

name
writing-screen-composition
description
Create or update docs/screen-composition.md, a document that itemizes every page, dialog, notification and shell part from the HTML mocks and lists, for each, the component-library components it shall be composed of plus the UI that must be built locally. Also ensures AGENTS.md has the "Components library is mandatory (CRITICAL)" section. Use when the user mentions screen composition, which components a page uses, mapping mocks to a component library, local vs library UI, or before implementing an application against a component library; and whenever docs/mocks and a component catalogue exist but docs/screen-composition.md does not or is out of date.

02 资源文件 1

03 SKILL.md 正文

Writing screen composition

Turn finished mocks into a binding map from each screen to the library components that build it, and make agents obey that map.

Inputs

  • docs/mocks/ — one folder per screen under pages/, dialogs/, notifications/, each with one HTML file per state. docs/mocks/index.html lists them and the shell.
  • A component catalogue: the component library's public API or an interface document (in this repo docs/icd/components-library-application.md §9 and frontend/projects/components/src/public-api.ts).

If the mocks or the catalogue are missing, say so and stop; mocks come first (writing-html-mocks).

Steps

  1. Inventory the screens. List every folder under pages/, dialogs/ and notifications/, and every state file in each. Take route, title and requirement IDs from docs/mocks/index.html. Identify the shell: skip link, header, footer, toast region, compare bar or similar parts that wrap every page.

  2. Inventory the library. List each public component by class name and selector, and each service (dialogs, toasts). Use only names that exist in the catalogue.

  3. Read the mocks. For each screen, extract the CSS classes and structure of the default state and of the states that add UI (error, empty, loading, busy, success, over-limit...). Strip <style>/<script> and mock-only chrome (mock-bar, mock-note) first; a script is fine for this.

  4. Map each screen. Match each block to a library component. Anything with no match is local UI. Do not invent library components. If something looks reusable, still list it as local and note it for catalogue change control.

  5. Write docs/screen-composition.md with:

    • an intro: sources, what "local UI" means, that mock-only chrome is excluded;
    • Shell table: part, library components, local UI;
    • Shared local components table: item, used by, notes (build once, reuse);
    • Pages (public, then admin): for each, heading with route and mock folder + states, then Library: and Local: lines. Group identical pages (for example three admin lists) under one entry;
    • Dialogs table: dialog (mock folder: states), overlay surface, library components, local UI;
    • Notifications table in the same shape;
    • Summary of local UI to build: a numbered list. Name components by class name. Note states that change composition (for example error uses the alert component, empty uses the empty-state component).
  6. Verify coverage. Compare the mock folders against the document headings and tables: every page, dialog and notification folder appears, every state appears, and every component named exists in the catalogue. Fix gaps. Report anything inferred rather than read from a mock.

  7. Ensure AGENTS.md has the mandate. If AGENTS.md has no section titled ## Components library is mandatory (CRITICAL), add it just before the scope/simplicity section; if it exists, make sure it says the same things. Adjust names to the project:

    ## Components library is mandatory (CRITICAL)
    
    - The `<app>` application MUST be built from `@<scope>/components`.
      Never hand-write markup, CSS, icons, overlays or toasts the library already
      provides. Use the library component, `DialogService` and `ToastService`.
    - `docs/screen-composition.md` is binding. Before implementing any page,
      dialog, notification or shell part, read its entry and use exactly the
      components it lists. Build locally only the UI it marks as local.
    - If the library lacks something the entry needs, STOP. Update the interface
      document and the library first. Do not work around it in the app.
    - Keep `docs/screen-composition.md` aligned with the mocks and the interface document.
    

    If AGENTS.md is marked as generated, tell the user the edit may be lost on regeneration and where the source should change.

  8. Report the screens covered, the local UI summary, anything inferred, and whether AGENTS.md changed.

Rules

  • Documentation only: no tests, no code, no mock edits.
  • Keep it brief and itemized; tables over prose.
  • When mocks change, update this document in the same change.
  • Do not add behaviour, screens or states that the mocks do not show.

04 同仓库更多 Skills

QuinntyneBrown
QuinntyneBrown/quinntyne-brown-studio

writing-screen-composition

Create or update docs/screen-composition.md, a document that itemizes every page, dialog, notification and shell part from the HTML mocks and lists, for each, the component-library components it shall be composed of plus the UI that must be built locally. Also ensures AGENTS.md has the "Components library is mandatory (CRITICAL)" section. Use when the user mentions screen composition, which components a page uses, mapping mocks to a component library, local vs library UI, or before implementing an application against a component library; and whenever docs/mocks and a component catalogue exist but docs/screen-composition.md does not or is out of date.

★ 1
QuinntyneBrown
QuinntyneBrown/quinntyne-brown-studio

writing-requirements

Create and manage software requirements documents (L1 high-level and L2 detailed with acceptance criteria) in docs/specs/. Use this skill whenever the user mentions requirements, specs, specifications, user stories, features to build, acceptance criteria, ATDD, or wants to define what a system should do before coding. Also use when the user says things like 'what should we build', 'let's plan the feature', 'write up what this needs to do', 'define the behavior', or describes functionality they want implemented -- even if they don't explicitly say 'requirements'. If the user is about to start coding a feature and there are no requirements yet, proactively suggest using this skill first. Requirements come before code. Always.

★ 1
QuinntyneBrown
QuinntyneBrown/quinntyne-brown-studio

writing-html-mocks

Write static HTML mocks in docs/mocks/ for EVERY page, dialog and notification of a product in EVERY state (default, loading, empty, error, invalid, busy, success, no-results, forbidden, stacked...), responsive, light and dark, keyboard-accessible, with real copy and a coverage matrix. Use this skill BEFORE writing any frontend code, component, template, view or page; whenever the user says mock, mockup, wireframe, prototype, UI, UX, screen, layout, dialog, modal, toast, banner, empty/error/loading state, "what should this look like", "show me the UI", or describes a feature with a visible result; and whenever docs/specs or docs/detailed-designs exist but docs/mocks does not. Also use it to add missing states to existing mocks. Mocks come before implementation: if asked for frontend code with no mocks, say so and offer this first. Pair with extracting-design-systems to turn finished mocks into docs/design-system/.

★ 1
QuinntyneBrown
QuinntyneBrown/quinntyne-brown-studio

writing-feature-prompts

Write a ready-to-run implementation prompt for a feature request or a bug fix in the current repository, save it outside the repository and open it in a text editor (Notepad on Windows). A feature prompt drives mocks, design system, requirements, detailed design, estimate update and incremental acceptance-test-driven implementation end to end without stopping; a bug-fix prompt drives reproduce, root cause, fix and documentation alignment. Use whenever the user asks to "create a prompt", "write a prompt for this feature" or "for this bug", wants a "prompt to build X" or "prompt to fix Y", or asks to open a prompt in Notepad.

★ 1
QuinntyneBrown
QuinntyneBrown/quinntyne-brown-studio

writing-design-documents

Create software design documents and architecture write-ups from existing L1/L2 requirements in docs/specs/. Use for detailed designs organized by subsystem and feature, with requirement traceability and rendered PlantUML C4, class, and sequence diagrams in docs/detailed-designs/.

★ 1
QuinntyneBrown
QuinntyneBrown/quinntyne-brown-studio

writing-agent-instructions

Writes the agent instruction files a repository needs so coding agents know how to work in it - AGENTS.md plus the CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md pointers - generated from a description of what the project shall be, for a project that does not exist yet. Use this whenever someone mentions AGENTS.md, CLAUDE.md, GEMINI.md, copilot-instructions, "agent instructions", "agent context files", "coding agent guidance", or asks to set up, scaffold, bootstrap, or initialise the conventions for a new project or repository. Use it too when someone describes a project they are about to start and wants an agent to follow its conventions, even if they never name any of these files - if they are standing at an empty directory describing what they intend to build, this is the skill.

★ 1