Skip to main content

setup-quality-gate

Add quality:gate package.json script for fast local/CI quality checks (biome + tsgo + related tests), GitHub Actions workflow, and Stop hook for type checking. Use when setting up quality gates, CI pipelines, or pre-push validation.

Informações da origem

Repositório
redpanda-data/ui-harness
Última atividade na origem
8 de maio de 2026 às 11:21
Idioma detectado do SKILL.md
inglês
Estrelas
34
Forks
4

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
7 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
setup-quality-gate
description
Add quality:gate package.json script for fast local/CI quality checks (biome + tsgo + related tests), GitHub Actions workflow, and Stop hook for type checking. Use when setting up quality gates, CI pipelines, or pre-push validation.
# Setup Quality Gate ## What This Sets Up - `quality:gate` script -- lint + type check + related tests in <5s - GitHub Actions workflow w/ formatting integrity (`git diff --exit-code`) - Stop hook: tsgo + related tests before finish - Bundle guard hook: warn on heavy deps (moment, lodash, jquery, core-js, classnames) - Test perf audit hook: surface duration regressions >30% - CI status check + `@claude review` trigger - Optional: `/codex:review` cross-model review ## Steps ### 1. Package.json scripts ```json { "scripts": { "lint": "biome check .", "lint:fix": "biome check --write .", "type:check": "tsgo", "test": "vitest --run", "test:related": "vitest --run --related", "quality:gate": "biome check . && tsgo && vitest --run --related $(git diff --name-only HEAD)" } } ``` ### 2. Asset type declarations Create `src/types/assets.d.ts` from [REFERENCE.md](REFERENCE.md) -- tsgo need for .svg/.css/.png imports. ### 3. GitHub Actions Write `.github/workflows/quality-gate.yml` from [REFERENCE.md](REFERENCE.md). Run on PR + push to main. ### 4. Hook scripts Copy into `.claude/hooks/`, `chmod +x`: - `scripts/typecheck-stop.sh` -> Stop - `scripts/bundle-guard.sh` -> PostToolUse (Edit|Write) - `scripts/test-perf-stop.sh` -> Stop ### 5. Verify - [ ] `bun run quality:gate` work - [ ] `.github/workflows/quality-gate.yml` exist - [ ] `src/types/assets.d.ts` exist - [ ] All hook scripts executable + configured
Ver no GitHub