optimizetests

Optimize Brikko Studio test suites to reduce CI wall time without reducing coverage.

1|Updated May 3, 2026
One-click install
npx skills add https://github.com/brikkoAI/brikko-studio --skill optimizetests-brikkoai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimizetests
Source: https://github.com/brikkoAI/brikko-studio/tree/main/packages/core/.agents/skills/optimizetests
Command: npx skills add https://github.com/brikkoAI/brikko-studio --skill optimizetests-brikkoai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Brikko Studio's slow test suites and long CI wall times waste developer time and slow down release cycles, and manual optimization efforts often accidentally drop test coverage or break existing test gates.

Core Features & Use Cases

  • Automated Performance Benchmarking: Ranks all test groups by execution time and identifies high-impact hotspots like redundant vi.resetModules() calls, duplicated fixture construction, and expensive gateway/server/client setup.
  • Coverage-Preserving Optimizations: Fixes import bloat, misplaced core test coverage, and inefficient test setup without adding shards, skipping assertions, or weakening test validation gates.
  • End-to-End CI Workflow Support: Runs required validation checks, commits scoped changes using the standard committer script, and verifies the CI pipeline remains green after optimizations are pushed, with built-in troubleshooting for failed CI runs.
  • Use Case: A Brikko Studio development team whose CI pipeline takes 45 minutes due to slow test suites can use this skill to cut wall time by 30% while maintaining 100% of existing test coverage and passing all validation gates.

Quick Start

Use the optimizetests skill to benchmark your current Brikko Studio test suite, identify the top slowest performance hotspots, implement targeted optimizations, and verify all test gates pass without reducing coverage.

Frequently Asked Questions about optimizetests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce CI wall time for slow test suites without dropping test coverage?

To reduce CI wall time without dropping test coverage, rank all test groups by execution time to identify performance hotspots like redundant vi.resetModules() calls and duplicated setup, then apply targeted optimizations that preserve all existing assertions.

What causes slow test execution in Vitest and how do I fix it?

Slow Vitest execution is often caused by import bloat, duplicated fixture construction, and expensive gateway or client setup. Fix it by eliminating redundant module resets, correcting misplaced core test coverage, and streamlining test setup without skipping assertions.

How do I benchmark test performance to find the slowest test groups?

Benchmark test performance by profiling the suite to rank all test groups by execution time and flagging high-impact bottlenecks. This highlights expensive setup routines and duplicated fixtures so you can apply optimizations that keep validation gates passing.

Can I optimize test setup and reduce import duration without breaking my CI pipeline?

Yes, you can optimize test setup and reduce import duration by removing duplicated fixture construction and correcting misplaced coverage. The workflow runs required validation checks and verifies the CI pipeline remains green after pushing the optimized changes.

How do I fix misplaced core test coverage that is slowing down extension test modules?

Fix misplaced core test coverage by moving it out of extension modules and eliminating inefficient setup routines. This reorganization reduces import bloat and execution time while ensuring all test gate compliance and existing assertions remain fully intact.

What should I do when test optimization changes cause the CI pipeline to fail?

When test optimization changes cause the CI pipeline to fail, use built-in troubleshooting to diagnose the failed run. Verify that no test assertions were skipped or weakened, then run the required validation checks before committing scoped fixes with the standard committer script.