validate-component

Run pnpm lint, type-check, type-coverage, dts build, and Storybook build checks on Vue components.

2|5|Updated Oct 24, 2023
One-click install
npx skills add https://github.com/aziontech/webkit --skill validate-component
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-component
Source: https://github.com/aziontech/webkit/tree/main/.claude/skills/validate-component
Command: npx skills add https://github.com/aziontech/webkit --skill validate-component

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents broken or non-compliant components from slipping into the codebase by validating linting, TypeScript correctness, type coverage, generated .d.ts output, and Storybook build health.

Core Features & Use Cases

  • Run deterministic CI-like validation: executes the project's pnpm checks in a fixed order (lint → type-check → type-coverage → dts build → storybook build) and reports the first failing step.
  • Strict failure surfacing: stops immediately on the first failure without attempting auto-fixes, and includes the last output lines to speed up debugging.
  • Safety guardrails: never runs pnpm install, never mutates the working tree, and supports timeouts and missing-script detection to avoid hanging or unclear states.

Use case example: After scaffolding a new Vue component, run this validation to ensure it meets the project’s TypeScript thresholds (including type coverage) and that the added Storybook stories don’t break the documentation build.

Quick Start

Run the validate-component skill using the current component files written in this run to produce a pass/fail table and, if needed, the failing command output tail.

Frequently Asked Questions about validate-component

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

FAQPage Schema
How do I validate a new Vue component after scaffolding it?

To validate a new Vue component, run pnpm lint, type-check, type-coverage, dts build, and Storybook build checks in a fixed order. This ensures the component meets TypeScript thresholds and documentation builds without breaking before committing it to the codebase.

What is the correct check order for Vue component CI validation?

The correct CI validation order for Vue components is lint, type-check, type-coverage, dts build, and finally Storybook build. This fixed sequence ensures deterministic checks and stops immediately upon the first failure to surface errors quickly.

Does component validation run pnpm install or modify the working tree?

No, component validation never runs pnpm install and never mutates the working tree. It acts as a non-mutating safety guardrail, strictly running checks and reporting pass or fail outcomes without altering your project files.

How do I stop my Storybook build from breaking when adding new stories?

To stop Storybook builds from breaking, run a Storybook build check after scaffolding new Vue components. This validation step catches story errors early by building the documentation and reporting the first failing step with its output tail.

Why does my type coverage check fail during component scaffolding?

Type coverage checks fail during component scaffolding when the new Vue component does not meet the project's TypeScript thresholds. The validation process stops at the type-coverage step, surfaces the failure immediately, and provides the last output lines to speed up debugging.

What are the limitations of automated component validation?

Limitations of automated component validation include a strict 5-minute command timeout and first-failure stopping behavior without attempting auto-fixes. It also requires existing pnpm scripts and cannot resolve missing-script errors, which result in an unclear state.