Agent skill

Add E2E Test Suite

by crowdin in crowdin/crowdin-cli

Adds a new end-to-end (e2e) test suite for the Crowdin CLI under tests/e2e/suites/, exercising real CLI commands against a freshly-created Crowdin project.

MITAuto-check passedTesting & QA

Install Add E2E Test Suite

skills CLI
$ npx skills add crowdin/crowdin-cli --skill add-e2e-test-suite -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install crowdin/crowdin-cli add-e2e-test-suite --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/crowdin/crowdin-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-e2e-test-suite .claude/skills/add-e2e-test-suite && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-e2e-test-suite
GitHub stars
319
Token cost
~2.4k tokens
SKILL.md length
879 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Adds a new end-to-end (e2e) test suite for the Crowdin CLI under tests/e2e/suites/, exercising real CLI commands against a freshly-created Crowdin project.

  • Extend an e2e/integration test suite for the CLI — including new command coverage like upload
  • SKILL.md covers Iron rule: generate snapshots…, Steps, Rules learned the hard way and Helpers (tests/e2e/helpers/)
  • Calls bun; needs CROWDIN_E2E_TOKEN
  • TM — even if the user just says add an e2e test for X

What it does

Add E2E Test Suite is an agent skill from crowdin/crowdin-cli. Adds a new end-to-end (e2e) test suite for the Crowdin CLI under tests/e2e/suites/, exercising real CLI commands against a freshly-created Crowdin project. Covers fixtures, the setupSuite/teardownSuite lifecycle, running the CLI, output normalization, snapshot generation, and file assertions. Use whenever asked to add, write, scaffold, or extend an e2e/integration test suite for the CLI — including new command coverage like upload, download, branch, glossary, or TM — even if the user just says "add an e2e test…

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering End-to-end testing and Test generation. The repository describes itself as: A command-line client for the Crowdin API. The licence is MIT.

When your agent uses it

  • Extend an e2e/integration test suite for the CLI — including new command coverage like upload
  • TM — even if the user just says add an e2e test for X

Example prompts

  • “add an e2e test for X”
  • “/add-e2e-test-suite”

Requirements

  • A credential in CROWDIN_E2E_TOKEN

What it can do on your machine

Read from SKILL.md and the folder at commit 1522c9b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • CROWDIN_E2E_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add E2E Test Suite loads about 2.4k tokens when it runs. Until then it costs about 136 tokens; SKILL.md has 879 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~136
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from crowdin/crowdin-cli at commit 1522c9b, republished under its MIT licence (© crowdin). 879 words, ~2,365 tokens.

Download SKILL.mdSave it as .claude/skills/add-e2e-test-suite/SKILL.md (or your agent's skills folder).
name
add-e2e-test-suite
description
Adds a new end-to-end (e2e) test suite for the Crowdin CLI under tests/e2e/suites/, exercising real CLI commands against a freshly-created Crowdin project. Covers fixtures, the setupSuite/teardownSuite lifecycle, running the CLI, output normalization, snapshot generation, and file assertions. Use whenever asked to add, write, scaffold, or extend an e2e/integration test suite for the CLI — including new command coverage like upload, download, branch, glossary, or TM — even if the user just says "add an e2e test for X".

Add an e2e test suite (Crowdin CLI)

The framework runs bun src-next/cli.ts against a real, freshly-created Crowdin project, asserts on normalized output / exit codes / produced files, then tears everything down. Each suite is one file owning one project: beforeAll provisions, test()s run in declaration order, afterAll tears down. See tests/e2e/README.md.

Iron rule: generate snapshots from a real run, never hand-write them

You can't reliably predict the CLI's exact output or where the server lands files — hand-written snapshots are usually wrong and waste a review cycle.

You almost certainly don't have CROWDIN_E2E_TOKEN (it lives in the user's/CI env). So don't run the suite yourself with a fabricated token. Instead, write the suite, then ask the user to run it and report back:

bash
# user runs this (token already in their env):
bun test tests/e2e/suites/<suite>.test.ts --update-snapshots

Then read the committed .snap to sanity-check it's real output, not an error/empty build.

Same for any server behavior (locale folder names, file layout): observe it, don't assume. Ask the user to run once with a throwaway console.log(await (await import('node:fs/promises')).readdir(ctx.workspace, { recursive: true })) after the run (or CROWDIN_E2E_KEEP=1 bun run test:e2e, which skips teardown and logs the kept workspace path), and paste the result.

