ask-o11y-plugin: Command for Claude Code

.cursor/commands/run-all-tests-and-fix.md

run-all-tests-and-fix is a command for Claude Code, Cursor from Consensys/ask-o11y-plugin. It costs 0 tokens per session (816 once invoked), scanned A, original, MIT.

A command guide for running a full JavaScript and TypeScript test check: unit tests, type checking, linting, and browser-based end-to-end tests.

In plain words
What is it for?
Use it after code changes to run Jest, TypeScript checks, ESLint, and Playwright tests, then investigate and fix failures.
Why use it?
It gathers common failure types in one required sequence and requires every check to pass before completion.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

This is Consensys/ask-o11y-plugin's own configuration. It tells Claude Code and Cursor how to work on ask-o11y-plugin itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ask-o11y-plugin configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Consensys/ask-o11y-plugin. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Consensys/ask-o11y-plugin/main/.cursor/commands/run-all-tests-and-fix.md
Clone the repo
git clone --depth 1 https://github.com/Consensys/ask-o11y-plugin

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for run-all-tests-and-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/consensys/ask-o11y-plugin/run-all-tests-and-fix/github.svg)](https://agentmods.dev/commands/consensys/ask-o11y-plugin/run-all-tests-and-fix)
Your own site
<a href="https://agentmods.dev/commands/consensys/ask-o11y-plugin/run-all-tests-and-fix"><img src="https://agentmods.dev/badge/commands/consensys/ask-o11y-plugin/run-all-tests-and-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for run-all-tests-and-fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/consensys/ask-o11y-plugin/run-all-tests-and-fix"><img src="https://agentmods.dev/badge/commands/consensys/ask-o11y-plugin/run-all-tests-and-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00816
Opus 5 $0.00000 $0.00408
Sonnet 5 $0.00000 $0.00163
Haiku 4.5 $0.00000 $0.00082

Measured 10d ago against content hash 2a37886a1599, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

run-all-tests-and-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/commands/run-all-tests-and-fix.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run All Tests and Fix Failures

Overview

Execute the full test suite and systematically fix any failures, ensuring code quality and functionality. All test-related commands must pass before completion.

Test Commands

Run these commands in order. All must pass:

# 1. Unit tests (Jest)
npm run test:ci

# 2. TypeScript type checking
npm run typecheck

# 3. Linting (ESLint)
npm run lint

# 4. E2E tests (Playwright) - requires running server
npm run e2e

Execution Steps

1. Run the Full Test Suite

Execute all test commands sequentially:

npm run test:ci && npm run typecheck && npm run lint && npm run e2e

Requirements:

  • All commands must exit with code 0
  • No test should be skipped unless marked with // IMPORTANT: <reason> comment
  • If a test uses test.skip() without an IMPORTANT comment, fix the test so it runs
  • Warnings are acceptable; errors are not

2. Analyze Failures

For each failure, determine:

Category Description Priority
Type Error TypeScript compilation failure High
Lint Error ESLint rule violation Medium
Unit Test Jest test failure High
E2E Test Playwright test failure High
Flaky Intermittent failures Medium

Investigation checklist:

  • Check if the failure is in test code or source code
  • Look for recent changes that might have caused it
  • Check error context files in test-results/ for E2E failures
  • Review console output for stack traces

3. Fix Issues Systematically

Order of operations:

  1. Fix TypeScript errors first (blocks other tests)
  2. Fix ESLint errors second
  3. Fix unit test failures
  4. Fix E2E test failures last

For each fix:

  • Make the minimal change needed
  • Re-run the specific test to verify
  • Run full suite before moving to next issue

4. Handle Skipped Tests

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 113 lines · 0 tokens per session scan A 2a37886a1599

Subscribe to this mod's changes

run-all-tests-and-fix is a command published in the GitHub repository Consensys/ask-o11y-plugin (41 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 816 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.