dme-agent 7.4.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.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: dme-landing
3
+ description: >
4
+ Build dynamic high-conversion landing pages with functional motion and short copy.
5
+ Triggers: /dme-landing, landing page, marketing page, homepage, launch page.
6
+ ---
7
+
8
+ # DME Landing — Monster Mode
9
+
10
+ ## Job
11
+
12
+ 3s what/who · 10s trust · 30s CTA.
13
+
14
+ ## Modules (compose, don’t dump all)
15
+
16
+ nav · **hero (one message)** · proof · ≤3 steps · product demo · thin benefits · social proof · pricing · FAQ · final CTA · footer
17
+
18
+ ## Hero
19
+
20
+ - H1 concrete (6–10 words)
21
+ - Lead: **one** human sentence
22
+ - Primary CTA verb+object · secondary outline
23
+ - One protagonist: type OR image OR product UI — not all fighting
24
+
25
+ ## Dynamic (allowed)
26
+
27
+ scroll reveal 180–250ms · list stagger 30–50ms · sticky mobile CTA · persona tabs · number count-up if meaningful
28
+
29
+ ## Dynamic (banned)
30
+
31
+ blobs · mesh carnival · neon particles · endless feature carousel · typing loop · noisy autoplay
32
+
33
+ ## Features
34
+
35
+ Prefer numbered steps or `border-b` list.
36
+ If cards: title ≤5 words + **one line body**. No 6 icon-card spam.
37
+
38
+ ## Anchors
39
+
40
+ Apple editorial (consumer) · Fumadocs (docs/OSS) · Split tech (devtool)
41
+
42
+ ## shadcn
43
+
44
+ navigation-menu, button, badge, accordion, tabs, separator, sheet, dialog, avatar, card (lean)
45
+
46
+ ## Deliver
47
+
48
+ Brief (offer, audience, anchor, CTA) → code → subtraction (copy killed).
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: dme-research
3
+ description: >
4
+ Design research references (dashboards, landings, figma keywords, DNA).
5
+ Triggers: /dme-research, design references, visual research, figma dashboard.
6
+ ---
7
+
8
+ # DME Research
9
+
10
+ If MCP `design-research` exists: design_search, design_images, design_dna, design_compare.
11
+
12
+ Else: use web search for references, extract DNA (density, type, color, structure), map to shadcn.
13
+
14
+ Never pixel-copy. Output anchor + ≤6 DNA bullets + component list, then implement.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: dme-shadcn
3
+ description: >
4
+ Force shadcn/ui-first implementation. Stop reinventing Button/Input/Dialog.
5
+ Triggers: /dme-shadcn, shadcn, add component, ui primitive.
6
+ ---
7
+
8
+ # DME shadcn First
9
+
10
+ Map UI → `npx shadcn@latest add …` → CSS variables → compose domain blocks.
11
+
12
+ Never hand-roll atoms that exist. Customize via tokens, className, cva, asChild.
13
+
14
+ Card is allowed as primitive; DME still forbids text-bloat inside cards.
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: dme-ux
3
+ description: >
4
+ Human-centered UX doctrine for non-developers. Microcopy, flows, forms,
5
+ onboarding, errors, accessibility. Triggers: /dme-ux, UX, usabilidade,
6
+ microcopy, onboarding, empty state, formulário.
7
+ ---
8
+
9
+ # DME UX — Humans First
10
+
11
+ ## Default user
12
+
13
+ Not a developer. Scans. Fears mistakes. Wants the next step obvious.
14
+
15
+ ## Laws
16
+
17
+ 1. Recognition over recall
18
+ 2. Immediate feedback (<150ms state)
19
+ 3. Prevent errors; confirm destructive
20
+ 4. Easy exit / undo
21
+ 5. Progressive disclosure
22
+ 6. Consistent patterns
23
+ 7. A11y: contrast, focus, 44px targets, labeled inputs
24
+ 8. Button = real verb
25
+ 9. Full states: empty · loading · partial · success · error · offline
26
+ 10. First-minute magic: one valuable action
27
+
28
+ ## Microcopy caps
29
+
30
+ | Element | Max |
31
+ |---|---|
32
+ | Field label | 3 words |
33
+ | Helper | 1 line |
34
+ | Card body | 1–2 lines |
35
+ | Toast | 1 line |
36
+ | Empty | title + 1 line + CTA |
37
+ | Hero lead | 1 sentence |
38
+
39
+ ## Translate errors
40
+
41
+ Dev message → human cause + next action. Never dump stack traces.
42
+
43
+ ## Forms
44
+
45
+ One column · external labels · inline errors · primary at end · autosave if long.
46
+
47
+ ## Onboarding
48
+
49
+ Value → account → one essential setup → first success. No 12-tooltip tours.
50
+
51
+ ## Output when reviewing UX
52
+
53
+ Friction list · copy rewrites · state gaps · mobile issues · priority fixes.
package/bin/dme.mjs ADDED
@@ -0,0 +1,144 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * DME Agent CLI — bootstrap + manage Neominimal Identity Engine 7.4
4
+ */
5
+
6
+ import { banner, colors as c, info, fail, hr } from "../src/ui.mjs";
7
+ import { installDme, doctor, uninstall } from "../src/install.mjs";
8
+ import { getTargets } from "../src/targets.mjs";
9
+ import fs from "node:fs";
10
+ import path from "node:path";
11
+ import { fileURLToPath } from "node:url";
12
+
13
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
14
+ const pkg = JSON.parse(
15
+ fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8")
16
+ );
17
+
18
+ const args = process.argv.slice(2);
19
+ const cmd = (args[0] || "help").toLowerCase();
20
+
21
+ function parseFlags(argv) {
22
+ const flags = {
23
+ targets: [],
24
+ dryRun: false,
25
+ noProject: false,
26
+ force: false,
27
+ };
28
+ for (let i = 0; i < argv.length; i++) {
29
+ const a = argv[i];
30
+ if (a === "--dry-run") flags.dryRun = true;
31
+ else if (a === "--no-project") flags.noProject = true;
32
+ else if (a === "--force") flags.force = true;
33
+ else if (a === "--targets" || a === "-t") {
34
+ const v = argv[++i] || "";
35
+ flags.targets = v.split(",").map((s) => s.trim()).filter(Boolean);
36
+ } else if (a.startsWith("--targets=")) {
37
+ flags.targets = a
38
+ .slice(10)
39
+ .split(",")
40
+ .map((s) => s.trim())
41
+ .filter(Boolean);
42
+ }
43
+ }
44
+ return flags;
45
+ }
46
+
47
+ function help() {
48
+ console.log(banner(pkg.version));
49
+ console.log(`${c.bold}Usage${c.reset}
50
+ dme <command> [options]
51
+
52
+ ${c.bold}Commands${c.reset}
53
+ ${c.yellow}install${c.reset} Bootstrap DME 7.4 into all AI CLIs (default)
54
+ ${c.yellow}update${c.reset} Re-sync assets (alias of install)
55
+ ${c.yellow}doctor${c.reset} Verify what is installed
56
+ ${c.yellow}uninstall${c.reset} Remove DME files / merged blocks
57
+ ${c.yellow}list${c.reset} List supported targets
58
+ ${c.yellow}path${c.reset} Print package asset path
59
+ ${c.yellow}version${c.reset} Print version
60
+ ${c.yellow}help${c.reset} This screen
61
+
62
+ ${c.bold}Options${c.reset}
63
+ --targets claude,cursor,codex,zed,grok,all
64
+ --dry-run
65
+ --no-project Skip cwd project install
66
+ --force
67
+
68
+ ${c.bold}Examples${c.reset}
69
+ ${c.dim}npx dme-agent install${c.reset}
70
+ ${c.dim}dme install --targets claude,cursor,grok${c.reset}
71
+ ${c.dim}dme doctor${c.reset}
72
+
73
+ ${c.bold}After install${c.reset}
74
+ Restart agent sessions. Use skills:
75
+ /dme-design /dme-dashboard /dme-landing /dme-ux /dme-shadcn
76
+ `);
77
+ }
78
+
79
+ async function main() {
80
+ const flags = parseFlags(args.slice(1));
81
+
82
+ switch (cmd) {
83
+ case "i":
84
+ case "install":
85
+ case "bootstrap":
86
+ case "update":
87
+ case "init": {
88
+ console.log(banner(pkg.version));
89
+ console.log(info("Bootstrapping Neominimal Identity Engine…"));
90
+ console.log(hr());
91
+ await installDme({
92
+ targets: flags.targets.length ? flags.targets : ["all"],
93
+ dryRun: flags.dryRun,
94
+ force: flags.force,
95
+ cwdProject: !flags.noProject,
96
+ });
97
+ break;
98
+ }
99
+ case "doctor":
100
+ case "status":
101
+ case "check":
102
+ console.log(banner(pkg.version));
103
+ doctor();
104
+ break;
105
+ case "uninstall":
106
+ case "remove":
107
+ console.log(banner(pkg.version));
108
+ uninstall();
109
+ break;
110
+ case "list":
111
+ case "targets":
112
+ console.log(banner(pkg.version));
113
+ for (const t of getTargets()) {
114
+ console.log(
115
+ ` ${c.yellow}${t.id.padEnd(14)}${c.reset} ${t.name}${t.optional ? c.dim + " (optional)" + c.reset : ""}`
116
+ );
117
+ }
118
+ console.log("");
119
+ break;
120
+ case "path":
121
+ case "assets":
122
+ console.log(path.join(__dirname, "..", "assets"));
123
+ break;
124
+ case "version":
125
+ case "-v":
126
+ case "--version":
127
+ console.log(pkg.version);
128
+ break;
129
+ case "help":
130
+ case "-h":
131
+ case "--help":
132
+ default:
133
+ if (cmd !== "help" && cmd !== "-h" && cmd !== "--help") {
134
+ console.log(fail(`Unknown command: ${cmd}`));
135
+ }
136
+ help();
137
+ process.exit(cmd === "help" || cmd === "-h" || cmd === "--help" ? 0 : 1);
138
+ }
139
+ }
140
+
141
+ main().catch((e) => {
142
+ console.error(fail(e?.stack || String(e)));
143
+ process.exit(1);
144
+ });
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "dme-agent",
3
+ "version": "7.4.1",
4
+ "description": "DME Agent 7.4 — Neominimal Identity Engine. Bootstrap design system prompts, skills & UX doctrine across Claude, Codex, Cursor, Zed, Grok, Windsurf and more.",
5
+ "type": "module",
6
+ "bin": {
7
+ "dme": "bin/dme.mjs",
8
+ "dme-agent": "bin/dme.mjs"
9
+ },
10
+ "files": [
11
+ "bin",
12
+ "src",
13
+ "assets",
14
+ "README.md",
15
+ "LICENSE"
16
+ ],
17
+ "scripts": {
18
+ "start": "node bin/dme.mjs",
19
+ "install:global": "npm link",
20
+ "postinstall": "node src/postinstall-hint.mjs"
21
+ },
22
+ "keywords": [
23
+ "dme",
24
+ "design-system",
25
+ "ui",
26
+ "ux",
27
+ "shadcn",
28
+ "claude",
29
+ "codex",
30
+ "cursor",
31
+ "zed",
32
+ "grok",
33
+ "agent",
34
+ "neominimal",
35
+ "dashboard",
36
+ "landing-page",
37
+ "bootstrap"
38
+ ],
39
+ "author": "AnThophicous / brennoleondesouza",
40
+ "license": "MIT",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "https://github.com/brennoleondesouza/dme-agent"
44
+ },
45
+ "homepage": "https://www.npmjs.com/package/dme-agent",
46
+ "engines": {
47
+ "node": ">=18"
48
+ },
49
+ "preferGlobal": true
50
+ }