Skip to content
Agentmart
Submit a tool

optimizetests

Optimize GreenchClaw slow tests, imports, misplaced coverage, and CI wall time without dropping coverage.

Skill by greench-ai

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/greench-ai-optimizetests

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Optimize GreenchClaw slow tests, imports, misplaced coverage, and CI wall time without dropping coverage.

Use cases: testing, devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/optimizetests

What's inside

Skill name
optimizetests
Description
Optimize GreenchClaw slow tests, imports, misplaced coverage, and CI wall time without dropping coverage.
License
MIT
Instructions
38 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# Optimize Tests

Goal: real GreenchClaw test/runtime speedups with coverage intact. Do not add shards,
skip assertions, weaken gates, or tune runner flags as the main fix.

## Runbook

1. Read `docs/help/testing.md`, `docs/ci.md`, and the scoped `AGENTS.md` files
   for any subtree you will edit.
2. 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 `GREENCHCLAW_VITEST_IMPORT_DURATIONS=1 GREENCHCLAW_VITEST_PRINT_IMPORT_BREAKDOWN=1`
3. 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
4. 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
5. After each change, rerun the same benchmark and the proving test lane. Record
   before/after wall time, Vitest duration, and max RSS when available.
6. Run `pnpm check:changed`; run broader gates (`pnpm check`, `pnpm test`,
   `pnpm build`) when touched surfaces require them.
7. 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.

From greench-ai/GreenchClaw, MIT.

More from greench-ai/GreenchClaw

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jun 15, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from greench-ai

Cite this page

optimizetests skill. Agent Mart. https://agentmart.dev/skills/greench-ai-optimizetests (last updated 2026-10-24)