@fluentcommerce/ai-skills 0.14.0 → 0.15.0

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.
Files changed (77) hide show
  1. package/README.md +3 -0
  2. package/bin/cli.mjs +198 -49
  3. package/content/cli/skills/fluent-bootstrap/SKILL.md +1 -1
  4. package/content/cli/skills/fluent-cli-mcp-cicd/SKILL.md +1 -1
  5. package/content/cli/skills/fluent-cli-reference/SKILL.md +1 -1
  6. package/content/cli/skills/fluent-cli-retailer/SKILL.md +1 -1
  7. package/content/cli/skills/fluent-connect/SKILL.md +1 -1
  8. package/content/cli/skills/fluent-workflow/SKILL.md +2 -1
  9. package/content/dev/agents/fluent-frontend-dev.md +1 -1
  10. package/content/dev/skills/fluent-account-snapshot/SKILL.md +1 -1
  11. package/content/dev/skills/fluent-archive/SKILL.md +2 -1
  12. package/content/dev/skills/fluent-build/SKILL.md +2 -2
  13. package/content/dev/skills/fluent-connection-analysis/SKILL.md +2 -1
  14. package/content/dev/skills/fluent-custom-code/SKILL.md +2 -1
  15. package/content/dev/skills/fluent-data-module-scaffold/SKILL.md +2 -1
  16. package/content/dev/skills/fluent-e2e-test/SKILL.md +1 -1
  17. package/content/dev/skills/fluent-entity-flow-diagnose/SKILL.md +2 -1
  18. package/content/dev/skills/fluent-event-api/SKILL.md +2 -1
  19. package/content/dev/skills/fluent-feature-explain/SKILL.md +2 -1
  20. package/content/dev/skills/fluent-feature-plan/SKILL.md +2 -1
  21. package/content/dev/skills/fluent-feature-status/SKILL.md +1 -1
  22. package/content/dev/skills/fluent-frontend-build/SKILL.md +1 -1
  23. package/content/dev/skills/fluent-frontend-readme/SKILL.md +2 -1
  24. package/content/dev/skills/fluent-frontend-review/SKILL.md +2 -1
  25. package/content/dev/skills/fluent-goal/SKILL.md +1 -1
  26. package/content/dev/skills/fluent-implementation-map/SKILL.md +1 -1
  27. package/content/dev/skills/fluent-inventory-catalog/SKILL.md +2 -2
  28. package/content/dev/skills/fluent-job-batch/SKILL.md +6 -3
  29. package/content/dev/skills/fluent-knowledge-init/SKILL.md +1 -1
  30. package/content/dev/skills/fluent-module-convert/SKILL.md +1 -1
  31. package/content/dev/skills/fluent-module-scaffold/SKILL.md +2 -1
  32. package/content/dev/skills/fluent-module-validate/SKILL.md +2 -1
  33. package/content/dev/skills/fluent-mystique-assess/SKILL.md +22 -6
  34. package/content/dev/skills/fluent-mystique-builder/SKILL.md +32 -1
  35. package/content/dev/skills/fluent-mystique-component/SKILL.md +1 -1
  36. package/content/dev/skills/fluent-mystique-diff/SKILL.md +1 -1
  37. package/content/dev/skills/fluent-mystique-preview/SKILL.md +19 -2
  38. package/content/dev/skills/fluent-mystique-scaffold/SKILL.md +12 -1
  39. package/content/dev/skills/fluent-mystique-sdk-reference/SKILL.md +2 -1
  40. package/content/dev/skills/fluent-pre-deploy-check/SKILL.md +3 -3
  41. package/content/dev/skills/fluent-retailer-config/SKILL.md +1 -1
  42. package/content/dev/skills/fluent-rollback/SKILL.md +1 -1
  43. package/content/dev/skills/fluent-rule-lookup/SKILL.md +2 -1
  44. package/content/dev/skills/fluent-rule-scaffold/SKILL.md +7 -6
  45. package/content/dev/skills/fluent-rule-test/SKILL.md +2 -1
  46. package/content/dev/skills/fluent-scope-plan/SKILL.md +1 -1
  47. package/content/dev/skills/fluent-session/SKILL.md +1 -1
  48. package/content/dev/skills/fluent-settings/SKILL.md +2 -2
  49. package/content/dev/skills/fluent-skill-observability/SKILL.md +1 -1
  50. package/content/dev/skills/fluent-sourcing/SKILL.md +38 -13
  51. package/content/dev/skills/fluent-system-monitoring/SKILL.md +1 -1
  52. package/content/dev/skills/fluent-test-data/SKILL.md +1 -1
  53. package/content/dev/skills/fluent-trace/SKILL.md +3 -2
  54. package/content/dev/skills/fluent-transition-api/SKILL.md +2 -1
  55. package/content/dev/skills/fluent-ui-record/SKILL.md +1 -1
  56. package/content/dev/skills/fluent-ui-test/SKILL.md +1 -1
  57. package/content/dev/skills/fluent-use-case-discover/SKILL.md +2 -2
  58. package/content/dev/skills/fluent-workflow-analyzer/SKILL.md +3 -2
  59. package/content/dev/skills/fluent-workspace-tree/SKILL.md +2 -1
  60. package/content/knowledge/platform/domain-model.md +1 -0
  61. package/content/knowledge/platform/workflow-json-structure.md +1 -1
  62. package/content/mcp-extn/skills/fluent-mcp-core/SKILL.md +2 -1
  63. package/content/mcp-extn/skills/fluent-mcp-tools/SKILL.md +3 -2
  64. package/content/rfl/skills/fluent-rfl-assess/SKILL.md +1 -1
  65. package/docs/02-prompt-guide.md +1 -1
  66. package/docs/03-use-cases.md +15 -13
  67. package/docs/04-onboarding-plan.md +1 -1
  68. package/docs/chrome-devtools-mcp-reference.md +34 -33
  69. package/docs/fluent-ai-skills-reference.md +10 -10
  70. package/metadata.json +1 -1
  71. package/package.json +6 -1
  72. package/scripts/postinstall.mjs +38 -0
  73. package/{content/dev/skills/fluent-trace/scripts/analyze-event-capture.mjs → tools/event-capture-analyzer.mjs} +3 -3
  74. package/tools/{generate-feature-dashboard.mjs → feature-dashboard.mjs} +2 -2
  75. package/tools/manifest-diff.mjs +1 -1
  76. package/{content/dev/skills/fluent-mystique-assess/validator.mjs → tools/manifest-validator.mjs} +2 -2
  77. package/tools/workflow-explainer.mjs +1021 -0
