本文へ移動
cccskills
無料GitHub で公開

cmux-testing

Choose scoped cmux verification, add behavioral tests, and validate Swift test targets and wiring. Use when adding tests or deciding what local/CI evidence a change needs.

インストール方法を見る

含まれるファイル(10)

  • SKILL.md5.5 KB
  • agents/openai.yaml306 B
  • references/dogfood-scenarios.md9.3 KB
  • references/local-vs-ci-validation.md6.1 KB
  • references/pr-ci-coverage.md2.2 KB
  • references/regression-and-quality.md975 B
  • references/remote-tmux-sizing-e2e.md7.2 KB
  • references/swift-testing-migration.md1.4 KB
  • references/ui-lab.md2.5 KB
  • references/ui-test-frames.md1.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

cmux Testing

Choose the first check

Run repository commands only from a trusted checkout; even verify-local.py --help and --list load repository code.

TaskCommand
Choose checks and parse changed Swiftpython3 scripts/verify-local.py
Run the full CI static recipepython3 scripts/verify-local.py --all
Parse current Swift editspython3 scripts/verify-local.py --only swift-syntax --swift-changed
Check new Swift test-file wiringpython3 scripts/verify-local.py --only test-wiring
See what a UI test did, one frame per actionscripts/ui-test ClassName or scripts/ui-test <run URL> (guide)
Render view code to PNGs in seconds, light and dark, without building the appscripts/ui-lab/ui-lab.py <harness> [--watch] (guide)
Dogfood the app from CI: drive it with a JSON tour and get screenshots and accessibility treesscripts/run-e2e.sh --scenario dogfood/scenarios/<tour>.json --ref <sha> --frames (guide)
Read the screenshots and GIF CI posted of an app PR's build before merging itthe PR's dogfood comment (guide)

Add a base ref after --swift-changed to include committed changes. Use --list to find other checks and --help for options. Parsing checks syntax; it doesn't typecheck or run tests.

Read the command guide for piped paths or JSON receipts. Use the validation guide to choose package, native, web or runtime checks. Docs and portable tooling use their scoped checks.

Reproduce and repair

Keep a focused command that fails on the reported symptom, then rerun it after the repair. Setup failures and zero executed tests don't demonstrate the bug. Exercise one behavior at a time so a failure identifies what needs fixing.

Keep two commits: first the failing behavioral regression, then the fix. Run the same focused command on both and record the commit SHAs, the expected failure and the passing result. A setup failure or zero executed tests is not regression proof. When the proof is available locally, push both commits together after the fix passes; a separate hosted CI run on the deliberately broken intermediate commit is unnecessary. If the failure only reproduces in CI, use that lane and keep its receipts. Required CI and review still apply to the final pushed head.

Test wiring

New cmuxTests/*.swift files need both PBXFileReference and Sources build-phase membership in cmux.xcodeproj/project.pbxproj. Add through Xcode or follow a wired sibling, then run the wiring check above: an unwired file can otherwise produce a misleading zero-test pass.

After creating, renaming, or deleting a direct cmuxTests/*.swift file, run ./scripts/sync-test-wiring. It deterministically reconciles the PBXFileReference, PBXBuildFile, cmuxTests group child, and cmuxTests Sources membership; --check performs the same validation without writing. Foreign target membership is rejected with an explicit diagnostic. New Sources/**/*.swift app files are wired with ./scripts/wire-app-sources.py (--check lists unwired ones); UI tests with --target cmuxUITests --dir cmuxUITests; run it after any merge that took main's project.pbxproj, which drops a branch's app-source entries. The workflow-guard-tests CI job still runs ./scripts/lint-pbxproj-test-wiring.sh as a defensive Sources-phase guard.

Test quality

  • Exercise observable behavior through unit, integration, CLI or end-to-end paths.
  • Do not assert source snippets, signatures, AST shape or metadata keys solely to mirror implementation. For metadata behavior, inspect the produced artifact or execute the code that consumes it.
  • Add a small runtime harness when needed; skip a fake regression test if there is no meaningful behavioral oracle and explain the limit. See regression and quality for the judgment call.

Swift tests

Swift unit/integration targets use Swift Testing (import Testing, @Test, @Suite, #expect, #require). Portable Python/shell guards retain their existing frameworks. UI tests remain XCTest/XCUITest; do not migrate XCUIApplication tests.

New Swift package test targets start on Swift Testing. Prefer parameterized tests for repeated cases and tags for selection. Use .serialized for suites that require ordering, not locks or sleeps. Migrate an existing XCTest file only when an edit already crosses it; see the migration mapping.

Native test evidence

An app build does not compile test targets. Package/refactor and public API changes need the relevant test target compiled, then the selected tests actually executed. Follow build-for-testing and execution guidance; report skipped/unsupported checks explicitly.

For remote tmux sizing changes, use the E2E recipe.

PR CI labels

Normal PR CI already runs the suites a diff edits or touches. full-ci and unit-ci are not review or merge requirements; see PR CI coverage before adding either.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

cmux

無料

End-user control of cmux topology and routing (windows, workspaces, panes/surfaces, focus, moves, reorder, identify, trigger flash). Use when automation needs deterministic placement and navigation in a multi-pane cmux layout.

日本語の概要は準備中です。原文の説明を表示しています。

manaflow-ai/cmux2.8万2026年10月11日 更新

cmux package architecture, refactor layering, dependency inversion, file organization, DocC documentation, package design discipline, testability, and Swift 6 concurrency rules. Use before adding or meaningfully rewriting Swift files, Swift packages, coordinators, services, repositories, or public package APIs.

日本語の概要は準備中です。原文の説明を表示しています。

manaflow-ai/cmux2.8万2026年10月11日 更新

Backend TypeScript and Cloud VM development rules for cmux. Use when editing web/app/api, web/services, backend scripts, Cloud VM lifecycle, provider integrations, Postgres, Stack Auth pricing gates, migrations, or provider image build scripts.

日本語の概要は準備中です。原文の説明を表示しています。

manaflow-ai/cmux2.8万2026年10月11日 更新

Stripe checkout, pricing, subscription, Pro plan, webhook, and entitlement runbook for cmux billing work. Use when editing or debugging billing, pricing, Stripe Checkout, subscription recording, Pro plan status, webhooks, entitlement metadata, or pricing dev/prod tooling.

日本語の概要は準備中です。原文の説明を表示しています。

manaflow-ai/cmux2.8万2026年10月11日 更新

End-user browser automation with cmux. Use when you need to open sites, inspect or interact with browser surfaces, wait for page state, and extract data without stealing focus.

日本語の概要は準備中です。原文の説明を表示しています。

manaflow-ai/cmux2.8万2026年10月11日 更新

Screenshot or record a cmux window from the CLI, for a pull request, a bug report, or to see what the app actually looks like right now. Use when a change is visual, when a drag or an animation cannot be described in text, or when a reviewer needs evidence rather than a claim.

日本語の概要は準備中です。原文の説明を表示しています。

manaflow-ai/cmux2.8万2026年10月11日 更新

manaflow-ai のスキルをすべて見る

このスキルの問題を報告する