Sync .cursor from suite (autodev orchestrator + monorepo skills)

This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-18 22:03:55 +03:00
parent 06b47c17c3
commit 37427d7437
60 changed files with 4232 additions and 1728 deletions
+31
View File
@@ -33,6 +33,37 @@ End-to-end UI design workflow producing production-quality HTML+CSS mockups enti
- **Ask, don't assume**: when design direction is ambiguous, STOP and ask the user
- **One screen at a time**: generate individual screens, not entire applications at once
## Applicability Check
When invoked directly by a user (`/ui-design ...`), proceed — the user explicitly asked.
When invoked by an orchestrator (e.g. the autodev greenfield flow Step 4), first decide whether the project actually has UI work to do. The project IS a UI project if ANY of the following are true:
- `package.json` exists in the workspace root or any subdirectory
- `*.html`, `*.jsx`, or `*.tsx` files exist in the workspace
- `_docs/02_document/components/` contains a component whose `description.md` mentions UI, frontend, page, screen, dashboard, form, or view
- `_docs/02_document/architecture.md` mentions frontend, UI layer, SPA, or client-side rendering
- `_docs/01_solution/solution.md` mentions frontend, web interface, or user-facing UI
If none of the above match → return `outcome: skipped, reason: not-a-ui-project` to the caller and exit without running any phase.
If at least one matches → present using Choose format:
```
══════════════════════════════════════
DECISION REQUIRED: UI project detected — generate mockups?
══════════════════════════════════════
A) Generate UI mockups (recommended before decomposition)
B) Skip — proceed without mockups
══════════════════════════════════════
Recommendation: A — mockups before decomposition
produce better task specs for frontend components
══════════════════════════════════════
```
- If **A** → continue to Context Resolution below and run the workflow.
- If **B** → return `outcome: skipped, reason: user-declined` and exit.
## Context Resolution
Determine the operating mode based on invocation before any other logic runs.