plugins/hypercore/skills/deploy-fix/SKILL.md
[Hyper] Diagnose and fix build failures, CI pipeline errors, and deployment errors across the entire repository or a specific folder. Routes simple build breaks directly; tracks complex multi-system failures via .hypercore/deploy-fix/ JSON flow.
npx skillsauth add alpoxdev/hypercore deploy-fixInstall 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.
Diagnose a build, CI, or deployment failure, choose the safest repair path, and fix it — classify complexity first, then either fix directly or track progress through structured phases.
<output_language>
Default all user-facing deliverables, saved artifacts, reports, plans, generated docs, summaries, handoff notes, commit/message drafts, and validation notes to Korean, even when this canonical skill file is written in English.
Preserve source code identifiers, CLI commands, file paths, schema keys, JSON/YAML field names, API names, package names, proper nouns, and quoted source excerpts in their required or original language.
Use a different language only when the user explicitly requests it, an existing target artifact must stay in another language for consistency, or a machine-readable contract requires exact English tokens. If a localized template or reference exists (for example *.ko.md or *.ko.json), prefer it for user-facing artifacts.
</output_language>
<request_routing>
Module not found, type errors, or compilation failures.bug-fix.security-review.bug-fix if the root cause is application logic.bug-fix.</request_routing>
<argument_validation>
If ARGUMENT is missing, ask immediately:
What build/CI/deploy failure should be fixed?
- Error message or failing log output
- Build command or CI step that fails
- Full repo build or specific folder/workspace?
- CI provider (GitHub Actions, Vercel, etc.) if applicable
- Regression or new? (Did it work before? When did it start failing?)
- Consistent or intermittent?
- Recent changes, suspect commits, or environment details
- Relevant config files (package.json, tsconfig, CI config, vercel.json, etc.)
</argument_validation>
<mandatory_reasoning>
Before implementation, perform an internal structured reasoning pass. Depth scales with complexity:
Recommended sequence:
Before any edit, collect root-cause evidence from build logs, CI output, or deployment logs and reduce the problem to the narrowest failing boundary you can verify.
</mandatory_reasoning>
<complexity_classification>
Classify immediately after the structured reasoning pass:
| Complexity | Signals | Examples | Path |
|------------|---------|----------|------|
| Simple | Single file/config, clear error message, obvious root cause, one fix path, low risk | Missing env var, single typo in config, one outdated dependency, clear type error in one file | Fix-now -- proceed directly without flow tracking |
| Complex | Multiple packages/configs involved, dependency chain issues, CI environment mismatch, fix has side effects across workspaces, multiple valid fix strategies | Cross-workspace type error chain, CI-only failure with no local repro, lockfile conflicts across multiple packages, build succeeds but deploy fails | Tracked -- create .hypercore/deploy-fix/flow.json |
Announce the classification:
Complexity: [simple/complex] -- [one-line reason]
When uncertain, classify as complex. It is cheaper to track than to lose investigation progress.
</complexity_classification>
<flow_tracking>
When classified as complex, initialize the flow:
mkdir -p .hypercore/deploy-fix
Write .hypercore/deploy-fix/flow.json and update it as each phase progresses. See references/flow-schema.md for the full schema.
| Phase | Description | Next |
|-------|-------------|------|
| investigate | Reproduce failure, analyze logs, isolate root cause | options |
| options | Present 2-3 fix options with tradeoffs | confirm |
| confirm | Wait for and record user selection | fix |
| fix | Implement selected option | verify |
| verify | Run build/CI/deploy validation, report outcome | done |
If .hypercore/deploy-fix/flow.json already exists, read it first and continue from the last incomplete phase (in_progress or pending). Do not restart completed phases.
</flow_tracking>
<execution_modes>
Use one of these branches explicitly:
bug-fix and security review requests to security-review.</execution_modes>
<investigation_strategy>
Check these areas in order of likelihood:
package-lock.json/pnpm-lock.yaml integrity), missing packages, version mismatches, peer dependency warnings, hoisting problemstsconfig.json, package.json, next.config.*, vercel.json/vercel.ts, CI workflow files, bundler config.next/, .turbo/, node_modules/.cache/), --force rebuild to isolategit log and git diff to find suspect commits that may have introduced the failure</investigation_strategy>
<workflow>| Step | Task | Tool | |------|------|------| | 1 | Validate input, structured reasoning pass (3 steps) | internal reasoning | | 2 | Classify as simple | - | | 3 | Reproduce failure locally, read error output | Bash + Read | | 4 | Identify root cause from logs/config | Read/Grep/Glob | | 5 | Announce fix path and implement | Edit | | 6 | Run validation (build/lint/typecheck/deploy) | Bash | | 7 | Report outcome and changed files | - |
| Step | Task | Tool |
|------|------|------|
| 1 | Validate input, structured reasoning pass (7+ steps) | internal reasoning |
| 2 | Classify as complex, create .hypercore/deploy-fix/flow.json | Write |
| 3 | Deep investigation: reproduce, analyze logs, trace dependency chain -> update flow investigate: completed | Bash + Read/Grep/Glob + Edit |
| 4 | Present 2-3 fix options -> update flow options: completed | Edit |
| 5 | Wait for user selection -> update flow confirm: completed | Edit |
| 6 | Implement selected option -> update flow fix: completed | Edit/Write |
| 7 | Run validation -> update flow verify: completed | Bash + Edit |
| 8 | Report outcome, set flow status to completed | Edit |
<option_presentation>
Use this format (complex path):
## Deploy Failure Analysis
**Root cause**: ...
**Failure scope**: [repo-wide / workspace / CI step / deploy target]
**Complexity**: complex
### Option 1: ... (Recommended)
- **Pros**:
- **Cons**:
- **Risk**:
- **Files**:
### Option 2: ...
- **Pros**:
- **Cons**:
- **Risk**:
- **Files**:
### Option 3: ... (Temporary)
- **Pros**:
- **Cons**:
- **Risk**:
- **Files**:
Recommendation: Option N (reason ...)
Which option should I apply? (1/2/3)
</option_presentation>
<implementation_rules>
After execution, report:
## Done
**Failure**: [original error / failing step]
**Root cause**: [what was wrong]
**Fix applied**: [which option or approach]
**Changes**: [list of changed files]
**Validation**: [what was verified and result]
For complex path: also update .hypercore/deploy-fix/flow.json status to completed.
</implementation_rules>
<validation>Execution checklist:
completed status (complex path only)Forbidden:
development
[Hyper] Use when working on Vite + TanStack Router projects - enforces architecture rules (layers, routes, hooks, services, conventions) with mandatory validation before any code change. Triggers on file creation, route work, hook patterns, or any structural change in a Vite + TanStack Router codebase.
development
[Hyper] Update semantic versions across node/rust/python projects, keep discovered version files synchronized, and prefer the installed `git-commit` skill for the final git step with a direct fallback when it is unavailable.
development
[Hyper] Use when working on TanStack Start projects and the task involves auth, sessions, cookies, CSRF, secrets, env exposure, server functions/routes, headers/CSP, webhooks, or security review/fixes. Triggers on protecting routes, hardening auth flows, preventing secret leaks, securing server boundaries, or reviewing HTTP/security behavior in a TanStack Start app.
tools
[Hyper] Enforce TanStack Start architecture in existing Start projects, especially project/folder structure, route structure, nested shared folder organization, server functions, loader/client-server boundaries, importProtection, hooks, SSR/hydration, and hypercore conventions. Use before structural code changes, folder-structure reviews, route work, server function work, or architecture audits in TanStack Start codebases.