@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,85 @@
1
+ ---
2
+ name: fluent-cli-retailer
3
+ description: Manage Fluent retailer lifecycle via CLI. Use for creating and listing retailers, validating profile context, and safely preparing retailer admin access for module/workflow operations.
4
+ user-invocable: true
5
+ allowed-tools: Bash, Read, Write, Edit, Glob, Grep
6
+ argument-hint: <create|list> [retailer-ref] [--profile name]
7
+ ---
8
+
9
+ # CLI Retailer Operations
10
+
11
+ Create and inspect retailers with Fluent CLI, and ensure follow-up context is valid for deployments.
12
+
13
+ ## When to Use
14
+
15
+ - New retailer setup
16
+ - Listing retailers under a profile/account
17
+ - Preparing context before module install or workflow operations
18
+
19
+ ## Core Commands
20
+
21
+ Check available syntax first:
22
+
23
+ ```bash
24
+ fluent retailer --help
25
+ ```
26
+
27
+ ### Create retailer
28
+
29
+ ```bash
30
+ fluent retailer create <retailer-ref> \
31
+ --email <retailer-admin-email> \
32
+ --profile <profile-name>
33
+ ```
34
+
35
+ ### List retailers (local configs)
36
+
37
+ ```bash
38
+ fluent retailer list
39
+ ```
40
+
41
+ Note: `retailer list` takes NO flags — it lists all locally configured retailers across all profiles.
42
+
43
+ ### List retailers (remote, via profile)
44
+
45
+ ```bash
46
+ fluent profile retailers <profile-name>
47
+ ```
48
+
49
+ ### Manual retailer registration
50
+
51
+ When the CLI doesn't know about a retailer (e.g., `workflow list` fails with "retailer does not exist"), you can register it manually:
52
+
53
+ ```bash
54
+ fluent profile update <profile-name> --retailer <retailer-ref> --id <retailer-id>
55
+ ```
56
+
57
+ Or create the file directly:
58
+ ```json
59
+ // ~/.fluentcommerce/<profile>/retailer.<retailer-ref>.json
60
+ { "id": "<id>", "ref": "<retailer-ref>", "user": "<username>" }
61
+ ```
62
+
63
+ ## Post-Create Validation
64
+
65
+ 1. Confirm retailer appears in `fluent retailer list`.
66
+ 2. Set active context:
67
+
68
+ ```bash
69
+ fluent profile use <profile-name> --retailer <retailer-ref>
70
+ fluent profile active
71
+ ```
72
+
73
+ 3. Proceed with module config/install only after active retailer is correct.
74
+
75
+ ## Important Operational Note
76
+
77
+ Prefer CLI retailer creation for full operational setup. Avoid ad-hoc GraphQL retailer creation for bootstrap flows because downstream behavior can diverge from CLI-created retailer expectations.
78
+
79
+ ## Troubleshooting
80
+
81
+ | Issue | Likely Cause | Fix |
82
+ |---|---|---|
83
+ | Retailer create fails auth | Wrong profile credentials | Verify profile and retry with correct account admin |
84
+ | Retailer not visible | Wrong profile/account | Re-check profile and rerun list |
85
+ | Subsequent module commands fail | Active retailer not set | Run `fluent profile use ... --retailer ...` |
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: fluent-cli-settings
3
+ description: Manage Fluent CLI settings operations. Use for listing and reading settings by profile/retailer context, wildcard filtering, and validating missing/incorrect setting values before or after module/workflow changes.
4
+ user-invocable: true
5
+ allowed-tools: Bash, Read, Write, Edit, Glob, Grep
6
+ argument-hint: <list|get> [setting-name-or-pattern] [--profile name] [--retailer ref]
7
+ ---
8
+
9
+ # CLI Settings Operations
10
+
11
+ Read and validate Fluent settings using CLI commands, with profile/retailer context safety checks.
12
+
13
+ ## When to Use
14
+
15
+ - User asks to list current settings
16
+ - User asks to read a specific setting key/value
17
+ - Validate required settings after module/workflow deployment
18
+ - Compare settings across environments via profile+retailer context
19
+
20
+ ## Prerequisites
21
+
22
+ - Active or provided profile
23
+ - Retailer context for retailer-scoped settings
24
+
25
+ Always verify context first:
26
+
27
+ ```bash
28
+ fluent profile active
29
+ ```
30
+
31
+ ## Core Commands
32
+
33
+ Use command help first if your CLI build differs:
34
+
35
+ ```bash
36
+ fluent setting --help
37
+ ```
38
+
39
+ ### List settings (summary view)
40
+
41
+ ```bash
42
+ fluent setting list -p <profile-name> -r <retailer-ref>
43
+ ```
44
+
45
+ With wildcard filtering (SQL-style `%` wildcards, not glob):
46
+
47
+ ```bash
48
+ fluent setting list -p <profile-name> -r <retailer-ref> --name "%webhook%"
49
+ fluent setting list -p <profile-name> -r <retailer-ref> --name "%manifest%" --json
50
+ fluent setting list -p <profile-name> -r <retailer-ref> --context retailer
51
+ ```
52
+
53
+ | Flag | Description |
54
+ |------|-------------|
55
+ | `-n, --name` | Filter by name (`%` wildcards). Repeatable. |
56
+ | `-f, --first` | Limit results (disables auto-pagination) |
57
+ | `--context` | Filter: `account`, `retailer`, or `all` |
58
+ | `-j, --json` | Output as JSON (default: false) |
59
+
60
+ ### Get settings (full detail with values)
61
+
62
+ ```bash
63
+ fluent setting get -p <profile-name> -r <retailer-ref>
64
+ fluent setting get -p <profile-name> -r <retailer-ref> --name "%order%" --json
65
+ ```
66
+
67
+ | Flag | Description |
68
+ |------|-------------|
69
+ | `-n, --name` | Filter by name (`%` wildcards). Repeatable. |
70
+ | `-f, --first` | Limit results (disables auto-pagination) |
71
+ | `--context` | Filter: `account`, `retailer`, or `all` |
72
+ | `-j, --json` | Output as JSON (default: true) |
73
+
74
+ **Difference:** `list` = summary (name, context, type), `get` = full detail including `value` and `lobValue` (for JSON settings).
75
+
76
+ ## Validation Workflow
77
+
78
+ 1. `fluent setting list` for broad view.
79
+ 2. `fluent setting get` for each required key.
80
+ 3. Compare values with expected module/workflow config.
81
+ 4. Report missing keys and mismatches.
82
+
83
+ Suggested output format:
84
+
85
+ ```
86
+ Setting: webhook.order.created
87
+ Status: FOUND
88
+ Value: https://...
89
+ Context: retailer=<retailer-ref>
90
+ ```
91
+
92
+ ## Common Checks
93
+
94
+ - Webhook endpoints
95
+ - Carrier defaults
96
+ - Consignment prefixes
97
+ - Feature flags
98
+ - Cancellation reason sources
99
+
100
+ ## Troubleshooting
101
+
102
+ | Issue | Likely Cause | Fix |
103
+ |---|---|---|
104
+ | Empty list | Wrong profile/retailer context | Verify `fluent profile active` and rerun with explicit `--profile/--retailer` |
105
+ | Setting not found | Key mismatch or wrong scope | Check exact name/case and target retailer |
106
+ | Unexpected value | Drift between environments | Compare with source env and re-apply expected config |