Skip to content

chore(skills): drop legacy rows guidance from command cards - #152

Merged
ysyneu merged 1 commit into
mainfrom
chore/cards-drop-legacy-rows
Aug 16, 2026
Merged

chore(skills): drop legacy rows guidance from command cards#152
ysyneu merged 1 commit into
mainfrom
chore/cards-drop-legacy-rows

Conversation

@ysyneu

@ysyneu ysyneu commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

变更

Skill 卡片只引导新用法,弃用动词不再进入卡片:

  • skilldoc dump 排除带 cobra Deprecated 标记的命令(命令本身保留在 CLI 树中,带运行时弃用警告)。
  • cligen 读取 spec 的 deprecated 标记并给生成命令打 Deprecated:monit query-rowsuse 'monit-query data' instead
  • monit-query / monit 两张卡片现在只教 data(query_result.v1)和 diagnose;raw rows 通道在迁移期仍可调用,但不再是 agent 引导面。

验证

  • go build / go vet / go test ./... 全绿
  • skilldoc check cards OK
  • __dump-commands 中 rows 条目清零;fduty monit-query rows --help 仍可运行并带弃用警告

Skill cards guide new usage, so a deprecated verb earns no card entry:

- skilldoc dump now excludes commands with a cobra Deprecated marker
  (the command stays in the CLI tree with its runtime warning).
- cligen reads the spec's deprecated flag and stamps generated commands;
  monit query-rows carries the 'use monit-query data instead' message.
- monit-query / monit cards now teach only data (query_result.v1) and
  diagnose; the raw rows passthrough remains callable during the
  migration period but is no longer agent guidance.
@ysyneu
ysyneu merged commit 941d3d1 into main Aug 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant