Shift Left Testing
petrkindlmann/qa-skills
Move quality earlier in the development lifecycle. An agent skill from petrkindlmann/qa-skills.
Testing rules for the cmux Swift codebase: Swift Testing as the default framework, a two-commit regression policy, and tests that check runtime behavior, not source text.
$ npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install disler/learning-cmux-with-agents cmux-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/disler/learning-cmux-with-agents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ai_docs/cmux-skills/cmux-testing .claude/skills/cmux-testing && rm -rf skills-srcUse ~/.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/
Install the "cmux-testing" agent skill from https://github.com/disler/learning-cmux-with-agents/tree/main/ai_docs/cmux-skills/cmux-testing into .claude/skills/cmux-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/disler/learning-cmux-with-agents/tree/main/ai_docs/cmux-skills/cmux-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install disler/learning-cmux-with-agents cmux-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/disler/learning-cmux-with-agents.git skills-src && mkdir -p .agents/skills && cp -r skills-src/ai_docs/cmux-skills/cmux-testing .agents/skills/cmux-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cmux-testing" agent skill from https://github.com/disler/learning-cmux-with-agents/tree/main/ai_docs/cmux-skills/cmux-testing into .agents/skills/cmux-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install disler/learning-cmux-with-agents cmux-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/disler/learning-cmux-with-agents.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/ai_docs/cmux-skills/cmux-testing .cursor/skills/cmux-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cmux-testing" agent skill from https://github.com/disler/learning-cmux-with-agents/tree/main/ai_docs/cmux-skills/cmux-testing into .cursor/skills/cmux-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/disler/learning-cmux-with-agents.git --path ai_docs/cmux-skills/cmux-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install disler/learning-cmux-with-agents cmux-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/disler/learning-cmux-with-agents.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/ai_docs/cmux-skills/cmux-testing .gemini/skills/cmux-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cmux-testing" agent skill from https://github.com/disler/learning-cmux-with-agents/tree/main/ai_docs/cmux-skills/cmux-testing into .gemini/skills/cmux-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install disler/learning-cmux-with-agents cmux-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/disler/learning-cmux-with-agents.git skills-src && mkdir -p .github/skills && cp -r skills-src/ai_docs/cmux-skills/cmux-testing .github/skills/cmux-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cmux-testing" agent skill from https://github.com/disler/learning-cmux-with-agents/tree/main/ai_docs/cmux-skills/cmux-testing into .github/skills/cmux-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install disler/learning-cmux-with-agents cmux-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/disler/learning-cmux-with-agents.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/ai_docs/cmux-skills/cmux-testing .opencode/skills/cmux-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cmux-testing" agent skill from https://github.com/disler/learning-cmux-with-agents/tree/main/ai_docs/cmux-skills/cmux-testing into .opencode/skills/cmux-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cmux-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cmux-testingTesting rules for the cmux Swift codebase: Swift Testing as the default framework, a two-commit regression policy, and tests that check runtime behavior, not source text.
This skill sets the testing conventions for the cmux project. Unit and integration tests are written with Swift Testing (import Testing, @Test, @Suite, #expect and try #require), while UI tests stay on XCTest and XCUITest because Swift Testing has no UI support. New Swift package test targets start on Swift Testing from their first commit.
A regression test for a bug fix goes in as two commits: the failing test alone so CI turns red, then the fix so CI turns green, which shows in the pull request that the test really catches the bug. A quality policy rules out tests that only grep source text, signatures or checked-in files such as Info.plist and project.pbxproj; tests should exercise observable behavior, or the built app bundle for metadata changes. When no meaningful test is practical, the agent says so rather than adding a fake one. Reference files cover local versus CI validation, regression and quality, and migrating to Swift Testing.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6eaacab. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
cmux Testing Rules loads about 1.2k tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 57 tokens; SKILL.md has 634 words of instructions outside code blocks.
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.
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.
The full file from disler/learning-cmux-with-agents at commit 6eaacab, republished under its MIT licence (© disler). 634 words, ~1,235 tokens.
.claude/skills/cmux-testing/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.When adding a regression test for a bug fix, use a two-commit structure so CI proves the test catches the bug:
This makes it visible in the GitHub PR UI that the test genuinely fails without the fix.
Resources/Info.plist, project.pbxproj, .xcconfig, or source files only to assert that a key, string, plist entry, or snippet exists.Swift Testing is the current Apple-supported primitive for tests on this codebase (shipped with Swift 6 / Xcode 16, supported on the macOS versions we target). Use it for everything that is not a UI test.
import Testing, annotate tests with @Test, group with @Suite, assert with #expect(...) and try #require(...). Do not write new tests with import XCTest unless they are UI tests.XCUIApplication integration). Files under cmuxUITests/ continue to use XCTestCase + XCUIApplication. Do not migrate them and do not try to bridge Swift Testing into UI tests.Tests/<Name>Tests/ directory (e.g. Packages/macOS/CmuxSettings/Tests/CmuxSettingsTests/) should ship with Swift Testing from the first commit. Xcode 16 auto-detects the framework based on the import Testing statement; no extra Package.swift configuration is required.XCTestCase subclass becomes a @Suite struct (or final class if you need a reference type); each func testFoo() becomes @Test func foo(); XCTAssertEqual(a, b) becomes #expect(a == b); XCTAssertTrue(cond) becomes #expect(cond); XCTUnwrap(x) becomes try #require(x); XCTFail("msg") becomes Issue.record("msg"). setUp() becomes init() on the suite; tearDown() becomes deinit. Async setup is async init(). Do not bulk-rewrite untouched tests; migrate incrementally as a side effect of editing the file.@Test(arguments: [...]). Prefer this over duplicate test methods..serialized instead of adding locks or sleeps.@Test(.tags(.something)) (or on a @Suite) let CI and local runs filter selectively.reload.sh does not compile the test target. It builds only the cmux scheme, so a green reload.sh says nothing about whether cmuxTests/cmuxUITests still compile. A symbol that is moved or renamed can keep the cmux app building while breaking the test target (real case: a write(to:atomically:) typo and a removed TabManager.CommandResult only surfaced in the tests job). Before pushing package/refactor changes, build the cmux-unit scheme (with -derivedDataPath /tmp/cmux-<tag> and, for cmuxApp/AppDelegate churn, the GlobalISel workaround flag) or let the tests CI job gate it — never treat reload.sh alone as proof the tests build.
reload.sh, cmux-unit, GitHub Actions, E2E/UI tests, and Python socket tests.© disler, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in ai_docs/cmux-skills/cmux-testing of disler/learning-cmux-with-agents.
Open the folder on GitHubat commit 6eaacab
cmux Testing Rules 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| cmux Testing Rules this skilldisler/learning-cmux-with-agents | 115 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Shift Left Testingpetrkindlmann/qa-skills | 165 | — | ~6.7k | Automated safety check: Pass | MIT | |
| Test GuardamElnagdy/guard-skills | 1.3k | 2 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Write Vibe Testsmistralai/mistral-vibe | 5.1k | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| lo2cin4bt Acceptance Reviewlo2cin4/lo2cin4bt | 288 | — | ~1.4k | Automated safety check: Pass | Custom licence | |
| Dependency Pinscognitivegears/ha-escpos-thermal-printer | 112 | — | ~1.1k | Automated safety check: Pass | MIT |
petrkindlmann/qa-skills
Move quality earlier in the development lifecycle. An agent skill from petrkindlmann/qa-skills.
amElnagdy/guard-skills
Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.
mistralai/mistral-vibe
Guides writing or refactoring tests for the Mistral Vibe CLI agent so they check behavior through stable boundaries, like tool invocation or saved session shape, instead of internal calls.
lo2cin4/lo2cin4bt
Runs a pass, revise or block acceptance review on lo2cin4bt work, checking a deliverable against the request, repo contracts, tests, docs and the public GitHub boundary.
cognitivegears/ha-escpos-thermal-printer
A skill your agent uses when bumping any dependency, upgrading the HA test harness (pytest-homeassistant-custom-component) or HA floor, or handling Dependabot PRs/security alerts — per-package pin…
FHIR/fhir-codegen
Performs a two-track code-quality and QA review in the roles of a staff-level Engineering Lead and QA Lead, then synthesizes both critiques into a single analysis.md.
disler/learning-cmux-with-agents
Drives browser surfaces inside cmux from the command line: open sites, snapshot elements, act on refs, wait for state changes and extract data.
disler/learning-cmux-with-agents
Customizes cmux for a user by editing cmux.json actions, workspace layouts, dock controls, tab bar buttons, settings and Ghostty terminal preferences.
disler/learning-cmux-with-agents
Contributor rules for the cmux repo: tagged Debug builds through reload.sh, first-time setup, Xcode project normalization and per-tag sidebar extension points.
disler/learning-cmux-with-agents
Drives the cmux terminal multiplexer from natural language to open, inspect, prompt, read and close windows, workspaces, panes, surfaces and agent sessions.
Categories
Testing rules for the cmux Swift codebase: Swift Testing as the default framework, a two-commit regression policy, and tests that check runtime behavior, not source text. This skill sets the testing conventions for the cmux project. Unit and integration tests are written with Swift Testing (import Testing, @Test, @Suite, #expect and try #require), while UI tests stay on XCTest and XCUITest because Swift Testing has no UI support.
cmux Testing Rules fits situations like: adding or changing tests in the cmux repository; writing a regression test for a bug fix with the two-commit structure; deciding whether reload.sh is enough validation for a refactor; migrating XCTest unit tests to Swift Testing.
Run `npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a claude-code`. Or copy the skill folder (ai_docs/cmux-skills/cmux-testing in disler/learning-cmux-with-agents) into .claude/skills/cmux-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a codex`. Or copy the skill folder (ai_docs/cmux-skills/cmux-testing in disler/learning-cmux-with-agents) into .agents/skills/cmux-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add disler/learning-cmux-with-agents --skill cmux-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cmux-testing, .gemini/skills/cmux-testing, .github/skills/cmux-testing and .opencode/skills/cmux-testing in your project.
SKILL.md names no scripts, command-line tools or credentials: cmux Testing Rules is instructions for the agent only. Our summary lists: Xcode 16 with Swift 6 for Swift Testing.
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.
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.
cmux Testing Rules is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with cmux Testing Rules: Shift Left Testing (petrkindlmann/qa-skills, 165 stars), Test Guard (amElnagdy/guard-skills, 1.3k stars), Write Vibe Tests (mistralai/mistral-vibe, 5.1k stars) and lo2cin4bt Acceptance Review (lo2cin4/lo2cin4bt, 288 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
disler (a GitHub user) maintains it in disler/learning-cmux-with-agents, which has 115 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on June 29, 2026.
Source: disler/learning-cmux-with-agents on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.