# Build must succeed
npm run build
echo "Exit code: $?"
# Must be 0
# Distribution files created
ls dist/
# Must show compiled files
# Lock dependencies for npm package
npm run shrinkwrap
echo "Exit code: $?"
# Must be 0
# Verify shrinkwrap file created
ls npm-shrinkwrap.json
# Must exist
PROCEED ONLY IF:
✅ Build succeeds (exit code 0)
✅ No TypeScript errors
✅ No linting errors
✅ Distribution files created
✅ npm shrinkwrap completed successfully
✅ npm-shrinkwrap.json file created
IF FAILED: Fix build errors before completing.
1---2name: gate-6-build-23description: STOP AND CHECK:4---56---7name: gate-6-build8description: Gate 6 validation: Build success and dependency locking9---1011### Gate 6: Build1213**STOP AND CHECK:**14```bash15# Build must succeed16npm run build17echo "Exit code: $?"18# Must be 01920# Distribution files created21ls dist/22# Must show compiled files2324# Lock dependencies for npm package25npm run shrinkwrap26echo "Exit code: $?"27# Must be 02829# Verify shrinkwrap file created30ls npm-shrinkwrap.json31# Must exist32```3334**PROCEED ONLY IF:**35- ✅ Build succeeds (exit code 0)36- ✅ No TypeScript errors37- ✅ No linting errors38- ✅ Distribution files created39- ✅ npm shrinkwrap completed successfully40- ✅ npm-shrinkwrap.json file created4142**IF FAILED:** Fix build errors before completing.
Run npx skillmds@latest add majiayu000/gate-6-build-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
STOP AND CHECK: It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.