@thinkingai/ae-cli 6.0.24 → 6.0.27

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 (130) hide show
  1. package/dist/{auth-A2XXG5K4.js → auth-7TQRGLBC.js} +10 -8
  2. package/dist/{auth-IDPKDFSY.js → auth-MEJ642P4.js} +2 -2
  3. package/dist/chunk-2NDGFQHW.js +190 -0
  4. package/dist/{chunk-NGJDCOYA.js → chunk-7QQ4233A.js} +3 -3
  5. package/dist/{chunk-PFJFZVCK.js → chunk-AJTH7LT3.js} +3 -2
  6. package/dist/{chunk-V5R5UIRM.js → chunk-BXMXMUD7.js} +65 -6
  7. package/dist/{chunk-AKORWVHJ.js → chunk-C4DH76LX.js} +1 -1
  8. package/dist/{chunk-NXJP4CES.js → chunk-GWZ5MYWE.js} +3 -3
  9. package/dist/{chunk-F3ZDMC2W.js → chunk-KCA6BA5D.js} +2 -2
  10. package/dist/{chunk-WXBCP6SD.js → chunk-KGJQCYVC.js} +1 -1
  11. package/dist/{chunk-FIT4CFIN.js → chunk-LG5YT7P7.js} +1 -1
  12. package/dist/{chunk-IDXW6MEJ.js → chunk-MDJGDI6K.js} +2 -2
  13. package/dist/{chunk-4FQ36OGO.js → chunk-R77JT7XD.js} +53 -6
  14. package/dist/{chunk-65DKFJZB.js → chunk-YCLVYFK7.js} +49 -6
  15. package/dist/{chunk-2OW2RENH.js → chunk-YNQFYBDB.js} +64 -6
  16. package/dist/{chunk-ONOA6DYB.js → chunk-ZAOL36CG.js} +1 -1
  17. package/dist/cli-token-TVQRSE46.js +18 -0
  18. package/dist/{client-7L735LVY.js → client-2643Z5AG.js} +3 -3
  19. package/dist/{config-SXD2JKSL.js → config-ZVPARN4R.js} +4 -9
  20. package/dist/index.js +24 -24
  21. package/dist/{metadata-QWUAX625.js → metadata-IPSPQBX3.js} +5 -5
  22. package/dist/{metadata-XWTEGEN2.js → metadata-N5REJ7R7.js} +5 -5
  23. package/dist/{model-3OVX42DA.js → model-T3KZJWLW.js} +2 -2
  24. package/dist/{raw-IANB4AV5.js → raw-OHSUK42D.js} +4 -4
  25. package/dist/{sync-4HQ3CXSK.js → sync-ULT5SECP.js} +3 -3
  26. package/dist/{te-agent-OYNNTJDU.js → te-agent-QLIVKRUN.js} +1146 -61
  27. package/dist/{te-analysis-CRPFK3LX.js → te-analysis-2U5EPXQC.js} +207 -69
  28. package/dist/{te-analysis-JX3V76OI.js → te-analysis-QMZ2UH7F.js} +207 -69
  29. package/dist/{te-audience-RO2IZOUC.js → te-audience-PVMKQAFH.js} +5 -5
  30. package/dist/{te-audience-77FGNG5E.js → te-audience-XMRMVD2V.js} +5 -5
  31. package/dist/{te-common-4TRJPRC5.js → te-common-CFGQXTFV.js} +5 -5
  32. package/dist/{te-common-PUXBUPOL.js → te-common-SDB3O2QG.js} +5 -5
  33. package/dist/{te-community-XKE526DS.js → te-community-6A7LKYUH.js} +5 -5
  34. package/dist/{te-community-NPDZQKMY.js → te-community-GMWFGILT.js} +5 -5
  35. package/dist/{te-dataops-PW74WP76.js → te-dataops-6LIPYNGH.js} +90 -68
  36. package/dist/{te-dataops-6KWLFNV4.js → te-dataops-Z53CTG2U.js} +90 -68
  37. package/dist/{te-engage-HTLMUN7G.js → te-engage-AGREUOW7.js} +30 -15
  38. package/dist/{te-engage-YPQIVF5H.js → te-engage-MIIUKY6M.js} +30 -15
  39. package/dist/{te-kb-DOGDQIU4.js → te-kb-KQJ53M3A.js} +4 -4
  40. package/dist/{te-meta-5ESSQ5B3.js → te-meta-QLANJ4B4.js} +5 -5
  41. package/dist/{te-meta-Z47X4VT3.js → te-meta-TOA6FWDE.js} +5 -5
  42. package/dist/{te-team-SOVKZIDD.js → te-team-TQGMNHQQ.js} +5 -5
  43. package/package.json +3 -1
  44. package/skills/ae-agent/SKILL.md +158 -189
  45. package/skills/ae-agent/references/accept-skill-share.md +39 -0
  46. package/skills/ae-agent/references/add-attachment.md +57 -0
  47. package/skills/ae-agent/references/add-mcp.md +75 -0
  48. package/skills/ae-agent/references/add-model.md +70 -0
  49. package/skills/ae-agent/references/add-skill.md +71 -0
  50. package/skills/ae-agent/references/approve-skill.md +41 -0
  51. package/skills/ae-agent/references/attachment-stats.md +50 -0
  52. package/skills/ae-agent/references/auto-provision-mcp-credentials.md +57 -0
  53. package/skills/ae-agent/references/cancel-skill-submission.md +39 -0
  54. package/skills/ae-agent/references/copy-skill.md +53 -0
  55. package/skills/ae-agent/references/create-agent.md +71 -0
  56. package/skills/ae-agent/references/create-automation.md +99 -0
  57. package/skills/ae-agent/references/del-agent.md +38 -0
  58. package/skills/ae-agent/references/del-attachment.md +35 -0
  59. package/skills/ae-agent/references/del-mcp.md +35 -0
  60. package/skills/ae-agent/references/del-model.md +37 -0
  61. package/skills/ae-agent/references/del-skill-asset.md +41 -0
  62. package/skills/ae-agent/references/del-skill-reference.md +41 -0
  63. package/skills/ae-agent/references/del-skill-script.md +41 -0
  64. package/skills/ae-agent/references/del-skill.md +36 -0
  65. package/skills/ae-agent/references/edit-skill.md +64 -0
  66. package/skills/ae-agent/references/get-agent.md +37 -0
  67. package/skills/ae-agent/references/get-skill-content.md +36 -0
  68. package/skills/ae-agent/references/list-agents.md +40 -0
  69. package/skills/ae-agent/references/list-attachments.md +42 -0
  70. package/skills/ae-agent/references/list-automations.md +41 -0
  71. package/skills/ae-agent/references/list-mcp-credentials.md +65 -0
  72. package/skills/ae-agent/references/list-mcp-market.md +58 -0
  73. package/skills/ae-agent/references/list-mcps.md +37 -0
  74. package/skills/ae-agent/references/list-models.md +38 -0
  75. package/skills/ae-agent/references/list-skill-assets.md +35 -0
  76. package/skills/ae-agent/references/list-skill-market.md +59 -0
  77. package/skills/ae-agent/references/list-skill-references.md +36 -0
  78. package/skills/ae-agent/references/list-skill-scripts.md +35 -0
  79. package/skills/ae-agent/references/list-skill-shares.md +49 -0
  80. package/skills/ae-agent/references/list-skill-submissions.md +45 -0
  81. package/skills/ae-agent/references/list-skills.md +37 -0
  82. package/skills/ae-agent/references/mcp-auth-disconnect.md +50 -0
  83. package/skills/ae-agent/references/mcp-auth-start.md +61 -0
  84. package/skills/ae-agent/references/mcp-auth-status.md +56 -0
  85. package/skills/ae-agent/references/mcp-stats.md +68 -0
  86. package/skills/ae-agent/references/mcp-token.md +63 -0
  87. package/skills/ae-agent/references/mcp-tools.md +55 -0
  88. package/skills/ae-agent/references/read-skill-asset.md +51 -0
  89. package/skills/ae-agent/references/read-skill-reference.md +50 -0
  90. package/skills/ae-agent/references/read-skill-script.md +51 -0
  91. package/skills/ae-agent/references/reject-skill-share.md +37 -0
  92. package/skills/ae-agent/references/reject-skill.md +42 -0
  93. package/skills/ae-agent/references/rescan-skills.md +44 -0
  94. package/skills/ae-agent/references/set-mcp-credential.md +67 -0
  95. package/skills/ae-agent/references/set-mcp-meta.md +52 -0
  96. package/skills/ae-agent/references/set-skill-meta.md +51 -0
  97. package/skills/ae-agent/references/share-skill.md +50 -0
  98. package/skills/ae-agent/references/submit-skill.md +51 -0
  99. package/skills/ae-agent/references/test-model.md +61 -0
  100. package/skills/ae-agent/references/toggle-mcp.md +39 -0
  101. package/skills/ae-agent/references/toggle-model.md +37 -0
  102. package/skills/ae-agent/references/toggle-skill.md +37 -0
  103. package/skills/ae-agent/references/update-agent.md +71 -0
  104. package/skills/ae-agent/references/update-automation.md +83 -0
  105. package/skills/ae-agent/references/update-mcp.md +79 -0
  106. package/skills/ae-agent/references/update-model.md +77 -0
  107. package/skills/ae-agent/references/upload-skill-asset.md +49 -0
  108. package/skills/ae-agent/references/upload-skill-reference.md +51 -0
  109. package/skills/ae-agent/references/upload-skill-script.md +49 -0
  110. package/skills/ae-agent/references/upload-skill.md +89 -0
  111. package/skills/ae-analysis/SKILL.md +4 -2
  112. package/skills/ae-analysis/references/analysis_gateway_assets.md +21 -6
  113. package/skills/ae-analysis/references/artifact_download.md +17 -0
  114. package/skills/ae-analysis/references/bi_panel_page_data_export.md +11 -1
  115. package/skills/ae-analysis/references/dashboard_copy.md +3 -1
  116. package/skills/ae-analysis/references/dashboard_daily_report_send.md +4 -2
  117. package/skills/ae-analysis/references/dashboard_daily_report_update.md +3 -1
  118. package/skills/ae-analysis/references/dashboard_definition_export.md +21 -3
  119. package/skills/ae-analysis/references/dashboard_report_data_export.md +11 -1
  120. package/skills/ae-analysis/references/project_space_create.md +1 -1
  121. package/skills/ae-analysis/references/run_inspect.md +22 -0
  122. package/skills/ae-dataops/references/dataops-flow-create.md +2 -2
  123. package/skills/ae-dataops/references/dataops-flow-monitor.md +3 -3
  124. package/skills/ae-dataops/references/dataops-integration.md +1 -0
  125. package/skills/ae-engage/references/flow-node-config-schema.md +32 -8
  126. package/skills/ae-engage/references/save-flow.md +65 -29
  127. package/skills/ae-engage/references/validate-flow-node-config.md +28 -10
  128. package/skills/ae-generate-tracking-plan/SKILL.md +9 -7
  129. package/dist/chunk-OCQPQYHZ.js +0 -105
  130. package/dist/cli-token-OZXHC3U2.js +0 -14