@@ -92,7 +92,7 @@ npx @fluentcommerce/ai-skills install --profile YOUR_PROFILE
92
92
  | **fluent-mcp** (official) | Official Fluent CLI MCP server — workflows and GraphQL |
93
93
  | **chrome-devtools** | Browser automation for UI testing (optional) |
94
94
 
95
- **Installable skill groups:** CLI (~10) · Dev (~50) · RFL (1) · MCP (2)
95
+ **Installable skill groups:** CLI (8) · Dev (52) · RFL (1) · MCP (2)
96
96
 
97
97
  **Supported IDE:** Claude Code (primary) and Codex (experimental skills-first flow)
98
98
 
@@ -232,7 +232,7 @@ Mention workflows/rules/Java → backend agent. Mention manifests/pages/UI → f
232
232
  | Group | Skills | What it provides |
233
233
  |-------|:------:|------------------|
234
234
  | `cli` | 8 | Fluent CLI command-family coverage: connect, profile, retailer, modules, workflows, MCP/CI-CD, bootstrap |
235
- | `dev` | 52 | **Backend:** workflow builder/analyzer, connection analysis, custom code, transition API, rule scaffold, rule test generation/repair, module scaffold/validate/build, source onboarding, trace, entity-flow diagnose, event API, system monitoring, batch, settings, deploy, workflow deploy, rollback. **Frontend:** mystique assess (validate + analyze), manifest builder, SDK scaffold/component/reference, manifest diff, frontend build (8 gates)/review (9 phases)/readme, UI test, UI record. **Cross-cutting:** feature planning, use-case discover, feature status/explain, implementation map, scope plan, E2E test, test data, session, sourcing, knowledge init, workspace tree, skill observability, account snapshot, goal |
235
+ | `dev` | 52 | **Backend:** workflow builder/analyzer, connection analysis, custom code, transition API, rule scaffold, rule test generation/repair, module scaffold/validate/build, source onboarding, trace, entity-flow diagnose, event API, system monitoring, batch, settings, deploy, workflow deploy, rollback. **Frontend:** mystique assess (validate + analyze), manifest builder, SDK scaffold/component/reference, manifest diff, frontend build (7 gates)/review (9 phases)/readme, UI test, UI record. **Cross-cutting:** feature planning, use-case discover, feature status/explain, implementation map, scope plan, E2E test, test data, session, sourcing, knowledge init, workspace tree, skill observability, account snapshot, goal |
236
236
  | `rfl` | 1 | Production readiness assessment — scored report across workflows, rules, settings, integrations |
