ae-capability
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseae-capability
ae-capability
Use this skill for progressive capability discovery and generic gateway invocation. Prefer a domain-specific curated command when one exists; use for discovery and long-tail capabilities.
ae-cli capability ...使用此技能进行渐进式能力发现与通用网关调用。当存在领域专属的定制命令时,优先使用该命令;对于能力发现和长尾能力,使用命令。
ae-cli capability ...Decision Order
决策顺序
- Use a domain skill and its curated command when it directly covers the task.
- Otherwise search the capability catalog.
- Inspect the selected capability before constructing input.
- Optionally pre-check — pick at most one path from the table below (do not stack validate + dry-run by default).
- Execute (/ curated command). Chat confirmation only for delete (
capability run).high-risk-write
Never guess a capability ID, input field, enum value, resource ID, or project ID.
CRITICAL — Host compat (do this first): After each run, check stderr and . If either is present, open the user reply with a short ⚠️ version warning and quote the / (or update-cluster) lines verbatim, then present the business result. Soft tip; can still carry the notice.
ae-cli_notice.host_compatnpm i -gnpx skills addok: true- 当领域技能及其定制命令可直接覆盖任务需求时,优先使用。
- 否则,搜索能力目录。
- 在构造输入前查看所选能力的详情。
- 可选预检查——从下表中选择至多一种方式(默认不要同时执行验证和dry-run)。
- 执行(/ 定制命令)。仅在执行删除操作(
capability run)时需聊天确认。high-risk-write
切勿猜测能力ID、输入字段、枚举值、资源ID或项目ID。
关键——主机兼容性(首先执行此步骤):每次运行后,检查stderr和。若其中任意一项存在,在用户回复开头添加简短的⚠️版本警告,并逐字引用 / (或update-cluster)命令行,然后展示业务结果。即使也可能包含该通知,需温和提示。
ae-cli_notice.host_compatnpm i -gnpx skills addok: trueOn-demand pre-check (pick one)
按需预检查(选其一)
Motto: validate = fix params; dry-run = confirm ready to run.
Hard rule: for the same final input, do not run both validate and dry-run by default. already includes parameter validation.
dry-run| Situation | What to call | Then |
|---|---|---|
Simple / familiar input (typical | Neither — skip pre-check | |
Complex | | After |
Need risk / | | Then confirm (delete) / |
| Rare exception: many validate iterations, then still need delete confirmation | validate while drafting → one dry-run on the final input | Then chat confirm → |
Do not treat as the normal path. That stack is the rare exception in the last row only.
validate → dry-run → run格言:validate = 修正参数;dry-run = 确认准备就绪
硬性规则:对于同一最终输入,默认不要同时运行validate和dry-run。已包含参数验证。
dry-run| 场景 | 调用命令 | 后续操作 |
|---|---|---|
简单/熟悉的输入(典型 | 两者都不选——跳过预检查 | 直接执行 |
复杂 | 仅使用 | 当 |
需要查看风险 / | 仅使用 | 然后确认(删除操作)/ 执行 |
| 罕见例外:多次validate迭代后仍需删除确认 | 起草阶段执行validate → 对最终输入执行一次dry-run | 然后聊天确认 → 执行 |
不要将视为常规流程。该流程仅为最后一行所述的罕见例外情况。
validate → dry-run → runSkill references
技能参考
Default: do not create a standalone skill reference for every new capability. Use → → (optional validate or dry-run) → ; catalog , , and are the contract.
searchinspectrundescriptionriskinspectinput_schemaCreate or keep a standalone reference only when at least one applies: L2 hard bar, easily confused with neighbors, delete workflow, or multi-step orchestration. Domain skills may inline one-line summaries in overview matrices (e.g. ). See §10.
high-risk-writeanalysis_gateway_assets.mdcapability-command-admission默认规则:无需为每个新能力创建独立的技能参考。使用 → →(可选验证或dry-run)→ 流程;目录中的、和返回的即为契约内容。
searchinspectrundescriptionriskinspectinput_schema仅在满足以下至少一项条件时,才创建或保留独立参考:L2硬性要求、易与其他能力混淆、删除工作流、或多步骤编排。领域技能可在概览矩阵中嵌入单行摘要(例如)。详见第10节。
high-risk-writeanalysis_gateway_assets.mdcapability-command-admissionCommands
命令
bash
undefinedbash
undefinedList company-level summaries, or the capabilities available in one project.
List company-level summaries, or the capabilities available in one project.
ae-cli capability list --domain <domain> [--project-id <id>]
ae-cli capability list --domain <domain> [--project-id <id>]
Search capability IDs and descriptions. All terms must match.
Search capability IDs and descriptions. All terms must match.
ae-cli capability search "<terms>" --domain <domain> [--project-id <id>]
ae-cli capability search "<terms>" --domain <domain> [--project-id <id>]
Read input_schema, risk, auth, output, and dry-run support.
Read input_schema, risk, auth, output, and dry-run support.
ae-cli capability inspect <capability-id> [--project-id <id>]
ae-cli capability inspect <capability-id> [--project-id <id>]
Optional — fix params only (gateway /validate). Curated: global --validate.
Optional — fix params only (gateway /validate). Curated: global --validate.
ae-cli capability validate <capability-id> --input '<json-object>'
ae-cli metadata data-table sql-write --project-id 1 ... --validate
ae-cli capability validate <capability-id> --input '<json-object>'
ae-cli metadata data-table sql-write --project-id 1 ... --validate
Optional — confirm ready to run (gateway /dry-run). Curated: global --dry-run.
Optional — confirm ready to run (gateway /dry-run). Curated: global --dry-run.
ae-cli capability dry-run <capability-id> --input '<json-object>'
ae-cli metadata data-table sql-write --project-id 1 ... --dry-run
ae-cli capability dry-run <capability-id> --input '<json-object>'
ae-cli metadata data-table sql-write --project-id 1 ... --dry-run
Execute (after inspect; add at most one pre-check when needed).
Execute (after inspect; add at most one pre-check when needed).
ae-cli capability run <capability-id> --input '<json-object>'
`--input` accepts:
- An inline JSON object.
- A JSON file path.
- `@<path>`.
- `-` to read JSON from stdin.
The capability namespace is inferred from `<capability-id>` for `inspect`, `validate`, `dry-run`, and `run`. Use `--domain <domain>` only to override routing. For `list`, `search`, and `inspect`, omit `--project-id` for company License/Feature visibility; pass it to include project membership, project Feature, and user permission filtering.ae-cli capability run <capability-id> --input '<json-object>'
`--input`支持:
- 内联JSON对象。
- JSON文件路径。
- `@<path>`。
- `-`表示从标准输入读取JSON。
能力命名空间会从`<capability-id>`中自动推断,适用于`inspect`、`validate`、`dry-run`和`run`命令。仅在需要覆盖路由时使用`--domain <domain>`。对于`list`、`search`和`inspect`命令,省略`--project-id`可查看公司级License/Feature权限;传入该参数则会包含项目成员身份、项目Feature和用户权限过滤。validate vs dry-run
validate与dry-run对比
| | |
|---|---|---|
| Purpose | Check input shape while composing complex payloads | Pre-execution confirmation (params + risk/output/cancel) |
| Does it mutate business data? | No | No |
| Primary success fields | | |
| When to prefer | Iterating nested | Final input; need risk/output contract or delete gate |
| Typical failure focus | Missing/invalid fields, type mismatches, bad | Same param errors, plus readiness signals for actual run |
| Curated commands | Global | Global |
Server may still authenticate the caller for both endpoints. Neither executes the capability business handler. Do not combine and on one invocation.
--validate--dry-runComplex input: prefer only while assembling / nested payload; after , go to . Use dry-run instead of validate when you need the risk/output preview or a delete confirmation gate — not both.
--validateqpvalid=truerunExample (param risk only — no stacked dry-run):
bash
ae-cli metadata data-table sql-write ... --validate # iterate until valid
ae-cli metadata data-table sql-write ... # execute ordinary writeExample (delete gate — dry-run only on final input):
bash
ae-cli capability dry-run analysis.folder.delete --input '...' | | |
|---|---|---|
| 用途 | 构造复杂payload时检查输入结构 | 执行前确认(参数+风险/输出/可取消性) |
| 是否修改业务数据? | 否 | 否 |
| 核心成功字段 | | |
| 优先使用场景 | 调整嵌套 | 最终输入;需要查看风险/输出契约或删除校验时 |
| 典型失败关注点 | 缺失/无效字段、类型不匹配、 | 相同的参数错误,加上实际运行的就绪信号 |
| 定制命令支持 | 基于网关的定制命令支持全局 | 全局 |
服务器可能仍会对两个端点的调用者进行身份验证。两者均不会执行能力的业务处理逻辑。请勿在一次调用中同时使用和。
--validate--dry-run复杂输入:组装 / 嵌套payload时优先仅使用;当后,直接执行。当需要查看风险/输出预览或删除确认校验时,使用dry-run替代validate——不要同时使用两者。
qp--validatevalid=truerun示例(仅参数风险检查——不叠加dry-run):
bash
ae-cli metadata data-table sql-write ... --validate # 迭代直至验证通过
ae-cli metadata data-table sql-write ... # 执行常规写入操作示例(删除校验——仅对最终执行dry-run):
bash
ae-cli capability dry-run analysis.folder.delete --input '...'stop, ask user, then:
暂停,询问用户,然后执行:
ae-cli capability run analysis.folder.delete --input '...' --yes
undefinedae-cli capability run analysis.folder.delete --input '...' --yes
undefinedRisk Levels (aligned with lark-cli)
风险等级(与lark-cli对齐)
| Meaning | Chat confirmation before | CLI |
|---|---|---|---|
| Query / list / inspect | No | No |
| Create, update, share, and other ordinary writes | No | No |
| Delete or remove resources | Yes | Yes |
Legacy values such as , , or are normalized to this three-tier model ( → ; / → ).
createupdatedeletedeletehigh-risk-writecreateupdatewrite | 含义 | 执行 | 无 |
|---|---|---|---|
| 查询/列表/查看 | 否 | 否 |
| 创建、更新、共享及其他常规写入操作 | 否 | 否 |
| 删除或移除资源 | 是 | 是 |
旧版值如、或会被标准化为三级模型( → ;/ → )。
createupdatedeletedeletehigh-risk-writecreateupdatewriteSafety
安全规范
- ,
list,search,inspect, andvalidatenever execute business mutations.dry-run - Curated gateway commands: →
--validate;/validate→--dry-run; do not combine them./dry-run - Do not stack validate + dry-run on the same final input by default (efficiency).
- inspects metadata before execution when
capability runis absent.--yes - Only requires chat confirmation before
high-risk-write.capability run ... --yes - and ordinary
readmay run after inspect; add validate or dry-run only when the on-demand table says so.write - Use on delete runs only after the user explicitly authorizes execution in chat.
--yes - Global on
--dry-run/ curated commands calls the gateway dry-run endpoint instead of execute.capability run - Global on
--validate/ curated commands calls the gateway validate endpoint instead of execute.capability run
- 、
list、search、inspect和validate永远不会执行业务变更操作。dry-run - 基于网关的定制命令:调用
--validate端点;/validate调用--dry-run端点;请勿同时使用两者。/dry-run - 默认情况下,不要对同一最终输入同时执行validate和dry-run(提升效率)。
- 当未使用时,
--yes会在执行前检查元数据。capability run - 仅操作需要在执行
high-risk-write前进行聊天确认。capability run ... --yes - 和常规
read操作可在查看后直接执行;仅在按需表格所述场景下,添加validate或dry-run。write - 仅在用户在聊天中明确授权后,才在删除操作中使用。
--yes - 在/ 定制命令中使用全局
capability run会调用网关的dry-run端点而非执行端点。--dry-run - 在/ 定制命令中使用全局
capability run会调用网关的validate端点而非执行端点。--validate
High-Risk Confirmation Workflow (Agent)
高风险确认工作流(Agent)
Applies only when shows .
inspectrisk=high-risk-writeUser intent (for example "delete this space") is not execution authorization. Do not pass just because the user stated the desired action.
--yes- . For complex delete input only, you may iterate with
capability inspectwhile drafting; for the final payload usevalidateonce (skip a redundant validate on that same final JSON — dry-run already validates params).dry-run - Stop in the same turn. Do not call in the same turn as dry-run.
capability run - Summarize in chat: capability ID, , key input fields, and
project_id.risk=high-risk-write - Ask the user to confirm execution. Prefer when that tool is available; otherwise ask in plain text and wait for the user's next message.
AskUserQuestion - Only after the user replies with explicit authorization (for example ,
confirm, orexecute) runyeswith the same input as dry-run.capability run ... --yes
For : no chat confirmation gate. Prefer direct after inspect; use alone when the payload is complex and you are fixing shape; use alone only if you need the risk/output preview — not validate then dry-run as a habit.
risk=writerun--validate--dry-runNever pass on the first delete attempt. CLI terminal prompts do not work in Agent Bash; chat confirmation is the real gate for .
--yes[y/N]high-risk-write仅当返回时适用。
inspectrisk=high-risk-write用户意图(例如"删除此空间")不代表执行授权。不要仅因为用户表述了期望操作就添加。
--yes- 执行。仅针对复杂删除输入,可在起草阶段通过
capability inspect进行迭代;对于最终payload,仅执行一次validate(无需对同一最终JSON重复执行validate——dry-run已包含参数验证)。dry-run - 在当前交互中暂停。不要在执行dry-run的同一交互中调用。
capability run - 在聊天中总结:能力ID、、关键输入字段及
project_id。risk=high-risk-write - 请求用户确认执行。若工具可用,优先使用该工具;否则用明文询问并等待用户的下一条消息。
AskUserQuestion - 仅在用户回复明确授权(例如、
confirm或execute)后,使用与dry-run相同的输入执行yes。capability run ... --yes
对于操作:无需聊天确认校验。查看后优先直接执行;当payload复杂且需调整结构时,仅使用;仅在需要查看风险/输出预览时使用——不要养成先validate再dry-run的习惯。
risk=writerun--validate--dry-run首次尝试删除操作时切勿添加。CLI终端的提示在Agent Bash中无法生效,聊天确认是操作的实际校验关卡。
--yes[y/N]high-risk-writeOutput
输出
- returns
list.{ domain, count, capabilities } - returns
search.{ domain, query, count, capabilities } - ,
inspect,validate, anddry-runreturn gateway data in the standard ae-cli envelope.run
- 返回
list。{ domain, count, capabilities } - 返回
search。{ domain, query, count, capabilities } - 、
inspect、validate和dry-run返回标准ae-cli封装格式的网关数据。run
Examples
示例
bash
ae-cli capability search "dashboard list" --domain analysis
ae-cli capability inspect analysis.dashboard.list
ae-cli capability validate metadata.data_table.sql_write --input input.json
ae-cli capability dry-run analysis.folder.delete --input '{"project_id":1,"folder_ids":[1001]}'
ae-cli capability run analysis.dashboard.list --input input.jsonbash
ae-cli capability search "dashboard list" --domain analysis
ae-cli capability inspect analysis.dashboard.list
ae-cli capability validate metadata.data_table.sql_write --input input.json
ae-cli capability dry-run analysis.folder.delete --input '{"project_id":1,"folder_ids":[1001]}'
ae-cli capability run analysis.dashboard.list --input input.json