---
name: hm-sentinel-precommit
version: 1.0.0
description: Sentinel pre-commit hook + Cognitive Debt Sentry — block uncompiled/untested agent commits; feed failures back.
license: MIT
homepage: https://hypermove.xyz
install: Fetch https://hypermove.xyz/api/skills/hm-sentinel-precommit?format=md and save it as hm-sentinel-precommit/SKILL.md in your agent's skills directory. No CLI, no npm, no MCP required.
---

# hm-sentinel-precommit

Sentinel pre-commit hook + Cognitive Debt Sentry — block uncompiled/untested agent commits; feed failures back.

## Run it (in your workspace — no MCP required)

This is a self-contained agent-skill. Once this SKILL.md is in your skills
directory it autoloads and runs locally by following the procedure below —
no HyperMove server or MCP connection is needed to install or run it.

**Inputs** (required: testsPassed):

```json
{
  "testsPassed": {
    "type": "boolean"
  },
  "lintClean": {
    "type": "boolean"
  },
  "changedFilesCovered": {
    "type": "boolean"
  }
}
```

**Procedure** — apply the HyperMove harness pattern locally:
1. Validate the inputs above and apply your cost / rate / prompt-injection policy.
2. Do the task: Sentinel pre-commit hook + Cognitive Debt Sentry — block uncompiled/untested agent commits; feed failures back.
3. Definition of done: the output is present and well-formed.

Composes (harness primitives you apply above): hm-output-enforcer, sentinel, hm-error-handler.

## External protocol (optional, via HyperMove MCP)

The skill runs fully locally. Connect the HyperMove MCP only if you need the
external-protocol layer — live cross-chain data (`data.call`) or to make/receive
a payment (`payments.settle`, x402/mpp · USDC/RLUSD):

- add MCP server `https://hypermove.xyz/api/mcp` (transport: http)
- Claude Code: `claude mcp add --transport http hypermove https://hypermove.xyz/api/mcp`