237
237
  | `mcp-extn` | 2 | MCP extension tools reference (55+ tools in 15 categories) + official CLI MCP server reference |
238
238
 
@@ -556,7 +556,7 @@ Each feature lives in `accounts/<PROFILE>/features/<slug>/` with four canonical
556
556
  | 5. Create rules | "Create rules from the plan" | Java classes + tests | `*.java` + `*Test.java` |
557
557
  | 6. Build workflow | "Build the workflow" | Workflow JSON + validation | `<WORKFLOW>.json` |
558
558
  | 7. Build module | "Build the module" | Maven build + packaging | `dist/<module>.zip` |
559
- | 8. Pre-deploy checks | "Run pre-deploy checks" | 35+ quality gates | `reports/pre-deploy/*.json` |
559
+ | 8. Pre-deploy checks | "Run pre-deploy checks" | 37 quality gates | `reports/pre-deploy/*.json` |
560
560
  | 9. Deploy | "Deploy to MY_RETAILER" | Module + workflow deployment | Live environment changes |
561
561
  | 10. E2E test | "Run E2E test" | Create entities, fire events, assert | Test report |
562
562
 
@@ -588,10 +588,10 @@ graph LR
588
588
 
589
589
  A live HTML dashboard auto-starts at `http://localhost:3456` when feature work begins. It shows all features with status, spec/plan content rendered as HTML with Mermaid diagrams, file metadata, and session history. Features being actively updated show a pulsing indicator in the sidebar.
590
590
 
591
- Generated by `fluent-ai-skills/tools/generate-feature-dashboard.mjs` — zero dependencies, vendor libs bundled inline. Updates automatically via SSE when any feature file changes.
591
+ Generated by `fluent-ai-skills/tools/feature-dashboard.mjs` — zero dependencies, vendor libs bundled inline. Updates automatically via SSE when any feature file changes.
592
592
 
593
593
  **Prerequisites:**
594
- 1. **Vendor libs** — run `node fluent-ai-skills/tools/generate-feature-dashboard.mjs --setup` once. Downloads `marked.min.js` and `mermaid.min.js` to `fluent-ai-skills/tools/vendor/`.
594
+ 1. **Vendor libs** — run `node fluent-ai-skills/tools/feature-dashboard.mjs --setup` once. Downloads `marked.min.js` and `mermaid.min.js` to `fluent-ai-skills/tools/vendor/`.
595
595
  2. **Features directory** — at least one feature must exist under `accounts/<PROFILE>/features/` (created by `/fluent-use-case-discover`).
596
596
  3. **Node.js 18+** (20+ recommended).
597
597
 
@@ -612,16 +612,16 @@ Generated by `fluent-ai-skills/tools/generate-feature-dashboard.mjs` — zero de
612
612
 
613
613
  ```bash
614
614
  # One-time setup (download vendor libs)
615
- node fluent-ai-skills/tools/generate-feature-dashboard.mjs --setup
615
+ node fluent-ai-skills/tools/feature-dashboard.mjs --setup
616
616
 
617
617
  # Start live server (auto-refreshes on file changes)
618
- node fluent-ai-skills/tools/generate-feature-dashboard.mjs --profile ACME --serve --port 3456
618
+ node fluent-ai-skills/tools/feature-dashboard.mjs --profile ACME --serve --port 3456
619
619
 
620
620
  # Generate static HTML only (no server)
621
- node fluent-ai-skills/tools/generate-feature-dashboard.mjs --profile ACME
621
+ node fluent-ai-skills/tools/feature-dashboard.mjs --profile ACME
622
622
 
623
623
  # All profiles at once (static only)
624
- node fluent-ai-skills/tools/generate-feature-dashboard.mjs --all
624
+ node fluent-ai-skills/tools/feature-dashboard.mjs --all
625
625
  ```
626
626
 
627
627
  **Dashboard tabs per feature:** Status (lifecycle progress bar + gates + sessions), Spec (rendered markdown + Mermaid), Plan (rendered markdown + Mermaid), Architecture (diagrams), Feedback (skill success/failure metrics), Reports (embedded markdown + base64 screenshots), Files (file metadata).
