CtrlK
BlogDocsLog inGet started
Tessl Logo

precommit-release-gates

How to harden pre-commit against release-only failures, especially packaging mismatches

61

Quality

52%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./.squad/skills/precommit-release-gates/SKILL.md
SKILL.md
Quality
Evals
Security

Context

Use this when a release workflow fails even though local builds or lighter smoke checks were green.

Patterns

  • Reproduce the failure with the exact release command first (for VS Code extensions, npm run package, not just npm install or npm run compile).
  • Promote that exact release command into scripts/pre-commit.ps1 if the failure is deterministic and commit-blocking.
  • Keep hook documentation synchronized with the real script; stale check lists are a docs bug.
  • If the failure is a manifest or metadata mismatch, align the authoritative config files together (for example package.json and package-lock.json).

Examples

  • vscode-extension/package.json and vscode-extension/package-lock.json both moved engines.vscode to ^1.110.0 to match @types/vscode ^1.110.0.
  • scripts/pre-commit.ps1 now runs the same npm run package path that release uses.

Anti-Patterns

  • Assuming install or compile coverage proves the package is releasable.
  • Updating the hook without updating docs that enumerate its gates.
  • Fixing the symptom in one manifest file while leaving the lockfile or related metadata stale.
Repository
sbroenne/mcp-server-excel
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.