/angreal:angreal-pre-commitfrom angreal
Configures pre-commit hooks to run angreal tasks (test, lint, format) at git lifecycle stages. Useful for enforcing quality gates before commits or pushes.
Ships in angreal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The angreal/pre-commit-angreal repo provides a pre-commit hook that runs angreal tasks at git lifecycle stages (pre-commit, pre-push, pre-merge-commit, etc.). Use this to make a project's angreal tasks the enforced quality gate before commits or pushes — no separate Makefile / npm script / shell wrapper.
Add to the project's .pre-commit-config.yaml:
repos:
- repo: https://github.com/angreal/pre-commit-angreal
rev: v0.1.0 # check the repo for the current tag — bump as needed
hooks:
- id: angreal
args:
- "test rust --unit-only"
- "test python"
Then install the git hook once per clone:
pre-commit install
Each entry in args is a full angreal command string (everything you'd type after angreal). They run serially and fail fast on the first non-zero exit, so order them cheapest-first (lint before tests, unit before integration).
By default the hook installs the latest angreal. Pin it for reproducibility:
hooks:
- id: angreal
additional_dependencies: ["angreal==2.8.7"]
args:
- "test rust --unit-only"
This matters when the project's tasks depend on Angreal features added in a specific release (e.g. ToolDescription, --in-place, required_version). Pin to the floor version your .angreal/ files need.
hooks:
- id: angreal
alias: angreal-pre-commit
args: ["test rust --unit-only"]
stages: [pre-commit]
- id: angreal
alias: angreal-pre-push
args: ["test all"]
stages: [pre-push]
Common split:
angreal test all, integration tests, doc build) — runs less often, so the cost is acceptable.Install both stages: pre-commit install --hook-type pre-commit --hook-type pre-push.
.angreal/; this just calls them. No reimplementation in YAML.angreal test python runs the same way whether you type it, the hook invokes it, or CI runs it — no behavior drift between contexts.trailing-whitespace, detect-secrets, etc.) and let pre-commit-angreal handle only the project-specific tasks.pre-push or CI, not pre-commit.The skill pins v0.1.0 above (initial tag, cut 2026-05). For newer revs, run gh api repos/angreal/pre-commit-angreal/tags --jq '.[].name' or check the tags page. pre-commit autoupdate will also bump rev: to the latest tag automatically.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/angreal-argumentsThis skill should be used when the user asks to "add arguments to a task", "use @angreal.argument", "add flags to command", "add -v flag to angreal task", "make argument required", "add optional parameter", "use python_type", "handle multiple values", "argparse for angreal task", "angreal cli args", or needs guidance on the @argument decorator, argument types, flags, default values, or CLI argument handling in angreal tasks./angreal-authoringThis skill should be used when the user asks to "create an angreal task", "write a task file", "add a command to angreal", "make a new task", "organize tasks with groups", "use @angreal.command", "use command_group", "use angreal.group decorator", "add long_about to a task", "require an angreal version", "same command name in different groups", or needs guidance on task file structure, the @command decorator, command groups (`command_group` and `@group(...)`), `required_version()`, naming conventions, or task organization within an existing angreal project./angreal-initThis skill should be used when the user asks to "create an angreal project", "initialize angreal", "set up angreal", "add angreal to project", "start new angreal project", "create .angreal directory", "scaffold into existing project", "angreal init --in-place", "add angreal to existing repo", or needs guidance on setting up angreal in a new or existing project (hand-rolled `.angreal/` or via an official template), or the initial task file structure./angreal-integrationsThis skill should be used when the user asks to "use Git in a task", "manage virtual environments", "use Docker Compose", "use the Docker class", "run docker container from task", "list docker containers in angreal", "clone a repository", "create a venv", "run docker-compose", "use angreal.integrations", "render a template", "scaffold files", "generate files from template", "use render_template", "use render_directory", "use Flox", "flox environment", "cross-language environment", "flox services", "@flox_required", or needs guidance on the built-in Git, VirtualEnv, Docker (compose or low-level client), Flox, or Tera templating integrations available in angreal tasks./angreal-mcpThis skill should be used when the user asks to "start the angreal mcp server", "expose angreal tasks to Claude / Cursor / an AI agent", "configure .mcp.json for angreal", "set up MCP for my angreal project", "connect angreal to an AI assistant", "what does angreal mcp do", "AI agent integration with angreal", or needs guidance on the built-in Model Context Protocol server (`angreal mcp`), what it exposes, how MCP clients should be configured to connect to it, and how `ToolDescription` and `risk_level` flow into agent context./angreal-patternsThis skill should be used when the user asks to "test angreal tasks", "mock angreal", "document tasks", "angreal best practices", "error handling in tasks", "subprocess patterns", "dry run mode", "verbose mode", "debug an angreal task", "ANGREAL_DEBUG", "propagate subprocess returncode", "angreal exit code 56", or needs guidance on testing patterns, development workflows, documentation strategies, or common implementation patterns for angreal tasks.npx claudepluginhub angreal/angreal --plugin angrealOther plugins' skills for the same job