run-verify
รัน verify แบบครบวงจรบน local หรือ CI/CD ตามขนาด project
SKILL.mdrun-verify/SKILL.md
GitHubGoal
Run full-cycle verify — scan, format, lint, typecheck, test, build — choosing local or CI/CD based on project size
Scope
Use as the single consolidation point for all verify work
- Small project, not RAM/compute-heavy, not slow → run on local via the package script
verify - Large project, monorepo, or heavy build/test → push the branch to CI/CD, then watch and resolve errors
- Mode can be forced:
/run-verify --localor/run-verify --ci - If an end-to-end readiness gate is needed (before ship/deploy or after a big task) → also do the
Deep Verifysection below - Never merge, release, or deploy automatically
- Use after
/implement-to-productionto verify before ship - This runs the
verifysubset only — to run the project's FULL task manifest (all scripts incl. customdb:*,security,docs:build) → use/run-all-tasks
Execute
Pre-Run: Always run
/deep-reviewfirst — everyrun-*must be reviewed/assessed before the main action; never skip. If findings are blockers, fix or report them before running (verify).
1. Detect Mode
Goal: Choose the mode from context
- If the user specifies
--local→ use local mode - If the user specifies
--cior--ci-cd→ use CI/CD mode - If unspecified → go to the Auto Detect step
2. Auto Detect Project Size
Goal: Decide whether the project is small or large
- Check signals of a large project:
- Run
/check-monorepoand it turns out to be a monorepo workspacespresent inpackage.json,pnpm-workspace.yaml,moon.yml,turbo.json- Multiple workspaces/packages or heavy build/test (e.g. >60 seconds, high RAM/CPU usage)
AGENTS.mdor the user requires CI verify
- Run
- If any signal is found → CI/CD mode
- If none found → local mode
3. Local Mode (Small Project)
Goal: Run verify on local via the package manifest
- Read the package manifest (
package.json,Cargo.toml, etc.) - If there is no
verifyscript → run/follow-tasksto createverify=scan + format + lint + typecheck + test + build(format before lint) - If
verifyis missing any of the 6 parts → run/follow-tasksto fill them in - Run the
verifyscript on local (e.g.bun run verify) - If it fails → run
/resolve-errorsthen retry up to 3 times
4. CI/CD Mode (Large Project)
Goal: Push the branch to CI/CD and watch it
- Run
git branch --show-current,git status,git log origin/<branch>..HEAD - If the working tree is not clean → stop and report
- If there is no remote → stop and report
- Look for CI/CD config (see the
setup-cicdlist); if none → run/setup-cicd - Run
/git-pushif there are unpushed commits - If the push is rejected → stop and report (never force push)
- If it is GitHub Actions →
/resolve-github-actions-fails, otherwise/resolve-cicd - If it fails → run
/resolve-errors, then push again and re-run, up to 3 times - If it passes → report
5. Deep Verify (Readiness Gate)
Goal: Confirm the project truly works end-to-end — use with
--deepor before a major ship/deploy
- Runtime gate: run
/run-test(e2e) if there are UI flows,/check-open-ports+ smoke test the real entry points,/watch-browser fixto catch console/network errors if there is a web URL - Usage gate: run
/deep-test usageto confirm the examples in README/docs actually work - Deep validation: run
/deep-validatefor a final cross-reference, compliance, and security pass; if issues are found →/deep-review then-fix, then re-verify - Each gate that fails → fix and restart that gate; never skip; after 3 retries → stop + report
- Run
/report tablewith columns: No., Gate, Result, Evidence, Fix applied — summarize ready / not-ready
6. Ship (If Requested)
Goal: Deliver the work after verify passes
- If the user wants to ship the work after verify passes → run
/shipfor the full ship flow, from verify, release, and deploy through the rollback plan - Run
/suggest-next-actionafter/shipfinishes
Rules
1. Verify Only
- Never merge, release, or deploy
- Never commit automatically
2. Error Handling
- Use
/resolve-errorswhen an error is found - Retry up to 3 times
- If it still fails → stop and report
3. Safety
- Never force push
- Never push with an unclean working tree
- Never hardcode secrets
4. Package Manifest
A small project must have
verify=scan + format + lint + typecheck + test + build(format before lint)A large project uses the CI/CD pipeline to run the full suite
Use /run-scan if needed
Use /run-lint if needed
Use /run-typecheck if needed
Use /run-test if needed
Use /run-build if needed
Use /deep-test coverage if needed
Use /run-test all if needed
Use /ship if needed
Use /report if needed
Use /suggest-next-action if needed
Expected Outcome
- small project: code passes scan, format, lint, typecheck, test, build on local
- large project: branch pushed, CI/CD pipeline passes, or root cause + next action are clear
- no automatic merge/release/deploy