@@ -1092,7 +1092,7 @@ Credentials must be set as **shell environment variables** — never in `.mcp.js
1092
1092
  | Manifest building & editing | `/fluent-mystique-builder` |
1093
1093
  | Manifest validation & analysis | `/fluent-mystique-assess` |
1094
1094
  | SDK component scaffolding | `/fluent-mystique-scaffold` |
1095
- | SDK build pipeline (8 gates) | `/fluent-frontend-build` |
1095
+ | SDK build pipeline (7 gates) | `/fluent-frontend-build` |
1096
1096
  | SDK code quality audit (9 phases) | `/fluent-frontend-review` |
1097
1097
  | SDK README generation | `/fluent-frontend-readme` |
1098
1098
  | Manifest CDN vs custom diff | `/fluent-mystique-diff` |
package/metadata.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.13.0",
2
+ "version": "0.14.0",
3
3
  "organization": "Fluent Commerce",
4
4
  "date": "March 2026",
5
5
  "package": "@fluentcommerce/ai-skills",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentcommerce/ai-skills",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "[Experimental] Fluent Commerce domain knowledge for Claude Code. Skills, agents, and MCP server configs for workflows, events, rules, and APIs.",
5
5
  "keywords": [
6
6
  "fluent-commerce",
@@ -56,6 +56,9 @@
56
56
  "eval:run:sandbox": "node evals/scripts/run-live-evals.mjs --suite runtime-live-sandbox --executor evals/executors/codex-live.mjs",
57
57
  "eval:run:tools": "FLUENT_EVAL_ENABLE_MCP=1 node evals/scripts/run-live-evals.mjs --suite tool-behavior --executor evals/executors/claude-live.mjs",
58
58
  "eval:report": "node evals/scripts/eval-report.mjs",
59
+ "eval:promptfoo:generate": "node evals/promptfoo/generate.mjs",
60
+ "eval:promptfoo": "node evals/promptfoo/generate.mjs && npx promptfoo eval -c evals/promptfoo/promptfooconfig.yaml",
61
+ "eval:promptfoo:view": "npx promptfoo view",
59
62
  "eval:playground": "node evals/playground.mjs",
60
63
  "eval:playground:dev": "node --watch evals/playground.mjs",
61
64
  "playground": "node evals/playground.mjs",
@@ -63,6 +66,7 @@
63
66
  "test:parallel": "node scripts/test-parallel.mjs",
64
67
  "test:parallel:quick": "node scripts/test-parallel.mjs --quick",
65
68
  "test": "npm run test:smoke && npm run test:pack && npm run test:unit && npm run test:evals:core",
69
+ "postinstall": "node scripts/postinstall.mjs || true",
66
70
  "prepublishOnly": "npm test"
67
71
  },
68
72
  "type": "module",
@@ -78,6 +82,7 @@
78
82
  "!content/**/.claude-plugin",
79
83
  "docs/",
80
84
  "lib/",
85
+ "scripts/postinstall.mjs",
81
86
  "tools/",
82
87
  "!tools/vendor/",
83
88
  "metadata.json",
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Post-install nudge — prints a one-time message after `npm install`.
5
+ * Does NOT auto-execute the install command (that writes to ~/.claude/ and
6
+ * should always be an explicit user action).
7
+ *
8
+ * Safe for CI: exits 0 unconditionally, prints to stderr so it doesn't
9
+ * pollute piped stdout, and skips entirely when CI env vars are set.
10
+ */
11
+
12
+ // Skip in CI — no human to read it
13
+ if (process.env.CI || process.env.CONTINUOUS_INTEGRATION || process.env.BUILD_NUMBER) {
14
+ process.exit(0);
15
+ }
16
+
17
+ const YELLOW = "\x1b[33m";
18
+ const CYAN = "\x1b[36m";
19
+ const BOLD = "\x1b[1m";
20
+ const RESET = "\x1b[0m";
21
+
22
+ console.error(`
23
+ ${YELLOW}┌──────────────────────────────────────────────────────────────┐
24
+ │ │
25
+ │ ${BOLD}@fluentcommerce/ai-skills${RESET}${YELLOW} installed. │
26
+ │ │
27
+ │ To activate skills in your coding assistant, run: │
28
+ │ │
29
+ │ ${CYAN}npx @fluentcommerce/ai-skills install${YELLOW} │
30
+ │ │
31
+ │ First time? Add a Fluent profile for full API access: │
32
+ │ │
33
+ │ ${CYAN}npx @fluentcommerce/ai-skills install --profile MYPROFILE${YELLOW} │
34
+ │ │
35
+ │ See all options: ${CYAN}npx @fluentcommerce/ai-skills --help${YELLOW} │
36
+ │ │
37
+ └──────────────────────────────────────────────────────────────┘${RESET}
38
+ `);
@@ -5,7 +5,7 @@ import path from "node:path";
5
5
 
6
6
  const USAGE = `
