skills/pre-deploy/SKILL.md
[Hyper] Run deploy-readiness validation and fix reproduced lint/typecheck/build blockers for Node.js, Rust, and Python repos. Use for pre-deploy checks, deploy-ready requests, or final quality/build gates before deployment.
npx skillsauth add alpoxdev/hypercore pre-deployInstall 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.
@rules/parallel-remediation.md @rules/tracked-remediation.md
Prove a repository is deploy-ready, or fix only the reproduced quality/build blockers that prevent that proof.
<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>
deploy-fix.bug-fix.execute or the relevant implementation skill.package.json, Cargo.toml, pyproject.toml, requirements.txt, setup.py, Pipfile, or poetry.lock.</request_routing>
<argument_validation>
pre-deploy does not apply; do not enter a fake fix loop.</argument_validation>
<scripts>Run scripts with the current working directory set to the target root so detection is accurate. If the target root is the repository root, use these repository-relative paths; if the target is a subdirectory/workspace, invoke the same scripts by absolute path or by the correct relative path back to the repository root:
| Script | Purpose |
|------|------|
| skills/pre-deploy/scripts/stack-detect.sh | Detect project stacks (node, rust, python) |
| skills/pre-deploy/scripts/deploy-check.sh | Full verification (lint/type checks + build) |
| skills/pre-deploy/scripts/lint-check.sh | Run stack-specific quality checks |
| skills/pre-deploy/scripts/build-run.sh | Run stack-specific build phase |
| skills/pre-deploy/scripts/pm-detect.sh | Node package manager detection (npm/yarn/pnpm/bun) |
Notes:
lint-check.sh already runs independent Node typecheck and lint commands concurrently when both are configured; do not duplicate that internal parallelism with extra agents.<mandatory_reasoning>
Before implementation, perform an internal structured reasoning pass and scale depth to the failure shape:
| Complexity | Reasoning depth | Signals | |------|------|------| | Simple | 3 steps | One stack, one failing command, clear root cause, low-risk fix | | Medium | 5 steps | Multiple related failures in one stack, moderate config/dependency impact | | Complex | 7+ steps | Multiple stacks/workspaces, ambiguous fix strategy, shared config, dependency chain, or CI/deploy boundary |
Recommended sequence: classify -> read exact failure output -> identify root cause -> choose targeted validation -> decide direct fix, parallel lanes, tracked remediation, or handoff.
</mandatory_reasoning>
<complexity_classification>
Classify after the first full deploy check fails:
| Complexity | Signals | Path |
|------|------|------|
| Simple | Single failing check, one stack, clear file/config owner, one safe fix path | Fix-now |
| Medium | Several failures in one stack or one workspace, independent enough for targeted fixes | Fix-now with TodoWrite tracking |
| Complex | Multi-stack failures, shared configs, monorepo/build graph issues, uncertain repair options, or likely cross-cutting side effects | Tracked remediation; use rules/parallel-remediation.md before subagents |
When uncertain, classify upward. It is better to preserve evidence and ownership than to silently make broad changes.
</complexity_classification>
<execution_modes>
deploy-check.sh, report detected stacks, passed/failed/skipped checks, and blockers. No edits.rules/parallel-remediation.md first.rules/tracked-remediation.md, then create or resume .hypercore/pre-deploy/flow.json with phases detect, baseline, triage, fix, verify, report.deploy-fix, runtime application bugs to bug-fix, and unrelated implementation requests to execute.</execution_modes>
<workflow>From the repository root:
skills/pre-deploy/scripts/deploy-check.sh
Do not skip this initial command unless the target root has no supported stack. It establishes the baseline and captures exact blockers.
From the repository root:
# 1) quality checks
skills/pre-deploy/scripts/lint-check.sh
# 2) build phase
skills/pre-deploy/scripts/build-run.sh
Use step-by-step commands for targeted rechecks after a fix, but the final readiness claim still requires a full deploy-check.sh run.
cargo fmt --check + cargo clippy + cargo check + cargo build --releaseruff/flake8 if available) + type/syntax check (mypy or compileall) + build (poetry build or python -m build, fallback compileall)<implementation_rules>
</implementation_rules>
<completion_report>
Use this report shape:
## Done
**Scope**: [repo root or workspace]
**Stacks detected**: [node/rust/python]
**Mode**: [validate-only/fix-now/parallel remediation/tracked remediation/handoff]
**Initial blockers**: [none or summarized failures]
**Fixes applied**: [changed files or none]
**Validation**:
- `skills/pre-deploy/scripts/deploy-check.sh`: [passed/failed/not run with reason]
- Skipped/not configured checks: [list]
**Remaining risks**: [none or explicit caveats]
Only say "ready to deploy" when the final full deploy-check.sh run passed.
</completion_report>
<validation>Execution checklist:
skills/pre-deploy/scripts/deploy-check.sh run first for supported stacksForbidden:
testing
Use this skill when the user asks to create a GitHub issue and move the current AI session onto its matching branch, or when the user provides an existing GitHub issue number/URL and wants the matching branch checked out without extra confirmation. If invoked with no issue/topic, ask what issue to create. Do not use for commit-only, push-only, PR review, or detached worktree management.
development
Use this skill when the user asks to create or update a project-specific DESIGN.md design system document for AI agents, including visual direction, tokens, components, layout, interaction, motion, and light/dark mode variants from user requests, project UI evidence, or design references. Do not use for README/docs authoring, product requirements, architecture rules, or implementing UI code.
testing
Use this skill when the user asks to create a GitHub issue and move the current AI session onto its matching branch, or when the user provides an existing GitHub issue number/URL and wants the matching branch checked out without extra confirmation. If invoked with no issue/topic, ask what issue to create. Do not use for commit-only, push-only, PR review, or detached worktree management.
development
Use this skill when the user asks to create or update a project-specific DESIGN.md design system document for AI agents, including visual direction, tokens, components, layout, interaction, motion, and light/dark mode variants from user requests, project UI evidence, or design references. Do not use for README/docs authoring, product requirements, architecture rules, or implementing UI code.