qfeius/contract-cli

contract-cli-mdm-legal

contract-cli 法人实体查询技能:列出法人实体候选列表或按 ID 获取法人实体详?

First seen Apr 21, 2026

Installation

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

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,510 B
  • docs SUMMARY.md 235 B

History

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

SKILL.md

contract-cli MDM Legal

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

适用命令

  • contract-cli mdm legal list
  • contract-cli mdm legal get <legal-entity-id>

快速决策

  • 已知法人实体 ID:直接用 mdm legal get
  • 只知道名称、需要候选列表:用 mdm legal list
  • 用户是想查字段配置:切到 [../contract-cli-mdm-fields/SKILL.md](../contract-cli-mdm-fields/SKILL.md)
  • 用户想创建或更新法人实体:当前结构化命令未实现,不要伪造

关键规则

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

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

实现来源

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

操作建议

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

不要这样做

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