agents-pre-commit

Motoki0705 的头像作者 Motoki0705

代码编辑后,使用src.agents.scripts.pre_commit执行预提交检查。在需要自动执行代码检查/格式化钩子或运行测试和审查前使用。

📖 中文导读:代码编辑后,使用src.agents.scripts.pre_commit执行预提交检查。在需要自动执行代码检查/格式化钩子或运行测试和审查前使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: agents-pre-commit description: Run pre-commit checks using src.agents.scripts.pre_commit after editing code. Use when you need automated lint/format hooks on changed files or before running tests and review.

Agents Pre Commit

Overview

Use this skill to run the repo's pre-commit hooks on files changed since HEAD.

Quick start

uv run python -m src.agents.scripts.pre_commit

Notes

The script runs pre-commit on git diff --name-only HEAD and may delegate fixes to sub-agents. Logs are saved under agents_workspace/sub_agents/logs/.

If uv cache permissions fail, use a workspace cache:

uv --cache-dir agents_workspace/tmp_cache/uv_cache run python -m src.agents.scripts.pre_commit