@@ -0,0 +1,99 @@
1
+ # agent +create-automation (Create Automation)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Automations / write**
6
+
7
+ ## Use Cases
8
+ - Create an Agent automation task that runs on a schedule (hourly / daily / weekly / monthly or cron).
9
+ - Returns the newly created automation object including its `id` and initial `status`.
10
+ - Automations are **enabled by default**; pass `--enabled false` only when the user explicitly asks to create the task without enabling it.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--name` and `--message` are required.
14
+ - A schedule is required: provide either `--cron` or a `--schedule-kind` (with its time/day fields). `--cron` and `--schedule-kind` are mutually exclusive.
15
+ - `--agent-id` and `--agent-name` are mutually exclusive. Obtain a real Agent ID via `+list-agents` — do not guess.
16
+ - JSON flags must be valid JSON strings, usually wrapped in single quotes in shell.
17
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
18
+ - Do not surface raw automation IDs, raw JSON, or concrete detail paths in user-facing replies.
19
+
20
+ ## Schedule Kinds
21
+ | `--schedule-kind` | Required fields | Notes |
22
+ |---|---|---|
23
+ | `hourly` | `--minute` (optional, 0–59) | Runs every hour at the given minute |
24
+ | `daily` | `--time HH:mm` | Runs once a day at the given time |
25
+ | `weekly` | `--time HH:mm`, `--weekday 0-6` | `0` = Sunday |
26
+ | `monthly` | `--time HH:mm`, `--day-of-month 1-28` | Day 1–28 only |
27
+
28
+ ## Command
29
+ ```bash
30
+ # Enabled daily automation (default)
31
+ ae-cli agent +create-automation \
32
+ --name "Daily AI Brief" \
33
+ --schedule-kind daily \
34
+ --time 09:00 \
35
+ --message "Summarize yesterday's AI news" \
36
+ --yes
37
+
38
+ # Create but keep paused when the user explicitly asks not to enable it
39
+ ae-cli agent +create-automation \
40
+ --name "Daily AI Brief" \
41
+ --schedule-kind daily \
42
+ --time 09:00 \
43
+ --message "Summarize yesterday's AI news" \
44
+ --enabled false \
45
+ --yes
46
+
47
+ # Weekly schedule on Sunday
48
+ ae-cli agent +create-automation \
49
+ --name "Weekly Report" \
50
+ --schedule-kind weekly \
51
+ --time 10:00 \
52
+ --weekday 0 \
53
+ --message "Generate the weekly report" \
54
+ --yes
55
+
56
+ # Cron expression
57
+ ae-cli agent +create-automation \
58
+ --name "Cron Task" \
59
+ --cron "0 9 * * 1-5" \
60
+ --message "Weekday morning brief" \
61
+ --yes
62
+
63
+ # Dry-run to inspect the request before executing
64
+ ae-cli agent +create-automation --dry-run --name "Test" --message "x" --schedule-kind daily --time 09:00
65
+ ```
66
+
67
+ ## Parameters
68
+ | Parameter | Required | Description |
69
+ |---|---|---|
70
+ | `--name` | Yes | Automation task name |
71
+ | `--message` | Yes | Instruction sent to the Agent |
72
+ | `--cron` | No* | Cron expression (mutually exclusive with `--schedule-kind`) |
73
+ | `--schedule-kind` | No* | `hourly` \| `daily` \| `weekly` \| `monthly` |
74
+ | `--time` | No | Time in `HH:mm` for daily/weekly/monthly |
75
+ | `--minute` | No | Minute 0–59 for hourly schedules |
76
+ | `--weekday` | No | Weekday 0–6 for weekly schedules; `0` is Sunday |
77
+ | `--day-of-month` | No | Day 1–28 for monthly schedules |
78
+ | `--agent-id` | No | Agent ID; defaults to current conversation Agent |
79
+ | `--agent-name` | No | Agent name; use only after `+list-agents` discovery |
80
+ | `--model` | No | Model record ID; defaults to current selected model |
81
+ | `--enabled` | No | `true` (default) \| `false` |
82
+ | `--conversation-id` | No | Conversation ID fallback for resolving current Agent |
83
+
84
+ \* One of `--cron` or `--schedule-kind` is required.
85
+
86
+ ## Decision Rules
87
+ - If the user provides a natural-language schedule ("every day at 9am"), translate it to `--schedule-kind daily --time 09:00`.
88
+ - If the user wants a cron-only schedule not covered by the kinds, use `--cron`.
89
+ - If no Agent is specified, the automation targets the current conversation's Agent; verify with `+list-agents` when in doubt.
90
+ - Use `--dry-run` first to verify the request shape before executing.
91
+
92
+ ## Next Steps on Failure
93
+ - `必须提供 --cron 或 --schedule-kind`: provide one of the schedule flags.
94
+ - `--time 格式必须是 HH:mm`: use 24-hour `HH:mm` (e.g. `09:00`).
95
+ - `--agent-id 与 --agent-name 只能二选一`: pick one and remove the other.
96
+ - After success, capture the returned `id` for subsequent `+update-automation` calls.
97
+
98
+ ## Recommended Chaining
99
+ - `+list-agents` → `+create-automation` → `+list-automations` (verify) → `+update-automation` (edit)
@@ -0,0 +1,38 @@
1
+ # agent +del-agent (Delete Agent)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Agents / write**
6
+
7
+ ## Use Cases
8
+ - Soft-delete an Agent (personal owner or company root/agent_admin; system Agents cannot be deleted).
9
+ - The Agent is marked deleted and its name is suffixed to free the unique index; no cascade deletion of related resources.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - `--id` is required. Obtain the real Agent record ID (CUID) via `+list-agents` — do not guess.
13
+ - System Agents cannot be deleted via CLI.
14
+ - Prefer `--dry-run` before executing a destructive delete.
15
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
16
+
17
+ ## Command
18
+ ```bash
19
+ ae-cli agent +del-agent --id <agent-cuid> --yes
20
+ ae-cli agent +del-agent --dry-run --id <agent-cuid>
21
+ ```
22
+
23
+ ## Parameters
24
+ | Parameter | Required | Description |
25
+ |---|---|---|
26
+ | `--id` | Yes | Agent record ID (CUID) |
27
+
28
+ ## Decision Rules
29
+ - Confirm the Agent ID with `+list-agents` before deleting.
30
+ - Deletion is soft — historical automations referencing the Agent may need re-pointing afterwards.
31
+ - Only `personal` Agents (owner) and `company` Agents (root/agent_admin) can be deleted; `system` returns `403`.
32
+
33
+ ## Next Steps on Failure
34
+ - `404` / `Agent 不存在`: re-run `+list-agents` to verify the Agent ID.
35
+ - `403` / `系统 Agent 不允许删除` / `无权删除该 Agent`: system Agents are protected; company Agents require root/agent_admin.
36
+
37
+ ## Recommended Chaining
38
+ - `+list-agents` → confirm `id` → `+del-agent` → `+list-agents` (verify gone)
@@ -0,0 +1,35 @@
1
+ # agent +del-attachment (Delete Attachment)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Attachments / write**
6
+
7
+ ## Use Cases
8
+ - Soft-delete an attachment.
9
+ - Endpoint: `DELETE /api/sandbox/agent/attachments?id=[id]`.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - `--id` is required. Obtain the real attachment ID via `+list-attachments` — do not guess.
13
+ - This is a soft delete — prefer `--dry-run` before executing.
14
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
15
+
16
+ ## Command
17
+ ```bash
18
+ ae-cli agent +del-attachment --id <attachment-id> --yes
19
+ ae-cli agent +del-attachment --dry-run --id <attachment-id>
20
+ ```
21
+
22
+ ## Parameters
23
+ | Parameter | Required | Description |
24
+ |---|---|---|
25
+ | `--id` | Yes | Attachment ID |
26
+
27
+ ## Decision Rules
28
+ - Confirm the attachment ID with `+list-attachments` before deleting.
29
+ - This is a soft delete, not a physical removal.
30
+
31
+ ## Next Steps on Failure
32
+ - `404` / not found: re-run `+list-attachments` to verify the attachment ID.
33
+
34
+ ## Recommended Chaining
35
+ - `+list-attachments` → confirm `id` → `+del-attachment`
@@ -0,0 +1,35 @@
1
+ # agent +del-mcp (Delete Personal MCP Server)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **MCP Servers / write**
6
+
7
+ ## Use Cases
8
+ - Delete a personal-scope MCP server.
9
+ - Only `personal` scope MCP servers can be deleted via CLI; company/system servers are read-only.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
13
+ - Prefer `--dry-run` before executing a destructive delete.
14
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
15
+
16
+ ## Command
17
+ ```bash
18
+ ae-cli agent +del-mcp --id <mcp-cuid> --yes
19
+ ae-cli agent +del-mcp --dry-run --id <mcp-cuid>
20
+ ```
21
+
22
+ ## Parameters
23
+ | Parameter | Required | Description |
24
+ |---|---|---|
25
+ | `--id` | Yes | MCP server record ID (CUID) |
26
+
27
+ ## Decision Rules
28
+ - Confirm the server ID with `+list-mcps` before deleting.
29
+ - If the server is company/system scope, deletion is not available via CLI (use `+toggle-mcp` to disable it per-user instead).
30
+
31
+ ## Next Steps on Failure
32
+ - `404` / not found: re-run `+list-mcps` to verify the server ID and scope.
33
+
34
+ ## Recommended Chaining
35
+ - `+list-mcps` → confirm `id` → `+del-mcp`
@@ -0,0 +1,37 @@
1
+ # agent +del-model (Delete Model)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Models / write**
6
+
7
+ ## Use Cases
8
+ - Delete a custom model (personal or company scope).
9
+ - `--scope personal` (default) deletes a personal model; `--scope company` deletes a company model (requires root/agent_admin). System models cannot be deleted.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - `--id` is required. Obtain the real model record ID (CUID) via `+list-models` — do not guess.
13
+ - `--scope` controls target scope: `personal` (default) or `company`. Company scope requires root/agent_admin.
14
+ - Prefer `--dry-run` before executing a destructive delete.
15
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
16
+
17
+ ## Command
18
+ ```bash
19
+ ae-cli agent +del-model --id <model-cuid> --yes
20
+ ae-cli agent +del-model --dry-run --id <model-cuid>
21
+ ```
22
+
23
+ ## Parameters
24
+ | Parameter | Required | Description |
25
+ |---|---|---|
26
+ | `--id` | Yes | Model record ID (CUID) |
27
+ | `--scope` | No | Target scope: `personal` (default) or `company` (requires root/agent_admin) |
28
+
29
+ ## Decision Rules
30
+ - Confirm the model ID with `+list-models` before deleting.
31
+ - Company-scope models can be deleted with `--scope company` by root/agent_admin; system models cannot be deleted via CLI.
32
+
33
+ ## Next Steps on Failure
34
+ - `404` / not found: re-run `+list-models` to verify the model ID and scope.
35
+
36
+ ## Recommended Chaining
37
+ - `+list-models` → confirm `id` → `+del-model`
@@ -0,0 +1,41 @@
1
+ # agent +del-skill-asset (Delete Skill Asset)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / write**
6
+
7
+ ## Use Cases
8
+ - Delete a file from a Skill's `assets` directory.
9
+ - Endpoint: `DELETE /api/sandbox/agent/skills/[id]/assets/[...path]`.
10
+ - Physical delete — cannot be undone.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
14
+ - `--path` is required and specifies the relative file path within the assets directory.
15
+ - This is a **physical delete** — prefer `--dry-run` before executing.
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+
18
+ ## Command
19
+ ```bash
20
+ ae-cli agent +del-skill-asset --id <skill-cuid> --path icon.png --yes
21
+ ae-cli agent +del-skill-asset --id <skill-cuid> --path "sub/data.csv" --yes
22
+ ae-cli agent +del-skill-asset --dry-run --id <skill-cuid> --path icon.png
23
+ ```
24
+
25
+ ## Parameters
26
+ | Parameter | Required | Description |
27
+ |---|---|---|
28
+ | `--id` | Yes | Skill record ID (CUID) |
29
+ | `--path` | Yes | Relative file path within assets to delete |
30
+
31
+ ## Decision Rules
32
+ - Use `+list-skill-assets` to confirm the file path before deleting.
33
+ - This is a physical delete, not a soft delete — proceed only when the user clearly intends to remove it.
34
+ - Use `--dry-run` first to verify the request shape before executing.
35
+
36
+ ## Next Steps on Failure
37
+ - `404` / not found: re-run `+list-skill-assets` to verify the file path.
38
+ - `文件不存在`: the file path does not exist in the assets directory.
39
+
40
+ ## Recommended Chaining
41
+ - `+list-skill-assets` → confirm `path` → `+del-skill-asset` → `+list-skill-assets` (verify)
@@ -0,0 +1,41 @@
1
+ # agent +del-skill-reference (Delete Skill Reference)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / write**
6
+
7
+ ## Use Cases
8
+ - Delete a file from a Skill's `references` directory.
9
+ - Endpoint: `DELETE /api/sandbox/agent/skills/[id]/references/[...path]`.
10
+ - Physical delete — cannot be undone.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
14
+ - `--path` is required and specifies the relative file path within the references directory.
15
+ - This is a **physical delete** — prefer `--dry-run` before executing.
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+
18
+ ## Command
19
+ ```bash
20
+ ae-cli agent +del-skill-reference --id <skill-cuid> --path guide.md --yes
21
+ ae-cli agent +del-skill-reference --id <skill-cuid> --path "advanced/tips.md" --yes
22
+ ae-cli agent +del-skill-reference --dry-run --id <skill-cuid> --path guide.md
23
+ ```
24
+
25
+ ## Parameters
26
+ | Parameter | Required | Description |
27
+ |---|---|---|
28
+ | `--id` | Yes | Skill record ID (CUID) |
29
+ | `--path` | Yes | Relative file path within references to delete |
30
+
31
+ ## Decision Rules
32
+ - Use `+list-skill-references` to confirm the file path before deleting.
33
+ - This is a physical delete, not a soft delete — proceed only when the user clearly intends to remove it.
34
+ - Use `--dry-run` first to verify the request shape before executing.
35
+
36
+ ## Next Steps on Failure
37
+ - `404` / not found: re-run `+list-skill-references` to verify the file path.
38
+ - `文件不存在`: the file path does not exist in the references directory.
39
+
40
+ ## Recommended Chaining
41
+ - `+list-skill-references` → confirm `path` → `+del-skill-reference` → `+list-skill-references` (verify)
@@ -0,0 +1,41 @@
1
+ # agent +del-skill-script (Delete Skill Script)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / write**
6
+
7
+ ## Use Cases
8
+ - Delete a file from a Skill's `scripts` directory.
9
+ - Endpoint: `DELETE /api/sandbox/agent/skills/[id]/scripts/[...path]`.
10
+ - Physical delete — cannot be undone.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
14
+ - `--path` is required and specifies the relative file path within the scripts directory.
15
+ - This is a **physical delete** — prefer `--dry-run` before executing.
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+
18
+ ## Command
19
+ ```bash
20
+ ae-cli agent +del-skill-script --id <skill-cuid> --path helper.sh --yes
21
+ ae-cli agent +del-skill-script --id <skill-cuid> --path "tools/run.py" --yes
22
+ ae-cli agent +del-skill-script --dry-run --id <skill-cuid> --path helper.sh
23
+ ```
24
+
25
+ ## Parameters
26
+ | Parameter | Required | Description |
27
+ |---|---|---|
28
+ | `--id` | Yes | Skill record ID (CUID) |
29
+ | `--path` | Yes | Relative file path within scripts to delete |
30
+
31
+ ## Decision Rules
32
+ - Use `+list-skill-scripts` to confirm the file path before deleting.
33
+ - This is a physical delete, not a soft delete — proceed only when the user clearly intends to remove it.
34
+ - Use `--dry-run` first to verify the request shape before executing.
35
+
36
+ ## Next Steps on Failure
37
+ - `404` / not found: re-run `+list-skill-scripts` to verify the file path.
38
+ - `文件不存在`: the file path does not exist in the scripts directory.
39
+
40
+ ## Recommended Chaining
41
+ - `+list-skill-scripts` → confirm `path` → `+del-skill-script` → `+list-skill-scripts` (verify)
@@ -0,0 +1,36 @@
1
+ # agent +del-skill (Delete Personal Skill)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / write**
6
+
7
+ ## Use Cases
8
+ - Delete a personal-scope Skill (physical delete).
9
+ - Only `personal` scope Skills can be deleted via CLI; company/system Skills are read-only.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
13
+ - This is a **physical delete** — prefer `--dry-run` before executing.
14
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
15
+
16
+ ## Command
17
+ ```bash
18
+ ae-cli agent +del-skill --id <skill-cuid> --yes
19
+ ae-cli agent +del-skill --dry-run --id <skill-cuid>
20
+ ```
21
+
22
+ ## Parameters
23
+ | Parameter | Required | Description |
24
+ |---|---|---|
25
+ | `--id` | Yes | Skill record ID (CUID) |
26
+
27
+ ## Decision Rules
28
+ - Confirm the Skill ID with `+list-skills` before deleting.
29
+ - This is a physical delete, not a soft delete — proceed only when the user clearly intends to remove it.
30
+ - If the Skill is company/system scope, deletion is not available via CLI (use `+toggle-skill` to disable it per-user instead).
31
+
32
+ ## Next Steps on Failure
33
+ - `404` / not found: re-run `+list-skills` to verify the Skill ID and scope.
34
+
35
+ ## Recommended Chaining
36
+ - `+list-skills` → confirm `id` → `+del-skill`
@@ -0,0 +1,64 @@
1
+ # agent +edit-skill (Edit Skill Content)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / write**
6
+
7
+ ## Use Cases
8
+ - Edit a personal Skill's content (name, description, instructions, display name, category, icon).
9
+ - Endpoint: `PUT /api/sandbox/agent/skills/[id]`.
10
+ - Only `personal` scope Skills can be edited via CLI.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
14
+ - At least one editable field must be provided (`--name` / `--description` / `--instructions` / `--display-name` / `--category` / `--icon-emoji` / `--icon-color`).
15
+ - `--name` must be 1–80 chars when provided.
16
+ - `--instructions` supports `@-` to read from stdin (useful for piping long instruction text).
17
+ - `--category` must be one of the market category keys when provided.
18
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
19
+
20
+ ## Market Category Keys
21
+ `ae_preset | dev_tool | search_tool | data_query | content_gen | enterprise | life | automation | other`
22
+
23
+ ## Command
24
+ ```bash
25
+ # Edit instructions only
26
+ ae-cli agent +edit-skill --id <skill-cuid> --instructions "Updated instructions..." --yes
27
+
28
+ # Edit name and description
29
+ ae-cli agent +edit-skill --id <skill-cuid> --name new-name --description "New description" --yes
30
+
31
+ # Instructions from stdin
32
+ echo "You are a helpful assistant..." | \
33
+ ae-cli agent +edit-skill --id <skill-cuid> --instructions @- --yes
34
+
35
+ # Dry-run to inspect the request before executing
36
+ ae-cli agent +edit-skill --dry-run --id <skill-cuid> --name new-name
37
+ ```
38
+
39
+ ## Parameters
40
+ | Parameter | Required | Description |
41
+ |---|---|---|
42
+ | `--id` | Yes | Skill record ID (CUID) |
43
+ | `--name` | No* | New Skill name (1–80 chars) |
44
+ | `--description` | No* | New Skill description |
45
+ | `--instructions` | No* | New instructions (use `@-` to read from stdin) |
46
+ | `--display-name` | No* | New display name (max 100) |
47
+ | `--category` | No* | Market category key (see above) |
48
+ | `--icon-emoji` | No* | Market icon emoji (e.g. `robot`) |
49
+ | `--icon-color` | No* | Market icon color (e.g. `#1E76F0`) |
50
+
51
+ \* At least one of these must be provided.
52
+
53
+ ## Decision Rules
54
+ - Use `+list-skills` to confirm the Skill ID before editing.
55
+ - If the user provides long instruction text, pipe it via stdin with `--instructions @-`.
56
+ - Use `--dry-run` first to verify the request shape before executing.
57
+ - Editing a Skill does not change its scope; company/system Skills are read-only via CLI.
58
+
59
+ ## Next Steps on Failure
60
+ - `404` / not found: re-run `+list-skills` to verify the Skill ID and scope.
61
+ - `409` / name conflict: use `--name` with a different name, or consider `+upload-skill` with `--auto-rename`.
62
+
63
+ ## Recommended Chaining
64
+ - `+list-skills` → confirm `id` → `+edit-skill` → `+get-skill-content` (verify)
@@ -0,0 +1,37 @@
1
+ # agent +get-agent (Get Agent Details)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Agents / read**
6
+
7
+ ## Use Cases
8
+ - Fetch full details of a single Agent by ID (system visible to all; company to same company; personal to owner).
9
+ - Use this to confirm an Agent's current model, MCP, Skill, and enabled state before updating or deleting.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - `--id` is required. Obtain the real Agent record ID (CUID) via `+list-agents` — do not guess.
13
+ - Read operation — no confirmation prompt.
14
+
15
+ ## Command
16
+ ```bash
17
+ ae-cli agent +get-agent --id <agent-cuid>
18
+ ae-cli agent +get-agent --id <agent-cuid> --format table
19
+ ae-cli agent +get-agent --dry-run --id <agent-cuid>
20
+ ```
21
+
22
+ ## Parameters
23
+ | Parameter | Required | Description |
24
+ |---|---|---|
25
+ | `--id` | Yes | Agent record ID (CUID) |
26
+
27
+ ## Decision Rules
28
+ - When the user references an Agent by name, resolve it to an ID with `+list-agents` first, then call `+get-agent` for full details.
29
+ - Use `--format table` for a scannable single-record view.
30
+ - The returned `item` includes the resolved model, MCP/Skill ID lists, and the current user's enabled preference (for system/company Agents).
31
+
32
+ ## Next Steps on Failure
33
+ - `404` / `Agent 不存在`: the Agent does not exist, is deleted, or is not visible to you (personal Agent owned by another user). Re-run `+list-agents` to discover visible IDs.
34
+ - Auth error: run `ae-cli auth login`.
35
+
36
+ ## Recommended Chaining
37
+ - `+list-agents` → confirm `id` → `+get-agent` (inspect) → `+update-agent` / `+del-agent` / `+create-automation --agent-id <id>`
@@ -0,0 +1,36 @@
1
+ # agent +get-skill-content (Read Skill Content)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / read**
6
+
7
+ ## Use Cases
8
+ - Read a Skill's SKILL.md text content.
9
+ - Endpoint: `GET /api/sandbox/agent/skills/[id]/content`.
10
+ - Returns the raw SKILL.md file content as JSON `{ item: { ... } }`.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
14
+
15
+ ## Command
16
+ ```bash
17
+ ae-cli agent +get-skill-content --id <skill-cuid>
18
+ ae-cli agent +get-skill-content --dry-run --id <skill-cuid>
19
+ ```
20
+
21
+ ## Parameters
22
+ | Parameter | Required | Description |
23
+ |---|---|---|
24
+ | `--id` | Yes | Skill record ID (CUID) |
25
+
26
+ ## Decision Rules
27
+ - Use `+list-skills` to confirm the Skill ID before reading.
28
+ - The returned content is the SKILL.md text — useful for inspecting or backing up a Skill's instructions.
29
+ - Read operation: no confirmation prompt needed.
30
+
31
+ ## Next Steps on Failure
32
+ - `404` / not found: re-run `+list-skills` to verify the Skill ID.
33
+ - `file_not_found`: the Skill record exists but the SKILL.md file is missing on disk — use `+rescan-skills` (root) to sync.
34
+
35
+ ## Recommended Chaining
36
+ - `+list-skills` → confirm `id` → `+get-skill-content` → `+edit-skill` (if changes needed)
@@ -0,0 +1,40 @@
1
+ # agent +list-agents (List Agents)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Agents / read**
6
+
7
+ ## Use Cases
8
+ - List Agents visible to the current user (personal / company / system scopes).
9
+ - Returns an array of Agent summaries; key fields include `id`, `name`, `description`, `scope`.
10
+ - Use this to discover a real Agent ID before creating an automation with `--agent-id` or `--agent-name`.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - Do not guess Agent IDs. Always call `+list-agents` first when an Agent reference is needed.
14
+ - If the user references an Agent by name, match the name against the returned list before proceeding.
15
+
16
+ ## Command
17
+ ```bash
18
+ ae-cli agent +list-agents
19
+ ae-cli agent +list-agents --scope personal
20
+ ae-cli agent +list-agents --scope company --q "daily" --format table
21
+ ae-cli agent +list-agents --dry-run
22
+ ```
23
+
24
+ ## Parameters
25
+ | Parameter | Required | Description |
26
+ |---|---|---|
27
+ | `--scope` | No | Filter by scope: `personal` \| `company` \| `system` |
28
+ | `--q` | No | Search by Agent name or description |
29
+
30
+ ## Decision Rules
31
+ - When the user needs an Agent ID for `+create-automation` (`--agent-id` / `--agent-name`), call this first.
32
+ - If many Agents are returned, summarize by `id`, `name`, and `scope` to help the user pick the right one.
33
+ - `--scope personal` shows only the user's own Agents; `company` / `system` show shared resources.
34
+
35
+ ## Next Steps on Failure
36
+ - Empty result: confirm account permissions and the active AE host.
37
+ - Auth error: run `ae-cli auth login`.
38
+
39
+ ## Recommended Chaining
40
+ - `+list-agents` → confirm `agent-id` → `+create-automation`
@@ -0,0 +1,42 @@
1
+ # agent +list-attachments (List Attachments)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Attachments / read**
6
+
7
+ ## Use Cases
8
+ - List the current user's attachments (paginated).
9
+ - Endpoint: `GET /api/sandbox/agent/attachments`.
10
+ - Returns an array of attachment summaries; key fields include `id`, `name`, `type`, `size`.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--type` must be `image` or `document` when provided.
14
+
15
+ ## Command
16
+ ```bash
17
+ ae-cli agent +list-attachments
18
+ ae-cli agent +list-attachments --type image --format table
19
+ ae-cli agent +list-attachments --q "report" --page 1 --page-size 20
20
+ ae-cli agent +list-attachments --dry-run --type document
21
+ ```
22
+
23
+ ## Parameters
24
+ | Parameter | Required | Description |
25
+ |---|---|---|
26
+ | `--q` | No | Search keyword |
27
+ | `--type` | No | Filter by type: `image` \| `document` |
28
+ | `--page` | No | Page number (default 1) |
29
+ | `--page-size` | No | Page size (default 20, max 10000) |
30
+
31
+ ## Decision Rules
32
+ - When the user needs an attachment ID for `+del-attachment`, call this first.
33
+ - `--type image` filters to image attachments; `--type document` filters to documents.
34
+ - Use `--format table` for a scannable overview.
35
+
36
+ ## Next Steps on Failure
37
+ - `--type must be image or document`: use one of the two values.
38
+ - Empty result: no attachments match the filter.
39
+
40
+ ## Recommended Chaining
41
+ - `+list-attachments` → confirm `id` → `+del-attachment`
42
+ - `+add-attachment` (upload) → `+list-attachments` (verify)
@@ -0,0 +1,41 @@
1
+ # agent +list-automations (List Automations)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Automations / read**
6
+
7
+ ## Use Cases
8
+ - List the current user's Agent automation tasks.
9
+ - Returns an array of automation summaries; key fields include `id`, `name`, `status`, `schedule`/`cronExpression`.
10
+ - Use this to discover a real automation ID before `+update-automation`.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - Do not guess automation IDs. Always call `+list-automations` first when an automation ID is needed.
14
+ - Do not surface raw automation IDs, raw JSON, or concrete detail paths in user-facing replies — use the ID only internally for subsequent commands.
15
+
16
+ ## Command
17
+ ```bash
18
+ ae-cli agent +list-automations
19
+ ae-cli agent +list-automations --status active
20
+ ae-cli agent +list-automations --q "daily" --limit 20 --format table
21
+ ae-cli agent +list-automations --dry-run
22
+ ```
23
+
24
+ ## Parameters
25
+ | Parameter | Required | Description |
26
+ |---|---|---|
27
+ | `--q` | No | Keyword for automation name or instruction |
28
+ | `--status` | No | `active` \| `paused` |
29
+ | `--limit` | No | Maximum number of automations to return, 1–10000 |
30
+
31
+ ## Decision Rules
32
+ - When the user wants to pause, resume, rename, or edit an automation, call this first to find the target ID.
33
+ - `--status active` lists only enabled automations; `--status paused` lists paused ones.
34
+ - If many automations are returned, summarize by `name` and `status` to help the user pick the right one.
35
+
36
+ ## Next Steps on Failure
37
+ - Empty result: confirm the user has created automations on the active AE host.
38
+ - Auth error: run `ae-cli auth login`.
39
+
40
+ ## Recommended Chaining
41
+ - `+list-automations` → confirm `id` → `+update-automation`