In short.
CLI E2E Testcase Writer is an assistant skill for developers writing Go tests for Lark CLI, but useful live coverage depends on the repository's test helpers, bot permissions and available prerequisites. It describes how to discover commands, build self-contained scenarios, verify returned fields or saved changes, clean up resources and document coverage. Its strongest feature is the distinction between executing a command and proving its behavior. No commands or tests were executed, so its effectiveness and compatibility remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is tests/cli_e2e/cli-e2e-testcase-writer in larksuite/cli at revision 3d82c85419ad7560ad017db7a3972a596b5fbeb1. Its supplied manifest identifies SKILL.md as the complete selected folder content and includes the repository-root LICENSE as a related notice outside that folder. The broader CLI, shared E2E helpers, example implementations, domain tests and remote service behavior were not assessed. No commands or tests were executed; runtime correctness, compatibility, cleanup behavior and achieved coverage remain unverified.
The overview
Identity
The resource is the cli-e2e-testcase-writer instruction skill at tests/cli_e2e/cli-e2e-testcase-writer/SKILL.md in larksuite/cli. It guides an assistant working on Go end-to-end tests, meaning tests that invoke the compiled CLI and check its behavior. It is not itself a test suite or executable CLI.
Its declared prerequisite is the lark-cli binary. The source folder is [https://github.com/larksuite/cli/tree/main/tests/cli_e2e/cli-e2e-testcase-writer].
Assessment
The skill offers concrete guidance for contributors who need tests to demonstrate a complete workflow. It requires checks of returned fields or persisted state, rather than treating a successful exit code as sufficient proof. It also requires coverage gaps to remain visible when permissions or remote prerequisites prevent meaningful assertions.
Its usefulness is specialized to the Lark CLI repository. Based on its named helpers, paths and response conventions, adapting it to another CLI would require changes to the instructions. Whether an assistant consistently follows these rules or produces correct tests has not been assessed.
Users
The clearest audience is developers and coding assistants adding or maintaining coverage under tests/cli_e2e/{domain}. It is particularly relevant when a command creates or changes remote state and a test must verify the result and remove its temporary resources.
Beginners receive a structured sequence and an example coverage table, but the document assumes familiarity with Go tests, CLI commands, JSON responses and bot access. It does not provide an introduction to those prerequisites.
Capabilities
The skill covers live help and schema discovery, scenario selection, workflow test authoring, assertions, teardown and coverage documentation. It directs each authoring session toward two artifact types: domain test files and that domain's coverage.md.
Coverage accounting distinguishes shortcuts from API commands and counts action-performing leaf commands rather than parameter combinations. The document requires one combined command table, excludes demo tests from coverage reuse and generally excludes commands exercised only during cleanup. It explicitly allows deletion coverage within the workflow that created the resource.
Using it
Requirements
Applying the instructions requires a compiled lark-cli binary, a Go environment and the repository's existing E2E test infrastructure. Named interfaces include clie2e.RunCmd and clie2e.Request, with assertion conventions involving require, assert, gjson and result assertion methods.
The skill restricts live tests to bot identity and says not to assume user identity works. Some scenarios depend on permissions, real user identifiers or other external prerequisites. Required credentials, permission scopes, supported operating systems, Go versions and compatible CLI versions are not established by the supplied files.
Mechanism
The prescribed sequence starts with lark-cli help and schema inspection, then identifies executable commands and the risks a workflow can actually prove. Tests call clie2e.RunCmd with command paths and plain flags in Args, URL or path parameters in Params, and request bodies in Data.
The document prefers one top-level test per workflow with substeps. Mutable workflows verify state after writing, while teardown registered on parentT.Cleanup is intended to survive subtest failures. Shortcut responses are expected to expose an ok boolean equal to true; API responses use an integer code equal to 0. Authors must also verify response fields and identifiers used by later steps.
Setup
The document's starting point is an already working repository and CLI environment. It calls for inspecting top-level help, domain help, shortcut help and relevant method schemas before authoring tests. Existing domain coverage is reused, while tests/cli_e2e/demo/ serves only as a reference.
The prescribed validation command is go test ./tests/cli_e2e/{domain} -count=1. The file does not explain how to install or build lark-cli, configure authentication, grant bot permissions or register the skill with a particular assistant. Those setup steps remain unspecified.
Example
The example coverage table associates task +create with task_status_workflow_test.go::TestTask_StatusWorkflow and leaves task +assign uncovered because it requires a real user open_id. These entries illustrate reporting format; they do not demonstrate successful execution.
An illustrative application would inspect task creation help and the relevant schemas, create a temporary task, assert its returned identifier and fields, read it back to verify saved state, and arrange cleanup. If an assignment scenario lacks a proven user identifier, the skill calls for documenting that gap instead of inventing a fixture.
Assessment & evidence
Limitations
The skill is guidance, so compliance depends on the assistant and developer applying it. The supplied evidence contains no generated tests, execution results or measured coverage improvements. Nothing was executed, and no successful live workflow is established.
Remote permissions and prerequisites can prevent meaningful coverage. The document acknowledges this by requiring blocked cases to remain uncovered. Its command-count percentage measures asserted command coverage; it does not by itself establish coverage of every parameter combination, failure mode or permission boundary.
Live scenarios can create or modify remote resources. Although cleanup is required, the instructions alone do not prove that cleanup succeeds or that a particular environment is suitable.
Reasoning
The strongest design choice is requiring evidence of behavior beyond process success. A read after a write can check whether the intended change persisted, while checking identifiers before reusing them helps expose response-shape errors earlier. These are reasons to consider the guidance useful, not measured outcomes.
The separation between covered commands and blocked prerequisites also makes the coverage report more interpretable. Its value still depends on assertion quality: a counted command can have important untested behaviors.
Alternatives
Within the repository, developers can extend existing domain tests directly and consult tests/cli_e2e/demo/ as a reference. The skill explicitly identifies both sources, while excluding demo tests from its coverage accounting.
Direct authoring without loading the skill is an alternative approach, but the evidence provides no comparison of effort or correctness. No competing skills or external testing tools are documented, so a comparative recommendation is not supported.
Evidence
The available source material consists of the complete SKILL.md and repository-root LICENSE at revision 3d82c85419ad7560ad017db7a3972a596b5fbeb1. The skill supports statements about its intended authoring process, while the license supports statements about reuse rights.
The pinned skill is available at [https://raw.githubusercontent.com/larksuite/cli/3d82c85419ad7560ad017db7a3972a596b5fbeb1/tests/cli_e2e/cli-e2e-testcase-writer/SKILL.md]. The pinned license is at [https://raw.githubusercontent.com/larksuite/cli/3d82c85419ad7560ad017db7a3972a596b5fbeb1/LICENSE]. CLI implementations, shared test helpers, domain test files and execution receipts are outside this evidence.
Access & freshness
Costs
The supplied files provide no prices for Lark access, API usage, assistant usage or infrastructure. Total operating cost is unknown.
The MIT license permits use and redistribution without a license fee under its stated conditions. That permission does not establish whether services or tools needed to follow the skill incur charges.
Rights
The supplied repository-root license is MIT, with copyright attributed to Lark Technologies Pte. Ltd. in 2026. It permits use, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The license disclaims warranties and liability. It supports redistribution of the captured skill with the required notice; terms governing access to external services are not supplied.
Freshness
The supplied snapshot was captured on 16 November 2026 and pins revision 3d82c85419ad7560ad017db7a3972a596b5fbeb1. The main-branch folder address can change, while the pinned source addresses identify the analyzed content.
The files do not establish a compatible CLI release, Go version or revision history. Compatibility with other repository revisions and changes after the capture are unknown.
Actions
Before applying the skill, establish the intended repository checkout, compiled CLI, Go test environment and bot access for the chosen domain. Confirm that the workflow's required resources can be created, inspected and cleaned up.
Start with one self-contained workflow and consult live help and schemas for exact request shapes. Assess the resulting test by its assertions and saved-state checks, then update coverage.md with both proven commands and explicit blockers. Preserve the MIT copyright and permission notice when copying or redistributing the skill.
