Summary
contract-cli 合同命令技能:支持 user/bot 双身份下的合同详情、合同搜索、合同创建、同步用户组、读取合同文本、查询合同分类、列出模板、查看模板详情、创建模板实例,bot 身份下的文件上传,以及 user 身份下的枚举查询。当用户要使用 `contract-cli contract ...`…
qfeius/contract-cli
contract-cli 合同命令技能:支持 user/bot 双身份下的合同详?
npx skills add qfeius/contract-cli --skill contract-cli-contract
contract-cli 合同命令技能:支持 user/bot 双身份下的合同详情、合同搜索、合同创建、同步用户组、读取合同文本、查询合同分类、列出模板、查看模板详情、创建模板实例,bot 身份下的文件上传,以及 user 身份下的枚举查询。当用户要使用 `contract-cli contract ...`…
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Review a contract against your organization's negotiation playbook — flag deviations, generate …
3.2K installsLightweight NDA, MSA, and vendor contract review for SMBs without legal on staff. Reads contrac…
2.2K installsEdit the Prisma Next data contract — add models, fields, relations, indexes, enums, value objec…
1.3K installsEnforce explicit approval gates for any PlanetScale, database, repository, credential, network,…
13 installsArchitecture standard for building robust, type-safe TypeScript services using the "Spec and Ha…
13 installsUse this skill whenever another DOCA skill says "prefer the structured tool per doca-structured…
119 installsOther skills from qfeius/contract-cli.
npx skills add qfeius/contract-cli
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Parsed from SKILL.md frontmatter.
Files included with this skill beyond the listing page.
SKILL.md
7,066 B
SUMMARY.md
403 B
CRITICAL — 开始前 MUST 先读取 [../contract-cli-shared/SKILL.md](../contract-cli-shared/SKILL.md)。
contract-cli contract get <contract-id>contract-cli contract searchcontract-cli contract createcontract-cli contract sync-user-groupscontract-cli contract text <contract-id>contract-cli contract category listcontract-cli contract template listcontract-cli contract template get <template-id>contract-cli contract template instantiatecontract-cli contract upload-filecontract-cli contract enum list --type <enum_type>contract getcontract searchcontract createcontract textcontract category listcontract template ...contract upload-file --as botcontract enum listcontract get、contract search、contract create、contract sync-user-groups、contract text、contract category list、contract template list、contract template get、contract template instantiate 同时支持 --as user 和 --as botcontract upload-file 当前仅支持 --as botcontract upload-file 外,其余命令仍然只支持 --as usercontract create 当前直接接收原始创建请求体,不额外暴露 --templatecontract create --as bot 走 POST /open-apis/contract/v1/contractscontract create --as bot 的请求体必须自己带 createuseridcontract create 的推荐阅读顺序是:- 先读 [references/create-contract-fields.md](references/create-contract-fields.md) 选场景和最小请求体 - 再读 [references/create-contract-field-tree.md](references/create-contract-field-tree.md) 查嵌套对象和 JSON Path - 最后读 [references/create-contract-enums.md](references/create-contract-enums.md) 确认 code 取值
contract create 的完整参数主档,不需要再回查旧接口清单contract get --as bot 走开放平台标准接口 /open-apis/contract/v1/contracts/{contract_id}--user-id-type / --user-id 是通用 query 参数:- --user-id-type 不传时默认拼接 useridtype=user_id - 显式传 --user-id-type <type> 时会覆盖默认值 - --user-id 传了就原样拼到底层接口,不传就不带 - 不区分 user / bot - 不做命令级校验
contract search 会把 --contract-number、--page-size、--page-token 合并进 --input-file/--data 里的 JSON 对象contract search --as bot 走开放平台标准接口 /open-apis/contract/v1/contracts/searchcontract sync-user-groups --as bot 走 /open-apis/contract/v1/contracts/user-groups/synccontract text --as bot 走 POST /open-apis/contract/v1/contracts/{contract_id}/textcontract category list --as bot 走 /open-apis/contract/v1/contract_categoryscontract template list --as bot 走 /open-apis/contract/v1/templatescontract template list --as bot 的 categorynumber、userid、useridtype 都属于 query 参数;CLI 仍只透传,不做本地必填校验contract template get --as bot 走 /open-apis/contract/v1/templates/{template_id}contract template get --as bot 的 userid、userid_type 都属于 query 参数;CLI 仍只透传,不做本地必填校验contract template instantiate --as bot 走 POST /open-apis/contract/v1/template_instancescontract template instantiate --as bot 的 query 只有 useridtype,请求体里需要 createuserid;CLI 仍只透传,不做本地必填校验contract upload-file --as bot 走 POST /open-apis/contract/v1/files/uploadcontract upload-file 使用 multipart/form-data,字段是 filename、filetype、filecontract upload-file 的 --file 是本地真实文件路径,不是 JSON 请求体文件contract upload-file 不接受 --input-file / --datacontract upload-file 本地限制文件大小小于等于 200MBfile_type:text 合同文本、attachment 其他附件、scan 归档扫描件、cause 合同附件、archiveAttachment 归档附件、customPictureAttachment 图片附件、customTableAttachment 表格附件、customFileAttachment 文件附件contract text 支持 --full-text、--offset、--limitcontract template instantiate 只接收请求体,不再接模板 ID 位置参数- user 详情、user 搜索、user 创建、user 同步用户组、user 合同文本、user 分类查询、user 模板列表、user 模板详情、user 模板实例和其他 user-only 命令:auth login --as user - bot 详情、bot 搜索、bot 创建、bot 同步用户组、bot 合同文本、bot 分类查询、bot 模板列表、bot 模板详情、bot 模板实例、bot 文件上传:auth login --as bot
--input-file--output json--rawcontract enum 传 --as bot--file contract.json;JSON 请求体用 --input-filecontract upload-file 传 --as usercontract template fields 当成已实现能力