@fluentcommerce/ai-skills 0.1.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 (60) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +622 -0
  3. package/bin/cli.mjs +1973 -0
  4. package/content/cli/agents/fluent-cli/agent.json +149 -0
  5. package/content/cli/agents/fluent-cli.md +132 -0
  6. package/content/cli/skills/fluent-bootstrap/SKILL.md +181 -0
  7. package/content/cli/skills/fluent-cli-index/SKILL.md +63 -0
  8. package/content/cli/skills/fluent-cli-mcp-cicd/SKILL.md +77 -0
  9. package/content/cli/skills/fluent-cli-reference/SKILL.md +1031 -0
  10. package/content/cli/skills/fluent-cli-retailer/SKILL.md +85 -0
  11. package/content/cli/skills/fluent-cli-settings/SKILL.md +106 -0
  12. package/content/cli/skills/fluent-connect/SKILL.md +886 -0
  13. package/content/cli/skills/fluent-module-deploy/SKILL.md +349 -0
  14. package/content/cli/skills/fluent-profile/SKILL.md +180 -0
  15. package/content/cli/skills/fluent-workflow/SKILL.md +310 -0
  16. package/content/dev/agents/fluent-dev/agent.json +88 -0
  17. package/content/dev/agents/fluent-dev.md +525 -0
  18. package/content/dev/reference-modules/catalog.json +4754 -0
  19. package/content/dev/skills/fluent-build/SKILL.md +192 -0
  20. package/content/dev/skills/fluent-connection-analysis/SKILL.md +386 -0
  21. package/content/dev/skills/fluent-custom-code/SKILL.md +895 -0
  22. package/content/dev/skills/fluent-data-module-scaffold/SKILL.md +714 -0
  23. package/content/dev/skills/fluent-e2e-test/SKILL.md +394 -0
  24. package/content/dev/skills/fluent-event-api/SKILL.md +945 -0
  25. package/content/dev/skills/fluent-feature-explain/SKILL.md +603 -0
  26. package/content/dev/skills/fluent-feature-plan/PLAN_TEMPLATE.md +695 -0
  27. package/content/dev/skills/fluent-feature-plan/SKILL.md +227 -0
  28. package/content/dev/skills/fluent-job-batch/SKILL.md +138 -0
  29. package/content/dev/skills/fluent-mermaid-validate/SKILL.md +86 -0
  30. package/content/dev/skills/fluent-module-scaffold/SKILL.md +1928 -0
  31. package/content/dev/skills/fluent-module-validate/SKILL.md +775 -0
  32. package/content/dev/skills/fluent-pre-deploy-check/SKILL.md +1108 -0
  33. package/content/dev/skills/fluent-retailer-config/SKILL.md +1111 -0
  34. package/content/dev/skills/fluent-rule-scaffold/SKILL.md +385 -0
  35. package/content/dev/skills/fluent-scope-decompose/SKILL.md +1021 -0
  36. package/content/dev/skills/fluent-session-audit-export/SKILL.md +632 -0
  37. package/content/dev/skills/fluent-session-summary/SKILL.md +195 -0
  38. package/content/dev/skills/fluent-settings/SKILL.md +1058 -0
  39. package/content/dev/skills/fluent-source-onboard/SKILL.md +632 -0
  40. package/content/dev/skills/fluent-system-monitoring/SKILL.md +767 -0
  41. package/content/dev/skills/fluent-test-data/SKILL.md +513 -0
  42. package/content/dev/skills/fluent-trace/SKILL.md +1143 -0
  43. package/content/dev/skills/fluent-transition-api/SKILL.md +346 -0
  44. package/content/dev/skills/fluent-version-manage/SKILL.md +744 -0
  45. package/content/dev/skills/fluent-workflow-analyzer/SKILL.md +959 -0
  46. package/content/dev/skills/fluent-workflow-builder/SKILL.md +319 -0
  47. package/content/dev/skills/fluent-workflow-deploy/SKILL.md +267 -0
  48. package/content/mcp-extn/agents/fluent-mcp.md +69 -0
  49. package/content/mcp-extn/skills/fluent-mcp-tools/SKILL.md +461 -0
  50. package/content/mcp-official/agents/fluent-mcp-core.md +91 -0
  51. package/content/mcp-official/skills/fluent-mcp-core/SKILL.md +94 -0
  52. package/content/rfl/agents/fluent-rfl.md +56 -0
  53. package/content/rfl/skills/fluent-rfl-assess/SKILL.md +172 -0
  54. package/docs/CAPABILITY_MAP.md +77 -0
  55. package/docs/CLI_COVERAGE.md +47 -0
  56. package/docs/DEV_WORKFLOW.md +802 -0
  57. package/docs/FLOW_RUN.md +142 -0
  58. package/docs/USE_CASES.md +404 -0
  59. package/metadata.json +156 -0
  60. package/package.json +51 -0
