batch-error-resolution
# Batch Error Resolution Skill
What this skill does
# Batch Error Resolution Skill
Resolve runtime and compile-time errors as a batch operation, not iteratively.
## When to Use This Skill
Use this skill when:
- Build or compile fails with multiple errors
- Runtime crashes with multiple stack traces
- Test suite fails with multiple test failures
- Linter reports multiple violations
- Type checker reports multiple type errors
**Do NOT use for:** Single, isolated errors that can be fixed immediately.
## Core Principle
**Errors are batch operations, not iterative loops.**
Re-running compiler/tests after each fix wastes time and creates noise. Fix ALL errors first, then verify once.
## The Process
```
┌─────────────────────────────────────────────────────────────┐
│ 1. COLLECT - Gather all errors from output │
│ • List every error explicitly │
│ • Do NOT attempt fixes yet │
└──────────────────────────┬──────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ 2. ANALYZE - Study errors together │
│ • Identify shared root causes │
│ • Find dependency relationships between errors │
│ • Spot opportunities for single-fix-multiple-errors │
└──────────────────────────┬──────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ 3. RESOLVE - Apply all fixes │
│ • Work on errors conceptually in parallel │
│ • No partial or speculative fixes │
│ • Address every listed error │
└──────────────────────────┬──────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ 4. VERIFY - Single re-run after ALL fixes complete │
│ • Only now run compiler/tests/linter │
│ • Confirm no new errors introduced │
└─────────────────────────────────────────────────────────────┘
```
## Strict Rules
### The Validation Rule
**Do NOT re-run:**
- Compiler
- Build tools
- Test suite
- Linter/type checker
**Until:** Every error in the collected list has been addressed.
### Prohibited Behaviors
| Don't Do | Why It's Wrong |
|----------|----------------|
| Fix one error, run tests, fix next | Wastes cycles, creates noise |
| Re-run checks after each fix | Same error cascade repeats |
| Ignore secondary/cascading errors | They may reveal root cause |
| Trial-and-error debugging | Undisciplined, slow |
| Speculative "maybe this fixes it" | Fix what you understand |
## Error Collection Format
When collecting errors, enumerate them explicitly:
```markdown
## Collected Errors (7 total)
1. **TypeError** at `src/utils.ts:45` - Cannot read property 'id' of undefined
2. **TypeError** at `src/utils.ts:52` - Same root cause (uses result from line 45)
3. **ImportError** at `src/index.ts:3` - Module './missing' not found
4. **SyntaxError** at `src/parser.ts:88` - Unexpected token '}'
5. **TypeError** at `src/api.ts:12` - Argument type mismatch
6. **TypeError** at `src/api.ts:34` - Related to #5 (same function signature)
7. **ESLint** at `src/helpers.ts:15` - 'unused' is defined but never used
### Analysis
- Errors #1 and #2: Same root cause - null check missing at line 45
- Errors #5 and #6: Same root cause - function signature changed
- Error #3: Independent - missing file
- Error #4: Independent - syntax issue
- Error #7: Independent - dead code
```
## Resolution Strategies
### Root Cause Grouping
Multiple errors often share a root cause:
```
10 type errors → 1 interface change
5 import errors → 1 renamed module
8 test failures → 1 broken fixture
```
Fix the root cause, not each symptom.
### Dependency Ordering
Some errors depend on others:
```
Error A: Function signature wrong
Error B: Call to function fails (depends on A)
Error C: Test of function fails (depends on A)
```
Fix A first. B and C may resolve automatically.
### Parallel Conceptualization
Work on independent errors mentally in parallel:
```
While fixing Error #1 in file A:
- Note what Error #3 in file B needs
- Note what Error #5 in file C needs
Then apply all fixes before re-running anything.
```
## Quick Reference
| Phase | Action | Output |
|-------|--------|--------|
| Collect | Run build/test once | Numbered error list |
| Analyze | Study relationships | Root causes identified |
| Resolve | Apply ALL fixes | All errors addressed |
| Verify | Single re-run | Clean or new error list |
## Common Mistakes
| Mistake | Fix |
|---------|-----|
| "Let me just run tests to see if that worked" | No. Complete all fixes first. |
| "This error might be related" | Don't guess. Analyze the full list. |
| "I'll fix the easy ones first" | Fix by root cause, not difficulty. |
| "The cascade is too long to read" | Read it. That's the job. |
## Benefits
- **Faster resolution** - No repeated build cycles
- **Reduced noise** - Cascading errors collapse when root cause fixed
- **Deterministic** - Same process every time
- **Disciplined** - No trial-and-error chaos
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.