starconnor/cipr/skill-0022-openclaw-openclaw-agents-skills-optimizetests
Claude Code and agent skill by starconnor/cipr
- community
Checking that the SKILL.md file is still in the repository.
Optimize OpenClaw slow tests, imports, misplaced coverage, and CI wall time without dropping coverage.
Install
npx vskill@latest install starconnor/cipr/skill-0022-openclaw-openclaw-agents-skills-optimizetestsSKILL.md
The same SKILL.md was published earlier as starconnor/cipr/skill-0022-openclaw-openclaw-agents-skills-optimizetests.
Optimize Tests
Goal: real OpenClaw test/runtime speedups with coverage intact. Do not add shards, skip assertions, weaken gates, or tune runner flags as the main fix.
Runbook
- Read
docs/help/testing.md,docs/ci.md, and the scopedAGENTS.mdfiles
for any subtree you will edit.
- Establish evidence before edits:
- Full ranking:
pnpm test:perf:groups --full-suite --allow-failures --output .artifacts/test-perf/<name>.json - Targeted file:
timeout 240 /usr/bin/time -l pnpm test <file> --maxWorkers=1 --reporter=verbose - Import suspicion: add
OPENCLAW_VITEST_IMPORT_DURATIONS=1 OPENCLAW_VITEST_PRINT_IMPORT_BREAKDOWN=1
- Attack highest-return hotspots first:
- broad barrels or
importActual()in hot tests - per-test
vi.resetModules()plus fresh imports - expensive gateway/server/client setup where reset/reuse proves same behavior
- core tests asserting extension-owned behavior
- duplicated fixture construction or contract assertions
- Prefer production-quality fixes:
- narrow runtime seams over broad mocks
- pure helpers for static parsing/metadata
- injected deps over module resets
- extension-owned tests for bundled plugin/provider/channel behavior
- After each change, rerun the same benchmark and the proving test lane. Record
before/after wall time, Vitest duration, and max RSS when available.
- Run
pnpm check:changed; run broader gates (pnpm check,pnpm test,
pnpm build) when touched surfaces require them.
- Commit scoped changes with
scripts/committer "<conventional message>" <paths...>.
Push when requested. If CI is red, inspect with gh run list/view, fix, push, repeat until current CI is green or a blocker is proven unrelated.
Output
End with the pushed commit(s), before/after timings, gates run, current CI state, and any remaining tail lanes that need separate optimization.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdata/CIPR/data/skills/items/skill_0022__openclaw_openclaw__agents_skills_optimizetests/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/starconnor/cipr/skill-0022-openclaw-openclaw-agents-skills-optimizetests)