cgov-build

Run Next.js builds and triage TypeScript errors into actionable to-dos.

4|2|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/nomos-guild/cgov --skill cgov-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cgov-build
Source: https://github.com/nomos-guild/cgov/tree/main/.claude/skills/cgov-build
Command: npx skills add https://github.com/nomos-guild/cgov --skill cgov-build

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of building a Next.js project and diagnosing TypeScript compilation errors, reducing iteration time and improving build reliability.

Core Features & Use Cases

  • Automated build diagnosis: Run the project build and surface TypeScript errors in a structured todo list.
  • Incremental fixes: Create and track fixes for each error using TodoWrite, organize fixes, and re-run the build until success.
  • Verification and confidence: Provides a clear record of what was changed and ensures the app compiles.

Quick Start

Run npm run build, examine error messages, and iteratively fix issues until the build completes successfully.

Frequently Asked Questions about cgov-build

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

FAQPage Schema
How do I fix TypeScript errors blocking my Next.js build?

Fix TypeScript errors by running the build, capturing error output, and iteratively applying fixes tracked in a structured todo list until the build compiles successfully.

How does automated TypeScript error triage work during a Next.js build?

Automated TypeScript error triage runs the build, captures compiler errors, and logs them as actionable to-dos to organize and guide incremental fixes.

Can I use this build diagnosis process in my CI pipelines?

Yes, you can use this build diagnosis process in CI pipelines to automate running npm install and npm run build for verifying type safety and capturing errors.

What's the best way to track incremental fixes for TypeScript compilation errors?

The best way to track incremental fixes is to generate a todo list for each error, apply fixes individually, and re-run the build to verify compilation success after each change.

Why does my Next.js production build fail with TypeScript type errors?

A Next.js production build fails with TypeScript type errors when the compiler detects type mismatches. Capturing the build output and triaging errors into tracked to-dos resolves these compilation blocks.

Do I need npm install to run the Next.js build diagnosis?

Yes, you need to run npm install before diagnosing the Next.js build, as installing dependencies is a required step before executing npm run build and capturing TypeScript errors.