7
7
  Usage:
8
- node scripts/analyze-event-capture.mjs <capture.json> [more.json ...] [options]
8
+ node fluent-ai-skills/tools/event-capture-analyzer.mjs <capture.json> [more.json ...] [options]
9
9
 
10
10
  Options:
11
11
  --root-ref <ref> Filter to events in this root entity lineage
@@ -17,8 +17,8 @@ Options:
17
17
  --help Show this help
18
18
 
19
19
  Examples:
20
- node scripts/analyze-event-capture.mjs ORD-1.window.json --root-ref ORD-1
21
- node scripts/analyze-event-capture.mjs evt-123.event.json evt-123.window.json --root-ref ORD-1 --from 2026-03-25T10:00:00Z --to 2026-03-25T10:05:00Z --output ORD-1.metrics.json
20
+ node fluent-ai-skills/tools/event-capture-analyzer.mjs ORD-1.window.json --root-ref ORD-1
21
+ node fluent-ai-skills/tools/event-capture-analyzer.mjs evt-123.event.json evt-123.window.json --root-ref ORD-1 --from 2026-03-25T10:00:00Z --to 2026-03-25T10:05:00Z --output ORD-1.metrics.json
22
22
  `.trim();
23
23
 
24
24
  function fail(message) {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // fluent-ai-skills/tools/generate-feature-dashboard.mjs
2
+ // fluent-ai-skills/tools/feature-dashboard.mjs
3
3
  // Feature Lifecycle HTML Dashboard Generator
4
4
  // Zero npm dependencies — uses only Node.js built-ins
5
5
  // Reads feature data from accounts/<PROFILE>/features/ and produces a self-contained HTML dashboard
@@ -116,7 +116,7 @@ function checkVendor() {
116
116
  const marked = join(VENDOR_DIR, 'marked.min.js');
117
117
  const mermaid = join(VENDOR_DIR, 'mermaid.min.js');
118
118
  if (!existsSync(marked) || !existsSync(mermaid)) {
119
- console.error('Error: Vendor libs missing. Run: node fluent-ai-skills/tools/generate-feature-dashboard.mjs --setup');
119
+ console.error('Error: Vendor libs missing. Run: node fluent-ai-skills/tools/feature-dashboard.mjs --setup');
120
120
  process.exit(1);
121
121
  }
122
122
  return {
@@ -33,7 +33,7 @@ const ACCOUNTS_DIR = join(WORKSPACE_ROOT, 'accounts');
33
33
 
34
34
  const CDN_BASE = 'https://fluent.apps.fluentcommerce.com/_plugins';
35
35
 
36
- // ─── OOTB Component Registry (from fluent-mystique-validate/validator.mjs) ──
36
+ // ─── OOTB Component Registry (from tools/manifest-validator.mjs) ──
37
37
  const OOTB_COMPONENTS = new Set([
38
38
  // Layout & Container
39
39
  'fc.page','fc.page.wizard','fc.page.wizard.summary','fc.page.section',
@@ -5,7 +5,7 @@
5
5
  * Implements all 66 validation rules from SKILL.md across 6 phases.
6
6
  *
7
7
  * Usage:
8
- * node validator.mjs <manifest.json> [--strict] [--fix-suggestions] [--component <alias>] [--json]
8
+ * node fluent-ai-skills/tools/manifest-validator.mjs <manifest.json> [--strict] [--fix-suggestions] [--component <alias>] [--json]
9
9
  */
10
10
 
11
11
  import { readFileSync, readdirSync, statSync, writeFileSync } from 'fs';
@@ -1113,7 +1113,7 @@ const args = process.argv.slice(2);
1113
1113
  if (args.length === 0 || args.includes('--help')) {
1114
1114
  console.log(`Mystique Manifest Validator v1.0
1115
1115
 
1116
- Usage: node validator.mjs <manifest.json|directory> [options]
1116
+ Usage: node fluent-ai-skills/tools/manifest-validator.mjs <manifest.json|directory> [options]
1117
1117
 
1118
1118
  Options:
1119
1119
  --strict Treat MEDIUM/LOW as errors