agentleFS
JustineDevsJustineDevs/premortem/.cursor/rules/CO-STAR-UI-CREATOR/ui.md

premortem / CO-STAR-UI-CREATOR

Cursor rule2 starsChanged 5 months agoApache-2.0View on GitHub

This file is the universal actual command for the CO-STAR UI Creator. When invoked, the AI must decide and weigh which resource to use based on the user's intent, then apply it. Pre-action (mandatory): Before doing anything else, find and locate where the files referenced in this command live in the user’s workspace: - CO-STAR-PROMPT.md - CO-STAR-CREATOR.md - AGENT.mdc (optional but useful) Search the project (e.g. .cursor/rules/CO-STAR-UI-CREATOR/, .cursor/commands/ui-template/CO-STAR-UI-CREATOR/, or elsewhere). Once you have their paths (initial data), then proceed with…

The file

We split this ui.md into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Pre-action (mandatory): Before doing anything else, find and locate where the files referenced in this command live in the user’s workspace:

    line 9
  2. Very specific:

    Search the project (e.g. .cursor/rules/CO-STAR-UI-CREATOR/, .cursor/commands/ui-template/CO-STAR-UI-CREATOR/, or elsewhere).

    line 14
  3. Distinctive:

    Keywords/signals for CO-STAR-CREATOR.md: create my prompt, custom prompt, my own CO STAR, design system doc, template for our product, …

    line 35
  4. Very specific:

    If CO-STAR-PROMPT.md: Follow that file completely (role, C/O/S/T/A/R, scoped questions first, then plan, then implementation).

    line 42
  5. Distinctive:

    If CO-STAR-CREATOR.md: Follow that file to help the user define their custom CO STAR prompt (context, objective, style, tone, audience, …

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
ui.md

CO-STAR UI Creator — Universal Command

This file is the universal actual command for the CO-STAR UI Creator. When invoked, the AI must decide and weigh which resource to use based on the user's intent, then apply it.


Your task

Pre-action (mandatory): Before doing anything else, find and locate where the files referenced in this command live in the user’s workspace:

  • CO-STAR-PROMPT.md
  • CO-STAR-CREATOR.md
  • AGENT.mdc (optional but useful)

Search the project (e.g. .cursor/rules/CO-STAR-UI-CREATOR/, .cursor/commands/ui-template/CO-STAR-UI-CREATOR/, or elsewhere). Once you have their paths (initial data), then proceed with the steps below. Do not skip this step.

  1. Interpret the user's message or request.
  2. Decide which of the two resources below applies (and with what priority).
  3. Use that resource as the source of truth for your response. Do not mix or bypass it.

Decision: which resource to use

If the user wants to…Use thisWeight / priority
Build, implement, or change UI — components, pages, design system, integration with shadcn/Magic UI/etc., refactors, new featuresCO-STAR-PROMPT.mdPrimary. Follow its full flow (discovery → plan → implementation).
Create or customize a CO STAR prompt — their own prompt, design system, product goals, or CO-STAR template from scratchCO-STAR-CREATOR.mdPrimary. Use it to guide them through Context, Objective, Style, Tone, Audience, Response.
Unclear or mixed intent — e.g. “help with UI and also I want my own prompt”Weigh by main ask. If the main ask is implementation → CO-STAR-PROMPT.md first; if the main ask is “create my prompt” → CO-STAR-CREATOR.md first. Optionally do the second as a follow-up.

Weighing rules (how to decide)

  • Keywords/signals for CO-STAR-PROMPT.md: build, implement, add, refactor, component, page, section, design system, shadcn, Tailwind, React, Next.js, hero, dashboard, landing, integrate, copy-paste registry.
  • Keywords/signals for CO-STAR-CREATOR.md: create my prompt, custom prompt, my own CO STAR, design system doc, template for our product, tailor CO-STAR to our app, prompt from our goals.
  • Default when purely “help with UI” or “do the CO-STAR thing”: use CO-STAR-PROMPT.md.

After you choose

  • If CO-STAR-PROMPT.md: Follow that file completely (role, C/O/S/T/A/R, scoped questions first, then plan, then implementation). Do not skip steps.
  • If CO-STAR-CREATOR.md: Follow that file to help the user define their custom CO STAR prompt (context, objective, style, tone, audience, response format).

This file (ui.md) is the command; CO-STAR-PROMPT.md and CO-STAR-CREATOR.md are the resources you invoke based on your decision.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.