qfeius/contract-cli

contract-cli-mdm-vendor

contract-cli 交易方查询技能:列出交易方候选列表或按 ID 获取交易方详?

First seen Apr 21, 2026

Installation

$ npx skills add qfeius/contract-cli --skill contract-cli-mdm-vendor

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from qfeius/contract-cli.

npx skills add qfeius/contract-cli

Browse all from qfeius/contract-cli

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
License LICENSE
Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,470 B
  • docs SUMMARY.md 225 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 92 installs

SKILL.md

contract-cli MDM Vendor

CRITICAL — 开始前 MUST 先读取 [../contract-cli-shared/SKILL.md](../contract-cli-shared/SKILL.md)。

适用命令

  • contract-cli mdm vendor list
  • contract-cli mdm vendor get <vendor-id>

快速决策

  • 已知交易方 ID:直接用 mdm vendor get
  • 只知道名称或想拿候选列表:用 mdm vendor list
  • 如果用户想在创建前确认字段定义:切到 [../contract-cli-mdm-fields/SKILL.md](../contract-cli-mdm-fields/SKILL.md)
  • 如果用户想创建或更新交易方:当前结构化命令未实现,明确说明暂未覆盖;不要退回 api call

关键规则

  • mdm vendor list 支持 --name、--page-size、--page-token
  • mdm vendor list --as user 走 /open-apis/contract/v1/mcp/vendors
  • mdm vendor list --as bot 走 /open-apis/mdm/v1/vendors
  • mdm vendor get --as user 走 /open-apis/contract/v1/mcp/vendors/{vendor_id}
  • mdm vendor get --as bot 走 /open-apis/mdm/v1/vendors/{vendor_id}
  • 不暴露 --operator
  • --user-id-type / --user-id 仍按共享规则透传,不做本地校验
  • 推荐阅读顺序是:

- 先读 [references/vendor-query-guide.md](references/vendor-query-guide.md) 选查询场景 - 再读 [references/vendor-query-parameters.md](references/vendor-query-parameters.md) 查请求参数映射 - 最后读 [references/commands.md](references/commands.md) 抄命令示例

实现来源

  • [internal/cli/vendorcommand.go](../../internal/cli/vendorcommand.go)
  • [internal/openplatform/mdmvendor/service.go](../../internal/openplatform/mdmvendor/service.go)
  • [references/vendor-query-guide.md](references/vendor-query-guide.md)
  • [references/vendor-query-parameters.md](references/vendor-query-parameters.md)
  • [references/commands.md](references/commands.md)

操作建议

  • 只知道名称时,先 mdm vendor list 拿候选,再 mdm vendor get 查详情
  • 创建合同前如果只是要选对方主体,优先记住交易方 id
  • 想确认写接口字段定义时,切到 mdm fields list

不要这样做

  • 不要把 mdm vendor list/get 当成字段配置查询
  • 不要把未实现的 mdm vendor create/update 当成已有结构化命令