create-modoock-app 1.0.1 → 2.0.1
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 +68 -237
- package/dist/cli.js +112 -43
- package/package.json +22 -22
- package/template/.cursor/hooks/gate-ui-pack.mjs +108 -0
- package/template/.cursor/hooks.json +18 -0
- package/template/.cursor/rules/honey.mdc +11 -3
- package/template/AGENTS.md +13 -12
- package/template/README.md +225 -175
- package/template/app/(local)/components/page.tsx +3 -3
- package/template/app/(local)/design-system/page.tsx +2 -2
- package/template/components/layout/app-layout.tsx +17 -6
- package/template/components/layout/header.tsx +19 -1
- package/template/components/layout/side-nav.tsx +103 -30
- package/template/postcss.config.mjs +7 -7
- package/template/public/identity/full_logo_black.svg +26 -26
- package/template/public/identity/full_logo_color.svg +37 -37
- package/template/public/identity/full_logo_white.svg +33 -33
- package/template/public/identity/logo_icon_black.svg +5 -5
- package/template/public/identity/logo_icon_color.svg +12 -12
- package/template/public/identity/logo_icon_white.svg +12 -12
- package/template/components/ui/action-stack.tsx +0 -42
- package/template/components/ui/badge.tsx +0 -43
- package/template/components/ui/button.tsx +0 -104
- package/template/components/ui/icon.tsx +0 -78
- package/template/components/ui/index.ts +0 -28
- package/template/components/ui/input.tsx +0 -376
- package/template/components/ui/loader.tsx +0 -78
- package/template/components/ui/metric-bar.tsx +0 -49
- package/template/components/ui/modal.tsx +0 -177
- package/template/components/ui/select.tsx +0 -458
- package/template/components/ui/stepper.tsx +0 -96
- package/template/components/ui/tab.tsx +0 -85
- package/template/components/ui/user-table.tsx +0 -806
- package/template/knowledge-base/design-system/components/action-stack.mdc +0 -17
- package/template/knowledge-base/design-system/components/badges.mdc +0 -16
- package/template/knowledge-base/design-system/components/buttons.mdc +0 -21
- package/template/knowledge-base/design-system/components/detail-header.mdc +0 -17
- package/template/knowledge-base/design-system/components/dropdowns.mdc +0 -12
- package/template/knowledge-base/design-system/components/info-list.mdc +0 -17
- package/template/knowledge-base/design-system/components/inputs.mdc +0 -23
- package/template/knowledge-base/design-system/components/menu.mdc +0 -20
- package/template/knowledge-base/design-system/components/modals.mdc +0 -24
- package/template/knowledge-base/design-system/components/selects.mdc +0 -39
- package/template/knowledge-base/design-system/components/stepper.mdc +0 -18
- package/template/knowledge-base/design-system/components/tables.mdc +0 -59
- package/template/knowledge-base/design-system/components/tabs.mdc +0 -17
- package/template/knowledge-base/design-system/components.mdc +0 -91
- package/template/knowledge-base/design-system/tokens.mdc +0 -24
- package/template/knowledge-base/examples/bad/README.md +0 -8
- package/template/knowledge-base/examples/good/README.md +0 -13
- package/template/knowledge-base/metadata/catalog.yaml +0 -245
- package/template/knowledge-base/patterns/components/reuse-existing.mdc +0 -26
- package/template/knowledge-base/patterns/data-fetching/local-data.mdc +0 -20
- package/template/knowledge-base/patterns/layouts/app-shell.mdc +0 -20
- package/template/knowledge-base/patterns/pages/data-table-page.mdc +0 -31
- package/template/knowledge-base/patterns/pages/workflow-page.mdc +0 -27
- package/template/knowledge-base/rules/accessibility/responsive.mdc +0 -31
- package/template/knowledge-base/rules/architecture/layout.mdc +0 -52
- package/template/knowledge-base/rules/architecture/single-screen.mdc +0 -62
- package/template/knowledge-base/rules/code-quality/jsx.mdc +0 -19
- package/template/knowledge-base/rules/global/naming.mdc +0 -12
- package/template/knowledge-base/rules/global/technology.mdc +0 -19
- package/template/knowledge-base/rules/global/ui-copy.mdc +0 -20
- package/template/knowledge-base/rules/performance/client.mdc +0 -20
- package/template/knowledge-base/rules/ui/information-density.mdc +0 -36
- package/template/knowledge-base/rules/ui/interaction.mdc +0 -47
- package/template/knowledge-base/rules/ui/simple-ui.mdc +0 -58
- package/template/knowledge-base/validation/accessibility.mdc +0 -13
- package/template/knowledge-base/validation/architecture.mdc +0 -10
- package/template/knowledge-base/validation/ast-grep/do-what-brooooooklyn-said.yml +0 -15
- package/template/knowledge-base/validation/ast-grep/no-nested-links.yml +0 -12
- package/template/knowledge-base/validation/ast-grep/rewrite-svg-attribute.yml +0 -19
- package/template/knowledge-base/validation/code-quality.mdc +0 -18
- package/template/knowledge-base/validation/performance.mdc +0 -11
- package/template/knowledge-base/validation/ui.mdc +0 -26
package/template/AGENTS.md
CHANGED
|
@@ -13,7 +13,7 @@ This file is the canonical router. Product constraints live in `knowledge-base/`
|
|
|
13
13
|
| On demand | `description` matches the need | that `path`, then its `open:` |
|
|
14
14
|
| After coding | verification | `knowledge-base/validation/` for the change type |
|
|
15
15
|
|
|
16
|
-
Do not load the whole knowledge-base. `
|
|
16
|
+
Do not load the whole knowledge-base. Cursor hook denies writes under `app/` and `components/` until the UI pack (table above) is `Read` this conversation.
|
|
17
17
|
|
|
18
18
|
`.cursor/rules/honey.mdc` is required every turn for every agent (one file, do not copy, do not split). If it is already in context, do not re-open it. If it is not, open it once.
|
|
19
19
|
|
|
@@ -23,7 +23,6 @@ Do not load the whole knowledge-base. `load: ui` is an agent hint in `catalog.ya
|
|
|
23
23
|
knowledge-base/
|
|
24
24
|
├── rules/ # constraints (global, architecture, ui, accessibility, …)
|
|
25
25
|
├── patterns/ # how this repo solves a class of problem
|
|
26
|
-
├── examples/ # good/ and bad/
|
|
27
26
|
├── design-system/ # tokens + component constraints
|
|
28
27
|
├── validation/ # how to detect a violation
|
|
29
28
|
└── metadata/ # catalog.yaml — the need → path index
|
|
@@ -40,24 +39,26 @@ If no file covers the need, follow **New rules**. Missing `.mdc` for an existing
|
|
|
40
39
|
- Inspect the existing code. Reproduce a failure before fixing it. Change one thing at a time, then verify.
|
|
41
40
|
- Open the catalog paths that match the task and apply those files. Nothing else.
|
|
42
41
|
- Reuse and page composition: `knowledge-base/design-system/components.mdc`. Public APIs: `components/*/index.ts`.
|
|
43
|
-
-
|
|
44
|
-
- If a decision is not covered by the request or an existing rule, stop that part and ask. Do not assume preferences.
|
|
42
|
+
- Apply **Mandatory human validation**. Do not invent rules or unspecified behavior.
|
|
45
43
|
|
|
46
44
|
## Mandatory human validation
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
Do not invent. Code only what the prompt and existing rules already specify.
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
48
|
+
If you would generate a missing part, interpret an unclear idea, pick among options, or assume a preference — stop that part, ask the developer, wait. There is no checklist of cases. Anything the request did not decide is a question, including things the developer did not think to mention.
|
|
49
|
+
|
|
50
|
+
- Do not fill the gap with a "reasonable default" to finish the implementation.
|
|
51
|
+
- An existing pattern, a similar page, or "the usual way" does not authorize inventing the unspecified parts.
|
|
52
|
+
- Honey (fewer words, fewer lines) does not override this. Asking is cheaper than generating the wrong thing.
|
|
53
|
+
- Covered parts may proceed in the same turn. Uncovered parts stay paused until the developer answers.
|
|
54
|
+
- Yes / a chosen option: implement that part. No: leave it out.
|
|
55
|
+
- Do not replace a question with a weaker workaround (for example keeping a reusable UI piece in the page file so you do not have to ask).
|
|
56
|
+
|
|
57
|
+
When the question is a new reusable component in `components/ui/`, `components/layout/` or `components/shared/`, use this block (then wait):
|
|
54
58
|
- **What:** ComponentName
|
|
55
59
|
- **Where:** `components/ui` | `components/layout` | `components/shared`
|
|
56
60
|
- **Why:** existing `index.ts` exports that do not fit
|
|
57
61
|
- **Reuse:** one sentence (which other page would copy this JSX)
|
|
58
|
-
- Do not replace the question with a weaker workaround (for example keeping a reusable UI piece in the page file so you do not have to ask).
|
|
59
|
-
- After yes: implement in the same turn (create the component in `components/`, export it, wire the page). After no: stop that part.
|
|
60
|
-
- Distinguish what is requested, what the rules cover, and what is a new decision. Do not extend the scope. Suspend the uncovered part until the developer confirms.
|
|
61
62
|
|
|
62
63
|
## New rules
|
|
63
64
|
|