plugins/development/skills/build-error-resolver/SKILL.md
Fixes build/type errors with minimal diffs. No refactoring, no architecture changes. Use when build fails (TypeScript compilation, Python type checks, Rust cargo build, etc.). Works in both Claude Code and Gemini CLI.
npx skillsauth add petrogurcak/skills build-error-resolverInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fix TypeScript/build/type errors quickly with smallest possible changes.
Announce: "Pouštím build-error-resolver — minimal-diff fix."
npx tsc --noEmit failsnpm run build fails na type errorsmypy, pyright, cargo build errorsworkflow-optimization hook po edit s failing builddebugging skilldebugging nebo re-check implementationdesigning-abstractions nebo planningMINIMAL DIFF. Nepředělávej kód. Oprav error s nejmenší možnou změnou.
DO:
package.json / requirements.txttsconfig.json, pyproject.toml)DON'T:
TypeScript:
npx tsc --noEmit --pretty
Python:
mypy . --show-error-codes
# nebo
pyright
Rust:
cargo build 2>&1 | grep -E "error\[E"
JS linter:
npx eslint . --format=compact
Uložit seznam errorů. Count: X errors total.
Pattern:
Track progress: "Fixed 3/12, remaining: 9"
# TS:
npx tsc --noEmit && echo "✅ Build clean"
# Python:
mypy . && echo "✅ Type check clean"
# Full build:
npm run build && echo "✅ Build succeeds"
// Error: Parameter 'x' implicitly has 'any' type
function add(x, y) {
return x + y;
}
// Fix: Add type annotations (minimal)
function add(x: number, y: number): number {
return x + y;
}
// Error: Object is possibly 'undefined'
const name = user.name.toUpperCase();
// Fix: Optional chaining + nullish coalescing
const name = user?.name?.toUpperCase() ?? "";
// Error: Property 'age' does not exist on type 'User'
interface User {
name: string;
}
// Fix: Add property (optional if not always present)
interface User {
name: string;
age?: number;
}
// Error: Cannot find module '@/lib/utils'
// Fix 1: Check tsconfig.json paths config
{
"compilerOptions": {
"paths": { "@/*": ["./src/*"] }
}
}
// Fix 2: Fallback to relative import
import { x } from "../lib/utils";
# Error: Function is missing a return type annotation [no-untyped-def]
def get_user(id):
...
# Fix:
def get_user(id: int) -> User:
...
# Error: Incompatible default for argument "x" (default has type "None", argument has type "int")
def foo(x: int = None): ...
# Fix: Use Optional
from typing import Optional
def foo(x: Optional[int] = None): ...
# Error: Cannot find module 'lodash'
npm install lodash
npm install --save-dev @types/lodash
## Build Error Resolution
**Command:** `npx tsc --noEmit`
**Initial errors:** 12
**Errors fixed:** 12
**Lines changed:** 23 across 7 files
**Build status:** ✅ PASS
### Changes
1. `src/api/users.ts:42` — added `| null` to return type
2. `src/lib/utils.ts:15` — added type annotation `string`
3. `src/components/Form.tsx:88` — added optional chaining
...
### Verification
- [x] `npx tsc --noEmit` exits 0
- [x] `npm run build` succeeds
- [x] No new errors introduced
- [x] Diff < 5% of affected files (23/450 lines = 5.1%)
npm run build / equivalent completes// @ts-ignore, # type: ignore bez explicit user approval. Fix the actual issue.git add -A && git commit -m "fix(build): resolve N type errors" — jen pokud user explicitně požádal o commit.development
Builds a pre-launch social proof strategy through structured beta programs using D'Souza Brain Audit interviews. Use when launching new products/services and need compelling testimonials, planning a beta cohort, designing interview questions to harvest objection-busting social proof, improving video testimonials for landing pages, or designing case studies with metrics. Trigger phrases include "beta tester program for testimonials", "pre-launch social proof", "Brain Audit testimonial framework", "case study harvest", "reverse testimonial", "video testimonial mechanics", "social proof landing page", "sběr referencí", "beta tester program", "testimonial pro landing page", "social proof před launchem", "rozhovor s klientem", "case study sběr", "reference před spuštěním". NOT for ongoing case study production (use growth-hacking case-study approach), offer design (use offer-creation), or conversion optimization (use ux-optimization).
development
Use when planning a product launch and the product type is unclear or could be either generic (SaaS/app/physical) or info-product. Routes between marketing:launch-strategy (generic launches) and marketing:info-product-launch (courses, memberships, ebooks, cohorts, communities). Trigger phrases - "launch", "spuštění", "go-to-market", "product launch", "release strategy", "uvedení na trh", "launch plan", "spuštění produktu", "launch sequence", "launch strategy". Do NOT trigger when product type is already clear (use specific skill directly).
testing
Specialized 8-week launch cadence for info-products — online courses, cohort programs, memberships, communities, ebooks, masterminds. Combines Jeff Walker's Product Launch Formula (Seed/Internal/JV variants, PLC sequence, open-cart day-by-day) with Stu McLaren's membership mechanics (closed cart, Success Path) and Hormozi Grand Slam Offer stacking. Use when planning "launch online kurzu", "info-product launch", "PLF launch", "course launch", "membership launch", "cohort launch", "ebook launch", "open cart close cart", "8-week launch of online course", "beta cohort to launch sequence", "spuštění kurzu", "launch členské sekce", "open cart strategie". Differentiates from marketing:launch-strategy (generic SaaS/app launches) — info-product-specific. NOT for SaaS launches, physical products, or services.
development
Use when releasing an Expo/React Native mobile app to App Store and Google Play - covers eas submit, ASC "Submit for Review", Play promote Internal→Production, OTA update, and decoding common silent failures (Apple agreement expiry, missing English locale, Background Location declaration, web bundle failure on react-native-maps).