# Validate Before Commit

> >

- **Type:** Skill
- **Install:** `agentstack add skill-mitodl-agent-kit-validate-before-commit`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [mitodl](https://agentstack.voostack.com/s/mitodl)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** BSD-3-Clause
- **Upstream author:** [mitodl](https://github.com/mitodl)
- **Source:** https://github.com/mitodl/agent-kit/tree/main/skills/workflow/validate-before-commit

## Install

```sh
agentstack add skill-mitodl-agent-kit-validate-before-commit
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Validate Before Commit

**Do not declare a task done until the full validation sequence has passed.**
Run these checks proactively — do not wait for the human to ask.

## Standard sequence

```bash
# 1. Linting, formatting, and basic static checks
uv run pre-commit run --all-files

# 2. Type checking
uv run mypy 

# 3. Infrastructure plan (if Pulumi files were changed)
pulumi preview --stack 
```

## Rules

- Run pre-commit **before** mypy; pre-commit may auto-fix formatting that would
  otherwise produce mypy noise.
- If pre-commit auto-fixes files, stage the changes and re-run pre-commit to
  confirm all hooks pass cleanly.
- mypy errors are blocking — do not leave type errors for the human to clean up.
- `pulumi preview` output must be reviewed: unexpected replacements or deletions
  are bugs, not acceptable side effects.

## For Dagster / dg changes

After modifying assets, sensors, or code location structure, also confirm the
workspace loads cleanly:

```bash
dg check
```

## Interpreting failures

Read the full error output before proposing a fix. Do not apply a speculative
patch without understanding the root cause — iterating blindly on the same error
multiple times is worse than pausing to diagnose.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [mitodl](https://github.com/mitodl)
- **Source:** [mitodl/agent-kit](https://github.com/mitodl/agent-kit)
- **License:** BSD-3-Clause

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mitodl-agent-kit-validate-before-commit
- Seller: https://agentstack.voostack.com/s/mitodl
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
