@fluentcommerce/ai-skills 0.1.0 → 0.3.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.
Potentially problematic release.
This version of @fluentcommerce/ai-skills might be problematic. Click here for more details.
- package/README.md +866 -622
- package/bin/cli.mjs +2112 -1973
- package/content/cli/agents/fluent-cli/agent.json +149 -149
- package/content/cli/agents/fluent-cli.md +132 -132
- package/content/cli/skills/fluent-bootstrap/SKILL.md +214 -181
- package/content/cli/skills/fluent-cli-index/SKILL.md +1 -1
- package/content/cli/skills/fluent-cli-mcp-cicd/SKILL.md +117 -1
- package/content/cli/skills/fluent-cli-reference/SKILL.md +1040 -1031
- package/content/cli/skills/fluent-cli-retailer/SKILL.md +27 -2
- package/content/cli/skills/fluent-cli-settings/SKILL.md +21 -1
- package/content/cli/skills/fluent-connect/SKILL.md +937 -886
- package/content/cli/skills/fluent-module-deploy/SKILL.md +63 -5
- package/content/cli/skills/fluent-profile/SKILL.md +73 -0
- package/content/cli/skills/fluent-workflow/SKILL.md +360 -310
- package/content/dev/agents/fluent-backend-dev/AGENT.md +58 -0
- package/content/dev/agents/fluent-backend-dev/agent.json +69 -0
- package/content/dev/agents/fluent-backend-dev.md +287 -0
- package/content/dev/agents/fluent-dev/AGENT.md +98 -0
- package/content/dev/agents/fluent-dev/agent.json +14 -2
- package/content/dev/agents/fluent-dev.md +194 -525
- package/content/dev/agents/fluent-frontend-dev/AGENT.md +63 -0
- package/content/dev/agents/fluent-frontend-dev/agent.json +52 -0
- package/content/dev/agents/fluent-frontend-dev.md +323 -0
- package/content/dev/skills/fluent-archive/SKILL.md +234 -0
- package/content/dev/skills/fluent-build/SKILL.md +312 -192
- package/content/dev/skills/fluent-connection-analysis/SKILL.md +422 -386
- package/content/dev/skills/fluent-custom-code/SKILL.md +15 -9
- package/content/dev/skills/fluent-data-module-scaffold/SKILL.md +19 -2
- package/content/dev/skills/fluent-e2e-test/SKILL.md +501 -394
- package/content/dev/skills/fluent-event-api/SKILL.md +962 -945
- package/content/dev/skills/fluent-feature-explain/SKILL.md +680 -603
- package/content/dev/skills/fluent-feature-plan/PLAN_TEMPLATE.md +27 -2
- package/content/dev/skills/fluent-feature-plan/SKILL.md +478 -227
- package/content/dev/skills/fluent-feature-status/SKILL.md +335 -0
- package/content/dev/skills/fluent-feedback/SKILL.md +221 -0
- package/content/dev/skills/fluent-implementation-map/SKILL.md +644 -0
- package/content/dev/skills/fluent-job-batch/SKILL.md +10 -0
- package/content/dev/skills/fluent-module-scaffold/SKILL.md +64 -2
- package/content/dev/skills/fluent-module-validate/SKILL.md +778 -775
- package/content/dev/skills/fluent-mystique-analyze/SKILL.md +817 -0
- package/content/dev/skills/fluent-mystique-builder/COMPONENT_TEMPLATE.md +81 -0
- package/content/dev/skills/fluent-mystique-builder/README.md +63 -0
- package/content/dev/skills/fluent-mystique-builder/SKILL.md +1294 -0
- package/content/dev/skills/fluent-mystique-builder/components/INDEX.md +92 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.accordion.md +48 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.action.field.fulfilmentpack.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.action.field.multiparcel.md +21 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.action.field.returnitems.md +21 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.action.field.wavepick.md +21 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.action.inline.md +24 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.activity.entity.md +25 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.analytics.viz.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.attribute.column.md +111 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.attribute.json.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.attribute.jsoneditor.md +54 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.attribute.locationId.md +51 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.attribute.retailerId.md +52 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.button.bar.md +57 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.button.print.download.md +53 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.button.print.inline.compatibility.md +60 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.button.print.inline.md +53 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.button.print.md +24 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.button.print.pick.md +61 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.buttons.add.reject.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.card.attribute.md +73 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.card.attributes.grid.md +40 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.card.image.md +37 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.card.map.point.md +24 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.card.multi.md +79 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.card.product.md +27 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.chart.area.md +34 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.chart.area.wrapper.feed.md +98 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.chart.bar.md +52 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.chart.bar.wrapper.source.md +104 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.chart.gauge.md +28 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.chart.gauge.wrapper.threshold.md +118 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.chart.line.md +32 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.conditional.md +62 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.dashboard.threshold.md +65 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.daterange.wrapper.forwarder.md +56 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.drawer.button.md +21 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.event.detail.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.events.search.md +21 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.field.daterange.md +83 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.field.filterComplex.md +106 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.field.intrange.md +82 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.field.multistring.md +50 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.filterPanel.md +53 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.json.editor.md +22 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.json.viewer.md +21 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.list.customAction.md +79 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.list.md +116 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.list.wrapper.bppmetrics.md +69 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.list.wrapper.feed.md +65 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.list.wrapper.source.md +64 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.modal.button.addItem.md +60 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.modal.button.md +21 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.mutation.inline.md +88 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.mystique.collapsible.attributes.md +83 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.mystique.collapsible.text.md +33 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.mystique.link.md +30 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.order.itemDetails.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.order.shipmentDetails.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.page.filter.select.md +87 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.page.md +64 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.page.refresh.md +48 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.page.section.column.md +71 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.page.section.header.md +61 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.page.section.md +59 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.page.wizard.md +45 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.page.wizard.summary.md +56 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.progress.circular.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.provider.graphql.md +71 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.quantity.list.md +87 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.repeater.md +56 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.reports.ipuipc.md +54 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.return.rowExpansion.md +19 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.scanner.barcode.md +21 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.scanner.barcodeFilter.md +72 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.scanner.camera.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.settingForm.md +64 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.sourcing.profile.drawer.button.md +19 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.sourcing.profile.modal.button.md +64 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.sourcing.strategy.modal.button.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.stepper.md +20 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.tab.content.md +56 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.tabs.card.md +64 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.tabs.md +69 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.tile.metric.md +73 -0
- package/content/dev/skills/fluent-mystique-builder/components/fc.workflow.provider.md +77 -0
- package/content/dev/skills/fluent-mystique-builder/validate-docs.ps1 +260 -0
- package/content/dev/skills/fluent-mystique-scaffold/SKILL.md +1830 -0
- package/content/dev/skills/fluent-mystique-validate/SKILL.md +646 -0
- package/content/dev/skills/fluent-pre-deploy-check/SKILL.md +1144 -1108
- package/content/dev/skills/fluent-retailer-config/SKILL.md +1162 -1111
- package/content/dev/skills/fluent-rollback/SKILL.md +387 -0
- package/content/dev/skills/fluent-rule-scaffold/SKILL.md +515 -385
- package/content/dev/skills/fluent-scope-decompose/SKILL.md +1123 -1021
- package/content/dev/skills/fluent-session-audit-export/SKILL.md +880 -632
- package/content/dev/skills/fluent-session-summary/SKILL.md +320 -195
- package/content/dev/skills/fluent-settings/SKILL.md +160 -1
- package/content/dev/skills/fluent-source-onboard/SKILL.md +31 -3
- package/content/dev/skills/fluent-sourcing/SKILL.md +1185 -0
- package/content/dev/skills/fluent-system-monitoring/SKILL.md +771 -767
- package/content/dev/skills/fluent-test-data/SKILL.md +514 -513
- package/content/dev/skills/fluent-trace/SKILL.md +1169 -1143
- package/content/dev/skills/fluent-transition-api/SKILL.md +364 -346
- package/content/dev/skills/fluent-use-case-discover/SKILL.md +593 -0
- package/content/dev/skills/fluent-use-case-discover/SPEC_TEMPLATE.md +281 -0
- package/content/dev/skills/fluent-version-manage/SKILL.md +53 -2
- package/content/dev/skills/fluent-workflow-analyzer/SKILL.md +995 -959
- package/content/dev/skills/fluent-workflow-builder/SKILL.md +668 -319
- package/content/dev/skills/fluent-workflow-deploy/SKILL.md +480 -267
- package/content/dev/skills/fluent-workspace-tree/SKILL.md +281 -0
- package/content/mcp-extn/agents/fluent-mcp.md +133 -69
- package/content/mcp-extn/skills/fluent-mcp-tools/SKILL.md +812 -461
- package/content/mcp-official/agents/fluent-mcp-core.md +91 -91
- package/content/mcp-official/skills/fluent-mcp-core/SKILL.md +94 -94
- package/content/rfl/skills/fluent-rfl-assess/SKILL.md +172 -172
- package/docs/CAPABILITY_MAP.md +106 -77
- package/docs/DEPLOYMENT_PROMOTION_RUNBOOK.md +218 -0
- package/docs/DESIGN-implementation-map.md +698 -0
- package/docs/DEV_WORKFLOW.md +814 -802
- package/docs/FLOW_RUN.md +142 -142
- package/docs/GETTING_STARTED.md +427 -0
- package/docs/USE_CASES.md +909 -52
- package/metadata.json +184 -156
- package/package.json +3 -2
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
# Getting Started with Fluent AI Skills
|
|
2
|
+
|
|
3
|
+
A hands-on walkthrough for first-time users of `@fluentcommerce/ai-skills`. Follow along to go from zero to productive in under 10 minutes, then build a complete feature end-to-end.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [1. Prerequisites](#1-prerequisites)
|
|
10
|
+
- [2. Install and Connect (5 Minutes to Productive)](#2-install-and-connect-5-minutes-to-productive)
|
|
11
|
+
- [3. Your First Task: Understanding What is Built](#3-your-first-task-understanding-what-is-built)
|
|
12
|
+
- [4. Your First Debug: Finding Why an Order is Stuck](#4-your-first-debug-finding-why-an-order-is-stuck)
|
|
13
|
+
- [5. Building a Feature End-to-End (The Full Lifecycle)](#5-building-a-feature-end-to-end-the-full-lifecycle)
|
|
14
|
+
- [6. Quick Tasks (No Feature Lifecycle)](#6-quick-tasks-no-feature-lifecycle)
|
|
15
|
+
- [7. Resuming Work Across Sessions](#7-resuming-work-across-sessions)
|
|
16
|
+
- [8. The Approval Gate (How the AI Asks Permission)](#8-the-approval-gate-how-the-ai-asks-permission)
|
|
17
|
+
- [9. Quick Reference: Common Prompts](#9-quick-reference-common-prompts)
|
|
18
|
+
- [10. Troubleshooting](#10-troubleshooting)
|
|
19
|
+
- [11. Next Steps](#11-next-steps)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 1. Prerequisites
|
|
24
|
+
|
|
25
|
+
| Requirement | How to check |
|
|
26
|
+
|-------------|-------------|
|
|
27
|
+
| Node.js 18+ | `node --version` |
|
|
28
|
+
| Fluent CLI installed | `fluent --version` (install with `npm i -g @fluentcommerce/cli`) |
|
|
29
|
+
| A Fluent Commerce account | Base URL, credentials, and a retailer to work with |
|
|
30
|
+
| A Fluent CLI profile configured | `fluent auth login -p YOUR_PROFILE` |
|
|
31
|
+
| Claude Code (or another supported IDE) | Primary target; Cursor, Copilot, Windsurf, Codex, Gemini also supported |
|
|
32
|
+
|
|
33
|
+
See the [README](../README.md) for full installation options and supported targets.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 2. Install and Connect (5 Minutes to Productive)
|
|
38
|
+
|
|
39
|
+
Three commands get you from nothing to a connected, skill-enabled workspace.
|
|
40
|
+
|
|
41
|
+
**Step 1 -- Install skills into your IDE:**
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx @fluentcommerce/ai-skills install
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Copies Fluent-specific skill files and agent definitions into your IDE's native format. For Claude Code, files go to `~/.claude/agents/` and `~/.claude/skills/`.
|
|
48
|
+
|
|
49
|
+
**Step 2 -- Configure MCP server connections:**
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npx @fluentcommerce/ai-skills mcp-setup --profile YOUR_PROFILE
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Generates a `.mcp.json` in your project root with entries for the official Fluent CLI MCP server and the extension MCP server. These give the AI live access to your Fluent environment -- GraphQL, events, settings, deployments.
|
|
56
|
+
|
|
57
|
+
**Step 3 -- Connect to your account** (in Claude Code):
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
/fluent-connect
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Discovers CLI profiles, selects the retailer, downloads all workflows, scans source code, decompiles deployed JARs, builds a rule inventory, and persists workspace state. After this, the AI has full context about your implementation.
|
|
64
|
+
|
|
65
|
+
**Workspace after connect:**
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
accounts/<PROFILE>/
|
|
69
|
+
SOURCE/ <-- cloned or discovered source repos
|
|
70
|
+
workflows/<RETAILER>/ <-- downloaded workflow JSONs
|
|
71
|
+
ORDER__HD.json
|
|
72
|
+
workflow-context.json <-- download metadata
|
|
73
|
+
analysis/ <-- generated artifacts
|
|
74
|
+
workspace-state.json <-- cached state
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 3. Your First Task: Understanding What is Built
|
|
80
|
+
|
|
81
|
+
**Type this:**
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
Explain how Home Delivery works end-to-end
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**What the AI does:** Reads all workflow JSONs under `accounts/<PROFILE>/workflows/<RETAILER>/`, queries the live environment for deployed rules via `plugin.list`, maps state machines for each entity (ORDER, FULFILMENT_CHOICE, FULFILMENT), cross-references settings and webhooks, and generates Mermaid diagrams.
|
|
88
|
+
|
|
89
|
+
**What is created:**
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
accounts/<PROFILE>/features/home-delivery/
|
|
93
|
+
architecture.md <-- Feature Architecture Document with diagrams, rules, settings
|
|
94
|
+
status.json <-- { "status": "DISCOVERY", "architecture": true }
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Open `architecture.md` to find state machine diagrams, cross-entity sequence diagrams, a rules table explaining what each ruleset does, settings dependencies with live values, and integration points (webhooks, carrier APIs, WMS). This is read-only -- no planning gate, no environment changes.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 4. Your First Debug: Finding Why an Order is Stuck
|
|
102
|
+
|
|
103
|
+
**Type this:**
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Why is order HD-12345 stuck in BOOKED?
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**What the AI does:** Queries event history for `HD-12345` via `event.list`, inspects recent events with `event.flowInspect` for rule execution details, checks for NO_MATCH conditions and rule exceptions, cross-references the workflow definition, and presents root cause analysis with remediation.
|
|
110
|
+
|
|
111
|
+
**Example investigation flow:**
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
event.list(entityRef: "HD-12345")
|
|
115
|
+
--> last event: "OrderBooked"
|
|
116
|
+
event.flowInspect(eventId: "...")
|
|
117
|
+
--> ruleset "on.booked.allocate" matched, but rule "AllocateFromNetwork"
|
|
118
|
+
threw NullPointerException
|
|
119
|
+
Root cause: No fulfilment locations in the retailer's network
|
|
120
|
+
Remediation: Create locations via /fluent-retailer-config, re-send event
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
The AI provides actionable next steps -- not just the diagnosis but what to do about it.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## 5. Building a Feature End-to-End (The Full Lifecycle)
|
|
128
|
+
|
|
129
|
+
We will build a **return order** feature from requirements through deployment. Each step shows what to type, what happens, and what is created.
|
|
130
|
+
|
|
131
|
+
### Step 1: Gather Requirements
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
Help me define use cases for return orders
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Launches an interactive requirements wizard. Asks about triggers, business rules, entities, and edge cases. Produces a Business Spec at `accounts/<PROFILE>/features/return-order/spec.md` with `status.json` tracking the lifecycle. The AI presents the spec for review -- say `"approved"` to lock it.
|
|
138
|
+
|
|
139
|
+
### Step 2: Plan the Feature
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
Plan the return order feature
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Reads the approved spec, analyzes existing workflows and rules, and produces an 18-section plan with Mermaid diagrams, rules inventory, workflow state machines, settings, risk assessment, and test plan. Created at `accounts/<PROFILE>/features/return-order/plan.md`.
|
|
146
|
+
|
|
147
|
+
### Step 3: Approve the Plan
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
Approved
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Marks the plan as approved. `status.json` now looks like this:
|
|
154
|
+
|
|
155
|
+
```json
|
|
156
|
+
{
|
|
157
|
+
"$schema": "feature-status-v1",
|
|
158
|
+
"feature": "return-order",
|
|
159
|
+
"retailer": "HM_TEST",
|
|
160
|
+
"status": "APPROVED",
|
|
161
|
+
"spec": "APPROVED",
|
|
162
|
+
"plan": "APPROVED",
|
|
163
|
+
"planRevision": 1,
|
|
164
|
+
"architecture": false,
|
|
165
|
+
"next": "/fluent-module-scaffold"
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
| Field | Meaning |
|
|
170
|
+
|-------|---------|
|
|
171
|
+
| `status` | Overall progress: DISCOVERY -> PLANNING -> APPROVED -> IN_PROGRESS -> VERIFIED -> ARCHIVED |
|
|
172
|
+
| `spec` / `plan` | Each artifact tracks its own state: null -> DRAFT -> APPROVED |
|
|
173
|
+
| `planRevision` | Version counter -- increments if plan is revised |
|
|
174
|
+
| `next` | Which skill the AI runs next (auto-determined) |
|
|
175
|
+
|
|
176
|
+
### Step 4: Scaffold the Module
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
Scaffold the module
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Creates a Maven project skeleton at `accounts/<PROFILE>/SOURCE/fc-module-hm-returns/` with `pom.xml`, `module.json`, and source directories.
|
|
183
|
+
|
|
184
|
+
### Step 5: Create the Rules
|
|
185
|
+
|
|
186
|
+
```
|
|
187
|
+
Create the rules from the plan
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Scaffolds Java rule classes with pseudo logic from the plan, generates test classes, and registers rules in `module.json`:
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
accounts/<PROFILE>/SOURCE/fc-module-hm-returns/
|
|
194
|
+
plugins/rules/hm-returns/
|
|
195
|
+
src/main/java/.../ValidateReturnWindow.java
|
|
196
|
+
src/main/java/.../CreateReturnFulfilment.java
|
|
197
|
+
src/main/java/.../CalculateRefundAmount.java
|
|
198
|
+
src/test/java/.../ValidateReturnWindowTest.java
|
|
199
|
+
src/test/java/.../CreateReturnFulfilmentTest.java
|
|
200
|
+
src/test/java/.../CalculateRefundAmountTest.java
|
|
201
|
+
resources/module.json <-- rules registered here
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Step 6: Build the Workflow
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
Build the workflow from the plan
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Constructs the workflow JSON with statuses, rulesets, rules, and event triggers. Validates with `/fluent-workflow-analyzer` for orphaned rulesets and trigger conflicts. Created at `accounts/<PROFILE>/workflows/HM_TEST/RETURN_ORDER__DEFAULT.json`.
|
|
211
|
+
|
|
212
|
+
### Step 7: Build the Module
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
Build the module
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
Runs module validation, then Maven build. Produces `accounts/<PROFILE>/SOURCE/fc-module-hm-returns/dist/fc-module-hm-returns-1.0.0.zip`.
|
|
219
|
+
|
|
220
|
+
### Step 8: Run Pre-Deploy Checks
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
Run pre-deploy checks
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Executes 26 quality gates across 8 phases -- module structure, rule registrations, workflow references, settings, version consistency. Produces a GO/NO-GO report at `accounts/<PROFILE>/reports/pre-deploy/hm-returns-pre-deploy.json`.
|
|
227
|
+
|
|
228
|
+
### Step 9: Deploy
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
Deploy to HM_TEST
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Deploys the module ZIP, then uploads the workflow JSON. Confirms each step before executing. Module `fc-module-hm-returns` and workflow `RETURN_ORDER__DEFAULT` are now live.
|
|
235
|
+
|
|
236
|
+
### Step 10: Run E2E Tests
|
|
237
|
+
|
|
238
|
+
```
|
|
239
|
+
Run E2E test
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
Creates test entities, sends events, polls for expected status transitions, reports pass/fail per scenario from the plan's test plan.
|
|
243
|
+
|
|
244
|
+
**Final workspace layout:**
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
accounts/<PROFILE>/
|
|
248
|
+
features/return-order/
|
|
249
|
+
status.json <-- status: VERIFIED
|
|
250
|
+
spec.md <-- business requirements
|
|
251
|
+
plan.md <-- approved plan
|
|
252
|
+
SOURCE/fc-module-hm-returns/
|
|
253
|
+
resources/module.json <-- rule registrations
|
|
254
|
+
plugins/rules/hm-returns/
|
|
255
|
+
src/main/java/.../ValidateReturnWindow.java
|
|
256
|
+
src/main/java/.../CreateReturnFulfilment.java
|
|
257
|
+
src/main/java/.../CalculateRefundAmount.java
|
|
258
|
+
src/test/java/... <-- matching tests
|
|
259
|
+
dist/fc-module-hm-returns-1.0.0.zip <-- built module
|
|
260
|
+
workflows/HM_TEST/
|
|
261
|
+
RETURN_ORDER__DEFAULT.json <-- deployed workflow
|
|
262
|
+
reports/pre-deploy/
|
|
263
|
+
hm-returns-pre-deploy.json <-- quality gate results
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## 6. Quick Tasks (No Feature Lifecycle)
|
|
269
|
+
|
|
270
|
+
Not everything requires the full lifecycle. One-off tasks use standalone plan files in `accounts/<PROFILE>/tasks/`.
|
|
271
|
+
|
|
272
|
+
**Scaffold a single rule:**
|
|
273
|
+
|
|
274
|
+
```
|
|
275
|
+
Create a rule called CancelOrderRule that cancels an order and notifies the customer
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
Creates a task plan at `accounts/<PROFILE>/tasks/2026-02-24-rule-scaffold-cancel-order.md`, presents it for approval, then scaffolds the Java class and test into the appropriate module.
|
|
279
|
+
|
|
280
|
+
**Deploy a single workflow:**
|
|
281
|
+
|
|
282
|
+
```
|
|
283
|
+
Deploy ORDER__HD to HM_TEST
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
Runs pre-deploy checks, confirms the target, and uploads the workflow JSON directly. No feature directory created.
|
|
287
|
+
|
|
288
|
+
**Audit settings:**
|
|
289
|
+
|
|
290
|
+
```
|
|
291
|
+
Audit settings for ORDER__HD
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
Reads the workflow, identifies settings references, queries live values, and reports missing, unexpected, or unused settings. Read-only -- nothing changed.
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## 7. Resuming Work Across Sessions
|
|
299
|
+
|
|
300
|
+
The AI persists progress in `status.json` files and reads them to resume where you left off.
|
|
301
|
+
|
|
302
|
+
**Check what is in progress:**
|
|
303
|
+
|
|
304
|
+
```
|
|
305
|
+
What features are in progress?
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
Scans `accounts/<PROFILE>/features/*/status.json` for any feature not yet `VERIFIED` or `ARCHIVED`.
|
|
309
|
+
|
|
310
|
+
**Resume a feature:**
|
|
311
|
+
|
|
312
|
+
```
|
|
313
|
+
Continue working on return orders
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
The AI reads `accounts/<PROFILE>/features/return-order/status.json`, finds the `next` field (e.g., `"/fluent-build"`), and picks up from that step:
|
|
317
|
+
|
|
318
|
+
```
|
|
319
|
+
AI reads status.json --> status: IN_PROGRESS, next: /fluent-build
|
|
320
|
+
AI: "The return order feature has an approved plan. Rules are scaffolded.
|
|
321
|
+
Next step is to build the module. Shall I proceed?"
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
## 8. The Approval Gate (How the AI Asks Permission)
|
|
327
|
+
|
|
328
|
+
The AI never makes changes without asking first:
|
|
329
|
+
|
|
330
|
+
1. **Presents a plan** -- structured markdown with diagrams, rules, risks, and test plan
|
|
331
|
+
2. **Waits for review** -- you can ask questions, request changes, or reject
|
|
332
|
+
3. **You approve** -- say `"approved"`, `"yes"`, `"go ahead"`, or `"do it"`
|
|
333
|
+
4. **Implementation begins** -- the AI follows the plan step by step
|
|
334
|
+
|
|
335
|
+
**Triggers the gate:** Any change to code, workflows, settings, or the live environment.
|
|
336
|
+
|
|
337
|
+
**Skips the gate:** Read-only operations (explain, trace, analyze, audit, diagnose).
|
|
338
|
+
|
|
339
|
+
**Override:** Say `"just do it"` or `"skip planning"` to bypass the gate entirely (logged as user override).
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## 9. Quick Reference: Common Prompts
|
|
344
|
+
|
|
345
|
+
| I want to... | Say this |
|
|
346
|
+
|--------------|---------|
|
|
347
|
+
| Connect to my Fluent account | `/fluent-connect` |
|
|
348
|
+
| Understand an existing feature | `"Explain how Home Delivery works end-to-end"` |
|
|
349
|
+
| Gather requirements for a new feature | `"Help me define use cases for curbside pickup"` |
|
|
350
|
+
| Plan a multi-artifact feature | `"Plan the curbside pickup feature"` |
|
|
351
|
+
| Debug a stuck order | `"Why is order HD-001 stuck in BOOKED?"` |
|
|
352
|
+
| Scaffold a new module | `"Scaffold a new module called hm-returns"` |
|
|
353
|
+
| Scaffold a new rule | `"Create a rule called ValidateReturnWindow"` |
|
|
354
|
+
| Build a workflow from a plan | `"Build the workflow from the plan"` |
|
|
355
|
+
| Analyze a workflow for issues | `"Analyze ORDER__HD for orphaned rulesets"` |
|
|
356
|
+
| Build and package a module | `"Build the hm-extensions module"` |
|
|
357
|
+
| Run pre-deploy quality gates | `"Run pre-deploy checks for hm-returns"` |
|
|
358
|
+
| Deploy a module | `"Deploy hm-returns to HM_TEST"` |
|
|
359
|
+
| Deploy a workflow | `"Deploy ORDER__HD to HM_TEST"` |
|
|
360
|
+
| Run end-to-end tests | `"Run E2E test for the return order flow"` |
|
|
361
|
+
| Audit settings for a workflow | `"What settings are missing for ORDER__HD?"` |
|
|
362
|
+
| Check what is in progress | `"What features are in progress?"` |
|
|
363
|
+
| Resume a previous feature | `"Continue working on return orders"` |
|
|
364
|
+
| Check event health | `"Show event failure rates for the last hour"` |
|
|
365
|
+
| Create test data | `"Create a test HD order"` |
|
|
366
|
+
| See what skills ran this session | `"What skills ran? Show the decision chain"` |
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
## 10. Troubleshooting
|
|
371
|
+
|
|
372
|
+
### MCP tools not working
|
|
373
|
+
|
|
374
|
+
**Symptom:** The AI cannot reach the Fluent environment, or tool calls return connection errors.
|
|
375
|
+
|
|
376
|
+
**Fix:**
|
|
377
|
+
1. Check that `.mcp.json` exists in your project root with valid entries
|
|
378
|
+
2. Re-run `npx @fluentcommerce/ai-skills mcp-setup --profile YOUR_PROFILE`
|
|
379
|
+
3. Restart your IDE -- MCP servers initialize at startup
|
|
380
|
+
4. Verify your profile: `fluent auth verify -p YOUR_PROFILE`
|
|
381
|
+
|
|
382
|
+
### No workflows found
|
|
383
|
+
|
|
384
|
+
**Symptom:** The AI reports no workflows available for analysis.
|
|
385
|
+
|
|
386
|
+
**Fix:**
|
|
387
|
+
1. Run `/fluent-connect` to download workflows from the live environment
|
|
388
|
+
2. Or manually: `fluent workflow download -p YOUR_PROFILE -r YOUR_RETAILER -w all -o accounts/YOUR_PROFILE/workflows/YOUR_RETAILER/`
|
|
389
|
+
3. Check `accounts/<PROFILE>/workflows/<RETAILER>/` for `*.json` files
|
|
390
|
+
|
|
391
|
+
### "Plan required" error
|
|
392
|
+
|
|
393
|
+
**Symptom:** The AI refuses to scaffold, build, or deploy and says a plan is required.
|
|
394
|
+
|
|
395
|
+
**Fix:** The approval gate is working as intended. Either:
|
|
396
|
+
- Say `"Plan the <feature-name> feature"` to generate a plan, then `"approved"`
|
|
397
|
+
- Say `"just do it"` to bypass the gate (logged as override)
|
|
398
|
+
|
|
399
|
+
### Rule not found in workflow
|
|
400
|
+
|
|
401
|
+
**Symptom:** A workflow references a custom rule the environment does not recognize.
|
|
402
|
+
|
|
403
|
+
**Fix:** Deploy the module before the workflow:
|
|
404
|
+
1. `"Build the hm-returns module"` -- compile and package
|
|
405
|
+
2. `"Deploy hm-returns to HM_TEST"` -- install on the account
|
|
406
|
+
3. `"Deploy RETURN_ORDER__DEFAULT to HM_TEST"` -- now the rules are available
|
|
407
|
+
|
|
408
|
+
### Skills not loading after install
|
|
409
|
+
|
|
410
|
+
**Symptom:** The AI does not recognize Fluent commands or slash commands.
|
|
411
|
+
|
|
412
|
+
**Fix:**
|
|
413
|
+
1. Verify: `npx @fluentcommerce/ai-skills status`
|
|
414
|
+
2. Restart your IDE -- skills load at startup
|
|
415
|
+
3. For Claude Code, check that `~/.claude/` has content
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
## 11. Next Steps
|
|
420
|
+
|
|
421
|
+
| Resource | What it covers |
|
|
422
|
+
|----------|---------------|
|
|
423
|
+
| [USE_CASES.md](USE_CASES.md) | 21 detailed scenarios from onboarding to go-live readiness |
|
|
424
|
+
| [DEV_WORKFLOW.md](DEV_WORKFLOW.md) | The full autonomous development protocol (analyze, plan, build, deploy, test loop) |
|
|
425
|
+
| [README.md](../README.md) | CLI reference, all install options, supported targets, MCP setup details |
|
|
426
|
+
| [CAPABILITY_MAP.md](CAPABILITY_MAP.md) | Which skill owns which capability -- the definitive routing guide |
|
|
427
|
+
| [FLOW_RUN.md](FLOW_RUN.md) | Automated diagnostics and guarded deployment execution |
|