@@ -0,0 +1,195 @@
1
+ ---
2
+ name: fluent-session-summary
3
+ description: Track and summarize all code and Fluent environment changes made during a session. Maintains a running change log and produces a structured audit report (Text or JSON). Triggers on "session summary", "what did we change", "change summary", "show changes", "export audit".
4
+ user-invocable: true
5
+ allowed-tools: Bash, Read, Write
6
+ argument-hint: [show|reset|export --json]
7
+ ---
8
+
9
+ # Session Change Tracking
10
+
11
+ Track ALL changes made during a session — both code modifications and Fluent Commerce environment mutations — and produce a structured audit summary on demand.
12
+
13
+ ## Behaviour
14
+
15
+ This is a **cross-cutting concern**, not a phase-specific skill. It applies alongside every other skill.
16
+
17
+ ### What to Track
18
+
19
+ **Fluent environment changes (live account):**
20
+ - GraphQL mutations executed (entity type, ref/id, fields changed)
21
+ - Workflows deployed or uploaded (name, version, retailer)
22
+ - Settings created or updated (key, context, value summary)
23
+ - Events sent via `event.send` (name, entity type, entity ref, sync/async, outcome)
24
+ - Modules deployed via CLI (name, version, retailer)
25
+ - Batch jobs created and sent (job name, entity type, record count, outcome)
26
+ - Entities created or updated (locations, networks, catalogues, carriers, users, orders, fulfilments, inventory positions, products, virtual catalogues, etc.)
27
+
28
+ **Code changes (local workspace):**
29
+ - Files created, modified, or deleted (path + brief description)
30
+ - Workflow JSON edits (ruleset added/removed, trigger changed, state added)
31
+ - Rule classes scaffolded or modified
32
+ - Git commits made (hash, message, repo)
33
+ - Git pushes (repo, branch, remote)
34
+
35
+ **Read-only operations are NOT tracked** — queries, downloads, analysis, introspection, event listing, and diagnostics are informational and do not change state.
36
+
37
+ ### When to Present
38
+
39
+ - When the user asks: "what did we change?", "summary", "show changes", "wrap up", or invokes `/fluent-session-summary`
40
+ - Proactively before ending a session that involved significant changes (3+ write operations)
41
+ - After completing a multi-step task (e.g., build-deploy-test cycle)
42
+
43
+ ### Text Summary Format (Default)
44
+
45
+ ```markdown
46
+ ## Session Change Summary
47
+
48
+ **Profile:** <PROFILE> | **Account:** <account> | **Retailer:** <RETAILER_REF> (ID <N>)
49
+ **Duration:** <first change time> - <last change time>
50
+
51
+ ### Environment Changes
52
+ | # | Action | Type | Ref / Key | Details |
53
+ |---|--------|------|-----------|---------|
54
+ | 1 | Created | Setting | WEBHOOK_ORDER_URL | context=RETAILER:5, value=https://... |
55
+ | 2 | Created | Order | HD_TEST_20260222_1 | type=HD, status=CREATED |
56
+ | 3 | Sent Event | CreateOrder | ORDER/HD_TEST_20260222_1 | async, SUCCESS |
57
+ | 4 | Mutation | Order | HD_TEST_20260222_1 | status CREATED -> BOOKED |
58
+ | 5 | Deployed | Workflow | ORDER::HD | v12 -> retailer HM_TEST |
59
+ | 6 | Deployed | Module | hm-extensions | v1.2.3 -> retailer HM_TEST |
60
+ | 7 | Batch | Product | job-12345 | 50 records, COMPLETE |
61
+
62
+ ### Code Changes
63
+ | # | Action | Path | Details |
64
+ |---|--------|------|---------|
65
+ | 1 | Modified | workflows/ORDER__HD.json | Added ruleset HandleCancellation |
66
+ | 2 | Created | src/.../CancelOrderRule.java | New rule class + test |
67
+ | 3 | Modified | resources/module.json | Registered CancelOrderRule |
68
+ | 4 | Committed | fluent-mcp-extn | abc1234 - feat: add cancel support |
69
+ | 5 | Pushed | fluent-mcp-extn | main -> origin/main |
70
+
71
+ ### Totals
72
+ | Category | Count |
73
+ |----------|-------|
74
+ | GraphQL mutations | N |
75
+ | Events sent | N |
76
+ | Settings changed | N |
77
+ | Workflows deployed | N |
78
+ | Modules deployed | N |
79
+ | Batch jobs | N |
80
+ | Files modified | N |
81
+ | Git commits | N |
82
+
83
+ ### Irreversible Actions
84
+ > List any destructive or hard-to-reverse changes here (entity deletions, workflow version overwrites, forced re-deploys). Flag prominently so the user is aware.
85
+ ```
86
+
87
+ ### JSON Export Format (`export --json`)
88
+
89
+ > **For compliance-grade exports** with traceability matrices, rollback commands, and external system mapping, use `/fluent-session-audit-export`. This quick JSON export is a lightweight alternative for simple session records.
90
+
91
+ When the user asks to "export audit" or runs with `export --json`, generate a JSON file (e.g., `session-audit-<TIMESTAMP>.json`) with this structure:
92
+
93
+ <!-- Validate Mermaid blocks per /fluent-mermaid-validate rules -->
94
+ ```mermaid
95
+ classDiagram
96
+ class SessionAudit {
97
+ String session_id
98
+ String timestamp
99
+ Target target
100
+ Changes changes
101
+ String summary
102
+ }
103
+ class Target {
104
+ String profile
105
+ String retailer
106
+ String account
107
+ }
108
+ class Changes {
109
+ CodeChange[] code
110
+ EnvChange[] environment
111
+ }
112
+ class CodeChange {
113
+ String timestamp
114
+ String action
115
+ String file
116
+ String description
117
+ }
118
+ class EnvChange {
119
+ String timestamp
120
+ String action
121
+ String type
122
+ String ref
123
+ String details
124
+ String outcome
125
+ }
126
+
127
+ SessionAudit *-- Target
128
+ SessionAudit *-- Changes
129
+ Changes *-- CodeChange
130
+ Changes *-- EnvChange
131
+ ```
132
+
133
+ ```json
134
+ {
135
+ "session_id": "UUID",
136
+ "timestamp": "ISO-8601",
137
+ "target": {
138
+ "profile": "PROFILE_NAME",
139
+ "retailer": "RETAILER_REF",
140
+ "account": "ACCOUNT_NAME"
141
+ },
142
+ "changes": {
143
+ "code": [
144
+ { "timestamp": "ISO", "action": "modified", "file": "path/to/file", "description": "Added ruleset" },
145
+ { "timestamp": "ISO", "action": "created", "file": "path/to/file", "description": "New rule class" }
146
+ ],
147
+ "environment": [
148
+ { "timestamp": "ISO", "action": "mutation", "type": "ORDER", "ref": "ORD-123", "details": "status -> BOOKED" },
149
+ { "timestamp": "ISO", "action": "event", "name": "ConfirmPick", "entity": "FULFILMENT", "ref": "FUL-123", "outcome": "SUCCESS" }
150
+ ]
151
+ },
152
+ "summary": "Brief text summary of the session goals and outcomes."
153
+ }
154
+ ```
155
+
156
+ ### Tracking Protocol
157
+
158
+ 1. **As changes happen:** After each write operation (mutation, event send, deploy, file edit, commit), mentally append it to the running log. Do not wait until the end to reconstruct.
159
+ 2. **On `/fluent-session-summary show`:** Present the full text table.
160
+ 3. **On `/fluent-session-summary export --json`:** Write the JSON artifact to the workspace root.
161
+ 4. **On `/fluent-session-summary reset`:** Clear the running log (start fresh, e.g., when switching accounts mid-session).
162
+ 5. **Group by account/retailer** if the session spans multiple profiles or retailers.
163
+ 6. **Include outcome** where known (SUCCESS, FAILED, NO_MATCH) — especially for events.
164
+ 7. **For mutations**, note the key fields changed rather than full payloads.
165
+ 8. **For workflow deploys**, note the version number deployed.
166
+
167
+ ### Integration with Other Skills
168
+
169
+ Every skill that performs write operations should contribute to this log:
170
+
171
+ | Skill | Tracked actions |
172
+ |-------|----------------|
173
+ | `fluent-workflow-builder` | Workflow JSON edits (local file changes) |
174
+ | `fluent-build` | Version bumps, module packaging |
175
+ | `fluent-module-deploy` | Module installs to retailers |
176
+ | `fluent-workflow-deploy` | Workflow uploads to retailers |
177
+ | `fluent-settings` | Setting create/update mutations |
178
+ | `fluent-retailer-config` | Entity creation (locations, networks, catalogues, etc.) |
179
+ | `fluent-test-data` | Test entity creation |
180
+ | `fluent-e2e-test` | Events sent, entities created during test |
181
+ | `fluent-rule-scaffold` | New Java classes and module.json changes |
182
+ | `fluent-job-batch` | Batch job creation, record sends |
183
+ | `fluent-trace` | Events sent during diagnostic re-fires |
184
+ | `fluent-custom-code` | Source code edits |
185
+ | `fluent-module-scaffold` | Module skeleton creation |
186
+ | `fluent-version-manage` | Version bumps, CHANGELOG updates, git tags |
187
+ | `fluent-pre-deploy-check` | Pre-deploy gate results |
188
+ | `fluent-session-audit-export` | Consumes same tracking data for compliance JSON |
189
+
190
+ ### Edge Cases
191
+
192
+ - **Dry runs:** `event.send` with `dryRun: true` and `graphql.introspect` are NOT tracked (no state change).
193
+ - **Failed writes:** Track with outcome=FAILED so the user knows what was attempted.
194
+ - **Multi-retailer sessions:** Group changes under separate retailer headers.
195
+ - **No changes made:** Report "No environment or code changes were made in this session."