gupta-builds/jarvis/source-command-build-fix

Claude Code and agent skill by gupta-builds/jarvis

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Fix TypeScript errors and build failures to zero errors

Install

npx vskill@latest install gupta-builds/jarvis/source-command-build-fix

SKILL.md

The same SKILL.md was published earlier as gupta-builds/jarvis/source-command-build-fix.

source-command-build-fix

Use this skill when the user asks to run the migrated source command build-fix.

Command Template

/build-fix

Capture all errors first, then fix in priority order.

Step 1 — Capture Everything

bash
pnpm typegen 2>&1 # always sync types first
pnpm typecheck 2>&1 # TypeScript strict
pnpm build 2>&1 | head -80 # Next.js build errors

Run all three before touching any file — understand the full error surface.

Step 2 — Fix in Priority Order

Error patternFirst action
Type in src/sanity/types/pnpm typegen — types are stale, regenerate
Module not foundCheck @/* alias → src/*. Verify file exists.
Property does not exist on Sanity typeRun pnpm typegen, then check GROQ projection
"use client" missingAdd directive at top of file, or extract to a hook
Three.js SSR errornext/dynamic(() => import(...), { ssr: false })
auth() in Client ComponentMove to Server Component or use useUser() hook
await missing on params/searchParamsNext.js 16 — these are Promises, always await
Generic type errorFix the type — never as any or @ts-ignore

Step 3 — Verify

bash
pnpm typecheck # must be 0 errors
pnpm build # must succeed

ECC Delegation

For complex or cascading TypeScript errors, delegate to the specialist:

Spawn everything-Codex:build-error-resolver

This agent makes minimal diffs and does not refactor — it's surgical.

Common Root Causes

  • Schema changed but pnpm typegen not run → src/sanity/types/index.ts stale
  • Three.js imported directly in a Server Component → wrap with next/dynamic
  • await sanityFetch() missing → it always returns a Promise
  • localContent.ts not updated after new query → add the mapping
  • Clerk auth() called in a 'use client' file → move to server context

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gupta-builds/jarvis/source-command-build-fix/badge)](https://verified-skill.com/skills/gupta-builds/jarvis/source-command-build-fix)

Something wrong with this skill or its page? Tell us.