Steps

1. Fixtures — tests/e2e/fixtures/<suite>/config/crowdin.yml (template) + input files (e.g. sources/*.md). {{projectId}} / {{token}} / {{baseUrl}} are always available ({{baseUrl}} is CROWDIN_E2E_BASE_URL, so never hardcode api.crowdin.com); any other {{name}} must be supplied by the caller (see switchConfig below) or renderConfig throws. Everything except the top-level config/ dir is copied into the workspace, so alt-configs/ and expected/ land there too.

yaml
project_id: "{{projectId}}"
api_token: "{{token}}"
base_path: "."
base_url: "{{baseUrl}}"
preserve_hierarchy: true
files:
  - source: "sources/*.md"
    translation: "translations/%locale%/%original_file_name%"

2. Suite — tests/e2e/suites/<suite>.test.ts:

ts
import { afterAll, beforeAll, describe, expect, test } from 'bun:test';
import { expectFailure } from '../helpers/cli.ts';
import { expectFilesExist } from '../helpers/files.ts';
import { normalize } from '../helpers/normalize.ts';
import { type SuiteContext, setupSuite, teardownSuite } from '../helpers/suite.ts';

describe('<human-readable suite name>', () => {
  let ctx: SuiteContext;

  // targetLanguageIds optional (defaults to ['it', 'uk']).
  beforeAll(async () => { ctx = await setupSuite('<suite>', { targetLanguageIds: ['uk', 'it'] }); });
  afterAll(async () => { await teardownSuite(ctx); });

  test('uploads sources', async () => {
    const result = await ctx.runner.run(['upload', 'sources']);
    expect(result).toMatchObject({ exitCode: 0 });
    expect(normalize(result.stdout)).toMatchSnapshot();
  });

  test('downloads translations', async () => {
    const result = await ctx.runner.run(['download', 'translations']);
    expect(result).toMatchObject({ exitCode: 0 });
    expect(normalize(result.stdout)).toMatchSnapshot();
    // Files land where the config's `translation:` pattern resolves — assert the layout you observed.
    await expectFilesExist(ctx.workspace, 'translations/it-IT/alpha.md', 'translations/uk-UA/alpha.md');
  });

  test('rejects an unknown language', async () => {
    const result = await ctx.runner.run(['download', 'translations', '-l', 'xx']);
    expectFailure(result, 1, "Language 'xx' doesn't exist in the project");
  });
});

3. Have the user run the suite with --update-snapshots (see iron rule), then read the generated .snap before committing it.

No registry to edit (suites are discovered by file). No file cleanup to write (teardownSuite wipes the whole workspace).

Rules learned the hard way

  • Tests share one project, run top-to-bottom. Order them so later tests build on earlier state (upload before download). No isolation between tests.
  • ctx.runner.run(args) auto-appends -c <config> --no-progress --no-colors — pass only what follows crowdin. Returns { stdout, stderr, exitCode, timedOut }. Always assert the exit code and the snapshot.
  • Assert exit codes one way: success is expect(result).toMatchObject({ exitCode: 0 }); a failing command is expectFailure(result, <code>, ...stderrSubstrings). Don't reintroduce expect(result.exitCode).toBe(...).
  • normalize() gathers every status line (●, ▲, ◆) into one block, markers in order of first appearance and sorted within each — their interleaving is a race, so position is not preserved. Other lines are still sorted only within contiguous same-token runs (which keeps table rows inside their own table). It also masks ids (#123 → #id, a bare leading id → <id>, (ID: 123) → (ID: <project>)), durations, the workspace root, the per-run project name, collapses repeated poll-progress lines, and drops the update-check banner. Assert load-bearing facts (exit code, files, counts) explicitly; don't add per-suite normalize config.
  • The config translation: pattern IS applied on download — the CLI resolves each archive entry to the local path that pattern names, so translation: "translations/%locale%/%original_file_name%" lands translations/it-IT/alpha.md (see basic-upload-download). The layout follows the pattern and its placeholders, so assert what you observed for the pattern under test.
  • Snapshot keys embed the describe() name — renaming it orphans existing entries; update the .snap or regenerate.
  • Prefer literal assertion strings ('translations/it-IT/alpha.md') over paths derived from the API/config — clearer and obviously correct.
  • Token required. setupSuite throws without CROWDIN_E2E_TOKEN. Suites run via bun run test:e2e; the network-free helper unit tests run in the regular bun test.
  • Suites run four at a time (test:e2e passes --parallel=4). Tests inside one file still run in order, but another suite is running against the same account — so never assert on account-wide listings (every glossary, every project) without filtering to this suite's own names.
Show full SKILL.md (293 more words)Show less

Helpers (tests/e2e/helpers/)

Lifecycle (suite.ts)

  • setupSuite(suite, { sourceLanguageId?, targetLanguageIds?, stringsBased?, withoutProject? }) → SuiteContext { suite, env, client, workspace, project, runner, extraProjects }. Provisions workspace + fixtures + project + rendered config; rolls back the project if a later setup step fails. ctx.client is a @crowdin/crowdin-api-client Client for direct API setup/assertions.
  • teardownSuite(ctx) — deletes the project and every createExtraProject one, removes the workspace; honors CROWDIN_E2E_KEEP=1; logs, never throws.
  • createExtraProject(ctx, opts) → id of a second project (e.g. a strings-based one to fire a guard against); torn down with the rest. Don't hand-roll a delete in afterAll.
  • switchConfig(ctx, name, vars?) — swap in alt-configs/<name>.yml, rendered with the project id, token and any vars. Values go in as-is when they are strings and JSON-encoded otherwise, so an array renders as a YAML flow sequence: switchConfig(ctx, 'ignore', { ignore: ['/**/?.xml'] }) against a template line ignore: {{ignore}}. Prefer this over building YAML from string arrays in the test.
  • restoreConfig(ctx) — put the suite's own config/crowdin.yml back. Don't add an alt-config that just duplicates it.
  • renderFixture(ctx, from, to?, vars?) — render any workspace fixture, not just crowdin.yml (e.g. an --identity file).
  • runJson<T>(ctx, args, opts?) — run with --output json, assert exit 0, return the parsed stdout.

Assertions

  • expectFailure(result, exitCode, ...stderrSubstrings) (cli.ts).
  • files.ts: expectFilesExist(workspace, ...paths), expectFilesMatch(workspace, actualDir, expectedDir, ...paths) (compares a download against expected/ fixtures and names every file that differs), clearDir(workspace, ...paths) (clear a download destination so a stale file can't masquerade as a fresh one), captureAndClear / expectRestored / capturedContent, listFilesRecursively(root).
  • lookup.ts: projectFilePaths(ctx), findStringId, findBranch, findFileId, findCommentId, findGlossaryId, findTmId, translationCount. Reach for these before writing another list-find-or-throw by hand.
  • normalize(output) — see the rules above.

Compare against fixtures, not against the CLI's own code. init used to build its expected YAML with the CLI's own generator, so a generator regression rewrote both sides and passed. Check in an expected/ file captured from a real run instead.

© crowdin, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/add-e2e-test-suite of crowdin/crowdin-cli.

Open the folder on GitHubat commit 1522c9b

Compare with similar skills

Add E2E Test Suite next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add E2E Test Suite compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add E2E Test Suite this skillcrowdin/crowdin-cli319—~2.4kAutomated safety check: PassMIT
E2E Test ThinkerUniClipboard/UniClipboard1.8k—~1.7kAutomated safety check: PassAGPL-3.0
Migrate E2E To Integrationopenshift/oc-mirror124—~1.5kAutomated safety check: PassApache-2.0
Verifying ChangesMr-Quin/danmaku-anywhere547—~1.1kAutomated safety check: PassCustom licence
Test Scenariosphuryn/pm-skills27k—~866Automated safety check: PassMIT
Memmesh Test IntegrationThinkfleetAI/memmesh419—~621Automated safety check: PassApache-2.0

Similar skills

  • E2E Test Thinker

    UniClipboard/UniClipboard

    Analyze the current branch's diff against main and determine which changes are testable via CLI-based end-to-end tests.

    1.8k GitHub stars~1.7k tokensUpdated today
    Testing & QAAuto-check passed
  • Migrate E2E To Integration

    openshift/oc-mirror

    Migrate an oc-mirror e2e test case to the integration test suite, translating framework, registry, invocation, and assertion patterns

    124 GitHub stars~1.5k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Verifying Changes

    Mr-Quin/danmaku-anywhere

    Use after changing extension code, to prove it works: which test tier to run, the red-before-green rule, and what to record in the PR test plan.

    547 GitHub stars~1.1k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Test Scenarios

    phuryn/pm-skills

    Create comprehensive test scenarios from user stories with test objectives, starting conditions, user roles, step-by-step actions, and expected outcomes.

    27k GitHub stars~866 tokensUpdated 22 days ago
    Testing & QAAuto-check passed
  • Memmesh Test Integration

    ThinkfleetAI/memmesh

    Verify a MemMesh integration produced by memmesh-integrate. An agent skill from ThinkfleetAI/memmesh.

    419 GitHub stars~621 tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Testing

    ItamarZand88/CLI-Anything-WEB

    Writes and documents the test suite for a generated cli-web- CLI (Phase 3): unit tests with mocked HTTP, live E2E tests, subprocess tests via resolvecli, and the TEST.md plan/results record.

    231 GitHub stars~3.3k tokensUpdated 6 days ago
    Testing & QAAuto-check passed

More from crowdin/crowdin-cli

  • Crowdin API Client

    crowdin/crowdin-cli

    A skill your agent uses when implementing, refactoring, or reviewing @crowdin/crowdin-api-client usage in any JavaScript or TypeScript project, especially for endpoint selection, request/response…

    319 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Live Crowdin CLI Validation

    crowdin/crowdin-cli

    Validates CLI commands against live environments with safe setup and cleanup.

    319 GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Render Command Output

    crowdin/crowdin-cli

    A skill your agent uses when adding or changing what a CLI command prints - creating or editing views (views.ts), list/item/grid/table rendering, deciding what --output plain, json, or toon emit…

    319 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Add E2E Test Suite

What does Add E2E Test Suite do?

Adds a new end-to-end (e2e) test suite for the Crowdin CLI under tests/e2e/suites/, exercising real CLI commands against a freshly-created Crowdin project. Add E2E Test Suite is an agent skill from crowdin/crowdin-cli. Adds a new end-to-end (e2e) test suite for the Crowdin CLI under tests/e2e/suites/, exercising real CLI commands against a freshly-created Crowdin project.

When should I use Add E2E Test Suite?

Add E2E Test Suite fits situations like: extend an e2e/integration test suite for the CLI — including new command coverage like upload; TM — even if the user just says add an e2e test for X.

How do I install Add E2E Test Suite in Claude Code?

Run `npx skills add crowdin/crowdin-cli --skill add-e2e-test-suite -a claude-code`. Or copy the skill folder (.agents/skills/add-e2e-test-suite in crowdin/crowdin-cli) into .claude/skills/add-e2e-test-suite in your project. Claude Code loads it when a task matches its description.

How do I install Add E2E Test Suite in Codex?

Run `npx skills add crowdin/crowdin-cli --skill add-e2e-test-suite -a codex`. Or copy the skill folder (.agents/skills/add-e2e-test-suite in crowdin/crowdin-cli) into .agents/skills/add-e2e-test-suite in your project. Codex loads it when a task matches its description.

Can I use Add E2E Test Suite in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add crowdin/crowdin-cli --skill add-e2e-test-suite -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-e2e-test-suite, .gemini/skills/add-e2e-test-suite, .github/skills/add-e2e-test-suite and .opencode/skills/add-e2e-test-suite in your project.

What does Add E2E Test Suite need to run?

Going by SKILL.md and its folder, Add E2E Test Suite needs the command-line tools its instructions call (bun) and credentials named CROWDIN_E2E_TOKEN. Our summary lists: A credential in CROWDIN_E2E_TOKEN.

Does Add E2E Test Suite access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add E2E Test Suite safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add E2E Test Suite use?

Add E2E Test Suite is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add E2E Test Suite use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add E2E Test Suite?

Skills that share tags, products or a category with Add E2E Test Suite: E2E Test Thinker (UniClipboard/UniClipboard, 1.8k stars), Migrate E2E To Integration (openshift/oc-mirror, 124 stars), Verifying Changes (Mr-Quin/danmaku-anywhere, 547 stars) and Test Scenarios (phuryn/pm-skills, 27k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add E2E Test Suite?

crowdin (a GitHub organization) maintains it in crowdin/crowdin-cli, which has 319 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 6, 2026.

Source: crowdin/crowdin-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.