type-check-baselines

Refresh RedisInsight TypeScript error baselines to resolve CI failures.

8.7k|482|Updated Jul 30, 2021
One-click install
npx skills add https://github.com/redis/RedisInsight --skill type-check-baselines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: type-check-baselines
Source: https://github.com/redis/RedisInsight/tree/main/.ai/skills/type-check-baselines
Command: npx skills add https://github.com/redis/RedisInsight --skill type-check-baselines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the hassle of failing CI due to RedisInsight’s per-project TypeScript error baseline ratchet, where changes increase recorded (file × error-code) counts and require an intentional baseline refresh or a real TS fix.

Core Features & Use Cases

  • Run, refresh, or recover from TS error baselines so CI stops failing when changes are legitimate and already recorded.
  • Compare and update baselines per project (UI, API, Desktop) using the correct tsconfig and baseline files.
  • Handle special workflows safely for first-time baseline bootstrapping, plugin dependency drift, and API postinstall effects that can shift UI/Desktop type-check results.

Quick Start

Tell the AI: "I’m updating code that affects TypeScript errors—CI says the baseline is outdated; what commands should I run to refresh the correct .tscheck.rec.json files?"

Frequently Asked Questions about type-check-baselines

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

FAQPage Schema
How do I refresh TypeScript error baselines when CI fails?

To refresh TypeScript error baselines during CI failures, run the repo-root `yarn tscheck` or `yarn tscheck:force` wrappers against the correct project tsconfig and baseline files. This updates per-project `.tscheck.rec.json` files to reflect legitimate error count changes.

Why does my TypeScript error ratchet fail CI after dependency changes?

A TypeScript error ratchet fails CI after dependency changes because regenerated API clients or plugin drift shift recorded file × error-code counts. You must run project-specific type-check commands to refresh the outdated baseline files and resolve the mismatch.

What is a TypeScript error baseline ratchet and when do I need it?

A TypeScript error baseline ratchet tracks per-project file × error-code counts to prevent untracked error increases. You need it when introducing new TS errors, fixing existing ones, or bootstrapping fresh baselines to keep CI stable during legitimate code changes.

Can I update TS error baselines separately for different projects?

Yes, you can update TS error baselines separately for UI, API, and Desktop projects. You must execute the type-check commands against the correct specific tsconfig and baseline files for each project to ensure accurate per-project ratchet tracking.

How do I bootstrap a fresh TypeScript error baseline?

To bootstrap a fresh TypeScript error baseline, run the repo-root `yarn tscheck` wrapper against the target project's tsconfig. This safely handles first-time baseline generation by recording the current file × error-code counts into the appropriate `.tscheck.rec.json` file.

What's the best way to resolve CI failures from legitimate TypeScript error increases?

The best way to resolve CI failures from legitimate TypeScript error increases is to refresh the error baseline using `yarn tscheck:force`. This intentionally updates the ratchet-based counts in `.tscheck.rec.json` files when changes are valid and already recorded.