AgentSkillsCN

mythosmud-pre-commit-checklist

在确认工作完成之前,先运行MythosMUD的预提交检查:包括代码格式化、mypy静态类型检查、lint工具(可选Codacy工具),随后进行测试或测试覆盖率分析。适用于完成变更后、提交前,或当用户询问是否已万事俱备时使用。

SKILL.md
--- frontmatter
name: mythosmud-pre-commit-checklist
description: Run MythosMUD pre-commit checks before considering work done: format, mypy, lint (and optionally codacy-tools), then test or test-coverage. Use when finishing a change, before commit, or when the user asks if everything is done.

MythosMUD Pre-Commit Checklist

Definition of Done

Work is not done until these pass:

  1. Formatmake format
  2. Type checkmake mypy
  3. Lintmake lint (and make lint-sqlalchemy if touching SQLAlchemy)
  4. Testsmake test (fast) or make test-coverage (with coverage)
  5. Codacy — After any file edit, run Codacy analysis per project rules (see .cursor/rules/codacy.mdc)

All commands are run from the project root.

Full Pipeline (Optional)

For a full quality run including Codacy tools and OpenAPI spec:

powershell
make all

This runs: format, mypy, lint, lint-sqlalchemy, codacy-tools, build, openapi-spec, test-coverage.

Order

Run in this order: format first (so lint/mypy see formatted code), then mypy, then lint, then tests. Run Codacy analysis for each edited file as specified in the Codacy rule.

Reference