validating-code

Run lint, format, dead code, spell, and type checks via pnpm validate:check.

Updated Nov 2, 2025
One-click install
npx skills add https://github.com/harusame0616/formawork.ai --skill validating-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validating-code
Source: https://github.com/harusame0616/formawork.ai/tree/main/.claude/skills/validating-code
Command: npx skills add https://github.com/harusame0616/formawork.ai --skill validating-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill validates code quality by running lint, format, dead-code, spell-check, and type checks to detect errors and suggest fixes.

Core Features & Use Cases

  • Lint & Format: Enforces syntax and style rules via Biome.
  • Code quality checks: Dead code and spelling checks via Knip.
  • Type checking: TypeScript/Next.js build checks.

Quick Start

Run the validation workflow to check code quality and apply auto-fixes where possible.

Frequently Asked Questions about validating-code

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

FAQPage Schema
How do I lint and format code automatically?

Lint and format code by running automated checks via Biome, which enforces syntax and style rules. The validation workflow executes `pnpm -w validate:check` to detect issues and `pnpm -w validate:fix` to apply fixes automatically, ensuring consistent code standards across your project.

What checks does code validation include?

Code validation performs lint, format, dead code, spell-check, and type checks. It detects unused code via Knip, catches spelling errors, validates TypeScript and Next.js types, and reports errors by category with file paths and line numbers for quick remediation.

Can I use code validation in TypeScript and Next.js projects?

Yes, code validation supports TypeScript and Next.js projects through integrated type checking during the validation workflow. Run checks alongside lint, format, and dead-code detection to ensure full code quality across your Next.js application.

How do I detect dead code in my project?

Detect dead code by running the validation workflow, which uses Knip to identify unused code. The tool reports dead code findings by category with specific file paths and line numbers, helping you clean up and maintain a lean codebase.

When should I run code quality checks?

Run code quality checks during code creation, editing, deletion, or whenever you request validation. The workflow integrates lint, format, dead-code, spell, and type checks to maintain ongoing adherence to quality standards throughout your development lifecycle.

Does code validation catch spelling errors?

Yes, code validation includes spell-check via Knip alongside lint, format, and dead-code detection. It identifies spelling mistakes in your codebase and reports them by category with file locations, helping maintain code clarity and professionalism.