[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CERFTV4EX237V9MR6BB03W":3,"skill-same:01M7CERFTV4EX237V9MR6BB03W":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7CERFTV4EX237V9MR6BB03W","cli-e2e-testcase-writer",null,"Use when adding or updating Go CLI E2E coverage for one `tests\u002Fcli_e2e\u002F{domain}` domain of the compiled `lark-cli`, especially when the work requires live `--help` or `schema` exploration, scenario-based `clie2e.RunCmd` workflows, and per-domain `coverage.md` maintenance.","whofly2016\u002Flark-cli","whofly2016","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F18972786?v=4","01M7CEMFN12RGN0W6HXR0W309B","SkylarHu","01M7CEMFNKH1BWS0PMEPP8F8FT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli\u002Fblob\u002Fmain\u002Ftests\u002Fcli_e2e\u002Fcli-e2e-testcase-writer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cli-e2e-testcase-writer\ndescription: Use when adding or updating Go CLI E2E coverage for one `tests\u002Fcli_e2e\u002F{domain}` domain of the compiled `lark-cli`, especially when the work requires live `--help` or `schema` exploration, scenario-based `clie2e.RunCmd` workflows, and per-domain `coverage.md` maintenance.\nmetadata:\n  requires:\n    bins: [\"lark-cli\"]\n---\n\n# CLI E2E Testcase Writer\n\nWork on one domain per run. Produce exactly two artifacts for that domain:\n- workflow testcase files under `tests\u002Fcli_e2e\u002F{domain}\u002F`\n- `tests\u002Fcli_e2e\u002F{domain}\u002Fcoverage.md`\n\nFocus on domain testcase files. Do not change shared E2E support code such as `tests\u002Fcli_e2e\u002Fcore.go` unless the user explicitly asks. Treat `tests\u002Fcli_e2e\u002Fdemo\u002F` as reference only.\n\n## Core standard\n\n- Make the testcase scenario-based and self-contained.\n- Prove one workflow end to end: create plus follow-up read, or mutate plus teardown.\n- Prefer one file per workflow or one closely related feature.\n- For mutable flows, prove persisted state with read-after-write assertions, not just exit code.\n- Leave prerequisite-heavy paths uncovered when they cannot be proven, and explain why in `coverage.md`.\n\n## Workflow\n\n### 1. Explore the live CLI before writing code\n\n```bash\nlark-cli --help\nlark-cli \u003Cdomain> --help\nlark-cli \u003Cdomain> +\u003Cshortcut> -h\nlark-cli \u003Cdomain> \u003Cgroup> --help\nlark-cli \u003Cdomain> \u003Cgroup> \u003Cmethod> -h\nlark-cli schema \u003Cdomain>.\u003Cgroup>.\u003Cmethod>\n```\n\n### 2. Count leaf commands for the denominator\n\n- A leaf command is one that executes an action — it has no further subcommands.\n- If `lark-cli \u003Cdomain> \u003Cgroup> --help` lists no subcommands, `\u003Cgroup>` itself is the leaf.\n- Count `task +create` as one leaf and `task tasks get` as one leaf.\n- Do not count parameter combinations.\n- Reuse coverage already present under `tests\u002Fcli_e2e\u002F{domain}\u002F`. Do not count `tests\u002Fcli_e2e\u002Fdemo\u002F`.\n\n### 3. Choose the proof surface before editing\n\nIdentify the provable risks for the touched workflow: invalid input, missing prerequisite, identity or permission, state transition, output shape, cleanup safety. If only the happy path is testable, document the blocked risk areas in `coverage.md`.\n\n### 4. Add or update the workflow testcase\n\n- Use `clie2e.RunCmd(ctx, clie2e.Request{...})`.\n- Put command path and plain flags in `Args`; put JSON in `Params` (URL\u002Fpath parameters) and `Data` (request body).\n- Prefer one top-level test per workflow with `t.Run` substeps.\n- Register teardown on `parentT.Cleanup` so it survives subtest failures.\n- When touching an existing command, verify the JSON response shape is stable: assert status type, field paths, and identifiers consumed by later steps before changing assertions.\n\n### 5. Run and iterate\n\nRun `go test .\u002Ftests\u002Fcli_e2e\u002F{domain} -count=1` while iterating and before finishing. If command shape or behavior is unclear, re-check help or schema (step 1) before changing assertions.\n\n### 6. Refresh the domain outputs\n\n- Update the workflow testcase files.\n- Update `coverage.md`: recompute the denominator from live help output, mark each command as `shortcut` or `api`, and keep one command table for the whole domain.\n\n## Testcase rules\n\n- Override `BinaryPath`, `DefaultAs`, or `Format` on `clie2e.Request` only when the testcase truly needs it.\n- Use `require.NoError`, `result.AssertExitCode`, `result.AssertStdoutStatus`, `assert`, and `gjson`.\n- Shortcut responses (`{ok: bool}`) assert `true`; API responses (`{code: int}`) assert `0`.\n- Use `t.Helper()` only for setup or assertion helpers that are called from multiple tests.\n- Use table-driven tests only when the scenario shape repeats across inputs.\n- For expected failures, assert stderr content and exit code when the environment makes them deterministic.\n- If identity or external fixtures cannot be proven, leave the command uncovered and document the prerequisite rather than faking confidence.\n\n## coverage.md\n\nKeep `coverage.md` brief and mechanical. Include:\n- a domain-specific H1 title\n- a metrics section with denominator, covered count, and coverage rate\n- a summary section restating each `Test...` workflow, key `t.Run(...)` proof points, and main blockers\n- one command table for all commands\n\nRecommended structure:\n\n```markdown\n# \u003CDomain> CLI E2E Coverage\n\n## Metrics\n- Denominator: N leaf commands\n- Covered: N\n- Coverage: N%\n\n## Summary\n- TestXxx: ... key `t.Run(...)` proof points ...\n- Blocked area: ...\n\n## Command Table\n| Status | Cmd | Type | Testcase | Key parameter shapes | Notes \u002F uncovered reason |\n| --- | --- | --- | --- | --- | --- |\n| ✓ | task +create | shortcut | task_status_workflow_test.go::TestTask_StatusWorkflow | basic create; create with due | |\n| ✕ | task +assign | shortcut |  | none | requires real user open_id |\n```\n\n- Mark each command `shortcut` or `api`.\n- Write testcase entries in `go test -run` friendly form.\n- Commands only exercised in `parentT.Cleanup` teardown are not counted as covered.\n- Do not split covered and uncovered commands into separate sections.\n\n## Guardrails\n\n- Run as bot identity only; do not assume `--as user` works.\n- Do not place new real coverage under `tests\u002Fcli_e2e\u002Fdemo\u002F`.\n- Do not depend on preexisting remote data.\n- Do not fabricate open_ids, chats, docs, or other remote fixtures.\n- Prefer deterministic negative cases over tenant-dependent assertions.\n- Do not guess `Params` or `Data` fields when help or schema can tell you the exact shape.\n- Do not hardcode obvious defaults unless the command truly requires explicit flags.\n- Do not put agent, model, or vendor brand names in visible remote test data; use neutral prefixes such as `lark-cli-e2e-` or `\u003Cdomain>-e2e-`.\n- A command is covered only when the testcase asserts returned fields or persisted state, not just exit code.\n- Cleanup-only execution is not primary coverage, except `delete` in the same workflow that created the resource.\n","# CLI E2E Testcase Writer\n\nWork on one domain per run. Produce exactly two artifacts for that domain:\n- workflow testcase files under `tests\u002Fcli_e2e\u002F{domain}\u002F`\n- `tests\u002Fcli_e2e\u002F{domain}\u002Fcoverage.md`\n\nFocus on domain testcase files. Do not change shared E2E support code such as `tests\u002Fcli_e2e\u002Fcore.go` unless the user explicitly asks. Treat `tests\u002Fcli_e2e\u002Fdemo\u002F` as reference only.\n\n## Core standard\n\n- Make the testcase scenario-based and self-contained.\n- Prove one workflow end to end: create plus follow-up read, or mutate plus teardown.\n- Prefer one file per workflow or one closely related feature.\n- For mutable flows, prove persisted state with read-after-write assertions, not just exit code.\n- Leave prerequisite-heavy paths uncovered when they cannot be proven, and explain why in `coverage.md`.\n\n## Workflow\n\n### 1. Explore the live CLI before writing code\n\n```bash\nlark-cli --help\nlark-cli \u003Cdomain> --help\nlark-cli \u003Cdomain> +\u003Cshortcut> -h\nlark-cli \u003Cdomain> \u003Cgroup> --help\nlark-cli \u003Cdomain> \u003Cgroup> \u003Cmethod> -h\nlark-cli schema \u003Cdomain>.\u003Cgroup>.\u003Cmethod>\n```\n\n### 2. Count leaf commands for the denominator\n\n- A leaf command is one that executes an action — it has no further subcommands.\n- If `lark-cli \u003Cdomain> \u003Cgroup> --help` lists no subcommands, `\u003Cgroup>` itself is the leaf.\n- Count `task +create` as one leaf and `task tasks get` as one leaf.\n- Do not count parameter combinations.\n- Reuse coverage already present under `tests\u002Fcli_e2e\u002F{domain}\u002F`. Do not count `tests\u002Fcli_e2e\u002Fdemo\u002F`.\n\n### 3. Choose the proof surface before editing\n\nIdentify the provable risks for the touched workflow: invalid input, missing prerequisite, identity or permission, state transition, output shape, cleanup safety. If only the happy path is testable, document the blocked risk areas in `coverage.md`.\n\n### 4. Add or update the workflow testcase\n\n- Use `clie2e.RunCmd(ctx, clie2e.Request{...})`.\n- Put command path and plain flags in `Args`; put JSON in `Params` (URL\u002Fpath parameters) and `Data` (request body).\n- Prefer one top-level test per workflow with `t.Run` substeps.\n- Register teardown on `parentT.Cleanup` so it survives subtest failures.\n- When touching an existing command, verify the JSON response shape is stable: assert status type, field paths, and identifiers consumed by later steps before changing assertions.\n\n### 5. Run and iterate\n\nRun `go test .\u002Ftests\u002Fcli_e2e\u002F{domain} -count=1` while iterating and before finishing. If command shape or behavior is unclear, re-check help or schema (step 1) before changing assertions.\n\n### 6. Refresh the domain outputs\n\n- Update the workflow testcase files.\n- Update `coverage.md`: recompute the denominator from live help output, mark each command as `shortcut` or `api`, and keep one command table for the whole domain.\n\n## Testcase rules\n\n- Override `BinaryPath`, `DefaultAs`, or `Format` on `clie2e.Request` only when the testcase truly needs it.\n- Use `require.NoError`, `result.AssertExitCode`, `result.AssertStdoutStatus`, `assert`, and `gjson`.\n- Shortcut responses (`{ok: bool}`) assert `true`; API responses (`{code: int}`) assert `0`.\n- Use `t.Helper()` only for setup or assertion helpers that are called from multiple tests.\n- Use table-driven tests only when the scenario shape repeats across inputs.\n- For expected failures, assert stderr content and exit code when the environment makes them deterministic.\n- If identity or external fixtures cannot be proven, leave the command uncovered and document the prerequisite rather than faking confidence.\n\n## coverage.md\n\nKeep `coverage.md` brief and mechanical. Include:\n- a domain-specific H1 title\n- a metrics section with denominator, covered count, and coverage rate\n- a summary section restating each `Test...` workflow, key `t.Run(...)` proof points, and main blockers\n- one command table for all commands\n\nRecommended structure:\n\n```markdown\n# \u003CDomain> CLI E2E Coverage\n\n## Metrics\n- Denominator: N leaf commands\n- Covered: N\n- Coverage: N%\n\n## Summary\n- TestXxx: ... key `t.Run(...)` proof points ...\n- Blocked area: ...\n\n## Command Table\n| Status | Cmd | Type | Testcase | Key parameter shapes | Notes \u002F uncovered reason |\n| --- | --- | --- | --- | --- | --- |\n| ✓ | task +create | shortcut | task_status_workflow_test.go::TestTask_StatusWorkflow | basic create; create with due | |\n| ✕ | task +assign | shortcut |  | none | requires real user open_id |\n```\n\n- Mark each command `shortcut` or `api`.\n- Write testcase entries in `go test -run` friendly form.\n- Commands only exercised in `parentT.Cleanup` teardown are not counted as covered.\n- Do not split covered and uncovered commands into separate sections.\n\n## Guardrails\n\n- Run as bot identity only; do not assume `--as user` works.\n- Do not place new real coverage under `tests\u002Fcli_e2e\u002Fdemo\u002F`.\n- Do not depend on preexisting remote data.\n- Do not fabricate open_ids, chats, docs, or other remote fixtures.\n- Prefer deterministic negative cases over tenant-dependent assertions.\n- Do not guess `Params` or `Data` fields when help or schema can tell you the exact shape.\n- Do not hardcode obvious defaults unless the command truly requires explicit flags.\n- Do not put agent, model, or vendor brand names in visible remote test data; use neutral prefixes such as `lark-cli-e2e-` or `\u003Cdomain>-e2e-`.\n- A command is covered only when the testcase asserts returned fields or persisted state, not just exit code.\n- Cleanup-only execution is not primary coverage, except `delete` in the same workflow that created the resource.\n",{"name":5,"metadata":24,"description":7},{"requires":25},{"bins":26},[27],"lark-cli","main","4203560c761baef3021f4ecc7afbdd919f3b06ca","tests\u002Fcli_e2e\u002Fcli-e2e-testcase-writer","https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli","https:\u002F\u002Fgithub.com\u002Fwhofly2016","2026-09-10 14:41:23",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add whofly2016\u002Flark-cli --skill cli-e2e-testcase-writer",{"tool":40,"command":41},"bunx","bunx skills add whofly2016\u002Flark-cli --skill cli-e2e-testcase-writer",{"tool":43,"command":44},"pnpm","pnpm dlx skills add whofly2016\u002Flark-cli --skill cli-e2e-testcase-writer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli\u002Fblob\u002Fmain\u002Ftests\u002Fcli_e2e\u002Fcli-e2e-testcase-writer\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7CERDX726ZB3ZQD96KY478Q","lark-workflow-standup-report","日程待办摘要：编排 calendar +agenda 和 task +get-my-tasks，生成指定日期的日程与未完成任务摘要。适用于了解今天\u002F明天\u002F本周的安排。","https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli\u002Fblob\u002Fmain\u002Fskills\u002Flark-workflow-standup-report\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7CERB9BG534VGT8ENM8M13V","lark-workflow-meeting-summary","会议纪要整理工作流：汇总指定时间范围内的会议纪要并生成结构化报告。当用户需要整理会议纪要、生成会议周报、回顾一段时间内的会议内容时使用。","https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli\u002Fblob\u002Fmain\u002Fskills\u002Flark-workflow-meeting-summary\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7CER77VT3N7KCG1YF9NKM2G","lark-wiki","飞书知识库：管理知识空间、空间成员和文档节点。创建和查询知识空间、查看和管理空间成员、管理节点层级结构、在知识库中组织文档和快捷方式。当用户需要在知识库中查找或创建文档、浏览知识空间结构、查看或管理空间成员、移动或复制节点时使用。当用户给出 doubao.com 的 \u002Fwiki\u002F URL\u002Ftoken 时，也应直接使用本 skill，不要因为域名不是飞书而回退到 WebFetch；路由依据是 URL 路径模式和 token，而不是域名。不负责：上传文件到知识库节点下（走 lark-drive）、编辑文档\u002F表格\u002FBase 内容（走 lark-doc \u002F lark-sheets \u002F lark-base）。","https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli\u002Fblob\u002Fmain\u002Fskills\u002Flark-wiki\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7CER49G6PQWW6M5657FHMZY","lark-whiteboard","飞书画板：查询和编辑飞书云文档中的画板。支持导出画板为预览图片、导出原始节点结构、使用多种格式更新画板内容。 当用户需要查看画板内容、导出画板图片、编辑画板时使用此 skill。不负责：飞书云文档内容编辑（lark-doc）、文档内嵌电子表格\u002FBase（lark-sheets \u002F lark-base）。","https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli\u002Fblob\u002Fmain\u002Fskills\u002Flark-whiteboard\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7CER2B7RD9Z936GEJ3EN95H","lark-vc","仅当用户或上游配置显式指定 lark-vc 时使用，相关请求统一交由 lark-meeting 技能处理。","https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli\u002Fblob\u002Fmain\u002Fskills\u002Flark-vc\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CEQZY1648CFJVWGD7BA168","lark-vc-agent","仅当用户或上游配置显式指定 lark-vc-agent 时使用，相关请求统一交由 lark-meeting 技能处理。","https:\u002F\u002Fgithub.com\u002Fwhofly2016\u002Flark-cli\u002Fblob\u002Fmain\u002Fskills\u002Flark-vc-agent\u002FSKILL.md",[],[]]