check

Run a quality-gate pipeline for lint, format, type, spell, schema, and tests.

1|Updated Apr 17, 2025
One-click install
npx skills add https://github.com/carrot-foundation/schemas --skill check-carrot-foundation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check
Source: https://github.com/carrot-foundation/schemas/tree/main/.cursor/skills/check
Command: npx skills add https://github.com/carrot-foundation/schemas --skill check-carrot-foundation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures code quality and consistency by executing a full quality-gate pipeline before commits, PRs, or builds.

Core Features & Use Cases

  • Lint:fix to automatically correct code issues
  • format to ensure consistent styling
  • type-check to catch type errors early
  • spell-check to prevent typos across sources
  • pkgJsonLint to validate package.json fields
  • generate-schemas, hash-schemas, update-examples, validate-schemas, verify-schema-versions, check-refs to ensure generated IPFS schemas are correct
  • test to run unit/integration tests with full coverage

Quick Start

Run the canonical quality-gate pipeline by executing pnpm check.

Frequently Asked Questions about check

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

FAQPage Schema
How do I run a full quality-gate pipeline before a git commit or pull request?

Pre-commit quality gates catch lint, formatting, type, spell-check, and schema-generation issues before they enter your codebase. Running a full validation pipeline during pre-commit, PR reviews, and builds ensures code quality and consistency across the schemas package.

How do I automate lint, format, and type-check fixes before committing code?

You can automate lint, format, and type-check fixes by running a pipeline that coordinates lint:fix, format, and type-check. This automatically corrects code issues, ensures consistent styling, and catches type errors early before validation.

Does the pre-commit quality gate validate generated schemas and package.json fields?

Yes, the pre-commit quality gate validates package.json fields using pkgJsonLint and ensures generated IPFS schemas are correct. It coordinates generate-schemas, hash-schemas, validate-schemas, verify-schema-versions, check-refs, and update-examples.

What is the best way to enforce spell-check and unit test coverage in a CI pipeline?

The best way to enforce spell-check and test coverage in a CI pipeline is to run a canonical quality-gate command like pnpm check. It executes spell-check across sources and runs unit and integration tests with full coverage validation.

Can I use this quality-gate pipeline if my project has no external dependencies?

Yes, you can use this quality-gate pipeline with no external dependencies. It internally coordinates lint, format, type-check, spell-check, schema validation, and test execution natively to validate your schemas package without requiring additional setup.